6e7020c1739f13423945a24b4736a76ed00674e5
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-11-04  Martin Liska  <mliska@suse.cz>
2
3         * cgraphunit.c (cgraph_node::expand_thunk): Call
4         allocate_struct_function before init_function_start.
5         (cgraph_node::expand): Use push_cfun and pop_cfun.
6         * config/i386/i386.c (ix86_code_end): Call
7         allocate_struct_function before init_function_start.
8         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
9         * function.c (init_function_start): Move preamble to all
10         callers.
11         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
12         (execute_one_pass): Handle newly added TODO_discard_function.
13         (execute_pass_list_1): Terminate if cfun equals to NULL.
14         (execute_pass_list): Do not push and pop cfun, expect that
15         cfun is set.
16         * tree-pass.h (TODO_discard_function): Define.
17
18 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
19
20         * cfganal.c (inverted_post_order_compute): Remove conditional
21         compilation, use flag_checking.
22         * config.in: Regenerate.
23         * configure: Regenerate.
24         * configure.ac: Remove ENABLE_CHECKING.
25         * genconditions.c: Do not #undef ENABLE_CHECKING.
26         * sese.h (bb_in_region): Comment out broken check.
27         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
28         conditional compilation, use flag_checking.
29
30 2015-11-04  Tom de Vries  <tom@codesourcery.com>
31
32         PR tree-optimization/67742
33         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
34         field.
35         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
36         (create_variable_info_for_1): Add and handle handle_param parameter.
37         Add restrict handling.
38         (create_variable_info_for): Call create_variable_info_for_1 with extra
39         arg.
40         (make_param_constraints): Drop restrict_name parameter.  Ignore
41         vi->only_restrict_pointers.
42         (intra_create_variable_infos): Call create_variable_info_for_1 with
43         extra arg.  Remove restrict handling.  Call make_param_constraints with
44         one less arg.
45
46 2015-11-04  Tom de Vries  <tom@codesourcery.com>
47
48         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
49         variable.
50
51 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
52
53         * config/arm/coff.h: Remove.
54
55 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
56
57         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
58         check for aggregate types and beef up comment for mode check.
59
60 2015-11-03  Richard Biener  <rguenther@suse.de>
61
62         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
63         data references here.
64         * tree-vect-loop.c: Include cgraph.h.
65         (vect_analyze_loop_2): Collect data references here.
66         * tree-vect-slp.c (find_bb_location): Inline ...
67         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
68         Factor in vect_slp_transform_bb.
69         (vect_slp_transform_bb): Removed.
70         (vect_slp_analyze_bb_1): Collect data references here.
71         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
72         vect_slp_bb.
73         * tree-vectorizer.h (vect_slp_bb): Declare.
74         (vect_slp_analyze_bb): Remove.
75         (vect_slp_transform_bb): Remove.
76         (find_bb_location): Remove.
77         (vect_analyze_data_refs): Remove stmt count reference parameter.
78
79 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
80
81         * multiple_target.c (create_dispatcher_calls): Add target check
82         on ifunc.
83         (create_target_clone): Change assembler name for versioned declarations.
84
85 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
86             Chung-Lin Tang  <cltang@codesourcery.com>
87
88         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
89         * omp-low.c (check_omp_nesting_restrictions): Allow
90         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
91         contexts.
92
93 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
94
95         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
96         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
97         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
98         builtin.
99         (vmulxq_f32): Likewise.
100         (vmulx_f64): New.
101         (vmulxq_f64): Rewrite to call fmulx builtin.
102         (vmulxs_f32): Likewise.
103         (vmulxd_f64): Likewise.
104         (vmulx_lane_f32): Remove.
105         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
106
107 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
108
109         * config/aarch64/aarch64.md (*movhf_aarch64): Use
110         aarch64_reg_or_fp_zero for second operand.
111
112 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
113
114         * gimple-expr.c: Include hash-set.h and rtl.h.
115         (mark_addressable_queue): New var.
116         (mark_addressable): Factor actual marking into...
117         (mark_addressable_1): ... this.  Queue it up during expand.
118         (mark_addressable_2): New.
119         (flush_mark_addressable_queue): New.
120         * gimple-expr.h (flush_mark_addressable_queue): Declare.
121         * cfgexpand.c: Include gimple-expr.h.
122         (pass_expand::execute): Flush mark_addressable queue.
123
124 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
125
126         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
127         bb_no_side_effects_p tests...
128         (tree_ssa_ifcombine_bb): ... here.
129
130         PR tree-optimization/68083
131         * tree-ssa-ifcombine.c: Include tree-ssa.h.
132         (bb_no_side_effects_p): Test for undefined uses too.
133         * tree-ssa.c (gimple_uses_undefined_value_p): New.
134         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
135
136 2015-11-02  Jeff Law <jeff@redhat.com>
137
138         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
139         cases where the loop latch edge is in the middle of an FSM path.
140
141 2015-11-03  Tom de Vries  <tom@codesourcery.com>
142
143         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
144         (make_param_constraints): ... this.  Add and handle restrict_name
145         parameter.  Handle is_full_var case.
146         (intra_create_variable_infos): Use make_param_constraints.
147
148 2015-11-03  Tom de Vries  <tom@codesourcery.com>
149
150         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
151         make_copy_constraint call with make_constraint_from call.
152
153 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
154
155         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
156         PIE executables.
157
158 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
159
160         * builtins.h (fold_fma): Move to fold-const-call.h.
161         * builtins.c: Include fold-const-call.h.
162         (mathfn_built_in_2): New function, split out from...
163         (mathfn_built_in_1): ...here.
164         (do_real_to_int_conversion, fold_const_builtin_pow)
165         (fold_const_builtin_logb, fold_const_builtin_significand)
166         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
167         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
168         (fold_builtin_sincos): Use fold_const_call to handle constants.
169         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
170         checks for ERROR_MARK.  Use fold_const_call to handle constant
171         folds for math functions.
172         (fold_fma): Move to fold-const-call.c.
173         * fold-const.c: Include fold-const-call.h.
174         * Makefile.in (OBJS): Add fold-const-call.o.
175         (PLUGIN_HEADERS): Add fold-const-call.h.
176         * realmpfr.h (real_from_mpfr): Allow the format to be specified
177         directly.
178         * realmpfr.c (real_from_mpfr): Likewise.
179         * fold-const-call.h, fold-const-call.c: New files.
180
181 2015-11-02  Julian Brown  <julian@codesourcery.com>
182
183         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
184         brackets and semicolon.
185
186 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
187
188         Revert:
189         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
190
191         PR tree-optimization/65963
192         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
193         LSHIFT_EXPRs as equivalent MULT_EXPRs.
194
195 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
196
197         PR middle-end/68166
198         * fold-const.c: Include "md5.h".
199
200 2015-11-01  Jeff Law <jeff@redhat.com>
201
202         * vmsdbgout.c: Revert unused header file reduction patch.
203
204         * config/mcore/mcore.c: Include regs.h.
205
206 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
207
208         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
209
210 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
211
212         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
213         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
214         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
215
216 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
217
218         * ggc-common.c: Restore needed header for checking=release.
219
220 2015-10-31  Tom de Vries  <tom@codesourcery.com>
221
222         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
223
224 2015-10-31  Tom de Vries  <tom@codesourcery.com>
225
226         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
227         existing varinfo for arguments.
228
229 2015-10-31  Tom de Vries  <tom@codesourcery.com>
230
231         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
232         create_function_info_for.  Dump constraints generated during
233         create_function_info_for. Move intra_create_variable_infos call and
234         function-return-values-escape bit to ...
235         (create_function_info_for): ... here, and merge
236         intra_create_variable_infos call with argument loop.  Add and handle
237         nonlocal_p parameter.
238
239 2015-10-31  Tom de Vries  <tom@codesourcery.com>
240
241         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
242         updating is alap, and seperated from preceding code.  Make sure
243         insert_vi_for_tree is seperated from surrounding code.
244
245 2015-10-31  Tom de Vries  <tom@codesourcery.com>
246
247         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
248
249 2015-10-30  Jeff Law <jeff@redhat.com>
250             Nathan Sidwell  <nathan@acm.org>
251
252         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
253         args.
254         (MOVE_MAX): Set to 8.
255
256 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
257
258         * cgraph.c: Include context.h for offloading.
259         * varpool.c: Include context.h and omp-low.h.
260
261 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
262
263         * rtl.h (contains_symbol_ref_p): Declare.
264         (SYMBOL_REF_P): Define.
265         * rtlanal.c (contains_symbol_ref_p: New function.
266         * lra-constraints.c (contains_symbol_ref_p): Remove.
267         * var-tracking.c (contains_symbol_ref): Remove.
268         (track_expr_p): Use contains_symbol_ref_p instead of
269         contains_symbol_ref.
270
271 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
272
273         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
274         * fold-const.c (get_array_ctor_element_at_index): New.
275         (fold): Remove binary-search through CONSTRUCTOR, call previous.
276
277         * fold-const.h (get_array_ctor_element_at_index): New.
278
279 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
280
281         * Makefile.in (OBJS): Add multiple_target.o.
282         * attrib.c (make_attribute): Moved from config/i386/i386.c
283         * config/i386/i386.c (make_attribute): Deleted.
284         * multiple_target.c (create_dispatcher_calls): New.
285         (get_attr_len): Ditto.
286         (get_attr_str): Ditto.
287         (separate_attrs): Ditto.
288         (is_valid_asm_symbol): Ditto.
289         (create_new_asm_name): Ditto.
290         (create_target_clone): Ditto.
291         (expand_target_clones): Ditto.
292         (ipa_target_clone): Ditto.
293         (ipa_dispatcher_calls): Ditto.
294         * passes.def (pass_target_clone): Two new ipa passes.
295         * tree-pass.h (make_pass_target_clone): Ditto.
296         * doc/extend.texi (target_clones): New attribute description.
297
298 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
299
300         PR rtl-optimization/68106
301         * lra-remat.c (input_regno_present_p): Process hard regs
302         explicitly present in machine description insns.
303         (call_used_input_regno_present_p): Ditto.
304         (calculate_gen_cands): Ditto.
305         (do_remat): Ditto.
306
307 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
308
309         * config/arm/neon-testgen.ml: Fix comment typo.
310
311 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
312
313         * rtlanal.c (reg_set_p): Expand function comment.
314
315 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
316
317         * alias.c: Remove unused headers.
318         * asan.c: Likewise.
319         * attribs.c: Likewise.
320         * auto-inc-dec.c: Likewise.
321         * auto-profile.c: Likewise.
322         * bb-reorder.c: Likewise.
323         * bitmap.c: Likewise.
324         * bt-load.c: Likewise.
325         * builtins.c: Likewise.
326         * caller-save.c: Likewise.
327         * calls.c: Likewise.
328         * ccmp.c: Likewise.
329         * cfg.c: Likewise.
330         * cfganal.c: Likewise.
331         * cfgbuild.c: Likewise.
332         * cfgcleanup.c: Likewise.
333         * cfgexpand.c: Likewise.
334         * cfghooks.c: Likewise.
335         * cfgloop.c: Likewise.
336         * cfgloopanal.c: Likewise.
337         * cfgloopmanip.c: Likewise.
338         * cfgrtl.c: Likewise.
339         * cgraph.c: Likewise.
340         * cgraphbuild.c: Likewise.
341         * cgraphclones.c: Likewise.
342         * cgraphunit.c: Likewise.
343         * cilk-common.c: Likewise.
344         * combine-stack-adj.c: Likewise.
345         * combine.c: Likewise.
346         * compare-elim.c: Likewise.
347         * convert.c: Likewise.
348         * coverage.c: Likewise.
349         * cppbuiltin.c: Likewise.
350         * cprop.c: Likewise.
351         * cse.c: Likewise.
352         * cselib.c: Likewise.
353         * data-streamer-in.c: Likewise.
354         * data-streamer-out.c: Likewise.
355         * data-streamer.c: Likewise.
356         * dbxout.c: Likewise.
357         * dce.c: Likewise.
358         * ddg.c: Likewise.
359         * debug.c: Likewise.
360         * df-core.c: Likewise.
361         * df-problems.c: Likewise.
362         * df-scan.c: Likewise.
363         * dfp.c: Likewise.
364         * dojump.c: Likewise.
365         * dominance.c: Likewise.
366         * domwalk.c: Likewise.
367         * double-int.c: Likewise.
368         * dse.c: Likewise.
369         * dumpfile.c: Likewise.
370         * dwarf2asm.c: Likewise.
371         * dwarf2cfi.c: Likewise.
372         * dwarf2out.c: Likewise.
373         * emit-rtl.c: Likewise.
374         * except.c: Likewise.
375         * explow.c: Likewise.
376         * expmed.c: Likewise.
377         * expr.c: Likewise.
378         * final.c: Likewise.
379         * fixed-value.c: Likewise.
380         * fold-const.c: Likewise.
381         * function.c: Likewise.
382         * fwprop.c: Likewise.
383         * gcse.c: Likewise.
384         * generic-match-head.c: Likewise.
385         * ggc-common.c: Likewise.
386         * gimple-builder.c: Likewise.
387         * gimple-expr.c: Likewise.
388         * gimple-fold.c: Likewise.
389         * gimple-iterator.c: Likewise.
390         * gimple-low.c: Likewise.
391         * gimple-match-head.c: Likewise.
392         * gimple-pretty-print.c: Likewise.
393         * gimple-ssa-isolate-paths.c: Likewise.
394         * gimple-ssa-strength-reduction.c: Likewise.
395         * gimple-streamer-in.c: Likewise.
396         * gimple-streamer-out.c: Likewise.
397         * gimple-walk.c: Likewise.
398         * gimple.c: Likewise.
399         * gimplify-me.c: Likewise.
400         * gimplify.c: Likewise.
401         * godump.c: Likewise.
402         * graph.c: Likewise.
403         * graphds.c: Likewise.
404         * haifa-sched.c: Likewise.
405         * hw-doloop.c: Likewise.
406         * ifcvt.c: Likewise.
407         * init-regs.c: Likewise.
408         * internal-fn.c: Likewise.
409         * ipa-chkp.c: Likewise.
410         * ipa-comdats.c: Likewise.
411         * ipa-cp.c: Likewise.
412         * ipa-devirt.c: Likewise.
413         * ipa-icf-gimple.c: Likewise.
414         * ipa-icf.c: Likewise.
415         * ipa-inline-analysis.c: Likewise.
416         * ipa-inline-transform.c: Likewise.
417         * ipa-inline.c: Likewise.
418         * ipa-polymorphic-call.c: Likewise.
419         * ipa-profile.c: Likewise.
420         * ipa-prop.c: Likewise.
421         * ipa-pure-const.c: Likewise.
422         * ipa-ref.c: Likewise.
423         * ipa-reference.c: Likewise.
424         * ipa-split.c: Likewise.
425         * ipa-utils.c: Likewise.
426         * ipa-visibility.c: Likewise.
427         * ipa.c: Likewise.
428         * ira-build.c: Likewise.
429         * ira-color.c: Likewise.
430         * ira-conflicts.c: Likewise.
431         * ira-costs.c: Likewise.
432         * ira-emit.c: Likewise.
433         * ira-lives.c: Likewise.
434         * ira.c: Likewise.
435         * jump.c: Likewise.
436         * langhooks.c: Likewise.
437         * lcm.c: Likewise.
438         * lists.c: Likewise.
439         * loop-doloop.c: Likewise.
440         * loop-init.c: Likewise.
441         * loop-invariant.c: Likewise.
442         * loop-iv.c: Likewise.
443         * loop-unroll.c: Likewise.
444         * lower-subreg.c: Likewise.
445         * lra-assigns.c: Likewise.
446         * lra-coalesce.c: Likewise.
447         * lra-constraints.c: Likewise.
448         * lra-eliminations.c: Likewise.
449         * lra-lives.c: Likewise.
450         * lra-remat.c: Likewise.
451         * lra-spills.c: Likewise.
452         * lra.c: Likewise.
453         * lto-cgraph.c: Likewise.
454         * lto-compress.c: Likewise.
455         * lto-opts.c: Likewise.
456         * lto-section-in.c: Likewise.
457         * lto-section-out.c: Likewise.
458         * lto-streamer-in.c: Likewise.
459         * lto-streamer-out.c: Likewise.
460         * lto-streamer.c: Likewise.
461         * mcf.c: Likewise.
462         * mode-switching.c: Likewise.
463         * modulo-sched.c: Likewise.
464         * optabs.c: Likewise.
465         * opts-global.c: Likewise.
466         * passes.c: Likewise.
467         * plugin.c: Likewise.
468         * postreload-gcse.c: Likewise.
469         * postreload.c: Likewise.
470         * predict.c: Likewise.
471         * print-tree.c: Likewise.
472         * profile.c: Likewise.
473         * real.c: Likewise.
474         * realmpfr.c: Likewise.
475         * recog.c: Likewise.
476         * ree.c: Likewise.
477         * reg-stack.c: Likewise.
478         * regcprop.c: Likewise.
479         * reginfo.c: Likewise.
480         * regrename.c: Likewise.
481         * regstat.c: Likewise.
482         * reload.c: Likewise.
483         * reload1.c: Likewise.
484         * reorg.c: Likewise.
485         * resource.c: Likewise.
486         * rtl-chkp.c: Likewise.
487         * rtl-error.c: Likewise.
488         * rtlanal.c: Likewise.
489         * rtlhooks.c: Likewise.
490         * sanopt.c: Likewise.
491         * sched-deps.c: Likewise.
492         * sched-ebb.c: Likewise.
493         * sched-rgn.c: Likewise.
494         * sdbout.c: Likewise.
495         * sel-sched-dump.c: Likewise.
496         * sel-sched-ir.c: Likewise.
497         * sel-sched.c: Likewise.
498         * sese.c: Likewise.
499         * shrink-wrap.c: Likewise.
500         * simplify-rtx.c: Likewise.
501         * stack-ptr-mod.c: Likewise.
502         * statistics.c: Likewise.
503         * stmt.c: Likewise.
504         * stor-layout.c: Likewise.
505         * store-motion.c: Likewise.
506         * stringpool.c: Likewise.
507         * symtab.c: Likewise.
508         * target-globals.c: Likewise.
509         * targhooks.c: Likewise.
510         * toplev.c: Likewise.
511         * tracer.c: Likewise.
512         * trans-mem.c: Likewise.
513         * tree-affine.c: Likewise.
514         * tree-call-cdce.c: Likewise.
515         * tree-cfg.c: Likewise.
516         * tree-cfgcleanup.c: Likewise.
517         * tree-chkp-opt.c: Likewise.
518         * tree-chkp.c: Likewise.
519         * tree-chrec.c: Likewise.
520         * tree-complex.c: Likewise.
521         * tree-data-ref.c: Likewise.
522         * tree-dfa.c: Likewise.
523         * tree-diagnostic.c: Likewise.
524         * tree-dump.c: Likewise.
525         * tree-eh.c: Likewise.
526         * tree-emutls.c: Likewise.
527         * tree-if-conv.c: Likewise.
528         * tree-inline.c: Likewise.
529         * tree-into-ssa.c: Likewise.
530         * tree-iterator.c: Likewise.
531         * tree-loop-distribution.c: Likewise.
532         * tree-nested.c: Likewise.
533         * tree-nrv.c: Likewise.
534         * tree-object-size.c: Likewise.
535         * tree-outof-ssa.c: Likewise.
536         * tree-parloops.c: Likewise.
537         * tree-phinodes.c: Likewise.
538         * tree-predcom.c: Likewise.
539         * tree-pretty-print.c: Likewise.
540         * tree-profile.c: Likewise.
541         * tree-scalar-evolution.c: Likewise.
542         * tree-sra.c: Likewise.
543         * tree-ssa-address.c: Likewise.
544         * tree-ssa-alias.c: Likewise.
545         * tree-ssa-ccp.c: Likewise.
546         * tree-ssa-coalesce.c: Likewise.
547         * tree-ssa-copy.c: Likewise.
548         * tree-ssa-dce.c: Likewise.
549         * tree-ssa-dse.c: Likewise.
550         * tree-ssa-forwprop.c: Likewise.
551         * tree-ssa-ifcombine.c: Likewise.
552         * tree-ssa-live.c: Likewise.
553         * tree-ssa-loop-ch.c: Likewise.
554         * tree-ssa-loop-im.c: Likewise.
555         * tree-ssa-loop-ivcanon.c: Likewise.
556         * tree-ssa-loop-ivopts.c: Likewise.
557         * tree-ssa-loop-manip.c: Likewise.
558         * tree-ssa-loop-niter.c: Likewise.
559         * tree-ssa-loop-prefetch.c: Likewise.
560         * tree-ssa-loop-unswitch.c: Likewise.
561         * tree-ssa-loop.c: Likewise.
562         * tree-ssa-math-opts.c: Likewise.
563         * tree-ssa-operands.c: Likewise.
564         * tree-ssa-phiopt.c: Likewise.
565         * tree-ssa-phiprop.c: Likewise.
566         * tree-ssa-pre.c: Likewise.
567         * tree-ssa-propagate.c: Likewise.
568         * tree-ssa-reassoc.c: Likewise.
569         * tree-ssa-scopedtables.c: Likewise.
570         * tree-ssa-sink.c: Likewise.
571         * tree-ssa-strlen.c: Likewise.
572         * tree-ssa-structalias.c: Likewise.
573         * tree-ssa-tail-merge.c: Likewise.
574         * tree-ssa-ter.c: Likewise.
575         * tree-ssa-threadupdate.c: Likewise.
576         * tree-ssa-uncprop.c: Likewise.
577         * tree-ssa-uninit.c: Likewise.
578         * tree-ssa.c: Likewise.
579         * tree-ssanames.c: Likewise.
580         * tree-stdarg.c: Likewise.
581         * tree-streamer-in.c: Likewise.
582         * tree-streamer-out.c: Likewise.
583         * tree-streamer.c: Likewise.
584         * tree-switch-conversion.c: Likewise.
585         * tree-tailcall.c: Likewise.
586         * tree-vect-data-refs.c: Likewise.
587         * tree-vect-generic.c: Likewise.
588         * tree-vect-loop-manip.c: Likewise.
589         * tree-vect-loop.c: Likewise.
590         * tree-vect-patterns.c: Likewise.
591         * tree-vect-slp.c: Likewise.
592         * tree-vect-stmts.c: Likewise.
593         * tree-vectorizer.c: Likewise.
594         * tree-vrp.c: Likewise.
595         * tree.c: Likewise.
596         * tsan.c: Likewise.
597         * ubsan.c: Likewise.
598         * value-prof.c: Likewise.
599         * var-tracking.c: Likewise.
600         * varasm.c: Likewise.
601         * varpool.c: Likewise.
602         * vmsdbgout.c: Likewise.
603         * vtable-verify.c: Likewise.
604         * web.c: Likewise.
605         * wide-int-print.cc: Likewise.
606         * wide-int.cc: Likewise.
607         * xcoffout.c: Likewise.
608
609 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
610
611         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
612         between pass numbering and execution order.
613
614 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
615
616         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
617         check for dependencies.
618
619 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
620
621         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
622         CDI_DOMINATORS.
623
624 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
625
626         * real.h (format_helper): New.
627         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
628         (real_from_target, real_nan, real_2expN, real_value_truncate)
629         (significand_size, real_from_string2, exact_real_inverse)
630         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
631         (real_round, real_isinteger, real_from_integer): Replace
632         machine_mode arguments with format_helper arguments.
633         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
634         (real_from_integer, real_nan, real_2expN, real_convert)
635         (real_value_truncate, exact_real_truncate, real_to_target)
636         (real_from_target, significand_size, real_powi, real_trunc)
637         (real_floor, real_ceil, real_round, real_isinteger): Replace
638         machine_mode arguments with format_helper arguments.
639         (real_to_target_fmt, real_from_target_fmt): Delete.
640         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
641         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
642         argument with real_format.
643         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
644
645 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
646
647         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
648         (fixed_to_decimal, fixed_convert_from_real)
649         (real_convert_from_fixed): Fix mode arguments to real_2expN.
650
651 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
652
653         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
654         SCALAR_FLOAT_MODE_P.
655
656 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
657
658         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
659         (completely_scalarize): Comment zero-length arrays.
660         (get_access_replacement): Correct comment re. precondition.
661
662 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
663
664         * config/i386/i386.c (get_builtin_code_for_version): Set priority
665         for PROCESSOR_ZNVER1.
666         (enum processor_model): Add M_AMDFAM17H_znver1.
667         (struct arch_names_table): Likewise.
668         * doc/extend.texi: ADD znver1.
669
670 2015-10-30  Richard Biener  <rguenther@suse.de>
671
672         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
673         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
674         zeros to be folded to VECTOR_CSTs.
675         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
676         * fold-const.c (fold): Use build_vector_from_ctor.
677
678 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
679
680         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
681         "mov %0.h[0], %1.h[0] to "neon_move".
682         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
683         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
684         "mov_imm".
685         (*cmovsi_insn_uxtw): Likewise.
686
687 2015-10-30  Tom de Vries  <tom@codesourcery.com>
688
689         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
690         unsigned, and initialize, and use initial value instead of hardcoded
691         constant.  Add generic constraints dumping section.  Don't dump global
692         initializers constraints dumping section if empty.  Don't update
693         variable from if unused.
694
695 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
696
697         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
698         flag_checking and/or CHECKING_P to eliminate conditional compilation
699         on ENABLE_CHECKING.
700         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
701         * config/bfin/bfin.c (hwloop_optimize): Likewise.
702         * config/i386/i386.c (ix86_print_operand_address): Likewise.
703         (output_387_binary_op): Likewise.
704         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
705         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
706         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
707         Likewise.
708         * config/rs6000/rs6000.h: Likewise.
709         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
710
711 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
712
713         * config/sh/sh.opt (mfdpic): Add missing period.
714
715 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
716
717         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
718         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
719         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
720         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
721         mcore_base_register_rtx_p, mcore_legitimate_index_p,
722         mcore_legitimate_address_p): New functions.
723         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
724
725 2015-10-29  Jeff Law  <law@redhat.com>
726
727         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
728         method.
729         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
730         * tree-ssa-threadedge.c
731         (record_temporary_equivalences_from_stmts_at_dest): Remove
732         backedge_seen argument and associated code which invalidated
733         equivalences based on the value of that argument.
734         (thread_through_normal_block): Corresponding changes.
735
736 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
737
738         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
739         function earlier in the file.
740         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
741         df_regs_ever_live_p.
742
743 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
744
745         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
746         by ignoring it.
747
748 2015-10-29  Richard Henderson  <rth@redhat.com>
749
750         PR target/68124
751         PR rtl-opt/67609
752         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
753         sse check to the exact conditions of PR 67609.
754
755 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
756
757         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
758         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
759         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
760         of the traditional names that TFmode uses for handling IEEE
761         extended double. If -mfloat128, add KFmode functions for all of
762         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
763         make TFmode use the same emulation functions as KFmode.
764         (init_float128_ibm): Likewise.
765         (init_float128_ieee): Likewise.
766         (rs6000_generate_compare): For IEEE 128-bit floating point
767         comparisons, call the unordered comparison function instead of the
768         ordered comparison function.
769         (rs6000_expand_float128_convert): Deal with operands that are
770         memory operands. Restructure the code to use a switch statement on
771         the mode. Add support for TFmode defaulting to either IBM extended
772         double or IEEE 128-bit floating point. If the underlying types are
773         the same, use a move instead of a conversion function.
774         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
775         use for IEEE 128-bit floating point constants with -mfloat128.
776         (rs6000_c_mode_for_suffix): Likewise.
777         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
778         128-bit floating point with IBM extended double floating point.
779         (rs6000_invalid_binary_op): Likewise.
780         (rs6000_gen_le_vsx_permute): On little endian systems generate a
781         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
782         types that can go in vector registers.
783         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
784         point types that can go in vector registers on little endian
785         PowerPC systems.
786         (mark_swaps_for_removal): Likewise.
787         (rs6000_analyze_swaps): Likewise.
788         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
789
790         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
791         rework IEEE 128-bit floating point insns to deal with TFmode being
792         either IBM extended double or IEEE 128-bit floating point.
793         (IFKF): Likewise.
794         (IBM128): Update iterator to add condition that the mode is IBM
795         extended double.
796         (IEEE128): New iterator for IEEE 128-bit floating point.
797         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
798         (FLOAT128): Likewise.
799         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
800         iterator.
801         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
802         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
803         instead of hard coding TFmode or KFmode.
804         (negtf2_internal): Likewise.
805         (neg<mode>2_internal): Likewise.
806         (abs<mode>2): Likewise.
807         (abstf2_internal): Likewise.
808         (abs<mode>2_internal): Likewise.
809         (ieee_128bit_neg<mode>2): Likewise.
810         (ieee_128bit_neg<mode>2_internal): Likewise.
811         (ieee_128bit_abs<mode>2): Likewise.
812         (ieee_128bit_abs<mode>2_internal): Likewise.
813         (ieee_128bit_nabs<mode>2): Likewise.
814         (ieee_128bit_nabs<mode>2_internal): Likewise.
815         (extendiftf2): Add explicit conversions between 128-bit floating
816         point types. Drop the old conversions that had become unwieldy.
817         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
818         (extendifkf2): Likewise.
819         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
820         (extendtfkf2): Likewise.
821         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
822         (trunciftf2): Likewise.
823         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
824         (truncifkf2): Likewise.
825         (float<SDI:mode><IFKF:mode>2): Likewise.
826         (trunckftf2): Likewise.
827         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
828         (trunctfif2): Likewise.
829         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
830         (extenddftf2): Rework 128-bit floating point conversions to
831         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
832         KFmode expanders into one function.
833         (extenddf<mode>2): Likewise.
834         (extenddftf2_fprs): Likewise.
835         (extenddf<mode>2_fprs): Likewise.
836         (extenddftf2_vsx): Likewise.
837         (extenddf<mode>2_vsx): Likewise.
838         (extendsftf2): Likewise.
839         (extendsf<mode>2): Likewise.
840         (trunctfdf2): Likewise.
841         (trunc<mode>df2): Likewise.
842         (trunctfdf2_internal1): Likewise.
843         (trunc<mode>df2_internal1): Likewise.
844         (trunctfdf2_internal2): Likewise.
845         (trunc<mode>df2_internal2): Likewise.
846         (trunctfsf2): Likewise.
847         (trunc<mode>sf2): Likewise.
848         (trunctfsf2_fprs): Likewise.
849         (trunc<mode>sf2_fprs): Likewise.
850         (floatsit2f): Likewise.
851         (floatsi<mode>2): Likewise.
852         (fix_trunc_helper): Likewise.
853         (fix_trunc_helper<mode>): Likewise.
854         (fix_trunctfsi2): Likewise.
855         (fix_trunc<mode>si2): Likewise.
856         (fix_trunctfsi2_fprs): Likewise.
857         (fix_trunc<mode>si2_fprs): Likewise.
858         (fix_trunctfsi2_internal): Likewise.
859         (fix_trunc<mode>si2_internal): Likewise.
860         (fix_trunctfdi2): Likewise.
861         (fix_trunc<mode>di2): Likewise.
862         (fixuns_trunctf<mode>2): Likewise.
863         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
864         (floatditf2): Likewise.
865         (floatdi<mode>2): Likewise.
866         (floatuns<mode>tf2): Likewise.
867         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
868         (cmptf_internal1): Use a mode iterator to add support for both
869         types (IFmode, TFmode) that support IBM extended double.
870         (cmp<mode>_internal1): Likewise.
871         (cmptf_internal2): Likewise.
872         (cmp<mode>_internal2): Likewise.
873
874         * doc/extend.texi (Floating Types): Document __ibm128 and
875         __float128 on PowerPC.
876
877         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
878         -mfloat128 and -mno-float128.
879
880 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
881
882         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
883         floating point modes that can go in vector registers.
884         (MODES_TIEABLE_P): Move tests for vector modes before tests for
885         scalar floating point, so that IEEE 128-bit floating point that
886         can go in vector registers bind with vectors and not FP.
887         (struct rs6000_args): Add libcall field.
888
889         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
890         and -mfloat128-software switches.  Replace them with a binary
891         -mfloat128 switch.
892         (-mfloat128): Likewise.
893
894         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
895         128-bit floating point types in GPRs, even if the appropriate
896         option enabling the type was not used.
897         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
898         debugging.
899         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
900         pre-decrement on IEEE 128-bit floating point values.
901         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
902         is IEEE 128-bit floating point.
903         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
904         128-bit floating point types that can go in vector registers.
905         (rs6000_option_override_internal): Change -mfloat128-none and
906         -mfloat128-software to -mfloat128, and move code to be near other
907         VSX option handling.
908         (rs6000_option_override_internal): Disable -mfloat128 if we don't
909         have the Altivec ABI.
910         (rs6000_init_builtins): Don't make TFmode use either IFmode or
911         KFmode floating point nodes. Instead, have three separate nodes.
912         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
913         eventually moving the long double default to IEEE 128-bit floating
914         point.
915         (rs6000_opt_masks): Add -mfloat128.
916         (struct rs6000_opt_var): Fix typo in comment.
917         (init_cumulative_args): Initialize libcall field in
918         CUMULATIVE_ARGS.
919         (rs6000_function_arg): Treat library functions as if they had
920         prototypes to prevent IEEE 128-bit support functions from passing
921         arguments in both GPRs and vector registers.
922         (rs6000_arg_partial_bytes): Likewise.
923
924         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
925         an option that can be turned on via -mcpu=<xxx>.
926
927         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
928         longer used.
929
930         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
931         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
932         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
933         double is IBM extended double.
934
935         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
936         SUBREGs.
937
938 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
939
940         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
941         * genconditions.c: Define CHECKING_P in the generated code.
942         * genextract.c: Use flag_checking in insn_extract.
943         * gengtype.c (main): Remove conditional compilation.
944         * gengtype.h: Likewise.
945
946 2015-10-29  Jeff Law  <law@redhat.com>
947
948         PR tree-optimization/67892
949         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
950         in comment.
951         (thread_through_normal_block): If we have seen a backedge, then
952         do nothing.  No longer call find_jump_threads_backwards here.
953         (thread_across_edge): Use find_jump_threads_backwards to find
954         jump threads if the old style threader was not successful.
955         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
956         gsi_last_nondebug_bb.  Return NULL if the block does not end
957         with a control statement.
958         (find_jump_threads_backwards): Setup code moved here from
959         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
960         single edge argument instead of name & block.
961         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
962         prototype.
963
964 2015-10-29  Tom de Vries  <tom@codesourcery.com>
965
966         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
967         types.
968
969 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
970
971         * omp-low.c (lower_omp_target): Remove unreachable code & merge
972         ifs.
973
974 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
975
976         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
977
978 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
979
980         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
981         guard_bb0 and use guard_bb throughout.
982
983 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
984
985         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
986         unnecessary label.
987
988 2015-10-29  Richard Biener  <rguenther@suse.de>
989
990         PR middle-end/68142
991         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
992         overflow.
993
994 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
995
996         * alias.c: Reorder #include statements and remove duplicates.
997         * asan.c: Likewise.
998         * attribs.c: Likewise.
999         * auto-inc-dec.c: Likewise.
1000         * auto-profile.c: Likewise.
1001         * bb-reorder.c: Likewise.
1002         * bt-load.c: Likewise.
1003         * builtins.c: Likewise.
1004         * caller-save.c: Likewise.
1005         * calls.c: Likewise.
1006         * ccmp.c: Likewise.
1007         * cfg.c: Likewise.
1008         * cfganal.c: Likewise.
1009         * cfgbuild.c: Likewise.
1010         * cfgcleanup.c: Likewise.
1011         * cfgexpand.c: Likewise.
1012         * cfghooks.c: Likewise.
1013         * cfgloop.c: Likewise.
1014         * cfgloopanal.c: Likewise.
1015         * cfgloopmanip.c: Likewise.
1016         * cfgrtl.c: Likewise.
1017         * cgraph.c: Likewise.
1018         * cgraphbuild.c: Likewise.
1019         * cgraphclones.c: Likewise.
1020         * cgraphunit.c: Likewise.
1021         * cilk-common.c: Likewise.
1022         * combine-stack-adj.c: Likewise.
1023         * combine.c: Likewise.
1024         * compare-elim.c: Likewise.
1025         * convert.c: Likewise.
1026         * coverage.c: Likewise.
1027         * cppbuiltin.c: Likewise.
1028         * cprop.c: Likewise.
1029         * cse.c: Likewise.
1030         * cselib.c: Likewise.
1031         * data-streamer-in.c: Likewise.
1032         * data-streamer-out.c: Likewise.
1033         * data-streamer.c: Likewise.
1034         * dbxout.c: Likewise.
1035         * dce.c: Likewise.
1036         * ddg.c: Likewise.
1037         * debug.c: Likewise.
1038         * df-core.c: Likewise.
1039         * df-problems.c: Likewise.
1040         * df-scan.c: Likewise.
1041         * dfp.c: Likewise.
1042         * dojump.c: Likewise.
1043         * dominance.c: Likewise.
1044         * double-int.c: Likewise.
1045         * dse.c: Likewise.
1046         * dumpfile.c: Likewise.
1047         * dwarf2asm.c: Likewise.
1048         * dwarf2cfi.c: Likewise.
1049         * dwarf2out.c: Likewise.
1050         * emit-rtl.c: Likewise.
1051         * except.c: Likewise.
1052         * explow.c: Likewise.
1053         * expmed.c: Likewise.
1054         * expr.c: Likewise.
1055         * final.c: Likewise.
1056         * fixed-value.c: Likewise.
1057         * fold-const.c: Likewise.
1058         * function.c: Likewise.
1059         * fwprop.c: Likewise.
1060         * gcse.c: Likewise.
1061         * generic-match-head.c: Likewise.
1062         * ggc-common.c: Likewise.
1063         * gimple-builder.c: Likewise.
1064         * gimple-expr.c: Likewise.
1065         * gimple-fold.c: Likewise.
1066         * gimple-iterator.c: Likewise.
1067         * gimple-low.c: Likewise.
1068         * gimple-match-head.c: Likewise.
1069         * gimple-pretty-print.c: Likewise.
1070         * gimple-ssa-isolate-paths.c: Likewise.
1071         * gimple-ssa-strength-reduction.c: Likewise.
1072         * gimple-streamer-in.c: Likewise.
1073         * gimple-streamer-out.c: Likewise.
1074         * gimple-walk.c: Likewise.
1075         * gimple.c: Likewise.
1076         * gimplify-me.c: Likewise.
1077         * gimplify.c: Likewise.
1078         * godump.c: Likewise.
1079         * graph.c: Likewise.
1080         * graphite-poly.c: Likewise.
1081         * haifa-sched.c: Likewise.
1082         * hw-doloop.c: Likewise.
1083         * ifcvt.c: Likewise.
1084         * incpath.c: Likewise.
1085         * init-regs.c: Likewise.
1086         * internal-fn.c: Likewise.
1087         * ipa-chkp.c: Likewise.
1088         * ipa-comdats.c: Likewise.
1089         * ipa-cp.c: Likewise.
1090         * ipa-devirt.c: Likewise.
1091         * ipa-icf-gimple.c: Likewise.
1092         * ipa-icf.c: Likewise.
1093         * ipa-inline-analysis.c: Likewise.
1094         * ipa-inline-transform.c: Likewise.
1095         * ipa-inline.c: Likewise.
1096         * ipa-polymorphic-call.c: Likewise.
1097         * ipa-profile.c: Likewise.
1098         * ipa-prop.c: Likewise.
1099         * ipa-pure-const.c: Likewise.
1100         * ipa-ref.c: Likewise.
1101         * ipa-reference.c: Likewise.
1102         * ipa-split.c: Likewise.
1103         * ipa-utils.c: Likewise.
1104         * ipa-visibility.c: Likewise.
1105         * ipa.c: Likewise.
1106         * ira-build.c: Likewise.
1107         * ira-color.c: Likewise.
1108         * ira-conflicts.c: Likewise.
1109         * ira-costs.c: Likewise.
1110         * ira-emit.c: Likewise.
1111         * ira-lives.c: Likewise.
1112         * ira.c: Likewise.
1113         * jump.c: Likewise.
1114         * langhooks.c: Likewise.
1115         * lcm.c: Likewise.
1116         * lists.c: Likewise.
1117         * loop-doloop.c: Likewise.
1118         * loop-init.c: Likewise.
1119         * loop-invariant.c: Likewise.
1120         * loop-iv.c: Likewise.
1121         * loop-unroll.c: Likewise.
1122         * lower-subreg.c: Likewise.
1123         * lra-assigns.c: Likewise.
1124         * lra-coalesce.c: Likewise.
1125         * lra-constraints.c: Likewise.
1126         * lra-eliminations.c: Likewise.
1127         * lra-lives.c: Likewise.
1128         * lra-remat.c: Likewise.
1129         * lra-spills.c: Likewise.
1130         * lra.c: Likewise.
1131         * lto-cgraph.c: Likewise.
1132         * lto-compress.c: Likewise.
1133         * lto-opts.c: Likewise.
1134         * lto-section-in.c: Likewise.
1135         * lto-section-out.c: Likewise.
1136         * lto-streamer-in.c: Likewise.
1137         * lto-streamer-out.c: Likewise.
1138         * lto-streamer.c: Likewise.
1139         * mode-switching.c: Likewise.
1140         * modulo-sched.c: Likewise.
1141         * omp-low.c: Likewise.
1142         * optabs.c: Likewise.
1143         * opts-global.c: Likewise.
1144         * passes.c: Likewise.
1145         * plugin.c: Likewise.
1146         * postreload-gcse.c: Likewise.
1147         * postreload.c: Likewise.
1148         * predict.c: Likewise.
1149         * print-tree.c: Likewise.
1150         * profile.c: Likewise.
1151         * real.c: Likewise.
1152         * realmpfr.c: Likewise.
1153         * recog.c: Likewise.
1154         * ree.c: Likewise.
1155         * reg-stack.c: Likewise.
1156         * regcprop.c: Likewise.
1157         * reginfo.c: Likewise.
1158         * regrename.c: Likewise.
1159         * regstat.c: Likewise.
1160         * reload.c: Likewise.
1161         * reload1.c: Likewise.
1162         * reorg.c: Likewise.
1163         * resource.c: Likewise.
1164         * rtl-chkp.c: Likewise.
1165         * rtl-error.c: Likewise.
1166         * rtlanal.c: Likewise.
1167         * rtlhooks.c: Likewise.
1168         * sanopt.c: Likewise.
1169         * sched-deps.c: Likewise.
1170         * sched-ebb.c: Likewise.
1171         * sched-rgn.c: Likewise.
1172         * sese.c: Likewise.
1173         * shrink-wrap.c: Likewise.
1174         * simplify-rtx.c: Likewise.
1175         * stack-ptr-mod.c: Likewise.
1176         * statistics.c: Likewise.
1177         * stmt.c: Likewise.
1178         * stor-layout.c: Likewise.
1179         * store-motion.c: Likewise.
1180         * stringpool.c: Likewise.
1181         * symtab.c: Likewise.
1182         * target-globals.c: Likewise.
1183         * targhooks.c: Likewise.
1184         * toplev.c: Likewise.
1185         * tracer.c: Likewise.
1186         * trans-mem.c: Likewise.
1187         * tree-affine.c: Likewise.
1188         * tree-call-cdce.c: Likewise.
1189         * tree-cfg.c: Likewise.
1190         * tree-cfgcleanup.c: Likewise.
1191         * tree-chkp-opt.c: Likewise.
1192         * tree-chkp.c: Likewise.
1193         * tree-chrec.c: Likewise.
1194         * tree-complex.c: Likewise.
1195         * tree-data-ref.c: Likewise.
1196         * tree-dfa.c: Likewise.
1197         * tree-diagnostic.c: Likewise.
1198         * tree-dump.c: Likewise.
1199         * tree-eh.c: Likewise.
1200         * tree-emutls.c: Likewise.
1201         * tree-if-conv.c: Likewise.
1202         * tree-inline.c: Likewise.
1203         * tree-into-ssa.c: Likewise.
1204         * tree-iterator.c: Likewise.
1205         * tree-loop-distribution.c: Likewise.
1206         * tree-nested.c: Likewise.
1207         * tree-nrv.c: Likewise.
1208         * tree-object-size.c: Likewise.
1209         * tree-outof-ssa.c: Likewise.
1210         * tree-parloops.c: Likewise.
1211         * tree-phinodes.c: Likewise.
1212         * tree-predcom.c: Likewise.
1213         * tree-pretty-print.c: Likewise.
1214         * tree-profile.c: Likewise.
1215         * tree-scalar-evolution.c: Likewise.
1216         * tree-sra.c: Likewise.
1217         * tree-ssa-address.c: Likewise.
1218         * tree-ssa-alias.c: Likewise.
1219         * tree-ssa-ccp.c: Likewise.
1220         * tree-ssa-coalesce.c: Likewise.
1221         * tree-ssa-copy.c: Likewise.
1222         * tree-ssa-dce.c: Likewise.
1223         * tree-ssa-dom.c: Likewise.
1224         * tree-ssa-dse.c: Likewise.
1225         * tree-ssa-forwprop.c: Likewise.
1226         * tree-ssa-ifcombine.c: Likewise.
1227         * tree-ssa-live.c: Likewise.
1228         * tree-ssa-loop-ch.c: Likewise.
1229         * tree-ssa-loop-im.c: Likewise.
1230         * tree-ssa-loop-ivcanon.c: Likewise.
1231         * tree-ssa-loop-ivopts.c: Likewise.
1232         * tree-ssa-loop-manip.c: Likewise.
1233         * tree-ssa-loop-niter.c: Likewise.
1234         * tree-ssa-loop-prefetch.c: Likewise.
1235         * tree-ssa-loop-unswitch.c: Likewise.
1236         * tree-ssa-loop.c: Likewise.
1237         * tree-ssa-math-opts.c: Likewise.
1238         * tree-ssa-operands.c: Likewise.
1239         * tree-ssa-phiopt.c: Likewise.
1240         * tree-ssa-phiprop.c: Likewise.
1241         * tree-ssa-pre.c: Likewise.
1242         * tree-ssa-propagate.c: Likewise.
1243         * tree-ssa-reassoc.c: Likewise.
1244         * tree-ssa-sccvn.c: Likewise.
1245         * tree-ssa-scopedtables.c: Likewise.
1246         * tree-ssa-sink.c: Likewise.
1247         * tree-ssa-strlen.c: Likewise.
1248         * tree-ssa-structalias.c: Likewise.
1249         * tree-ssa-tail-merge.c: Likewise.
1250         * tree-ssa-ter.c: Likewise.
1251         * tree-ssa-threadedge.c: Likewise.
1252         * tree-ssa-threadupdate.c: Likewise.
1253         * tree-ssa-uncprop.c: Likewise.
1254         * tree-ssa-uninit.c: Likewise.
1255         * tree-ssa.c: Likewise.
1256         * tree-ssanames.c: Likewise.
1257         * tree-stdarg.c: Likewise.
1258         * tree-streamer-in.c: Likewise.
1259         * tree-streamer-out.c: Likewise.
1260         * tree-streamer.c: Likewise.
1261         * tree-switch-conversion.c: Likewise.
1262         * tree-tailcall.c: Likewise.
1263         * tree-vect-data-refs.c: Likewise.
1264         * tree-vect-generic.c: Likewise.
1265         * tree-vect-loop-manip.c: Likewise.
1266         * tree-vect-loop.c: Likewise.
1267         * tree-vect-patterns.c: Likewise.
1268         * tree-vect-slp.c: Likewise.
1269         * tree-vect-stmts.c: Likewise.
1270         * tree-vectorizer.c: Likewise.
1271         * tree-vrp.c: Likewise.
1272         * tree.c: Likewise.
1273         * tsan.c: Likewise.
1274         * ubsan.c: Likewise.
1275         * value-prof.c: Likewise.
1276         * var-tracking.c: Likewise.
1277         * varasm.c: Likewise.
1278         * varpool.c: Likewise.
1279         * vtable-verify.c: Likewise.
1280         * web.c: Likewise.
1281         * wide-int-print.cc: Likewise.
1282         * wide-int.cc: Likewise.
1283         * xcoffout.c: Likewise.
1284
1285 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
1286
1287         * Makefile.in (NO_PIE_CFLAGS): New.
1288         (NO_PIE_FLAG): Likewise.
1289         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1290         (NO_PIE_FLAG_FOR_BUILD): Likewise.
1291         (BUILD_NO_PIE_CFLAGS): Likewise.
1292         (BUILD_NO_PIE_FLAG): Likewise.
1293         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1294         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1295         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1296         $(BUILD_NO_PIE_CFLAGS).
1297         (BUILD_CXXFLAGS): Likewise.
1298         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1299         $(BUILD_NO_PIE_FLAG).
1300         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
1301         (BUILD_NO_PIE_FLAG): Likewise.
1302         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1303         (NO_PIE_FLAG_FOR_BUILD): Likewise.
1304         * configure: Regenerated.
1305
1306 2015-10-29  Richard Biener  <rguenther@suse.de>
1307
1308         PR middle-end/56956
1309         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1310         unsigned conditonal negation to ABS_EXPR.
1311
1312 2015-10-29  Richard Biener  <rguenther@suse.de>
1313
1314         * gimple-match-head.c (gimple_simplify): Remove premature checking
1315         of builtin_decl_implicit of function calls we simplify.
1316
1317 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
1318
1319         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1320         (get_computation_cost_at): Ditto.
1321         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1322         and inv_expr_id.
1323
1324 2015-10-28  Tom de Vries  <tom@codesourcery.com>
1325
1326         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1327         superfluous code.
1328
1329 2015-10-28  Jason Merrill  <jason@redhat.com>
1330
1331         * Makefile.in (TAGS): Include libcpp and libiberty.
1332
1333 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
1334
1335         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1336         (extract_omp_for_data): Remove OpenACC special handling of
1337         chunking.
1338
1339         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1340         (struct parallel): Update comment.
1341         (nvptx_reorg): Likewise.
1342         (nvptx_neuter): Cleanup whitespace.
1343
1344 2015-10-28  Richard Henderson  <rth@redhat.com>
1345
1346         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1347
1348 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1349
1350         PR target/67839
1351         * config/avr/predicates.md (low_io_address_operand): Don't
1352         consider MODE when computing upper bound.
1353         (io_address_operand): Likewise.
1354
1355 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
1356
1357         * fold-const.c (operand_equal_p): Do not verify that types are
1358         compatible for MEM_REFs.
1359
1360 2015-10-28  Richard Biener  <rguenther@suse.de>
1361
1362         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1363         in simplifying VEC_COND_EXPR conditions.
1364
1365 2015-10-28  Tom de Vries  <tom@codesourcery.com>
1366
1367         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1368         into vi_next of a full_var.
1369
1370 2015-10-28  Tom de Vries  <tom@codesourcery.com>
1371
1372         * tree-ssa-structalias.c (new_var_info, make_heapvar)
1373         (make_constraint_from_restrict, make_constraint_from_global_restrict)
1374         (create_function_info_for, create_variable_info_for_1)
1375         (create_variable_info_for): Add and handle add_id parameter.
1376         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1377         (init_base_vars): Add extra argument to calls to new_var_info.
1378         (get_vi_for_tree): Add extra argument to call to
1379         create_variable_info_for.
1380         (process_constraint, do_deref, process_all_all_constraints): Add extra
1381         argument to calls to new_scalar_tmp_constraint_exp.
1382         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1383         argument to calls to make_heapvar.
1384         (make_restrict_var_constraints): Add extra argument to call to
1385         make_constraint_from_global_restrict.
1386         (intra_create_variable_infos): Add extra argument to call to
1387         create_variable_info_for_1.
1388         (ipa_pta_execute): Add extra argument to call to
1389         create_function_info_for.
1390
1391 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1392
1393         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1394         (sibcall_value): Likewise.
1395
1396 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
1397
1398         * config/nvptx/nvptx.h (struct machine_function): Add
1399         axis_predicate.
1400         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1401         nvptx_expand_oacc_join): Declare.
1402         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1403         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1404         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1405         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1406         UNSPECV_JOINING, UNSPECV_JOIN): New.
1407         (BITS, BITD): New mode iterators.
1408         (br_true_uni, br_false_uni): New.
1409         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1410         (oacc_dim_size, oacc_dim_pos): New.
1411         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1412         (oacc_fork, oacc_join): New.
1413         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1414         (worker_load<mode>, worker_store<mode>): New.
1415         (nvptx_barsync): New.
1416         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1417         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1418         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1419         worker_bcast_sym): New.
1420         (nvptx_option_override): Initialize worker broadcast buffer.
1421         (nvptx_emit_forking, nvptx_emit_joining): New.
1422         (nvptx_init_axis_predicate): New.
1423         (nvptx_declare_function_name): Init axis predicates.
1424         (nvptx_expand_call): Add fork/join markers around routine call.
1425         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1426         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1427         (nvptx_gen_vcast): New.
1428         (struct wcast_data_t): New.
1429         (enum propagate_mask): New.
1430         (nvptx_gen_wcast): New.
1431         (nvptx_print_operand): Add 'S' case.
1432         (struct parallel): New.
1433         (parallel::parallel, parallel::~parallel): New.
1434         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1435         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1436         nvptx_find_par, nvptx_discover_pars): New.
1437         (nvptx_propagate): New.
1438         (vprop_gen, nvptx_vpropagate): New.
1439         (wprop_gen, nvptx_wpropagate): New.
1440         (nvptx_wsync): New.
1441         (nvptx_single, nvptx_skip_par): New.
1442         (nvptx_process_pars, nvptx_neuter_pars): New.
1443         (ntptx_reorg): Split blocks, generate parallel structure, apply
1444         neutering.
1445         (nvptx_cannot_copy_insn_p): New.
1446         (nvptx_file_end): Emit worker broadcast decl.
1447         (nvptx_goacc_fork_join): New.
1448         (TARGET_CANNOT_COPY_INSN_P): Override.
1449         (TARGET_GOACC_FORK_JOIN): Override.
1450
1451 2015-10-28  Richard Biener  <rguenther@suse.de>
1452
1453         * fold-const.c (negate_expr_p): Adjust the division case to
1454         properly avoid introducing undefined overflow.
1455         (fold_negate_expr): Likewise.
1456
1457 2015-10-28  Richard Biener  <rguenther@suse.de>
1458
1459         PR tree-optimization/65962
1460         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1461         Avoid creating loop carried dependences also for outer loops
1462         of the loop a use to replace is in.
1463
1464 2015-10-28  Richard Biener  <rguenther@suse.de>
1465
1466         * common.opt (fchecking): New flag controlling flag_checking.
1467         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1468         * timevar.c (timer::print): Adjust output.
1469         * doc/invoke.texi (fchecking): Document.
1470
1471 2015-10-28  Richard Biener  <rguenther@suse.de>
1472
1473         PR middle-end/68067
1474         * fold-const.c (negate_expr_p): We cannot negate plus or minus
1475         if overflow is not wrapping.  Likewise multiplication unless
1476         one operand is constant and not power of two.
1477         (fold_negate_expr): Adjust accordingly.
1478
1479 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1480
1481         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1482         fields.
1483         (is_oacc_parallel, is_oacc_kernels): New.
1484         (enclosing_target_ctx): May return NULL.
1485         (ctx_in_oacc_kernels_region): New.
1486         (check_oacc_kernel_gwv): New.
1487         (oacc_loop_or_target_p): Delete.
1488         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
1489         operands.  Strip reductions fro kernels.
1490         (scan_omp_target): Don't calculate gwv mask.
1491         (lower_oacc_head_mark, lower_oacc_loop_marker,
1492         lower_oacc_head_tail): New.
1493         (struct oacc_collapse): New.
1494         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1495         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1496         Remove OpenACC handling.
1497         (expand_oacc_for): New.
1498         (expand_omp_for): Call expand_oacc_for.
1499         (lower_omp_for): Call lower_oacc_head_tail.
1500
1501 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
1502
1503         * attribs.c (check_attribute_tables): New function, broken out from...
1504         (init_attributes): Use it.
1505         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1506         gcc_checking_assert and checking_* functions to eliminate
1507         ENABLE_CHECKING conditionals.
1508         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1509         (pass_expand::execute): Likewise.
1510         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1511         * cgraphunit.c (mark_functions_to_output): Likewise.
1512         (cgraph_node::expand_thunk): Likewise.
1513         (symbol_table::compile): Likewise.
1514         * ddg.c (add_cross_iteration_register_deps): Likewise.
1515         (create_ddg_all_sccs): Likewise.
1516         * df-core.c (df_finish_pass, df_analyze): Likewise.
1517         * diagnostic-core.h: Likewise.
1518         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1519         * dominance.c (calculate_dominance_info): Likewise.
1520         * dwarf2out.c (add_AT_die_ref): Likewise.
1521         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1522         (loc_list_from_tree, gen_lexical_block_die): Likewise.
1523         gen_type_die_with_usage, gen_type_die): Likewise.
1524         (dwarf2out_decl): Likewise.
1525         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1526         * except.c (duplicate_eh_regions): Likewise.
1527         * fwprop.c (register_active_defs, update_df_init): Likewise.
1528         (fwprop_init, fwprop_done): Likewise.
1529         (update_uses): Likewise.
1530         * ggc-page.c (ggc_grow): Likewise.
1531         * gimplify.c (gimplify_body): Likewise.
1532         (gimplify_hasher::equal): Likewise.
1533         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1534         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1535         Likewise.
1536         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1537         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1538         * hash-table.h (::find_empty_slot_for_expand): Likewise.
1539         * ifcvt.c (if_convert): Likewise.
1540         * ipa-cp.c (ipcp_propagate_stage): Likewise.
1541         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1542         (odr_type_p, odr_types_equivalent_p): Likewise.
1543         (add_type_duplicate, get_odr_type): Likewise.
1544         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1545         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1546         (sem_item_optimizer::verify_classes): Likewise.
1547         (sem_item_optimizer::traverse_congruence_split): Likewise.
1548         (sem_item_optimizer::checking_verify_classes): New.
1549         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1550         method.
1551         * cfgrtl.c (commit_edge_insertions): Likewise.
1552         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1553         (rtl_flow_call_edges_add): Likewise.
1554         * cgraph.c (symbol_table::create_edge): Likewise.
1555         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1556         * cgraph.h (symtab_node): Likewise.
1557         (symtab_node::checking_verify_symtab_nodes): Define.
1558         (cgraph_node::checking_verify_cgraph_nodes): Define.
1559         * cfghooks.h (checking_verify_flow_info): Define.
1560         * cfgloop.h (checking_verify_loop_structure): Define.
1561         * dominance.h (checking_verify_dominators): Define.
1562         * et-forest.c: Fix comment.
1563         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1564         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1565         ENABLE_CHECKING conditionals.
1566         * ipa-inline-transform.c (save_inline_function_body): Likewise.
1567         * ipa-inline.c (inline_small_functions): Likewise.
1568         (early_inliner): Likewise.
1569         * ipa-inline.h (estimate_edge_growth): Likewise.
1570         * ipa-visibility.c (function_and_variable_visibility): Likewise.
1571         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1572         (ipa_single_use): Likewise.
1573         * ira-int.h: Likewise.
1574         * ira.c (ira): Likewise.
1575         * loop-doloop.c (doloop_optimize_loops): Likewise.
1576         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1577         * loop-invariant.c (move_loop_invariants): Likewise.
1578         * lra-assigns.c (lra_assign): Likewise.
1579         * lra-constraints.c (lra_constraints): Likewise.
1580         * lra-eliminations.c (lra_eliminate): Likewise.
1581         * lra-int.h (struct lra_reg): Likewise.
1582         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1583         (lra_create_live_ranges_1): Likewise.
1584         * lra-remat.c (create_remat_bb_data): Likewise.
1585         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1586         (lra): Likewise.
1587         (check_rtl): Always define. Remove incorrect guard around
1588         extract_constrain_insn call.
1589         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1590         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1591         ENABLE_CHECKING conditionals.
1592         * lto-streamer-out.c (DFS::DFS): Likewise.
1593         (lto_output): Likewise.
1594         * lto-streamer.c (lto_streamer_init): Likewise.
1595         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1596         expand_omp_target, execute_expand_omp): Likewise.
1597         (lower_omp_target): Likewise.
1598         * passes.c (execute_function_todo): Likewise.
1599         (execute_todo, execute_one_pass): Likewise.
1600         (verify_curr_properties): Always define.
1601         * predict.c (tree_estimate_probability: Use flag_checking,
1602         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1603         ENABLE_CHECKING conditionals.
1604         (propagate_freq): Likewise.
1605         * pretty-print.c (pp_format): Likewise.
1606         * real.c (real_to_decimal_for_mode): Likewise.
1607         * recog.c (split_all_insns): Likewise.
1608         * regcprop.c (kill_value_one_regno): Likewise.
1609         (copy_value): Likewise.
1610         (validate_value_data): Define unconditionally.
1611         * reload.c: Fix comment.
1612         * timevar.c: Include options.h
1613         * tree-ssa.h (checking_verify_ssa): Define.
1614         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1615         * sched-deps.c (CHECK): Remove unused macro.
1616         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1617         gcc_checking_assert and checking_* functions to eliminate
1618         ENABLE_CHECKING conditionals.
1619         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1620         * sel-sched.c (struct moveop_static_params): Likewise.
1621         (find_best_reg_for_expr, move_cond_jump): Likewise.
1622         (move_op_orig_expr_not_found): Likewise.
1623         (code_motion_process_successors, move_op): Likewise.
1624         * ssa-iterators.h (first_readonly_imm_use): Likewise.
1625         (next_readonly_imm_use): Likewise.
1626         * store-motion.c (compute_store_table): Likewise.
1627         * symbol-summary.h (function_summary::function_summary): Likewise.
1628         * target.h (cumulative_args_t): Likewise.
1629         (get_cumulative_args, pack_cumulative_args): Likewise.
1630         * timevar.c: (timer::print): Likewise.
1631         * trans-mem.c (ipa_tm_execute): Likewise.
1632         * tree-cfg.c (move_stmt_op): Likewise.
1633         (move_sese_region_to_fn): Likewise.
1634         (gimple_flow_call_edges_add): Likewise.
1635         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1636         Likewise.
1637         * tree-eh.c (remove_unreachable_handlers): Likewise.
1638         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1639         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1640         * tree-into-ssa.c (update_ssa): Likewise.
1641         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1642         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1643         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1644         * tree-predcom.c (suitable_component_p): Likewise.
1645         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1646         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1647         * tree-ssa-live.c (verify_live_on_entry): Likewise.
1648         * tree-ssa-live.h (register_ssa_partition): Likewise.
1649         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1650         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1651         (tree_transform_and_unroll_loop): Likewise.
1652         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1653         * tree-ssa-operands.c (get_expr_operands): Likewise.
1654         * tree-ssa-propagate.c (replace_exp_1): Likewise.
1655         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1656         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1657         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1658         * tree-ssanames.c (release_ssa_name_fn): Likewise.
1659         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1660         * tree-vect-loop-manip.c
1661         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1662         (slpeel_checking_verify_cfg_after_peeling): Likewise.
1663         (vect_do_peeling_for_loop_bound): Likewise.
1664         (vect_do_peeling_for_alignment): Likewise.
1665         * tree-vrp.c (supports_overflow_infinity): Likewise.
1666         (set_value_range): Likewise.
1667         * tree.c (free_lang_data_in_cgraph): Likewise.
1668         * value-prof.c (gimple_remove_histogram_value): Likewise.
1669         (free_hist): Likewise.
1670         * var-tracking.c (canonicalize_values_star): Likewise.
1671         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1672
1673 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1674
1675         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1676         IFN_GOACC_LOOP): New.
1677         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1678         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1679         IFN_UNIQUE_OACC_TAIL_MARK.
1680         (enum ifn_goacc_loop_kind): New.
1681         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1682         IFN_UNIQUE_OACC_JOIN cases.
1683         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1684         (expand_GOACC_LOOP): New.
1685         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1686         * omp-low.c: Include gimple-pretty-print.h.
1687         (struct oacc_loop): New.
1688         (enum oacc_loop_flags): New.
1689         (oacc_thread_numbers): New.
1690         (oacc_xform_loop): New.
1691         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1692         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1693         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1694         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1695         oacc_loop_discovery): New.
1696         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1697         oacc_loop_process): New.
1698         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1699         (execute_oacc_device_lower): Discover & process loops.  Process
1700         internal fns.
1701         * target.def (goacc.fork_join): Change sense of hook, clarify
1702         documentation.
1703         * doc/tm.texi: Regenerated.
1704
1705 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1706
1707         * target-insns.def (oacc_fork, oacc_join): Define.
1708         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1709         (goacc.fork_join): New GOACC hook.
1710         * targhooks.h (default_goacc_fork_join): Declare.
1711         * omp-low.c (default_goacc_forkjoin): New.
1712         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1713         * doc/tm.texi: Regenerate.
1714
1715 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1716
1717         * omp-low.c (oacc_init_rediction_array): New.
1718         (oacc_initialize_reduction_data): Initialize array.
1719
1720 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1721
1722         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1723
1724 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1725
1726         * internal-fn.c (expand_UNIQUE): New.
1727         * internal-fn.h (enum ifn_unique_kind): New.
1728         * internal-fn.def (IFN_UNIQUE): New.
1729         * target-insns.def (unique): Define.
1730         * gimple.h (gimple_call_internal_unique_p): New.
1731         * gimple.c (gimple_call_same_target_p): Check internal fn
1732         uniqueness.
1733         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1734         * tree-ssa-threadedge.c
1735         (record_temporary_equivalences_from_stmts): Likewise.
1736         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1737
1738 2015-10-27  Richard Henderson  <rth@redhat.com>
1739
1740         PR rtl-opt/67609
1741         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1742         narrowing subregs on SSE and MMX registers.
1743         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1744         appear to be sub-words of multi-register pseudos must be rejected.
1745         * doc/tm.texi: Regenerate.
1746
1747 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1748
1749         PR target/68102
1750         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1751         operands[0] is a reg before taking its REGNO in split condition.
1752         (*movdi_aarch64): Likewise.
1753
1754 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1755
1756         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1757         Handle floating point inner modes properly.
1758
1759 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
1760
1761         * tree-vect-looop.c
1762         (vectorizable_live_operation): Change iterator.
1763
1764 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1765             Aditya Kumar  <aditya.k7@samsung.com>
1766
1767         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1768           function to schedule based on isl_schedule_node.
1769         (get_schedule_map_st): New schedule optimizer based on
1770         isl_schedule_node.
1771         (scop_get_domains): New. Return the isl_union_set containing the
1772         domains of all the pbbs.
1773         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1774
1775 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1776
1777         PR target/67215
1778         * calls.c (prepare_call_address): Don't handle -fno-plt here.
1779         * config/i386/i386.c (ix86_expand_call): Generate indirect call
1780         via GOT for -fno-plt.  Support indirect call via GOT for x32.
1781         * config/i386/predicates.md (sibcall_memory_operand): Allow
1782         GOT memory operand.
1783
1784 2015-10-27  Richard Biener  <rguenther@suse.de>
1785
1786         PR tree-optimization/68104
1787         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1788         strided access check ...
1789         (vect_compute_data_refs_alignment): ... here.
1790
1791 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
1792             Joseph Myers  <joseph@codesourcery.com>
1793             Mark Shinwell  <shinwell@codesourcery.com>
1794             Andrew Stubbs  <ams@codesourcery.com>
1795             Rich Felker <dalias@libc.org>
1796
1797         * config.gcc: Handle --enable-fdpic.
1798         * config/sh/constraints.md (Ccl): New constraint.
1799         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1800         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1801         __SH_FDPIC__.
1802         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1803         library functions.
1804         * config/sh/sh-protos.h (function_symbol_result): New struct.
1805         (function_symbol): Return function_symbol_result.
1806         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1807         declarations.
1808         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1809         target hook.
1810         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1811         (sh_option_override): Force -fPIC if FDPIC is in effect.
1812         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1813         UNSPEC_GOTOFFFUNCDESC cases.
1814         (prepare_move_operands): Use FDPIC initial GOT register for
1815         TLS-related GOT access; inhibit cross-section address offset constants
1816         for FDPIC.
1817         (sh_assemble_integer): New function.
1818         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1819         PC-relative call sites.
1820         (expand_ashiftrt): Adapt invocation of function_symbol.
1821         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1822         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1823         UNSPEC_GOTOFFFUNCDESC.
1824         (legitimize_pic_address): Resolve function symbols to function
1825         descriptors for FDPIC.  Do not use GOT-relative addressing for local
1826         data that may be read-only on FDPIC.
1827         (sh_emit_storesi, sh_emit_storehi): New functions.
1828         (sh_trampoline_init): Generate FDPIC trampolines.
1829         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1830         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1831         (sh_output_mi_thunk): Generate FDPIC call.
1832         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
1833         FDPIC, generate call site labels to use PC-relative addressing rather
1834         than GOT-relative addressing.
1835         (sh_conditional_register_usage): Make PIC register fixed and call used
1836         when FDPIC is in effect.
1837         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1838         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1839         sh_get_fdpic_reg_initial_val): New functions.
1840         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1841         Handle -mfdpic.
1842         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1843         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1844         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1845         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1846         FDPIC_SELF_SPECS.
1847         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1848         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1849         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1850         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1851         constants.
1852         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1853         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1854         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1855         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1856         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1857         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1858         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1859         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1860         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1861         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1862         block_move_real, block_lump_real, block_move_real_i4,
1863         block_lump_real_i4): Add support for FDPIC calls.
1864         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1865         call_value_pop): Adjust for new function_symbol signature.
1866         * config/sh/sh.opt (-mfdpic): New option.
1867         * doc/install.texi (Options specification): Document --enable-fdpic.
1868         * doc/invoke.texi (SH Options): Document -mfdpic.
1869
1870
1871 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
1872
1873         PR tree-optimization/65963
1874         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1875         LSHIFT_EXPRs as equivalent MULT_EXPRs.
1876
1877 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1878
1879         PR target/67929
1880         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1881         * config/arm/constraints.md (Dp): Update callsite.
1882         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1883
1884 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1885
1886         * builtins.c (fold_builtin_load_exponent): Rename to...
1887         (fold_const_builtin_load_exponent): ...this and only handle
1888         constant arguments.
1889         (fold_builtin_2): Update accordingly.
1890         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1891
1892 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1893
1894         * builtins.c (fold_builtin_logb): Rename to...
1895         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1896         (fold_builtin_significand): Rename to...
1897         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1898         (fold_builtin_1): Update accordingly.
1899
1900 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1901
1902         * builtins.c (fold_builtin_fmin_fmax): Delete.
1903         (fold_builtin_2): Handle constant fmin and fmax arguments here.
1904         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1905
1906 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
1907
1908         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1909         for register extension into sign and zero register extension.
1910         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1911         for sign and zero register extension.
1912         (cortexa57_addrcost_table): Likewise.
1913         (xgene1_addrcost_table): Likewise.
1914
1915 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1916
1917         * fold-const.c (fold_minmax): Delete.
1918         (fold_binary_loc): Don't call it.
1919         * match.pd: Add rules previously handled by fold_minmax.
1920
1921 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1922
1923         * builtins.c (fold_builtin_fma): Remove constant handling.
1924         (fold_builtin_3): Handle constant fma arguments here.
1925
1926 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1927
1928         * builtins.c (fold_builtin_fabs): Remove constant handling.
1929         (fold_builtin_abs): Likewise.
1930
1931 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1932
1933         * builtins.c (fold_builtin_copysign): Delete.
1934         (fold_builtin_2): Handle constant copysign arguments here.
1935         * match.pd: Add rules previously handled by fold_builtin_copysign.
1936
1937 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1938
1939         * builtins.c (fold_builtin_signbit): Delete.
1940         (fold_builtin_2): Handle constant signbit arguments here.
1941         * match.pd: Add rules previously handled by fold_builtin_signbit.
1942
1943 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1944
1945         * match.pd: Handle sqrt(x) cmp 0 specially.
1946
1947 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
1948
1949         * tree-vect-generic.c (expand_vector_operations_1): Check
1950         optab type before using it.
1951
1952 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1953
1954         * config/aarch64/aarch64-protos.h
1955         (struct tune_params): Add autoprefetcher_model field.
1956         * config/aarch64/aarch64.c: Include params.h
1957         (generic_tunings): Specify autoprefetcher_model value.
1958         (cortexa53_tunings): Likewise.
1959         (cortexa57_tunings): Likewise.
1960         (cortexa72_tunings): Likewise.
1961         (thunderx_tunings): Likewise.
1962         (xgene1_tunings): Likewise.
1963         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1964         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1965         (aarch64_override_options_internal): Set
1966         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1967
1968 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1969
1970         * builtins.c (fold_builtin_exponent): Delete.
1971         (fold_builtin_2): Handle constant expN arguments here.
1972         * match.pd: Fold expN(logN(x)) -> x.
1973
1974 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1975
1976         * builtins.c (fold_builtin_powi): Delete.
1977         (fold_builtin_2): Handle constant powi arguments here.
1978         * match.pd: Add rules previously handled by fold_builtin_powi.
1979
1980 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1981
1982         * builtins.c (fold_builtin_pow): Delete in favor of...
1983         (fold_const_builtin_pow): ...this new function.  Only handle constant
1984         arguments.
1985         (fold_builtin_2): Update accordingly.
1986         * match.pd: Add rules previously handled by fold_builtin_pow.
1987
1988 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1989
1990         * builtins.c (fold_builtin_hypot): Delete.
1991         (fold_builtin_2): Handle constant hypot arguments here.
1992         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
1993         hypot(x, x) to fabs(x)*sqrt(2).
1994
1995 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1996
1997         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1998         instead of make_ssa_name if not yet in SSA form.
1999
2000 2015-10-27  Richard Biener  <rguenther@suse.de>
2001
2002         * cfg.c (free_edge): Add function argument and use it instead of cfun.
2003         (clear_edges): Likewise.
2004         * cfg.h (clear_edges): Adjust prototype.
2005         * cfgexpand.c (pass_expand::execute): Adjust.
2006         * cfgloop.c (release_recorded_exits): Add function argument and use
2007         it instead of cfun.
2008         * cfgloop.h (release_recorded_exits): Adjust prototype.
2009         (loops_state_satisfies_p): Add overload with function argument.
2010         (loops_state_set): Likewise.
2011         (loops_state_clear): Likewise.
2012         (struct loop_iterator): Add function argument to constructor
2013         and iterator and use it instead of cfun.
2014         (FOR_EACH_LOOP_FN): New macro.
2015         (loop_optimizer_finalize): Add overload with function argument.
2016         * loop-init.c (loop_optimizer_init): Adjust.
2017         (fix_loop_structure): Likewise.
2018         (loop_optimizer_finaliz): Add function argument and use it
2019         instead of cfun.
2020         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2021         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
2022         * cgraph.c (release_function_body): Do not push/pop cfun.
2023         * final.c (rest_of_clean_state): Adjust.
2024         * graphite.c (graphite_finalize): Likewise.
2025         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2026         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2027         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2028         (tree_unroll_loops_completely): Likewise.
2029         (pass_complete_unrolli::execute): Likewise.
2030         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
2031         Add function argument and use it instead of cfun.
2032         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
2033         Adjust prototype.
2034         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
2035         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
2036         instead of cfun.
2037         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
2038         * tree-ssanames.c (fini_ssanames): Add function argument and use it
2039         instead of cfun.
2040         * tree-ssanames.c (fini_ssanames): Adjust prototype.
2041         * tree-vrp.c (execute_vrp): Adjust.
2042         * value-prof.c (free_histograms): Add function argument and use it
2043         instead of cfun.
2044         * value-prof.h (free_histograms): Adjust prototype.
2045
2046 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
2047
2048         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
2049         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
2050         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
2051
2052 2015-10-27  Tom de Vries  <tom@codesourcery.com>
2053
2054         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
2055         field_type.
2056
2057 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
2058
2059         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
2060         (inv_can_prop_to_addr_use): New function.
2061         (record_use): Call can_prop_to_addr_uses, set the new field.
2062         (get_inv_cost): Count cost if inv can't be propagated into its
2063         address uses.
2064
2065 2015-10-26  Doug Evans  <dje@google.com>
2066
2067         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
2068
2069 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
2070
2071         * match.pd (fold_widened_comparison): Apply simplifications to all
2072         integral types.
2073
2074 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
2075
2076         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
2077         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
2078         * doc/tm.texi: Regenerated.
2079         * reorg.c (dbr_schedule): Use new hook.
2080         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
2081
2082 2015-10-26  Jeff Law  <law@redhat.com>
2083
2084         PR tree-optimization/68013
2085         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2086         Make sure the first block in the path is in VISITED_BBs.
2087
2088 2015-10-26  Richard Biener  <rguenther@suse.de>
2089         Dominik Vogt  <vogt@linux.vnet.ibm.com>
2090
2091         PR middle-end/67443
2092         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
2093         Properly prune ref->ref for accesses outside of ref.
2094
2095 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2096
2097         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
2098         new statements to be inserted if inplace.  Allow calls to have
2099         nonempty sequences.
2100
2101 2015-10-26  Richard Biener  <rguenther@suse.de>
2102
2103         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
2104         (do_valueize): New function.
2105         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
2106         replace_uses_by.
2107         * tree-ssa-threadedge.c: Remove builtins.h include, include
2108         gimple-fold.h
2109         (fold_assignment_stmt): Remove.
2110         (threadedge_valueize): New function.
2111         (record_temporary_equivalences_from_stmts): Use
2112         gimple_fold_stmt_to_constant_1, note additional cleanup
2113         opportunities.
2114
2115 2015-10-26  Richard Biener  <rguenther@suse.de>
2116
2117         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
2118         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
2119
2120 2015-10-26  Alan Hayward <alan.hayward@arm.com>
2121
2122         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2123         VEC_COND_EXPR types.
2124
2125 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2126
2127         * auto-inc-dec.c (insert_move_insn_before): Delete.
2128         (attempt_change): Remember to cost the simple move in the
2129         FORM_PRE_ADD and FORM_POST_ADD cases.
2130
2131 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2132
2133         PR target/68091
2134         * config/sh/sh.c (sh_vector_mode_supported_p): Use
2135         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2136
2137 2015-10-26  Tom de Vries  <tom@codesourcery.com>
2138
2139         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2140         factored out of ...
2141         (intra_create_variable_infos): ... here.
2142
2143 2015-10-26  Tom de Vries  <tom@codesourcery.com>
2144
2145         * tree-ssa-structalias.c (intra_create_variable_infos): Add
2146         restrict_pointer_p and recursive_restrict_p variables.
2147
2148 2015-10-26  Tom de Vries  <tom@codesourcery.com>
2149
2150         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2151         get_vi_for_tree call.
2152
2153 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2154
2155         PR middle-end/67989
2156         * optabs.c (expand_atomic_compare_and_swap): Handle case when
2157         ptarget_oval or ptarget_bool are const0_rtx.
2158
2159 2015-10-26  Christian Bruel  <christian.bruel@st.com>
2160
2161         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2162         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2163         * cp/method.c (implicitly_declare_fn): Likewise.
2164         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2165         * java/class.c (add_method_1): Likewise.
2166
2167 2015-10-26  Richard Biener  <rguenther@suse.de>
2168
2169         * alloc-pool.h (base_pool_allocator): Use placement new.
2170         (base_pool_allocator::remove): Likewise.  Compute size outside of
2171         flag_checking.
2172
2173 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2174
2175         * builtins.c (do_real_to_int_conversion): New function.
2176         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2177         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2178         arguments here.
2179         * match.pd: Add rules previously handled by fold_fixed_mathfn
2180         and fold_builtin_int_roundingfn.
2181
2182 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2183
2184         * match.pd: Use macros to define built-in operator lists.
2185
2186 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
2187             Richard Biener  <rguenther@suse.de>
2188
2189         * genmatch.c (dt_simplify::gen): Skip captures that are
2190         part of the result.
2191         (parser::parse_expr): Allow captures in results too.
2192         * builtins.c (fold_builtin_cexp): Delete.
2193         (fold_builtin_1): Handle constant cexp arguments here.
2194         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2195
2196 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
2197
2198         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2199         conditional compilation.
2200         (base_pool_allocator::remove): Use flag_checking.
2201
2202 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
2203
2204         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2205
2206         PR middle-end/68079
2207         * dojump.c (do_compare_and_jump): Canonicalize both function and
2208         method types.
2209
2210 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
2211
2212         PR target/68084
2213         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2214         for =@ccae.
2215
2216 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2217
2218         PR ipa/pr67600
2219         * ipa-polymorphic-call.c
2220         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2221         instance offset with offset of outer type.
2222
2223 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2224
2225         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2226
2227 2015-10-23  Caroline Tice  <cmtice@google.com>
2228
2229         (from Richard Biener
2230         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
2231         call to iterative_hash_host_wide_int.
2232
2233 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
2234
2235         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2236         Define as yes.
2237
2238 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2239
2240         * tree-vect-generic.c (expand_vector_operations_1): Check
2241         optab exists before use it.
2242
2243 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2244
2245         * tree-vect-generic.c (expand_vector_condition): Avoid
2246         uninitialized variable warning.
2247
2248 2015-10-23  Jeff Law  <law@redhat.com>
2249
2250         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2251         here.  Instead...
2252         (execute_todo): Call it here.
2253         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2254         statistics
2255         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2256
2257 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
2258             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2259
2260         * config.gcc (enable_secureplt): Add *-linux*-musl*.
2261
2262 2015-10-23  Jeff Law  <law@redhat.com>
2263
2264         PR tree-optimization/67830
2265         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2266         Explicitly verify the mask has no bits outside the type of
2267         the innermost operands.
2268
2269 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
2270             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2271
2272         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2273         (MUSL_DYNAMIC_LINKER64): Define.
2274         (GNU_USER_DYNAMIC_LINKER32): Update.
2275         (GNU_USER_DYNAMIC_LINKER64): Update.
2276         (CHOOSE_DYNAMIC_LINKER): Update.
2277
2278         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2279         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2280         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2281         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2282         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2283         (CHOOSE_DYNAMIC_LINKER): Update.
2284         (INCLUDE_DEFAULTS): Redefine.
2285
2286         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2287
2288 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2289
2290         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2291         comparing addresses.
2292
2293 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2294
2295         * fold-const.c (operand_equal_p): Handle matching of vector
2296         constructors.
2297
2298 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
2299
2300         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2301
2302 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
2303             Andrew Pinski  <apinski@cavium.com>
2304
2305         PR rtl-optimization/67736
2306         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2307         of gen_lowpart.
2308
2309 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2310
2311         PR middle-end/68066
2312         * tree.c (build_truth_vector_type): Support BLK mode
2313         returned for boolean vector.
2314
2315 2015-10-23  Alan Hayward <alan.hayward@arm.com>
2316
2317         PR tree-optimization/65947
2318         * tree-vect-loop.c
2319         (vect_is_simple_reduction_1): Find condition reductions.
2320         (vect_model_reduction_cost): Add condition reduction costs.
2321         (get_initial_def_for_reduction): Add condition reduction initial var.
2322         (vect_create_epilog_for_reduction): Add condition reduction epilog.
2323         (vectorizable_reduction): Condition reduction support.
2324         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2325         * doc/sourcebuild.texi (Vector-specific attributes): Document
2326         vect_max_reduc
2327
2328 2015-10-23  Richard Biener  <rguenther@suse.de>
2329
2330         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2331         and builtins.def.
2332
2333 2015-10-23  Richard Biener  <rguenther@suse.de>
2334             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2335
2336         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2337         into (A ^ B) - B to match.pd
2338         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2339
2340         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2341         New simplifier.
2342         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2343         New simplifier.
2344         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2345         New simplifier.
2346         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2347         New simplifier.
2348         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2349         INTEGER_CST@1)): New simplifier.
2350
2351 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
2352
2353         * builtins.c (integer_valued_real_p): Move to fold-const.c.
2354         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2355         (fold_builtin_ceil, fold_builtin_round): Delete.
2356         (fold_builtin_1): Handle constant trunc, floor, ceil and round
2357         arguments here.
2358         * convert.c (convert_to_real): Remove narrowing of rounding
2359         functions.
2360         * fold-const.h (integer_valued_real_unary_p)
2361         (integer_valued_real_binary_p, integer_valued_real_call_p)
2362         (integer_valued_real_single_p, integer_valued_real_p): Declare.
2363         * fold-const.c (tree_single_nonnegative_warnv_p): Move
2364         name_registered_for_update_p check to SSA_NAME case statement.
2365         Don't call tree_simple_nonnegative_warnv_p for SSA names.
2366         (integer_valued_real_unary_p, integer_valued_real_binary_p)
2367         (integer_valued_real_call_p, integer_valued_real_single_p)
2368         (integer_valued_real_invalid_p): New functions.
2369         (integer_valued_real_p): Move from fold-const.c and rework
2370         to call the functions above.  Handle SSA names.
2371         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2372         * gimple-fold.c (gimple_assign_integer_valued_real_p)
2373         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2374         (gimple_stmt_integer_valued_real_p): New functions.
2375         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2376         Fold f(x)->x for the same f if x is known to be integer-valued.
2377         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2378         the result.  Canonicalize floor(x) as trunc(x) if x is
2379         nonnegative.
2380
2381 2015-10-23  Tom de Vries  <tom@codesourcery.com>
2382
2383         * tree-ssa-structalias.c (intra_create_variable_infos): Use
2384         make_constraint_from.
2385
2386 2015-10-23  Tom de Vries  <tom@codesourcery.com>
2387
2388         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2389         setting of is_full_var in case of a single field.
2390
2391 2015-10-22  Martin Sebor  <msebor@redhat.com>
2392
2393         PR driver/68043
2394         * config/i386/i386.opt: Add missing periods to the ends of sentences.
2395         * config/msp430/msp430.opt: Same.
2396
2397 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
2398
2399         * doc/extend.exp (Global Register Variables): Rewrite.
2400
2401 2015-10-22  Jeff Law  <law@redhat.com>
2402
2403         * genattrtab.c (main): If we do not have any annul-true or annul-false
2404         slots, then write out a dummy eligible_for_annul_true or
2405         eligible_for_annul_false as needed.
2406
2407 2015-10-22  Nick Clifton  <nickc@redhat.com>
2408
2409         * config/msp430/msp430.opt: Add -msilicon-errata and
2410         -msilicon-errata-warn.
2411         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2412         assembler.
2413         * doc/invoke.texi: Document new options.
2414
2415 2015-10-22  Richard Biener  <rguenther@suse.de>
2416
2417         PR tree-optimization/58497
2418         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2419         (expand_vector_operations_1): Use it.  Lower operations on
2420         all uniform vectors to scalar operations if the HW supports it.
2421
2422 2015-10-22  Richard Biener  <rguenther@suse.de>
2423
2424         PR tree-optimization/19049
2425         PR tree-optimization/65962
2426         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2427         to strided accesses if single-element interleaving doesn't work.
2428
2429 2015-10-22  Richard Biener  <rguenther@suse.de>
2430
2431         PR middle-end/68046
2432         PR middle-end/61893
2433         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2434         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2435         (expand_unop): Likewise.
2436
2437 2015-10-22  Richard Biener  <rguenther@suse.de>
2438
2439         * fold-const.c (fold_addr_of_array_ref_difference): Properly
2440         convert operands before folding a MINUS_EXPR.
2441         (fold_binary_loc): Move simplification of MINUS_EXPR on
2442         converted POINTER_PLUS_EXPRs ...
2443         * match.pd: ... here.
2444
2445 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2446
2447         * builtins.c (fold_builtin_tan): Delete.
2448         (fold_builtin_1): Handle constant tan arguments here.
2449         * match.pd: Simplify (tan (atan x)) to x.
2450
2451 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2452
2453         * builtins.c (fold_builtin_cproj): Delete.
2454         (fold_builtin_1): Handle constant arguments here.
2455         (build_complex_cproj): Move and rename to...
2456         * tree.c: (build_complex_inf): ...this.
2457         * tree.h (build_complex_inf): Declare.
2458         * match.pd: Fold cproj(x)->x if x has no infinity.
2459         Use build_complex_inf for existing cproj rules.
2460
2461 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2462
2463         PR target/68015
2464         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2465         already have a comparison result.
2466
2467 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2468
2469         PR target/63304
2470         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2471         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2472         (aarch64_classify_address): Likewise.
2473         (aarch64_secondary_reload): Likewise.
2474         (aarch64_override_options_after_change_1): Adjust.
2475         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2476         Use aarch64_nopcrelative_literal_loads.
2477         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2478         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2479         Declare.
2480
2481 2015-10-21  Martin Sebor  <msebor@redhat.com>
2482
2483         PR driver/68043
2484         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2485         (print_filtered_help): Reference aliased option's name and encourage
2486         readers to use it in preference to the alias if the former is not
2487         documented.  Mention when using an option is diagnosed.
2488         * gcc.c (display_help): End each sentence with a period.
2489
2490         * common.opt: End each sentence that describes an option with
2491         a period.
2492         * config/aarch64/aarch64.opt: Same.
2493         * config/alpha/alpha.opt: Same.
2494         * config/arc/arc.opt: Same.
2495         * config/arm/arm.opt: Same.
2496         * config/avr/avr.opt: Same.
2497         * config/bfin/bfin.opt: Same.
2498         * config/c6x/c6x.opt: Same.
2499         * config/cr16/cr16.opt: Same.
2500         * config/cris/cris.opt: Same.
2501         * config/cris/linux.opt: Same.
2502         * config/darwin.opt: Same.
2503         * config/epiphany/epiphany.opt: Same.
2504         * config/fr30/fr30.opt: Same.
2505         * config/frv/frv.opt: Same.
2506         * config/ft32/ft32.opt: Same.
2507         * config/g.opt: Same.
2508         * config/h8300/h8300.opt: Same.
2509         * config/i386/cygming.opt: Same.
2510         * config/i386/djgpp.opt: Same.
2511         * config/i386/i386.opt: Same.
2512         * config/i386/interix.opt: Same.
2513         * config/i386/mingw-w64.opt: Same.
2514         * config/i386/mingw.opt: Same.
2515         * config/ia64/ia64.opt: Same.
2516         * config/ia64/ilp32.opt: Same.
2517         * config/iq2000/iq2000.opt: Same.
2518         * config/linux.opt: Same.
2519         * config/lm32/lm32.opt: Same.
2520         * config/lynx.opt: Same.
2521         * config/m32c/m32c.opt: Same.
2522         * config/m32r/m32r.opt: Same.
2523         * config/m68k/ieee.opt: Same.
2524         * config/m68k/m68k.opt: Same.
2525         * config/mcore/mcore.opt: Same.
2526         * config/mep/mep.opt: Same.
2527         * config/microblaze/microblaze.opt: Same.
2528         * config/mips/mips.opt: Same.
2529         * config/mmix/mmix.opt: Same.
2530         * config/mn10300/mn10300.opt: Same.
2531         * config/moxie/moxie.opt: Same.
2532         * config/msp430/msp430.opt: Same.
2533         * config/nios2/elf.opt: Same.
2534         * config/nios2/nios2.opt: Same.
2535         * config/nvptx/nvptx.opt: Same.
2536         * config/pa/pa-hpux.opt: Same.
2537         * config/pa/pa-hpux1010.opt: Same.
2538         * config/pa/pa-hpux1111.opt: Same.
2539         * config/pa/pa-hpux1131.opt: Same.
2540         * config/pa/pa.opt: Same.
2541         * config/pa/pa64-hpux.opt: Same.
2542         * config/pdp11/pdp11.opt: Same.
2543         * config/rl78/rl78.opt: Same.
2544         * config/rs6000/476.opt: Same.
2545         * config/rs6000/aix64.opt: Same.
2546         * config/rs6000/darwin.opt: Same.
2547         * config/rs6000/linux64.opt: Same.
2548         * config/rs6000/rs6000.opt: Same.
2549         * config/rs6000/sysv4.opt: Same.
2550         * config/s390/s390.opt: Same.
2551         * config/s390/tpf.opt: Same.
2552         * config/sh/sh.opt: Same.
2553         * config/sol2.opt: Same.
2554         * config/sparc/long-double-switch.opt: Same.
2555         * config/sparc/sparc.opt: Same.
2556         * config/spu/spu.opt: Same.
2557         * config/stormy16/stormy16.opt: Same.
2558         * config/tilegx/tilegx.opt: Same.
2559         * config/tilepro/tilepro.opt: Same.
2560         * config/v850/v850.opt: Same.
2561         * config/vax/vax.opt: Same.
2562         * config/visium/visium.opt: Same.
2563         * config/vms/vms.opt: Same.
2564         * config/vxworks.opt: Same.
2565         * config/xtensa/xtensa.opt: Same.
2566
2567 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2568             Sebastian Pop  <s.pop@samsung.com>
2569
2570         * graphite-scop-detection.c (parameter_index_in_region): Update call to
2571         invariant_in_sese_p_rec.
2572         * graphite-sese-to-poly.c (extract_affine): Same.
2573         * sese.c (invariant_in_sese_p_rec): Pass in an extra
2574         parameter has_vdefs.
2575         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2576         variable depends on virtual definitions in the current region.
2577         * sese.h (invariant_in_sese_p_rec): Update declaration.
2578
2579 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2580             Sebastian Pop  <s.pop@samsung.com>
2581
2582         * graphite-scop-detection.c (build_scops): Do not handle scops
2583         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2584         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2585
2586 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
2587
2588         * config.in: Regenerate.
2589         * configure: Regenerate.
2590         * configure.ac (CHECKING_P): Define.
2591         * system.h: Use CHECKING_P.
2592
2593 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2594
2595         PR ipa/67056
2596         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2597         is negative we don't know the type.
2598         (check_stmt_for_type_change): Skip constructors of non-polymorphic
2599         types as those won't help devirutalization.
2600
2601 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2602
2603         * fold-const.c (operand_equal_p): Add code matching empty constructors.
2604
2605 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2606
2607         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2608         comments.
2609         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2610         Add comments on sign of the result.
2611         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2612         Recurse on operand #1 instead of operand #0.
2613         <CEIL_MOD_EXPR>: Do not recurse.
2614         <ROUND_MOD_EXPR>: Likewise.
2615
2616 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2617
2618         * cfgrtl.c (pass_free_cfg::execute): Adjust.
2619         * final.c (dbr_sequence_length): Always define.
2620         (shorten_branches): Adjust.
2621         * genattr-common.c (main): Always define DELAY_SLOTS.
2622         * genattr.c (main): Unconditionally declare functions and define
2623         macros related to delay slots.
2624         * genattrtab.c (write_eligible_delay): Adjust.
2625         (main): Always write out delay slot functions.
2626         * opts.c (default_options_table): Adjust.
2627         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2628         (redirect_with_delay_list_safe_p): Likewise.
2629         (fill_simple_delay_slots): Likewise.
2630         (fill_slots_from_thread): Likewise.
2631         (make_return_insns): Likewise.
2632         (dbr_schedule): Likewise.
2633         (rest_of_handle_delay_slots): Likewise.
2634         (pass_delay_slots::gate): Likewise.
2635         * toplev.c (process_options): Likewise.
2636
2637 2015-10-21  Richard Henderson  <rth@redhat.com>
2638
2639         * targhooks.c (default_addr_space_pointer_mode): Remove check
2640         for generic address space.
2641         (default_addr_space_address_mode): Likewise.
2642         (default_addr_space_valid_pointer_mode): Likewise.
2643         (default_addr_space_legitimate_address_p): Likewise.
2644         (default_addr_space_legitimize_address): Likewise.
2645         * target.def (addr_space.pointer_mode): Update documentation
2646         of default behavior.
2647         (addr_space.address_mode): Likewise.
2648         * tm.texi: Update.
2649
2650         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2651         address spaces.
2652
2653 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2654
2655         * builtins.c (fold_builtin_cabs): Delete.
2656         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2657         * match.pd: Add rules previously handled by fold_builtin_cabs.
2658
2659 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2660
2661         * fold-const.h (fold_strip_sign_ops): Delete.
2662         * fold-const.c (fold_strip_sign_ops): Likewise.
2663         (fold_unary_loc, fold_binary_loc): Remove calls to it.
2664         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2665         (fold_builtin_ccos): Delete.
2666         (fold_builtin_pow): Don't call fold_strip_sign_ops.
2667         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2668         Remove fndecl argument.
2669         (fold_builtin_1): Update calls accordingly.  Handle constant
2670         cos, cosh, ccos and ccosh here.
2671
2672 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2673
2674         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2675         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2676         * common.opt (fssa-backprop): New option.
2677         * fold-const.h (negate_mathfn_p): Declare.
2678         * fold-const.c (negate_mathfn_p): Make public.
2679         * timevar.def (TV_TREE_BACKPROP): New.
2680         * tree-pass.h (make_pass_backprop): Declare.
2681         * passes.def (pass_backprop): Add.
2682         * gimple-ssa-backprop.c: New file.
2683
2684 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2685             Sebastian Pop  <s.pop@samsung.com>
2686
2687         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2688         Do not call create_empty_if_region_on_edge when cond_expr is true.
2689         (translate_isl_ast_node_for): Check whether a guard has been generated.
2690
2691 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2692
2693         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2694         (operator=): Removed.
2695         (dr_info): Make alias_set number the last argument with default
2696         value of invalid_alias_set.
2697         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2698         of dr_info.
2699         (rewrite_reductions_out_of_ssa): Iterate only through the
2700         basic blocks which are inside region.
2701         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2702         * sese.h (struct sese_l): Removed assignment operator.
2703         (split_region_for_bb): Removed dead code.
2704
2705 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2706
2707         * graphite-poly.h (struct dr_info): Removed conversion constructor.
2708         (struct scop): Renamed scop::region to scop::scop_info
2709         (scop_set_region): Same.
2710         (SCOP_REGION): Removed
2711         (SCOP_CONTEXT): Removed.
2712         (POLY_SCOP_P): Removed.
2713         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2714         Rename scop->region to scop->scop_info.
2715         (add_parameters_to_ivs_params): Same.
2716         (graphite_regenerate_ast_isl): Same.
2717         * graphite-poly.c (new_scop): Same.
2718         (free_scop): Same.
2719         (print_scop_params): Same.
2720         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2721         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2722         (dot_all_scops_1): Rename scop->region to scop->scop_info.
2723         (scop_detection::nb_pbbs_in_loops): Same.
2724         (find_scop_parameters): Same.
2725         (try_generate_gimple_bb): Same.
2726         (gather_bbs::before_dom_children): Same.
2727         (gather_bbs::after_dom_children): Same.
2728         (build_scops): Same.
2729         * graphite-sese-to-poly.c (build_scop_scattering): Same.
2730         (extract_affine_chrec): Same.
2731         (extract_affine): Same.
2732         (set_scop_parameter_dim): Same.
2733         (build_loop_iteration_domains): Same.
2734         (create_pw_aff_from_tree): Same.
2735         (add_param_constraints): Same.
2736         (build_scop_iteration_domain): Same.
2737         (build_scop_drs): Same.
2738         (analyze_drs_in_stmts): Same.
2739         (insert_out_of_ssa_copy_on_edge): Same.
2740         (rewrite_close_phi_out_of_ssa):Same.
2741         (rewrite_reductions_out_of_ssa):Same.
2742         (handle_scalar_deps_crossing_scop_limits):Same.
2743         (rewrite_cross_bb_scalar_deps):Same.
2744         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2745         (build_poly_scop):Same.
2746         (build_alias_set): Use pointer to dr_info.
2747         * graphite.c (print_graphite_scop_statistics):
2748         (graphite_transform_loops):
2749         * sese.h (struct sese_l): Remove conversion constructor.
2750
2751 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2752
2753         PR middle-end/67966
2754         * tree.c (verify_type): Verify that TYPE_MODE match
2755         between TYPE_CANONICAL and type.
2756         * expr.c (store_expr_with_bounds): Revert my previous change.
2757         * expmed.c (store_bit_field_1): Revert prevoius change.
2758         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2759         to match for all types.
2760
2761 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
2762
2763         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2764         nesting.
2765
2766 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2767
2768         * doc/tm.texi: Regenerated.
2769         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2770         * stor-layout.c (layout_type): Use mode to get vector mask size.
2771         * target.def (get_mask_mode): New.
2772         * targhooks.c (default_get_mask_mode): New.
2773         * targhooks.h (default_get_mask_mode): New.
2774         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
2775         for boolean vector.
2776         * tree.c (MAX_BOOL_CACHED_PREC): New.
2777         (nonstandard_boolean_type_cache): New.
2778         (build_nonstandard_boolean_type): New.
2779         (make_vector_type): Vector mask has no canonical type.
2780         (build_truth_vector_type): New.
2781         (build_same_sized_truth_vector_type): New.
2782         (truth_type_for): Support vector masks.
2783         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2784         (build_truth_vector_type): New.
2785         (build_same_sized_truth_vector_type): New.
2786         (build_nonstandard_boolean_type): New.
2787         * tree-cfg.c (verify_gimple_comparison) Require boolean
2788         vector type for vector comparison.
2789         (verify_gimple_assign_ternary): Likewise.
2790         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2791         condition operand.
2792         * tree-vect-stmts.c (vectorizable_condition): Use boolean
2793         vector type for vector comparison.
2794         * tree-vect-generic.c (elem_op_func): Add new operand to hold
2795         vector type.
2796         (do_unop): Adjust to modified function type.
2797         (do_binop): Likewise.
2798         (do_plus_minus): Likewise.
2799         (do_negate); Likewise.
2800         (expand_vector_piecewise): Likewise.
2801         (do_cond): Likewise.
2802         (do_compare): Use comparison instead of condition.
2803         (expand_vector_divmod): Use boolean vector type for comparison.
2804         (expand_vector_operations_1): Skip scalar mask operations.
2805
2806 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2807
2808         * omp-low.c (simd_clone_create): Set in_other_partition
2809         for created clones.
2810
2811 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
2812
2813         * doc/extend.exp (Local Register Variables): Rewrite.
2814
2815 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2816
2817         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2818         and x*x in cases where the operands are sign ops.  Extend these
2819         rules to handle copysign as a sign op (including for cos, cosh
2820         and pow, which already treated negate and abs as sign ops).
2821
2822 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
2823
2824         PR target/68018
2825         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2826         for 64-bit MS_ABI targets also when default incoming stack boundary
2827         is overriden.
2828
2829 2015-10-21  Richard Biener  <rguenther@suse.de>
2830
2831         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2832         cond stmts, enhanced and split out from ...
2833         (vn_phi_eq): ... here.
2834
2835 2015-10-21  Richard Biener  <rguenther@suse.de>
2836
2837         PR middle-end/68031
2838         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2839         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2840         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
2841         make sure they are not registered for update.
2842
2843 2015-10-21  Richard Biener  <rguenther@suse.de>
2844
2845         PR tree-optimization/68026
2846         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2847         unsigned VARYING values.
2848
2849 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
2850
2851         * asan.c (asan_emit_stack_protection): Don't pass local stack to
2852         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2853         NULL and use local stack than.
2854         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2855         in addition to __asan_init.
2856         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2857         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2858         * asan.h (asan_intercepted_p): Handle new string builtins.
2859         * ubsan.c (ubsan_use_new_style_p): New function.
2860         (ubsan_instrument_float_cast): If location is unknown, assign
2861         input_location to loc. Propagate loc to ubsan_create_data if
2862         ubsan_use_new_style_p returned true.
2863
2864 2015-10-21  Jeff Law  <law@redhat.com>
2865
2866         * Makefile.in (OBJS): Remove sched-vis.c
2867         * sched-vis.c: Removed.  Code moved into...
2868         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
2869         * rtl.h: Remove prototypes for functions now living in print-rtl.c
2870         * print-rtl.h Add prototypes for new functions in print-rtl.c.
2871         * auto-inc-dec.c: Include print-rtl.h
2872         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2873         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2874
2875         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2876         ATTRIBUTE_UNUSED.
2877
2878 2015-10-21  Richard Biener  <rguenther@suse.de>
2879             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2880
2881         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2882         to match.pd.
2883         Move (a * (1 << b)) is (a << b) to match.pd.
2884         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2885         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2886         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2887
2888         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2889         New simplifier.
2890         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2891         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2892         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2893         : New simplifier.
2894         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2895         New simplifier.
2896         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2897
2898 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
2899             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2900             Alan Modra  <amodra@gmail.com>
2901
2902         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2903         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2904         (LINK_SPEC): Add %(link_secure_plt).
2905         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2906         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2907
2908 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
2909             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2910
2911         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2912         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2913
2914 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2915
2916         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2917         New function.
2918         (fusion_load_store): Use it.
2919         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2920         ldp and stp in VD modes.
2921         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2922         (store_pair<mode>, VD): Likewise.
2923
2924 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
2925
2926         PR rtl-optimization/67609
2927         * lra-splill.c (lra_final_code_change): Don't remove all
2928         sub-registers.
2929
2930 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2931
2932         * simplify-rtx.c (simplify_binary_operation): If either operand was
2933         a constant pool reference use them if all other simplifications failed.
2934
2935 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2936
2937         * config/aarch64/aarch64.md
2938         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2939         * config/aarch64/aarch64-simd.md
2940         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2941         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2942         (aarch64_fpconst_pow_of_2): New function.
2943         (aarch64_vec_fpconst_pow_of_2): Likewise.
2944         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2945         prototype.
2946         (aarch64_vec_fpconst_pow_of_2): Likewise.
2947         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2948         (aarch64_fp_vec_pow2): Likewise.
2949
2950 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
2951
2952         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2953         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
2954         * config/alpha/alpha.c (alpha_function_arg_advance): Update
2955         ALPHA_ARG_SIZE usage.
2956         (alpha_arg_partial_bytes): Ditto.
2957
2958 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         PR target/66810
2961         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2962         error_mark_node decls.
2963
2964 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2965
2966         PR target/67963
2967         PR target/67985
2968         * common/config/i386/i386-common.c (ix86_handle_option): Remove
2969         OPT_miamcu handling.
2970         * config/i386/i386.c (PTA_NO_80387): New macro.
2971         (processor_alias_table): Add PTA_NO_80387 to lakemont.
2972         (ix86_option_override_internal): Update MASK_80387 from
2973         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
2974         SSE math only if 80387 is supported.  Don't change
2975         MASK_FLOAT_RETURNS.
2976         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2977         80387 is supported.
2978         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2979         if TARGET_80387 is true and TARGET_IAMCU is false.
2980         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2981         is true and TARGET_IAMCU_P is false.
2982
2983 2015-10-20  Richard Biener  <rguenther@suse.de>
2984
2985         PR tree-optimization/68017
2986         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2987
2988 2015-10-20  Martin Liska  <mliska@suse.cz>
2989
2990         * cgraphclones.c (cgraph_node::create_virtual_clone):
2991         Verify cgraph_node.local.versionable instead of calling
2992         tree_versionable_function_p.
2993         * ipa-cp.c (determine_versionability): Save the information
2994         to ipa_node_params summary.
2995         (ipcp_versionable_function_p): Use it.
2996         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2997         (ipcp_generate_summary): Do not compute cgraph_node
2998         versionability.
2999         * ipa-inline-analysis.c (inline_generate_summary): Compute
3000         versionability for all cgraph nodes.
3001         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
3002         ipa_node_params::versionability.
3003         * ipa-prop.h (struct ipa_node_params): Declare it.
3004
3005 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3006
3007         PR other/67868
3008         * varasm.c (assemble_variable): Move special vtv handling to..
3009         (handle_vtv_comdat_sections): .. here. New function.
3010         (output_object_block): Handle vtv sections.
3011
3012 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3013
3014         PR target/66912
3015         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
3016
3017 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
3018
3019         * doc/extend.texi: Update documentation WRT inline functions.
3020
3021 2015-10-20  Alan Modra  <amodra@gmail.com>
3022
3023         PR go/66870
3024         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
3025         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3026         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3027
3028 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
3029
3030         PR rtl-optimization/66790
3031         * df.h (DF_MIR): New macro.
3032         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
3033         (DF_MIR_INFO_BB): New macro.
3034         (DF_MIR_IN, DF_MIR_OUT): New macros.
3035         (struct df_mir_bb_info): New.
3036         (df_mir): New macro.
3037         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
3038         declarations.
3039         (df_mir_get_bb_info): New.
3040         * df-problems.c (struct df_mir_problem_data): New.
3041         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
3042         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
3043         df_mir_confluence_0, df_mir_confluence_n,
3044         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
3045         df_mir_bottom_dump, df_mir_verify_solution_start,
3046         df_mir_verify_solution_end): New.
3047         (problem_MIR): New.
3048         (df_mir_add_problem, df_mir_simulate_one_insn): New.
3049         * timevar.def (TV_DF_MIR): New.
3050         * ree.c: Include bitmap.h
3051         (add_removable_extension): Add an INIT_REGS parameter.  Use it
3052         to skip zero-extensions that may get an uninitialized register.
3053         (find_removable_extensions): Compute must-initialized registers
3054         using the MIR dataflow problem. Update the call to
3055         add_removable_extension.
3056         (find_and_remove_re): Call df_mir_add_problem.
3057
3058 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
3059
3060         * common/config/mn10300/mn10300-common.c
3061         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
3062         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
3063
3064 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
3065
3066         * doc/extend.texi (Explicit Register Variables): Simplify and
3067         avoid unnecessary and confusion abbreviations.  Update cross
3068         references.
3069         doc/implement-c.tex: Update cross reference.
3070
3071 2015-10-19  Jeff Law  <law@redhat.com>
3072
3073         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
3074         that create irreducible loops unless the path elimiantes a multiway
3075         branch.
3076
3077 2015-10-19  Richard Biener  <rguenther@suse.de>
3078
3079         PR tree-optimization/67975
3080         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
3081         * tree-cfg.c (extract_true_false_controlled_edges): Split out
3082         core worker from ...
3083         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
3084         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
3085         instead of block number for PHIs with two or one args.
3086         (vn_phi_eq): Compare edge predicates of PHIs that are in different
3087         blocks.
3088
3089 2015-10-19  Richard Biener  <rguenther@suse.de>
3090
3091         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
3092         (gimple_stmt_nonnegative_warnv_p): Use it.
3093         * match.pd (CPROJ): New operator list.
3094         (cproj (complex ...)): Move simplifications from ...
3095         * builtins.c (fold_builtin_cproj): ... here.
3096
3097 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
3098
3099         * config/i386/i386.c (ix86_expand_vector_move): Use
3100         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
3101         alignment.
3102
3103 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
3104
3105         * doc/invoke.texi: Replace @optindex with @opindex.
3106
3107 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
3108
3109         PR target/67995
3110         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
3111         arch= is set,  clear all bits in x_ix86_isa_flags, except for
3112         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
3113
3114 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
3115
3116         PR middle-end/68002
3117         * common.opt (fkeep-static-functions): New option.
3118         * doc/invoke.texi: Document it.
3119         * cgraphunit.c (cgraph_node::finalize_function): Use it.
3120
3121 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3122
3123         * sched-int.h (struct autopref_multipass_data_): Remove offset
3124         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
3125         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3126         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
3127         (autopref_rank_data): New function.
3128         (autopref_rank_for_schedule): Use it.
3129         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3130
3131 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
3132
3133         PR other/65800
3134         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3135
3136 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3137
3138         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3139         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
3140         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3141         (STANDARD_STARTFILE_PREFIX_1): New.
3142         (STANDARD_STARTFILE_PREFIX_2): New.
3143
3144 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3145
3146         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3147         (darwin_driver_init): Note a version-min when provided on the c/l.
3148         * config/darwin.h (%darwin_minversion): Remove.
3149         * config/i386/darwin.h: Likewise.
3150         * config/rs6000/darwin.h: Likewise.
3151         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3152         rather than an arbitrary constant.
3153
3154 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3155
3156         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3157         PPC, detect conflicts between -arch and multilib settings.  Detect
3158         and warn about conflicts between multiple -arch definitions.
3159
3160 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3161
3162         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3163
3164 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3165
3166         * lra-constraints.c (add_next_usage_insn): Change argument type
3167         from rtx to rtx_insn *.
3168
3169 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
3170
3171         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3172         for Lakemont.
3173
3174 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
3175
3176         * config/tilepro/gen-mul-tables.cc: Adjust include files.
3177         * config/tilegx/mul-tables.c: Regenerate.
3178         * config/tilepro/mul-tables.c: Regenerate.
3179
3180         * config/tilegx/tilegx-c.c: Adjust include files.
3181         * config/tilegx/tilegx.c: Likewise.
3182         * config/tilepro/tilepro-c.c: Likewise.
3183         * config/tilepro/tilepro.c: Likewise.
3184         * config/aarch64/aarch64-builtins.c: Likewise.
3185         * config/aarch64/aarch64.c: Likewise.
3186         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3187         * config/alpha/alpha.c: Likewise.
3188         * config/arc/arc.c: Likewise.
3189         * config/arm/aarch-common.c: Likewise.
3190         * config/arm/arm-builtins.c: Likewise.
3191         * config/arm/arm-c.c: Likewise.
3192         * config/arm/arm.c: Likewise.
3193         * config/avr/avr-c.c: Likewise.
3194         * config/avr/avr-devices.c: Likewise.
3195         * config/avr/avr-log.c: Likewise.
3196         * config/avr/avr.c: Likewise.
3197         * config/bfin/bfin.c: Likewise.
3198         * config/c6x/c6x.c: Likewise.
3199         * config/cr16/cr16.c: Likewise.
3200         * config/cris/cris.c: Likewise.
3201         * config/darwin-c.c: Likewise.
3202         * config/darwin-driver.c: Likewise.
3203         * config/darwin.c: Likewise.
3204         * config/default-c.c: Likewise.
3205         * config/epiphany/epiphany.c: Likewise.
3206         * config/epiphany/mode-switch-use.c: Likewise.
3207         * config/epiphany/resolve-sw-modes.c: Likewise.
3208         * config/fr30/fr30.c: Likewise.
3209         * config/frv/frv.c: Likewise.
3210         * config/ft32/ft32.c: Likewise.
3211         * config/glibc-c.c: Likewise.
3212         * config/h8300/h8300.c: Likewise.
3213         * config/i386/host-cygwin.c: Likewise.
3214         * config/i386/host-mingw32.c: Likewise.
3215         * config/i386/i386-c.c: Likewise.
3216         * config/i386/i386.c: Likewise.
3217         * config/i386/msformat-c.c: Likewise.
3218         * config/i386/winnt-cxx.c: Likewise.
3219         * config/i386/winnt-stubs.c: Likewise.
3220         * config/i386/winnt.c: Likewise.
3221         * config/ia64/ia64-c.c: Likewise.
3222         * config/ia64/ia64.c: Likewise.
3223         * config/iq2000/iq2000.c: Likewise.
3224         * config/lm32/lm32.c: Likewise.
3225         * config/m32c/m32c-pragma.c: Likewise.
3226         * config/m32c/m32c.c: Likewise.
3227         * config/m32r/m32r.c: Likewise.
3228         * config/mcore/mcore.c: Likewise.
3229         * config/mep/mep-pragma.c: Likewise.
3230         * config/mep/mep.c: Likewise.
3231         * config/microblaze/microblaze-c.c: Likewise.
3232         * config/microblaze/microblaze.c: Likewise.
3233         * config/mips/mips-tables.opt
3234         * config/mips/mips.c: Likewise.
3235         * config/mmix/mmix.c: Likewise.
3236         * config/mn10300/mn10300.c: Likewise.
3237         * config/moxie/moxie.c: Likewise.
3238         * config/msp430/msp430-c.c: Likewise.
3239         * config/msp430/msp430.c: Likewise.
3240         * config/nds32/nds32-cost.c: Likewise.
3241         * config/nds32/nds32-fp-as-gp.c: Likewise.
3242         * config/nds32/nds32-intrinsic.c: Likewise.
3243         * config/nds32/nds32-isr.c: Likewise.
3244         * config/nds32/nds32-md-auxiliary.c: Likewise.
3245         * config/nds32/nds32-memory-manipulation.c: Likewise.
3246         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3247         * config/nds32/nds32-predicates.c: Likewise.
3248         * config/nds32/nds32.c: Likewise.
3249         * config/nios2/nios2.c: Likewise.
3250         * config/nvptx/mkoffload.c: Likewise.
3251         * config/nvptx/nvptx.c: Likewise.
3252         * config/pa/pa.c: Likewise.
3253         * config/pdp11/pdp11.c: Likewise.
3254         * config/rl78/rl78-c.c: Likewise.
3255         * config/rl78/rl78.c: Likewise.
3256         * config/rs6000/host-darwin.c: Likewise.
3257         * config/rs6000/rs6000-c.c: Likewise.
3258         * config/rs6000/rs6000-linux.c: Likewise.
3259         * config/rs6000/rs6000.c: Likewise.
3260         * config/rx/rx.c: Likewise.
3261         * config/s390/s390-c.c: Likewise.
3262         * config/s390/s390.c: Likewise.
3263         * config/sh/sh-c.c: Likewise.
3264         * config/sh/sh-mem.cc: Likewise.
3265         * config/sh/sh.c: Likewise.
3266         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3267         * config/sh/sh_treg_combine.cc: Likewise.
3268         * config/sol2-c.c: Likewise.
3269         * config/sol2-cxx.c: Likewise.
3270         * config/sol2-stubs.c: Likewise.
3271         * config/sol2.c: Likewise.
3272         * config/sparc/sparc-c.c: Likewise.
3273         * config/sparc/sparc.c: Likewise.
3274         * config/spu/spu-c.c: Likewise.
3275         * config/spu/spu.c: Likewise.
3276         * config/stormy16/stormy16.c: Likewise.
3277         * config/v850/v850-c.c: Likewise.
3278         * config/v850/v850.c: Likewise.
3279         * config/vax/vax.c: Likewise.
3280         * config/visium/visium.c: Likewise.
3281         * config/vms/vms-c.c: Likewise.
3282         * config/vms/vms.c: Likewise.
3283         * config/vxworks.c: Likewise.
3284         * config/winnt-c.c: Likewise.
3285         * config/xtensa/xtensa.c: Likewise.
3286
3287 2015-10-16  Christian Bruel  <christian.bruel@st.com>
3288
3289         PR target/67745
3290         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3291         (FUNCTION_BOUNDARY_P): New macro:
3292         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3293         New hook.
3294         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3295         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3296         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3297         * function.c (allocate_struct_function): Call
3298         relayout_function hook.
3299         * passes.c (rest_of_decl_compilation): Likewise.
3300
3301 2015-10-16  Christian Bruel  <christian.bruel@st.com>
3302
3303         PR target/67745
3304         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3305         * config/arm/arm.c (arm_option_override_internal): Call
3306         arm_override_options_after_change_1.
3307         (arm_override_options_after_change): New function.
3308         (arm_override_options_after_change_1): Likewise.
3309         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3310
3311 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3312
3313         Revert:
3314         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3315         empty constructors.
3316
3317 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3318
3319         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3320         argument is an ADDR_EXPR.
3321
3322 2015-10-16  Richard Biener  <rguenther@suse.de>
3323
3324         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3325         and get rid of force_gimple_operand_gsi.
3326         (gimple_fold_builtin_memory_chk): Likewise.
3327         (gimple_fold_builtin_stxcpy_chk): Likewise.
3328         (rewrite_to_defined_overflow): Likewise.
3329         (gimple_convert_to_ptrofftype): New function.
3330         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3331
3332 2015-10-16  Richard Biener  <rguenther@suse.de>
3333
3334         * tree-nested.h (build_addr): Adjust prototype.
3335         * tree-nested.c (build_addr): Remove context argument and use
3336         mark_addressable.
3337         (get_static_chain): Adjust calls to build_addr.
3338         (convert_nl_goto_reference): Likewise.
3339         (convert_tramp_reference_op): Likewise.
3340         (finalize_nesting_tree_1): Likewise.
3341         * value-prof.c (gimple_ic): Likewise.
3342         * gimple-low.c (lower_builtin_setjmp): Likewise.
3343         * tree-parloops.c (take_address_of): Likewise.
3344         (create_call_for_reduction_1): Likewise.
3345         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3346         (gimple_gen_ic_func_profiler): Likewise.
3347
3348 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3349
3350         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3351         empty constructors.
3352
3353 2015-10-16  Michael Collison  <michael.collison@linaro.org>
3354             Andrew Pinski <andrew.pinski@caviumnetworks.com>
3355
3356         * match.pd ((x < y) && (x < z) -> x < min (y,z),
3357         (x > y) and (x > z) -> x > max (y,z))
3358
3359 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
3360             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3361
3362         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3363         (DYNAMIC_LINKER): Renamed to ...
3364         (GLIBC_DYNAMIC_LINKER): This.
3365         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3366
3367 2015-10-15  Marek Polacek  <polacek@redhat.com>
3368
3369         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3370         gimple_call_builtin instead of is_gimple_call.
3371
3372 2015-10-15  Richard Biener  <rguenther@suse.de>
3373
3374         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3375
3376 2015-10-15  Richard Biener  <rguenther@suse.de>
3377
3378         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3379         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3380         * tree-vect-loop.c (get_initial_def_for_induction): Drop
3381         use of force_gimple_operand in favor of gimple_build.
3382         Use vect_get_new_ssa_name.
3383         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3384         (vectorizable_mask_load_store): Likewise.
3385         (vectorizable_call): Likewise.
3386         (vectorizable_store): Likewise.
3387         (vectorizable_load): Likewise.
3388         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3389
3390 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
3391
3392         PR tree-optimization/67945
3393         * tree-pass.h (PROP_gimple_opt_math): New property flag.
3394         * generic-match-head.c (canonicalize_math_p): New function.
3395         * gimple-match-head.c: Include tree-pass.h.
3396         (canonicalize_math_p): New function.
3397         * match.pd: Group math built-in rules into simplifications
3398         and canonicalizations.  Guard the latter with canonicalize_math_p.
3399         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3400         PROP_gimple_opt_math property.
3401
3402 2015-10-15  Marek Polacek  <polacek@redhat.com>
3403
3404         PR tree-optimization/67953
3405         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3406
3407 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
3408
3409         * config.gcc: Recognize "." in architecture base name for AArch64.
3410
3411 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
3412
3413         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3414         ROUND_UP macro.
3415         * config/mips/mips.c (mips_setup_incoming_varargs): Use
3416         ROUND_DOWN to calculate off.
3417         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3418         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3419         rounded_size.
3420
3421 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3422
3423         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3424
3425 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
3426             Torvald Riegel  <triegel@redhat.com>
3427
3428         PR target/67281
3429         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3430         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3431         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3432         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3433         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
3434         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3435         trechkpt, treclaim, tsr, ttest): New define_expands.
3436         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3437         __TM_FENCE__ for htm.
3438         * doc/extend.texi: Update documentation for htm builtins.
3439
3440 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
3441
3442         PR target/67967
3443         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3444         REG_CFA_EXPRESSION to aligned SSE stores.
3445
3446 2015-10-14  Jeff Law  <law@redhat.com>
3447
3448         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3449         num_threaded_edges for successful FSM threads too.
3450
3451 2015-10-14  Richard Biener  <rguenther@suse.de>
3452
3453         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3454         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
3455         (vect_get_vec_def_for_operand): Remove unused parameter.
3456         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3457         (vect_create_epilog_for_reduction): Likewise.
3458         (vectorizable_reduction): Likewise.
3459         (vectorizable_live_operation): Likewise.
3460         * tree-vect-patterns.c (type_conversion_p): Likewise.
3461         (vect_recog_vector_vector_shift_pattern): Likewise.
3462         (check_bool_pattern): Likewise.
3463         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3464         (vect_analyze_slp_cost_1): Likewise.
3465         * tree-vect-stmts.c (process_use): Likewise.
3466         (vect_get_vec_def_for_operand): Do not handle reductions.
3467         (vect_get_vec_defs): Adjust.
3468         (vectorizable_mask_load_store): Likewise.
3469         (vectorizable_call): Likewise.
3470         (vectorizable_simd_clone_call): Likewise.
3471         (vect_get_loop_based_defs): Likewise.
3472         (vectorizable_conversion): Likewise.
3473         (vectorizable_assignment): Likewise.
3474         (vectorizable_shift): Likewise.
3475         (vectorizable_operation): Likewise.
3476         (vectorizable_store): Likewise.
3477         (vectorizable_load): Likewise.
3478         (vect_is_simple_cond): Likewise.
3479         (vectorizable_condition): Likewise.
3480         (vect_is_simple_use): Remove unused parameters.
3481         (vect_is_simple_use_1): Adjust and rename.
3482
3483 2015-10-14  Richard Biener  <rguenther@suse.de>
3484
3485         PR tree-optimization/67915
3486         * match.pd: Handle comparisons of addresses of STRING_CSTs.
3487         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3488         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3489         stmt folding in favor of GIMPLE one.
3490
3491 2015-10-14  Marek Polacek  <polacek@redhat.com>
3492
3493         PR tree-optimization/67815
3494         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3495         (reassociate_bb): Call it.
3496
3497 2015-10-14  Richard Biener  <rguenther@suse.de>
3498
3499         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3500         Reset info at start.
3501         (vect_analyze_group_access_1): Add debug print.
3502         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3503         (vect_compute_single_scalar_iteration_cost): ... to this.
3504         (vect_analyze_loop_2): Adjust.
3505         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3506         * tree-vectorizer.h: ... here.
3507         (add_stmt_info_to_vec): Remove.
3508         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3509
3510 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3511
3512         * targhooks.c (default_target_option_pragma_parse): Do not warn if
3513         called on behalf of "#pragma GCC pop_options".
3514
3515 2015-10-14  Tom de Vries  <tom@codesourcery.com>
3516
3517         * cfganal.c (verify_no_unreachable_blocks): New function.
3518         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3519         verify_no_unreachable_blocks.
3520         cfganal.h (verify_no_unreachable_blocks): Declare.
3521
3522 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
3523
3524         * common.opt: Add flag_checking.
3525         * system.h (CHECKING_P): Define.
3526
3527 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
3528             Aldy Hernandez  <aldyh@redhat.com>
3529             Ilya Verbin  <ilya.verbin@intel.com>
3530
3531         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3532         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3533         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3534         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3535         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3536         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3537         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3538         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3539         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3540         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3541         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3542         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3543         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3544         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3545         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3546         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3547         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3548         (struct cgraph_simd_clone_arg): Adjust comment.
3549         * coretypes.h (struct gomp_ordered): New forward decl.
3550         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3551         set critical clauses to it.
3552         (gimple_build_omp_ordered): Return gomp_ordered * instead of
3553         gimple *.  Add CLAUSES argument, set ordered clauses to it.
3554         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3555         GIMPLE_OMP_ORDERED.
3556         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3557         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3558         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
3559         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3560         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
3561         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3562         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
3563         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3564         renumber
3565         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3566         (gomp_critical): Add clauses field.
3567         (gomp_ordered): New struct.
3568         (is_a_helper <gomp_ordered *>::test): New inline.
3569         (gimple_build_omp_critical): Add CLAUSES argument.
3570         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
3571         instead of gimple *.
3572         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3573         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3574         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3575         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3576         inline functions.
3577         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3578         (dump_gimple_omp_target): Handle enter data and exit data.
3579         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3580         (dump_gimple_omp_critical): Print clauses.
3581         (dump_gimple_omp_ordered): New function.
3582         (dump_gimple_omp_task): Handle taskloop.
3583         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3584         GIMPLE_OMP_ORDERED.
3585         * gimple-walk.c (walk_gimple_op): Walk clauses on
3586         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3587         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3588         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3589         (struct gimplify_omp_ctx): Add loop_iter_var,
3590         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3591         and target_firstprivatize_array_bases fields.
3592         (delete_omp_context): Release loop_iter_var.
3593         (gimplify_bind_expr): Handle ORT_NONE.
3594         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3595         ORT_COMBINED_TARGET.
3596         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3597         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3598         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
3599         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
3600         ctx->target_map_scalars_firstprivate.
3601         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
3602         data sharing clauses.  For data sharing clause with VLA decl
3603         on omp target/target data don't add firstprivate for the pointer.
3604         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3605         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3606         the addition of ORT_COMBINED_TARGET.
3607         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
3608         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
3609         pointers as zero length array sections and
3610         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3611         data sharing.
3612         (omp_check_private): Handle omp_member_access_dummy_var vars.
3613         (find_decl_expr): New function.
3614         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
3615         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3616         Handle OMP_CLAUSE_GANG separately.  Handle
3617         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3618         clauses.  Diagnose linear clause on combined
3619         distribute {, parallel for} simd construct, unless it is the loop
3620         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3621         Handle map clauses with COMPONENT_REF.  Initialize
3622         ctx->target_map_scalars_firstprivate,
3623         ctx->target_firstprivatize_array_bases and
3624         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
3625         linear clause even to target region if combined.  Remove
3626         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3627         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
3628         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3629         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
3630         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3631         For linear clause on worksharing loop combined with parallel add
3632         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
3633         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
3634         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
3635         taskloop if needed.
3636         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3637         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3638         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3639         GOMP_MAP_POINTER.
3640         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
3641         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3642         in target body.  Handle removal of struct mapping if struct is not
3643         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
3644         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
3645         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
3646         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3647         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3648         clause appear together.  Handle
3649         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
3650         clause if it has map-type-modifier always.  Handle
3651         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3652         clauses.
3653         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3654         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3655         callers.
3656         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
3657         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
3658         iterators in doacross loops.
3659         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3660         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
3661         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
3662         for the addition of ORT_COMBINED_TARGET.
3663         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3664         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
3665         and OMP_TARGET_EXIT_DATA.
3666         (gimplify_omp_ordered): New function.
3667         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3668         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
3669         Gimplify clauses on OMP_CRITICAL.
3670         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3671         expand_GOMP_SIMD_ORDERED_END): New functions.
3672         * internal-fn.def (GOMP_SIMD_ORDERED_START,
3673         GOMP_SIMD_ORDERED_END): New internal functions.
3674         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3675         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3676         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3677         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3678         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3679         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3680         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3681         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3682         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3683         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3684         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3685         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3686         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3687         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3688         adjust type.
3689         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3690         GOMP_target_data_41, adjust type.
3691         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3692         GOMP_target_update_41, adjust type.
3693         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3694         field.
3695         (struct omp_for_data): Add ordered and simd_schedule fields.
3696         (omp_member_access_dummy_var, unshare_and_remap_1,
3697         unshare_and_remap, is_taskloop_ctx): New functions.
3698         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3699         (extract_omp_for_data): Handle taskloops and doacross loops
3700         and simd schedule modifier.
3701         (omp_adjust_chunk_size): New function.
3702         (get_ws_args_for): Use it.
3703         (lookup_sfield): Change first argument to splay_tree_key,
3704         add overload with first argument tree.
3705         (maybe_lookup_field): Likewise.
3706         (use_pointer_for_field): Handle omp_member_access_dummy_var.
3707         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3708         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3709         (build_outer_var_ref): Add LASTPRIVATE argument, handle
3710         taskloops and omp_member_access_dummy_var vars.
3711         (build_sender_ref): Change first argument to splay_tree_key,
3712         add overload with first argument tree.
3713         (install_var_field): For mask & 8 use &DECL_UID as key instead
3714         of the tree itself.
3715         (fixup_child_record_type): Const qualify *.omp_data_i.
3716         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3717         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3718         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3719         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3720         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3721         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3722         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3723         kinds.
3724         (add_taskreg_looptemp_clauses): New function.
3725         (scan_omp_parallel): Use it.
3726         (scan_omp_task): Likewise.
3727         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3728         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3729         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3730         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
3731         sandwiched taskloop constructs.  Type check
3732         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
3733         region.  Diagnose depend(source) or depend(sink:...) on
3734         target constructs or task/taskloop.
3735         (handle_simd_reference): Use get_name.
3736         (lower_rec_input_clauses): Likewise.  Ignore all
3737         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3738         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
3739         before passing it to omp_clause_{default,copy}_ctor.  Handle
3740         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
3741         lastprivate_firstprivate flag for linear that needs copyin and
3742         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3743         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3744         on taskloop lookup decl in outer context.  Pass true to
3745         build_outer_var_ref lastprivate argument.  Handle
3746         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3747         outside of outer taskloop for.
3748         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3749         OMP_CLAUSE_DECL.
3750         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3751         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
3752         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
3753         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
3754         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3755         abstract origin.  Handle omp_member_access_dummy_var vars.
3756         (expand_parallel_call): Use expand_omp_build_assign.
3757         (expand_task_call): Handle taskloop construct expansion.  Add
3758         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
3759         integers.  Add priority argument to GOMP_task* calls.  Or in
3760         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3761         GOMP_task call.
3762         (expand_omp_build_assign): Add prototype.  Add AFTER
3763         argument, if true emit statements after *GSI_P and continue linking.
3764         (expand_omp_taskreg): Adjust expand_task_call caller.
3765         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3766         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3767         zero_iter2_bb and first_zero_iter2 arguments, handle computation
3768         of counts even for ordered loops.
3769         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3770         (expand_omp_ordered_source, expand_omp_ordered_sink,
3771         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3772         functions.
3773         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
3774         clauses on worksharing loop.  Handle DOACROSS loop expansion.
3775         (expand_omp_for_static_nochunk): Handle linear clauses on
3776         worksharing loop.  Adjust expand_omp_for_init_counts
3777         callers.
3778         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
3779         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
3780         expand_omp_for_init_counts callers.
3781         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3782         functions.
3783         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3784         Handle doacross loops.
3785         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3786         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
3787         GOMP_target_{41,update_41,enter_exit_data} libcalls.
3788         (expand_omp): Don't expand ordered depend constructs here, record
3789         ord_stmt instead for later expand_omp_for_generic.
3790         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3791         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
3792         clause as stand-alone directive.
3793         (lower_omp_ordered_clauses): New function.
3794         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3795         don't lower anything.
3796         (lower_omp_for_lastprivate): Use last _looptemp_ clause
3797         on taskloop for comparison.
3798         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
3799         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3800         expansion for linear adjustments.
3801         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3802         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3803         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
3804         to tree * pointing to the stmt's clauses.
3805         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3806         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3807         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3808         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3809         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3810         clauses.  Always use short kind and 8-bit align shift.
3811         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3812         (struct lower_omp_regimplify_operands_data): New type.
3813         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3814         New functions.
3815         (lower_omp_1): Use lower_omp_regimplify_operands instead of
3816         gimple_regimplify_operands.
3817         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3818         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
3819         clause as stand-alone directive.
3820         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3821         (simd_clone_mangle): Mangle the various linear kinds
3822         per the new ABI.
3823         (simd_clone_adjust_argument_types): Handle
3824         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3825         (simd_clone_init_simd_arrays): Don't do anything for uval.
3826         (simd_clone_adjust): Handle
3827         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3828         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3829         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3830         * omp-low.h (omp_member_access_dummy_var): New prototype.
3831         * passes.def (pass_simduid_cleanup): Schedule another copy of the
3832         pass after all optimizations.
3833         * tree.c (omp_clause_code_name): Add entries for
3834         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3835         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3836         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
3837         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3838         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3839         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
3840         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3841         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3842         clauses.
3843         * tree-core.h (enum omp_clause_linear_kind): New.
3844         (struct tree_omp_clause): Change type of map_kind
3845         from unsigned char to unsigned int.  Add subcode.if_modifier
3846         and subcode.linear_kind fields.
3847         (enum omp_clause_code): Add
3848         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3849         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3850         (OMP_CLAUSE_REDUCTION): Document
3851         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3852         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3853         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3854         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
3855         operand.
3856         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
3857         operand.
3858         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3859         codes.
3860         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3861         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3862         char.
3863         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3864         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3865         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3866         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3867         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3868         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3869         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3870         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3871         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3872         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3873         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3874         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3875         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3876         * tree-inline.c (remap_gimple_stmt): Handle clauses on
3877         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
3878         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3879         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3880         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3881         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3882         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3883         (convert_local_omp_clauses): Likewise.
3884         * tree-pretty-print.c (dump_omp_clause): Handle
3885         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3886         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3887         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3888         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3889         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
3890         GOMP_MAP_FORCE_DEALLOC.  Handle
3891         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3892         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3893         and clauses on OMP_ORDERED and OMP_CRITICAL.
3894         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3895         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3896         (vectorize_loops): Adjust comments.
3897         (pass_simduid_cleanup::execute): Likewise.
3898         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3899         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3900         * wide-int.h (wi::gcd): New.
3901
3902 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
3903
3904         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3905         (ix86_function_arg_advance): Ditto.
3906         (ix86_function_arg): Ditto.
3907         (ix86_gimplify_va_arg): Ditto.
3908         (ix86_class_max_nregs): Ditto.
3909         (inline_memory_move_cost): Ditto.
3910         (ix86_set_reg_reg_cost): Ditto.
3911         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3912
3913 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
3914
3915         PR middle-end/67912
3916         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3917
3918 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
3919
3920         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3921         ROUND_UP macro and UNITS_PER_WORD * 2.
3922         * config/sparc/sparc.c (sparc_compute_frame_size):
3923         Use ROUND_UP and ROUND_DOWN macros where applicable.
3924         (function_arg_record_value, function_arg_record_value_1)
3925         (function_arg_record_value_1): Ditto.
3926         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3927         alignment to double-word.
3928         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3929         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3930         rounded_size.
3931
3932 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3933
3934         * rtl.h (print_insn): Fix prototype.
3935
3936 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3937
3938         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3939         -1.  Add assert that returned entry matches phi argument.
3940         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3941         free_stmt_vec_info_vec ...
3942         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
3943         with -1.
3944
3945 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
3946
3947         PR tree-optimization/67909, 67947
3948         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3949         really skip the inner loop.
3950
3951 2015-10-13  Jeff Law  <law@redhat.com>
3952
3953         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3954         Allow single block jump threading paths.
3955
3956 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3957
3958         PR tree-optimization/67476
3959         * doc/invoke.texi (@item parloops-schedule): New item.
3960         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3961         * tree-parloops.c: Include params-enum.h.
3962         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3963
3964 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3965
3966         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3967         * params-enum.h: New file.
3968         * opts.c (handle_param): Handle case that param arg is a string.
3969         * params-list.h: Handle DEFPARAMENUM5 in params.def.
3970         * params.c (find_param): New function, factored out of ...
3971         (set_param_value): ... here.
3972         (param_string_value_p): New function.
3973         * params.h (struct param_info): Add value_names field.
3974         (find_param, param_string_value_p): Declare.
3975
3976 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3977
3978         PR tree-optimization/67476
3979         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3980
3981 2015-10-13  Richard Biener  <rguenther@suse.de>
3982
3983         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3984         the data dependence vector.
3985         (vect_peeling_hash_insert): Get the peeling hash table as argument.
3986         (vect_peeling_hash_get_lowest_cost): Likewise.
3987         (vect_enhance_data_refs_alignment): Adjust.
3988         (struct _vect_peel_info, struct _vect_peel_extended_info,
3989         struct peel_info_hasher): Move from ...
3990         * tree-vectorizer.h: ... here.
3991         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3992         (LOOP_VINFO_PEELING_HTAB): Likewise.
3993         (struct _loop_vec_info): Remove min_profitable_iters and
3994         peeling_htab members.
3995         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3996         here.
3997         (destroy_loop_vec_info): Adjust.
3998         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3999         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
4000         to estimate alias versioning cost.
4001         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
4002
4003 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
4004
4005         * real.h (real_isinteger): Declare.
4006         * real.c (real_isinteger): New function.
4007         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
4008         if y is an even integer.
4009
4010 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4011
4012         revert:
4013         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4014         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4015         counts when these are more informative.
4016
4017 2015-10-12  Jeff Law  <law@redhat.com>
4018
4019         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
4020         (fsm_find_control_stmt_paths): Change name of first argument to
4021         more accurately relfect what it really is.  Handle simplification
4022         of GIMPLE_COND after finding a thread path for NAME.
4023         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
4024         nontrivial conditions to be handled by FSM threader.
4025         (thread_through_normal_block): Extract the name to looup via
4026         FSM threader from COND_EXPR.
4027
4028         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
4029         restriction that traced SSA_NAME is a user variable.
4030
4031 2015-10-12  Tom de Vries  <tom@codesourcery.com>
4032
4033         PR tree-optimization/67476
4034         * omp-low.c (expand_omp_for_generic): Add missing phis.
4035
4036 2015-10-12  Tom de Vries  <tom@codesourcery.com>
4037
4038         PR tree-optimization/67476
4039         * omp-low.c (expand_omp_for_generic): Handle simple latch.
4040
4041 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
4042
4043         * config/aarch64/aarch64-simd-builtins.def: Update builtins
4044         tables: add tbl3 and tbx4.
4045         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
4046         (aarch64_tbx4v8qi): New.
4047         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
4048         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
4049         Rewrite using builtin functions.
4050         * config/aarch64/iterators.md (UNSPEC_TBX): New.
4051
4052 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
4053
4054         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
4055         ROUND_UP macro.
4056         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4057         Use ROUND_UP and ROUND_DOWN macros where applicable.
4058         (rs6000_darwin64_record_arg_flush): Ditto.
4059         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
4060         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
4061         rounded_size.
4062
4063 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
4064
4065         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
4066         (AARCH64_ROUND_DOWN): Ditto.
4067         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
4068
4069 2015-10-12  Richard Biener  <rguenther@suse.de>
4070
4071         PR ipa/67783
4072         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
4073         code that analyzes IVs on each stmt but in a cheaper way avoiding
4074         quadratic behavior.
4075
4076 2015-10-12  Nick Clifton  <nickc@redhat.com>
4077
4078         * config/msp430/msp430.c (msp430_mcu_names): Rename to
4079         msp430_mcu_data, add fields for ISA and hardware multiply
4080         support.  Import latest data from the devices.csv file.
4081         (msp430_override_option): Use the data from the new array.
4082         (msp430_use_f5_series_hwmult): Likewise.
4083         (use_32bit_hwmult): Likewise.
4084         (msp430_no_hwmult): Likewise.
4085         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
4086         MCU names.
4087         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
4088         not recognised then no hardware multiply support is assumed and
4089         that only the MSP430 ISA is allowed.
4090
4091 2015-10-12  Richard Biener  <rguenther@suse.de>
4092
4093         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
4094         related code ...
4095         (vect_analyze_loop_2): ... here.
4096
4097 2015-10-11  Jason Merrill  <jason@redhat.com>
4098
4099         PR c++/67557
4100         * expr.c (store_field): Call store_constructor directly when
4101         storing a CONSTRUCTOR into a target smaller than its type.
4102         Guard against unsafe bitwise copy.
4103
4104 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4105
4106         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4107         counts when these are more informative.
4108
4109 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4110
4111         * tree-profile.c (tree_profiling): Do not clear
4112         pure/const when not instrumenting.
4113         (pass tree_profile): Add dump of symtab.
4114
4115 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
4116
4117         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
4118         addresses.
4119         (fold_addr_of_array_ref_difference): Likewise.
4120
4121 2015-10-11  Jeff Law  <law@redhat.com>
4122
4123         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
4124         tree-ssa-threadbackward.c.
4125         (fsm_find_control_statement_thread_paths): Likewise.
4126         (thread_through_normal_block): Break out FSM bits and move them
4127         into a new function in tree-ssa-threadbackward.c.  Call new function
4128         instead.
4129         Minimize header file usage.
4130         * tree-ssa-threadbackward.h: New file.
4131         * tree-ssa-threadbackward.c: Likewise.
4132         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4133
4134 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
4135
4136         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4137
4138 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
4139
4140         PR rtl-optimization/67864
4141         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
4142         fallthrough edges for conditional jumps.  Don't sort candidate
4143         edges if not optimizing for speed.
4144
4145 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4146
4147         * defaults.h (REVERSE_CONDITION): New default definition.
4148         * jump.c (reversed_comparison_code_parts): Adjust.
4149
4150 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4151
4152         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4153         check HARD_FRAME_POINTER_IS_ARG_POINTER.
4154
4155 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4156
4157         * defaults.h (FRAME_ADDR_RTX): New default definition.
4158         * builtins.c (expand_builtin_return_addr): Adjust.
4159
4160 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4161
4162         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4163         * builtins.c (expand_builtin_return_addr): Adjust.
4164
4165 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4166
4167         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4168         * builtins.c (expand_builtin_return_addr): Adjust.
4169         * doc/tm.texi: Likewise.
4170         * doc/tm.texi.in: Likewise.
4171         * except.c (expand_builtin_unwind_init): Likewise.
4172
4173 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4174
4175         * builtins.c (expand_builtin_return_addr): Adjust.
4176         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4177
4178 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
4179
4180         * tree.c (type_with_interoperable_signedness): New.
4181         (gimple_canonical_types_compatible_p): Use it.
4182         * tree.h (type_with_interoperable_signedness): Declare
4183
4184 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
4185
4186         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4187         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4188         when OEP_ADDRESS_OF is se.
4189
4190 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
4191             Sebastian Pop  <s.pop@samsung.com>
4192
4193         * graphite-dependences.c (scop_get_dependences): Add dump of the
4194         data dependence graph.
4195         * graphite-poly.c (print_isl_union_map): New.
4196         (debug_isl_union_map): New.
4197         * graphite-poly.h (print_isl_union_map): Declare.
4198         (debug_isl_union_map): Declare.
4199
4200 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
4201             Sebastian Pop  <s.pop@samsung.com>
4202
4203         * graphite-poly.c (print_iteration_domain): Remove verbosity.
4204         Remove OpenScop formatting.
4205         (print_iteration_domains): Same.
4206         (debug_iteration_domain): Same.
4207         (debug_iteration_domains): Same.
4208         (print_pdr): Same.
4209         (debug_pdr): Same.
4210         (dump_gbb_cases): Same.
4211         (dump_gbb_conditions): Same.
4212         (print_pdrs): Same.
4213         (debug_pdrs): Same.
4214         (print_pbb_body): Same.
4215         (print_pbb): Same.
4216         (print_scop_params): Same.
4217         (print_scop_context): Same.
4218         (print_scop): Same.
4219         (debug_pbb_domain): Same.
4220         (debug_pbb): Same.
4221         (debug_scop_context): Same.
4222         (debug_scop): Same.
4223         (debug_scop_params): Same.
4224         * graphite-poly.h: Same.
4225         * graphite.c (graphite_transform_loops): Same.
4226
4227 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4228
4229         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4230         call that isn't needed.
4231
4232 2015-10-09  Jeff Law  <law@redhat.com>
4233
4234         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4235         rather than moving each name to the freelist individually.
4236
4237 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
4238
4239         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4240         * frame-header-opt.c: New file.
4241         * config/mips/mips-proto.h (mips_register_frame_header_opt):
4242         Add prototype.
4243         * config/mips/mips.c (mips_compute_frame_info): Check
4244         optimize_call_stack flag.
4245         (mips_option_override): Register new frame_header_opt pass.
4246         (mips_frame_info, mips_int_mask, mips_shadow_set,
4247         machine_function): Move these types to...
4248         * config/mips/mips.h: here.
4249         (machine_function): Add does_not_use_frame_header and
4250         optimize_call_stack fields.
4251         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4252         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4253         Document new flags.
4254         * config/mips/mips.opt (mframe-header-opt): Add new option.
4255
4256 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
4257
4258         * config/i386/i386.c
4259         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4260         ROUND_DOWN where applicable.
4261
4262 2015-10-09  Jeff Law  <law@redhat.com>
4263
4264         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4265         correct statement.
4266
4267 2015-10-09  Renlin Li  <renlin.li@arm.com>
4268
4269         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4270         operands[0] and operands[2].
4271         (neon_vtrn<mode>_insn): Likewise.
4272         (neon_vzip<mode>_insn): Likewise.
4273
4274 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4275
4276         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4277         ((X & C2) << C1): Expand to...
4278         (X {&,^,|} C2 << C1): ...This.
4279         ((X & C2) >> C1): Expand to...
4280         (X {&,^,|} C2 >> C1): ...This.
4281
4282 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
4283
4284         PR target/67895
4285         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4286         Adjust embedded rounding/SAE specifier position.
4287         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4288         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4289         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4290         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4291         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4292         Likewise.
4293         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4294
4295 2015-10-09  Martin Jambor  <mjambor@suse.cz>
4296
4297         tree-optimization/67794
4298         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4299         between types of state,ents but accept original definitions as a
4300         parameter.
4301         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4302         iterate over definitions.
4303
4304 2015-10-09  James Norris  <jnorris@codesourcery.com>
4305
4306         * config/rs6000/rs6000.c (rs6000_offload_options): New.
4307         (TARGET_OFFLOAD_OPTIONS): New.
4308
4309 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
4310
4311         PR middle-end/67891
4312         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4313
4314         PR middle-end/67766
4315         * function.c (expand_function_end): Move return value
4316         promotion past the handling of PARALLELs and CONCATs.
4317
4318         PR rtl-optimization/67828
4319         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4320         (tree_may_unswitch_on): Don't unswitch on expressions
4321         involving undefined values.
4322
4323 2015-10-09  Richard Biener  <rguenther@suse.de>
4324
4325         * genmatch.c (print_operand): Fix formatting.
4326         (dt_node::append_simplify): Warn for multiple simplifiers
4327         that match the same pattern.
4328         * match.pd (log (exp @0)): Remove duplicates.
4329
4330 2015-10-09  Richard Biener  <rguenth@suse.de>
4331
4332         PR target/67366
4333         * gimple-fold.c (optabs-query.h): Include
4334         (gimple_fold_builtin_memory_op): Allow unaligned stores
4335         when movmisalign_optabs are available.
4336
4337 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4338
4339         PR target/67366
4340         * config/arm/arm.md (movmisalign<mode>): New.
4341         * config/arm/iterators.md (HSI): New.
4342
4343 2015-10-09  Richard Biener  <rguenther@suse.de>
4344
4345         PR tree-optimization/67891
4346         * gimple-match.h (gimple_simplified_result_is_gimple_val):
4347         New helper.
4348         (gimple_resimplify1): Declare.
4349         (gimple_resimplify2): Likewise.
4350         (gimple_resimplify3): Likewise.
4351         * gimple-match-head.c (gimple_resimplify1): Export.
4352         (gimple_resimplify2): Likewise.
4353         (gimple_resimplify3): Likewise.
4354         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4355         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4356         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4357         to avoid creating stmts without VN info.
4358
4359 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
4360
4361         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4362         of availability.
4363
4364 2015-10-08  Jeff Law  <law@redhat.com>
4365
4366         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4367         and release_ssa_name in two places.
4368         (gimple_stringop_fixed_value): Similarly.
4369
4370         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4371         release_defs.
4372
4373         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4374         unlink_stmt_vdef and release_ssa_name_fn.
4375
4376         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4377         release_defs.
4378
4379 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
4380
4381         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4382         SSE register save area to 16 bytes only if the incoming stack
4383         boundary is no less than 16 bytes.
4384
4385 2015-10-08  Jeff Law  <law@redhat.com>
4386
4387         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4388         release_ssa_name.  Fix typo in comment.
4389
4390 2015-10-08  Nathan Sidwell  <nathan@acm.org>
4391
4392         * config/nvptx/nvptx.h (struct machine_function): Add comment.
4393         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4394         may return pointer as well as in memory.
4395         (nvptx_output_return): Likewise.
4396
4397 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
4398
4399         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4400         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
4401         * match.pd: Add rules previously handled by fold_builtin_sqrt
4402         and fold_builtin_cbrt.
4403
4404 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
4405
4406         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4407         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4408         * fold-const.h (tree_unary_nonnegative_warnv_p)
4409         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4410         (tree_expr_nonnegative_warnv_p): Add depth parameters.
4411         * fold-const.c: Include gimple-fold.h and params.h.
4412         (tree_ssa_name_nonnegative_warnv_p): New function.
4413         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4414         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4415         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4416         Add a depth parameter and increment it for recursive calls to
4417         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
4418         to handle SSA names.
4419         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4420         (gimple_stmt_nonnegative_warnv_p): Declare.
4421         * tree-vrp.c (remove_range_assertions): Remove assert that condition
4422         cannot be proven false.
4423         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4424         (gimple_stmt_nonnegative_warnv_p): Move to...
4425         * gimple-fold.c: ...here.  Add depth parameters and pass them
4426         down to the tree routines.  Accept statements that aren't
4427         assignments or calls but just return false for them.
4428         (gimple_val_nonnegative_real_p): Delete.
4429         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4430         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4431         Check HONOR_NANs first.
4432
4433 2015-10-08  Martin Jambor  <mjambor@suse.cz>
4434
4435         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
4436         unnecessary MIN.
4437
4438 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
4439
4440         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4441         in the tail of outer-loop.
4442
4443 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
4444
4445         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4446         return UI_NONE.
4447
4448 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
4449
4450         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4451         "cfghooks.h", add prototypes for introduced new functions.
4452         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4453         checks on ability of loop unswitching to tree_unswitch_single_loop;
4454         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4455         on innermost loop check.
4456         (tree_unswitch_single_loop): Add all required checks on ability of
4457         loop unswitching under zero recursive level guard.
4458         (tree_unswitch_outer_loop): New function.
4459         (find_loop_guard): Likewise.
4460         (empty_bb_without_guard_p): Likewise.
4461         (used_outside_loop_p): Likewise.
4462         (get_vop_from_header): Likewise.
4463         (hoist_guard): Likewise.
4464         (check_exit_phi): Likewise.
4465
4466 2015-10-08  Marek Polacek  <polacek@redhat.com>
4467
4468         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4469         ops element.
4470
4471 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4472
4473         PR c/65345
4474         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4475         create_tmp_var_raw instead of create_tmp_var.
4476
4477 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
4478
4479         * expr.c (store_expr_with_bounds): Handle aggregate moves from
4480         BLKmode.
4481         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4482         to define gimple type system; compare aggregates only by size.
4483
4484 2015-10-07  Jeff Law  <law@redhat.com>
4485
4486         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4487         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4488         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
4489         unnecessarily.
4490
4491 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
4492             Sebastian Pop  <s.pop@samsung.com>
4493
4494         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4495         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4496         (generate_isl_schedule): Same.
4497         * graphite-optimize-isl.c (scop_get_domains): Same.
4498         (apply_schedule_map_to_scop): Same.
4499         * graphite-poly.c (print_iteration_domains): Same.
4500         (remove_gbbs_in_scop): Same.
4501         (new_scop): Same.
4502         (free_scop): Same.
4503         (print_scop): Same.
4504         * graphite-poly.h (struct scop): Rename bbs to pbbs.
4505         (SCOP_BBS): Remove.
4506         * graphite-scop-detection.c (compare_bb_depths): Remove.
4507         (graphite_sort_dominated_info): Remove.
4508         (try_generate_gimple_bb): Move out of scop_detection.
4509         (all_non_dominated_preds_marked_p): Remove.
4510         (build_scop_bbs_1): Remove.
4511         (build_scop_bbs): Remove.
4512         (nb_pbbs_in_loops): Do not use SCOP_BBS.
4513         (find_scop_parameters): Same.
4514         (sese_dom_walker): Rename gather_bbs.
4515         (before_dom_children): Call try_generate_gimple_bb and collect gbb
4516         and pbb.
4517         (build_scops): Call gather_bbs.
4518         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4519         (add_conditions_to_constraints): Same.
4520         (build_scop_iteration_domain): Same.
4521         (build_scop_drs): Same.
4522         (new_pbb_from_pbb): Same.
4523         * sese.c (new_sese_info): Create bbs.
4524         * sese.h (struct sese_info_t): Add bbs.
4525
4526 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
4527
4528         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4529         encoding in 64-bit mode.
4530
4531 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
4532
4533         PR target/66697
4534         * config/i386/i386.c (ix86_option_override_internal): Always use
4535         8-byte minimum stack boundary in 64-bit mode.
4536         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4537         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4538         Add a REG_CFA_EXPRESSION note if needed.
4539         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4540         (ix86_handle_force_align_arg_pointer_attribute): New.
4541         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4542         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4543         with ix86_handle_force_align_arg_pointer_attribute.
4544         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4545
4546 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
4547             Sebastian Pop  <s.pop@samsung.com>
4548
4549         * graphite-scop-detection.c (parameter_index_in_region): Remove
4550         use of SESE_ADD_PARAMS.
4551         (find_scop_parameters): Same.
4552         * sese.c (new_sese_info): Same.
4553         * sese.h (struct sese_info_t): Remove add_params.
4554         (SESE_ADD_PARAMS): Remove.
4555
4556 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
4557             Sebastian Pop  <s.pop@samsung.com>
4558
4559         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4560         an sese_info_p.
4561         (copy_def): Same.
4562         (copy_internal_parameters): Same.
4563         (translate_isl_ast_to_gimple): Use an sese_l.
4564         (build_iv_mapping): Same.
4565         * graphite-poly.c (new_sese): Rename new_sese_info.
4566         (free_sese): Rename free_sese_info.
4567         * graphite-poly.h (struct scop): Use an sese_info_p.
4568         (scop_set_region): Same.
4569         * graphite-scop-detection.c (struct sese_l): Moved...
4570         (get_entry_bb): Moved...
4571         (get_exit_bb): Moved...
4572         (parameter_index_in_region_1): Use an sese_info_p.
4573         (parameter_index_in_region): Same.
4574         (scan_tree_for_params): Same.
4575         (find_params_in_bb): Same.
4576         (sese_dom_walker): Use an sese_l.
4577         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4578         (reduction_phi_p): Same.
4579         (parameter_index_in_region_1): Use an sese_info_p.
4580         (propagate_expr_outside_region): Use an sese_l.
4581         * graphite.c: Replace uses of SCOP_REGION.
4582         * sese.c (sese_record_loop): Use an sese_info_p.
4583         (build_sese_loop_nests): Same.
4584         (sese_build_liveouts_use): Same.
4585         (sese_build_liveouts_bb): Same.
4586         (sese_build_liveouts_bb): Same.
4587         (sese_bad_liveouts_use): Same.
4588         (sese_reset_debug_liveouts_bb): Same.
4589         (sese_build_liveouts): Same.
4590         (new_sese): Renamed new_sese_info.
4591         (free_sese): Renamed free_sese_info.
4592         (set_rename): Use an sese_info_p.
4593         (graphite_copy_stmts_from_block): Same.
4594         (copy_bb_and_scalar_dependences): Same.
4595         (outermost_loop_in_sese_1): Use an sese_l.
4596         (outermost_loop_in_sese): Same.
4597         (if_region_set_false_region): Use an sese_info_p.
4598         (move_sese_in_condition): Same.
4599         (scalar_evolution_in_region): Use an sese_l.
4600         * sese.h (struct sese_l): ... here.
4601         (SESE_ENTRY): Remove.
4602         (SESE_ENTRY_BB): Remove.
4603         (SESE_EXIT): Remove.
4604         (SESE_EXIT_BB): Remove.
4605         (sese_contains_loop): Use an sese_info_p.
4606         (sese_nb_params): Same.
4607         (bb_in_sese_p): Use an sese_l.
4608         (stmt_in_sese_p): Same.
4609         (defined_in_sese_p): Same.
4610         (loop_in_sese_p): Same.
4611         (sese_loop_depth): Same.
4612         (struct ifsese_s): Use an sese_info_p.
4613         (gbb_loop_at_index): Use an sese_l.
4614         (nb_common_loops): Same.
4615         (scev_analyzable_p): Same.
4616
4617 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
4618
4619         * config/i386/i386.c (ix86_conditional_register_usage): Use
4620         CALL_USED_REGISTERS_MASK.
4621         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4622
4623 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
4624
4625         PR bootstrap/67385
4626         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4627         * configure: Regenerated.
4628
4629 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
4630
4631         PR target/67850
4632         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4633         (ix86_set_current_function): This.
4634         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4635
4636 2015-10-07  Richard Biener  <rguenther@suse.de>
4637
4638         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4639         (vinfo_for_stmt): Adjust.
4640         (set_vinfo_for_stmt): Likewise.
4641         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4642         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4643         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4644         of inner loop.
4645         (vect_analyze_loop_1): Remove.
4646         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4647         inner loop when vectorizing an outer loop by splitting out from ...
4648         (vect_analyze_loop_form): ... here.
4649
4650 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4651
4652         PR c/65345
4653         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4654         Use create_tmp_var_raw instead of create_tmp_var.
4655
4656 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
4657
4658         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4659         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4660         * real.c (CACHED_FRACTION): New helper macro.
4661         (dconst_third_ptr): Use it.
4662         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4663         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4664         dconst_sixth.
4665         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4666
4667 2015-10-06  Jeff Law  <law@redhat.com>
4668
4669         PR tree-optimization/67816
4670         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4671         from remove_jump_threads_starting_at.  Accept an edge rather than
4672         a basic block.
4673         * tree-ssa-threadupdate.c (removed_edges): New hash table.
4674         (remove_jump_threads_including): Note edges that get removed from
4675         the CFG for later pruning of jump threading paths including them.
4676         (thread_through_all_blocks): Remove paths which include edges that
4677         have been removed.
4678         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4679         on each outgoing edges when optimizing away a control statement.
4680
4681 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4682
4683         * reorg.c (emit_delay_sequence): Store list of delay slot insns
4684         in a vector instead of rtx_insn_list.
4685         (add_to_delay_list): Likewise.
4686         (delete_from_delay_slot): Likewise.
4687         (optimize_skip): Likewise.
4688         (redirect_with_delay_list_safe_p): Likewise.
4689         (check_annul_list_true_false): Likewise.
4690         (steal_delay_list_from_target): Likewise.
4691         (steal_delay_list_from_fallthrough): Likewise.
4692         (redundant_insn): Likewise.
4693         (fill_simple_delay_slots): Likewise.
4694         (fill_slots_from_thread): Likewise.
4695         (fill_eager_delay_slots): Likewise.
4696         (relax_delay_slots): Likewise.
4697
4698 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
4699
4700         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4701         For -mgpopt=local, also exclude unintialized common symbols.
4702         * doc/invoke.texi (Nios II Options): Document the change.
4703
4704 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4705
4706         * config/aarch64/iterators.md (vwcore): Add missing cases for
4707          V4HF/V8HF modes.
4708
4709 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
4710             Sebastian Pop  <s.pop@samsung.com>
4711
4712         * graphite-poly.c (new_scop): Initialize drs.
4713         * graphite-poly.h (struct dr_info): New.
4714         (struct scop): Add drs.
4715         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4716         (pdr_add_memory_accesses): Same.
4717         (build_poly_dr): Same.
4718         (build_alias_set): Same.
4719         (build_scop_drs): Same.
4720         (build_pbb_drs): Remove.
4721         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4722         * tree-data-ref.h (data_reference): Remove alias_set.
4723
4724 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
4725             Sebastian Pop  <s.pop@samsung.com>
4726
4727         * graphite-poly.c (free_data_refs_aux): Remove.
4728         (free_gimple_poly_bb): Do not call free_data_refs_aux.
4729         * graphite-poly.h (struct base_alias_pair): Remove.
4730         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4731         base_alias_pair and dr->aux.
4732         (build_alias_set): Same.
4733         * tree-data-ref.c (create_data_ref): Initialize alias_set.
4734         * tree-data-ref.h (data_reference): Add alias_set.
4735
4736 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
4737             Sebastian Pop  <s.pop@samsung.com>
4738
4739         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4740         Do not set PDR_BASE_OBJECT_SET.
4741         * graphite-poly.h (poly_dr): Same.
4742         (PDR_BASE_OBJECT_SET): Remove.
4743         (new_poly_dr): Update decl.
4744         * graphite-sese-to-poly.c (build_poly_dr): Update call to
4745         new_poly_dr.
4746         (write_alias_graph_to_ascii_dimacs): Remove.
4747         (write_alias_graph_to_ascii_dot): Remove.
4748         (write_alias_graph_to_ascii_ecc): Remove.
4749         (dr_same_base_object_p): Remove.
4750         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
4751         code.
4752         (build_base_obj_set_for_drs): Remove.
4753         (dump_alias_graphs): Remove.
4754         (build_scop_drs): Remove dead code.
4755
4756 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4757             Peter Bergner  <bergner@vnet.ibm.com>
4758
4759         PR target/67808
4760         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4761         allow registers, but provide insns for the combiner to create for
4762         loads from memory. Separate VSX code from non-VSX code. For
4763         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4764         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4765         so that registers come before memory operations. Drop support from
4766         converting DFmode to TFmode, if the DFmode value is in a GPR
4767         register.
4768         (extenddftf2_fprs): Likewise.
4769         (extenddftf2_internal): Likewise.
4770         (extenddftf2_vsx): Likewise.
4771         (extendsftf2): In the expander, only allow registers, but provide
4772         insns for the combiner to create for stores and loads.
4773
4774 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4775
4776         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4777         from the decl parameter.
4778
4779 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
4780
4781         PR 67861
4782         * gimple-fold.c (gimple_fold_builtin): Add break after
4783         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4784
4785 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
4786
4787         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4788         to scop->isl_context.
4789
4790 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
4791
4792         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4793         (output_probe_stack_range): Rotate the loop and simplify.
4794         (thumb1_expand_prologue): Tweak sorry message.
4795         * config/arm/arm.md (probe_stack): Use bare string.
4796
4797 2015-10-06  Nick Clifton  <nickc@redhat.com>
4798
4799         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4800
4801 2015-10-06  Nick Clifton  <nickc@redhat.com>
4802
4803         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4804         (ATTR_PERSIST): New constant.
4805         (msp430_data_attr): New function - verifies an attribute that only
4806         applies to variables.
4807         (msp430_attributes): Add noinit and persistent attributes.
4808         (noinit_section): New variable.
4809         (presis_section): New variable.
4810         (TARGET_ASM_INIT_SECTIONS): Define.
4811         (msp430_init_sections): New function - initialises the noinit and
4812         persist section variables.
4813         (msp430_select_section): Add support for noinit and persist
4814         attributes.
4815         (msp430_section_type_flags): Likewise.
4816         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
4817         and persistent attributes.
4818
4819 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4820             Sebastian Pop  <s.pop@samsung.com>
4821
4822         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4823         (no_violations): Remove.
4824         (subtract_commutative_associative_deps): Remove.
4825         (compute_deps): Do not call subtract_commutative_associative_deps.
4826         (transform_is_safe): Remove.
4827         (graphite_legal_transform): Remove.
4828         * graphite-poly.h (graphite_legal_transform): Remove.
4829
4830 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
4831
4832         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4833         which are in this region are passed so gcc_assert and remove redundant
4834         computation.
4835         * sese.c (sese_build_liveouts): Pass only those bbs which are not
4836         in region.
4837         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4838         gcc_assert on that and remove unnecessary computation.
4839         (sese_build_liveouts_use): Same.
4840
4841 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4842
4843         * graphite-dependences.c (scop_get_reads): Renamed scop->context
4844         to scop->param_context.
4845         (scop_get_must_writes): Same.
4846         (scop_get_may_writes): Same.
4847         (scop_get_original_schedule): Same.
4848         (scop_get_transformed_schedule): Same.
4849         (subtract_commutative_associative_deps): Same.
4850         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4851         (generate_isl_context): Same.
4852         (generate_isl_schedule): Same.
4853         (scop_to_isl_ast): Same.
4854         (graphite_regenerate_ast_isl): Same.
4855         * graphite-optimize-isl.c (scop_get_domains): Same.
4856         (optimize_isl): Renamed scop->context to scop->param_context.
4857         * graphite-poly.c (new_poly_bb): Change the type of argument to
4858         gimple_poly_bb_p.
4859         (new_scop): Renamed scop->context to scop->param_context.
4860         (free_scop): Same.
4861         (print_scop_context): Same.
4862         * graphite-poly.h (new_poly_dr): Change the type of argument from
4863         void* to data_reference_p.
4864         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4865         (new_poly_bb): Change the type of argument from void* to
4866         gimple_poly_bb_p.
4867         (pbb_set_black_box): Same.
4868         (struct scop): Rename context to param_context, ctx to isl_context.
4869         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4870         Move declarations closer to assignment.
4871         (find_params_in_bb): Same.
4872         (find_scop_parameters): Same.
4873         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4874         Global to be used for statement IDs.
4875         (isl_id_for_pbb): Use ssa_name_version_typesize.
4876         (simple_copy_phi_p): Move declarations closer to assignment.
4877         (build_pbb_scattering_polyhedrons): Same.
4878         (build_scop_scattering): Same.
4879         (isl_id_for_ssa_name): Same.
4880         (extract_affine_name): Same.
4881         (extract_affine_int): Same.
4882         (extract_affine): Same.
4883         (set_scop_parameter_dim): Use renamed member.
4884         (build_loop_iteration_domains): Same.
4885         (add_param_constraints): Same.
4886         (build_scop_iteration_domain): Same.
4887         (pdr_add_data_dimensions): Same.
4888         (build_poly_dr): Same.
4889         (build_scop_drs): Move declarations closer to assignment.
4890         (analyze_drs_in_stmts): Same.
4891         (insert_out_of_ssa_copy): Same.
4892         (insert_out_of_ssa_copy_on_edge): Same.
4893         (propagate_expr_outside_region): Same.
4894         (rewrite_phi_out_of_ssa): Same.
4895         (rewrite_degenerate_phi): Same.
4896         (rewrite_reductions_out_of_ssa): Same.
4897         (rewrite_cross_bb_scalar_dependence): Same.
4898         (handle_scalar_deps_crossing_scop_limits): Same.
4899         (rewrite_cross_bb_scalar_deps): Same.
4900         * graphite.c (graphite_transform_loops): Use renamed member.
4901
4902 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
4903
4904         PR c/65345
4905         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4906         create_tmp_var_raw instead of create_tmp_var.
4907
4908 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4909
4910         PR c/65345
4911         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4912         Use create_tmp_var_raw instead of create_tmp_var.
4913
4914 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
4915
4916         PR target/67849
4917         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4918         split for upper-bank registers when target does not support
4919         AVX512VL.
4920         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4921         split when target does not support AVX512VL.
4922
4923 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
4924
4925         PR c/65345
4926         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4927         Adjust to use create_tmp_var_raw instead of create_tmp_var.
4928
4929 2015-10-06  Nick Clifton  <nickc@redhat.com>
4930
4931         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4932         multiplication.
4933
4934 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4935
4936         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4937         (case ${target}): Add znver1.
4938         * config/i386/cpuid.h(bit_CLZERO):  Define.
4939         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4940         -march=native recognize znver1 processors.
4941         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4942         znver1, clzero def_and_undef.
4943         * config/i386/i386.c (struct processor_costs znver1_cost): New.
4944         (m_znver1): New definition.
4945         (m_AMD_MULTIPLE): Includes m_znver1.
4946         (processor_target_table): Add znver1 entry.
4947         (ix86_target_string) : Add clzero entry.
4948         (static const char *const cpu_names): Add znver1 entry.
4949         (ix86_option_override_internal): Add znver1 instruction sets.
4950         (PTA_CLZERO) :  New definition.
4951         (ix86_option_override_internal): Handle new clzerooption.
4952         (ix86_issue_rate): Add znver1.
4953         (ix86_adjust_cost): Add znver1.
4954         (ia32_multipass_dfa_lookahead): Add znver1.
4955         (has_dispatch): Add znver1.
4956         * config/i386/i386.h (TARGET_znver1): New definition.
4957         (TARGET_CLZERO): Define.
4958         (TARGET_CLZERO_P): Define.
4959         (struct ix86_size_cost): Add TARGET_ZNVER1.
4960         (enum processor_type): Add PROCESSOR_znver1.
4961         * config/i386/i386.md (define_attr "cpu"): Add znver1.
4962         (set_attr znver1_decode): New definitions for znver1.
4963         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4964         (mclzero): New.
4965         * config/i386/mmx.md (set_attr znver1_decode): New definitions
4966         for znver1.
4967         * config/i386/sse.md (set_attr znver1_decode): Likewise.
4968         * config/i386/x86-tune.def:  Add znver1 tunings.
4969         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4970         * doc/invoke.texi: Add details about znver1
4971
4972 2015-10-06  Richard Biener  <rguenther@suse.de>
4973
4974         PR tree-optimization/67859
4975         * tree-ssa-pre.c (create_expression_by_pieces): Properly
4976         discard not inserted stmts.
4977
4978 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
4979
4980         * doc/extend.texi (Template Instantiation): Reorder options and
4981         de-emphasize -frepo.
4982         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4983         example instead of -frepo.
4984
4985 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
4986
4987         PR c/65345
4988         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4989         use create_tmp_var_raw rather than create_tmp_var.
4990
4991 2015-10-06  Richard Biener  <rguenther@suse.de>
4992
4993         * tree-vectorizer.h (vec_info): New base class for...
4994         (_loop_vec_info): ... this and ...
4995         (_bb_vec_info): ... this.
4996         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4997         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4998         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4999         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
5000         vect_destroy_datarefs): Adjust interface to take a vec_info *
5001         rather than both a loop_vec_info and a bb_vec_info argument.
5002         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
5003         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
5004         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
5005         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
5006         accordingly.
5007         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
5008         (destroy_loop_vec_info, vect_analyze_loop_2,
5009         vect_is_simple_reduction_1, get_initial_def_for_induction,
5010         vect_create_epilog_for_reduction, vectorizable_reduction,
5011         vectorizable_live_operation, vect_transform_loop): Adjust.
5012         * tree-vect-patterns.c (type_conversion_p,
5013         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
5014         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
5015         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
5016         check_bool_pattern, vect_recog_bool_pattern,
5017         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
5018         * tree-vect-slp.c (vect_get_and_check_slp_defs,
5019         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
5020         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
5021         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
5022         (new_bb_vec_info): Initialize base classs.
5023         * tree-vect-stmts.c (record_stmt_cost, process_use,
5024         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
5025         vectorizable_mask_load_store, vectorizable_call,
5026         vectorizable_simd_clone_call, vectorizable_conversion,
5027         vectorizable_assignment, vectorizable_shift,
5028         vectorizable_operation, vectorizable_store,
5029         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
5030         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
5031         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
5032
5033 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5034
5035         PR c/65345
5036         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
5037         create_tmp_var_raw rather than create_tmp_var.
5038
5039 2015-10-05  Marek Polacek  <polacek@redhat.com>
5040
5041         * tree-ssa-loop-im.c
5042         (move_computations_dom_walker::before_dom_children): Don't set
5043         SSA_NAME_ANTI_RANGE_P.
5044         * tree-ssa-phiopt.c (value_replacement): Likewise.
5045
5046 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
5047             Sebastian Pop  <s.pop@samsung.com>
5048
5049         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
5050
5051 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
5052             Sebastian Pop  <s.pop@samsung.com>
5053
5054         * graphite-poly.c (new_gimple_poly_bb): ... here.
5055         (free_data_refs_aux): ... here.
5056         (free_gimple_poly_bb): ... here.
5057         (remove_gbbs_in_scop): ... here.
5058         (new_scop): Call new_sese.
5059         (free_scop): Call remove_gbbs_in_scop and free_sese.
5060         * graphite-poly.h (base_alias_pair): ... here.
5061         (new_gimple_poly_bb): Declare.
5062         (free_gimple_poly_bb): Declare.
5063         * graphite-scop-detection.c (parameter_index_in_region_1):
5064         (parameter_index_in_region): ... here.
5065         (scan_tree_for_params): ... here.
5066         (find_params_in_bb): ... here.
5067         (find_scop_parameters): ... here.
5068         (build_scops): Call find_scop_parameters.
5069         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
5070         (free_scops): Move...
5071         (single_pred_cond_non_loop_exit): Move...
5072         (sese_dom_walker::before_dom_children): Move...
5073         (sese_dom_walker::after_dom_children): Move...
5074         (build_poly_scop): Move...
5075         * graphite-sese-to-poly.h (base_alias_pair): Move...
5076         * graphite.c (free_scops): ... here.
5077
5078 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
5079             Sebastian Pop  <s.pop@samsung.com>
5080
5081         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
5082         (trivially_empty_bb_p): Move...
5083         (same_close_phi_node): Move...
5084         (new_gimple_poly_bb): Move...
5085         (compare_bb_depths): Move...
5086         (graphite_sort_dominated_info): Move...
5087         (remove_duplicate_close_phi): Move...
5088         (make_close_phi_nodes_unique): Move...
5089         (canonicalize_loop_closed_ssa): Move...
5090         (canonicalize_loop_closed_ssa_form): Move...
5091         (loop_ivs_can_be_represented): Move...
5092         (single_pred_cond_non_loop_exit): Move...
5093         (graphite_can_represent_init): Move...
5094         (graphite_can_represent_scev): Move...
5095         (stmt_has_simple_data_refs_p): Move...
5096         (stmt_has_side_effects):  Move...
5097         (graphite_can_represent_stmt): Move...
5098         (scop_detection): ... here.
5099         (sese_dom_walker): ... and here.
5100         (build_scops): Call all moved functions.
5101         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
5102         (all_non_dominated_preds_marked_p): Move...
5103         (build_scop_bbs_1): Move...
5104         (build_scop_bbs): Move...
5105         (set_scop_parameter_dim): Move...
5106         (nb_pbbs_in_loops): Move...
5107         (build_poly_scop): Do not call all the moved functions.
5108
5109 2015-10-05  Martin Jambor  <mjambor@suse.cz>
5110             Jan Hubicka  <hubicka@ucw.cz>
5111
5112         * ipa-cp.c (ipcp_alignment_lattice): New type.
5113         (ipcp_param_lattices): Use the above to represent alignment.
5114         (ipcp_alignment_lattice::print): New function.
5115         (print_all_lattices): Use it to print alignment information.
5116         (ipcp_alignment_lattice::top_p): New function.
5117         (ipcp_alignment_lattice::bottom_p): Likewise.
5118         (ipcp_alignment_lattice::set_to_bottom): Likewise.
5119         (ipcp_alignment_lattice::meet_with_1): Likewise.
5120         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
5121         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
5122         (initialize_node_lattices): Likewise.
5123         (propagate_alignment_accross_jump_function): Work with the new class
5124         for alignment lattices.
5125         (propagate_constants_accross_call): Pass only the alignment lattice to
5126         propagate_alignment_accross_jump_function.
5127         (ipcp_store_alignment_results): Work with the new class for alignment
5128         lattices.
5129
5130 2015-10-05  Marek Polacek  <polacek@redhat.com>
5131
5132         PR tree-optimization/67821
5133         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5134
5135 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
5136
5137         PR other/65021
5138         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5139         function to...
5140         (mkoffload_cleanup): ... this.  Adjust all users.
5141         (maybe_unlink): Look at save_temps and verbose flags instead of
5142         debug flag.
5143         (main): Parse "-save-temps" flag.
5144         (generate_target_descr_file, generate_target_offloadend_file)
5145         (generate_host_descr_file, prepare_target_image): Pass it on.
5146         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5147         (mkoffload_cleanup): New function.
5148         (maybe_unlink): Look at save_temps and verbose flags instead of
5149         debug flag.
5150         (main): Instead of calling utils_cleanup, register atexit handler
5151         for mkoffload_cleanup.
5152         (main): Parse "-save-temps" flag.
5153         (compile_native, main): Pass it on.
5154         * lto-wrapper.c (compile_offload_image): Likewise.
5155
5156 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5157
5158         * gimple.h (gimple_op_ptr): Require a non const gimple *.
5159         (gimple_assign_lhs_ptr): Likewise.
5160         (gimple_assign_rhs1_ptr): Likewise.
5161         (gimple_assign_rhs2_ptr): Likewise.
5162         (gimple_assign_rhs3_ptr): Likewise.
5163         (gimple_call_lhs_ptr): Likewise.
5164         (gimple_call_fn_ptr): Likewise.
5165         (gimple_call_chain_ptr): Likewise.
5166                 (gimple_call_arg_ptr): Likewise.
5167                 (gimple_cond_lhs_ptr): Likewise.
5168         (gimple_cond_rhs_ptr): Likewise.
5169         (gimple_switch_index_ptr): Likewise.
5170         (gimple_return_retval_ptr): Likewise.
5171
5172 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5173
5174         * gimple.h (gimple_asm_input_op_ptr): Remove.
5175         (gimple_asm_output_op_ptr): Likewise.
5176
5177 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5178
5179         * gimple.h (gimple_location_ptr): Remove.
5180         * tree-vrp.c (check_all_array_refs): Adjust.
5181
5182 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5183
5184         * tree-ssa-operands.c (build_uses): store tree * instead of
5185         tree.
5186         (finalize_ssa_uses): Adjust.
5187         (append_use): Likewise.
5188         (verify_ssa_operands): Likewise.
5189
5190 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5191
5192         * real.h (build_real_truncate): Declare.
5193         * tree.c (build_real_truncate): New function.
5194         (strip_float_extensions): Use it.
5195         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5196         (fold_builtin_hypot, fold_builtin_pow): Likewise.
5197         * match.pd: Likewise.
5198
5199 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5200            Jiong Wang  <jiong.wang@arm.com>
5201
5202         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5203
5204 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5205
5206         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5207         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5208         (aarch64_print_operand, aarch64_float_const_representable_p)
5209         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5210         instead of REAL_VALUE_FROM_CONST_DOUBLE.
5211         * config/arc/arc.c (arc_print_operand): Likewise.
5212         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5213         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5214         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5215         Likewise.
5216         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5217         (consttable_16): Likewise.
5218         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5219         * config/avr/avr.c (avr_print_operand): Likewise.
5220         * config/bfin/bfin.md: Likewise (in a define_split).
5221         * config/c6x/c6x.md: Likewise (in a define_split).
5222         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5223         (cr16_print_operand): Likewise.
5224         * config/cris/cris.c (cris_print_operand): Likewise.
5225         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5226         * config/fr30/fr30.c (fr30_print_operand): Likewise.
5227         (fr30_const_double_is_zero): Likewise.
5228         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5229         * config/frv/frv.md: Likewise (in a define_split).
5230         * config/frv/predicates.md (int_2word_operand): Likewise.
5231         * config/h8300/h8300.c (h8300_print_operand): Likewise.
5232         * config/i386/i386.c (standard_80387_constant_p): Likewise.
5233         (ix86_print_operand, ix86_split_to_parts): Likewise.
5234         * config/i386/i386.md: Likewise (in a define_split).
5235         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5236         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5237         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5238         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5239         (print_operand): Likewise.
5240         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5241         * config/mep/mep.md: Likewise (in define_split).
5242         * config/microblaze/microblaze.c (microblaze_const_double_ok)
5243         (print_operand): Likewise.
5244         * config/mips/mips.md (consttable_float): Likewise.
5245         * config/mmix/mmix.c (mmix_intval): Likewise.
5246         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5247         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5248         * config/pa/pa.c (pa_singlemove_string): Likewise.
5249         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5250         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5251         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5252         (output_toc): Likewise.
5253         * config/rs6000/rs6000.md: Likewise (in define_splits).
5254         * config/rx/rx.c (rx_print_operand): Likewise.
5255         * config/s390/s390.c (s390_output_pool_entry): Likewise.
5256         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5257         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5258         (and also in define_splits).
5259         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5260         (fp_high_losum_p): Likewise.
5261         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5262         (*movsf_high): Likewise.
5263         * config/spu/spu.c (const_double_to_hwint): Likewise.
5264         * config/v850/v850.c (const_double_split): Likewise.
5265         * config/vax/vax.c (vax_float_literal): Likewise.
5266         * config/visium/visium.c (visium_expand_copysign): Likewise.
5267         * config/visium/visium.md: Likewise (in define_split).
5268         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5269         * config/xtensa/xtensa.c (print_operand): Likewise.
5270         (xtensa_output_literal): Likewise.
5271         * cprop.c (implicit_set_cond_p): Likewise.
5272         * dwarf2out.c (insert_float): Likewise.
5273         * expmed.c (expand_mult, make_tree): Likewise.
5274         * expr.c (compress_float_constant): Likewise.
5275         * rtlanal.c (split_double): Likewise.
5276         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5277         (simplify_const_unary_operation, simplify_binary_operation_1)
5278         (simplify_const_binary_operation): Likewise.
5279         (simplify_const_relational_operation): Likewise.
5280         * varasm.c (output_constant_pool_2): Likewise.
5281
5282 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5283
5284         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5285         instead of CONST_DOUBLE_FROM_REAL_VALUE.
5286         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5287         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5288         instead of CONST_DOUBLE_FROM_REAL_VALUE.
5289         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5290         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5291         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5292         (ix86_emit_swsqrtsf): Likewise.
5293         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5294         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5295         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5296         * config/pa/pa.c (pa_expand_builtin): Likewise.
5297         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5298         (rs6000_scale_v2df): Likewise.
5299         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5300         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5301         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5302         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5303         (vec_ctul): Likewise.
5304         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5305         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5306         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5307         * cse.c (fold_rtx): Likewise.
5308         * emit-rtl.c (immed_double_const): Likewise (in comments).
5309         (init_emit_once): Likewise.
5310         * expr.c (compress_float_constant, expand_expr_real_1)
5311         (const_vector_from_tree): Likewise.
5312         * optabs.c (expand_float, expand_fix): Likewise.
5313         * reg-stack.c (reg_to_stack): Likewise.
5314         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5315         (simplify_const_unary_operation, simplify_binary_operation_1)
5316         (simplify_const_binary_operation, simplify_relational_operation)
5317         (simplify_immed_subreg): Likewise.
5318
5319 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5320
5321         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5322         * doc/tm.texi: Regenerate.
5323         * real.h (REAL_ARITHMETIC): Delete.
5324         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5325         (ix86_expand_round_sse4): Use real_arithmetic instead of
5326         REAL_ARITHMETIC.
5327         * config/i386/sse.md (round<mode>2): Likewise.
5328         * rtl.h (rtx_to_tree_code): Likewise (in comment).
5329         * explow.c (rtx_to_tree_code): Likewise (in comment).
5330         * match.pd: Likewise.
5331         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5332         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5333         (expand_pow_as_sqrts): Likewise.
5334         * tree-pretty-print.c (dump_generic_node): Remove code that
5335         was conditional on REAL_ARITHMETIC being undefined.
5336
5337 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5338
5339         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5340         * doc/tm.texi: Regenerate.
5341         * real.h (real_less): Declare.
5342         (REAL_VALUES_LESS): Delete.
5343         * real.c (real_less): New function.
5344         (real_compare): Use it.
5345         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5346         of REAL_VALUES_LESS.
5347         * config/microblaze/microblaze.c (microblaze_const_double_ok):
5348         Likewise.
5349         * fold-const.c (fold_convert_const_int_from_real): Likewise.
5350         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5351         (simplify_const_relational_operation): Likewise.
5352         * tree-call-cdce.c (check_pow): Likewise.
5353         (gen_conditions_for_pow_cst_base): Likewise.
5354
5355 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5356
5357         * real.h (REAL_VALUES_IDENTICAL): Delete.
5358         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5359         instead of REAL_VALUES_IDENTICAL.
5360         * fold-const.c (operand_equal_p): Likewise.
5361         * ipa-icf.c (sem_variable::equals): Likewise.
5362         * tree-complex.c (some_nonzerop): Likewise.
5363         (expand_complex_multiplication): Likewise.
5364         * tree.c (simple_cst_equal): Likewise.
5365         * varasm.c (compare_constant): Likewise.
5366
5367 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5368
5369         * real.h (real_equal): Declare.
5370         (REAL_VALUES_EQUAL): Delete.
5371         * real.c (real_equal): New function.
5372         (real_compare): Use it.
5373         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5374         * doc/tm.texi: Regenerate.
5375         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5376         real_equal instead of REAL_VALUES_EQUAL.
5377         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5378         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5379         (fp_const_from_val): Likewise.
5380         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5381         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5382         (floating_exact_log2): Likewise.
5383         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5384         * config/vax/vax.c (vax_float_literal): Likewise.
5385         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5386         * cprop.c (implicit_set_cond_p): Likewise.
5387         * expmed.c (expand_mult): Likewise.
5388         * fold-const.c (const_binop): Likewise.
5389         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5390         (simplify_const_binary_operation): Likewise.
5391         (simplify_const_relational_operation): Likewise.
5392         * tree-call-cdce.c (check_pow): Likewise.
5393         (gen_conditions_for_pow_cst_base): Likewise.
5394         * tree-inline.c (estimate_num_insns): Likewise.
5395         * tree-ssa-dom.c (record_equality): Likewise.
5396         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5397         (gimple_expand_builtin_pow): Likewise.
5398         (pass_optimize_widening_mul::execute): Likewise.
5399         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5400         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5401         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5402
5403 2015-10-05  Richard Biener  <rguenther@suse.de>
5404
5405         PR ipa/67783
5406         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5407         consider loop header PHI defs as IVs.
5408
5409 2015-10-05  Richard Biener  <rguenther@suse.de>
5410
5411         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5412         call handling ...
5413         (create_expression_by_pieces): ... here and build GIMPLE
5414         calls directly.  Use gimple_build API and avoid force_gimple_operand.
5415         (insert_into_preds_of_block): Simplify.
5416         (do_regular_insertion): Add comment.
5417
5418 2015-10-04  Jason Merrill  <jason@redhat.com>
5419
5420         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5421
5422 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
5423
5424         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5425         check for general register.
5426         (ix86_emit_save_regs): Ditto.
5427         (ix86_emit_save_regs_using_mov): Ditto.
5428         (ix86_emit_restore_regs_using_pop): Ditto.
5429         (ix86_emit_restore_regs_using_mov): Ditto.
5430
5431 2015-10-03  Marek Polacek  <polacek@redhat.com>
5432
5433         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5434         (insn-dfatab.o): Likewise.
5435
5436 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
5437
5438         * config.gcc (xtensa*-*-uclinux*): New configuration.
5439         * config/xtensa/uclinux.h: New file.
5440         * config/xtensa/uclinux.opt: New file.
5441
5442 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
5443
5444         * doc/cpp.texi (Standard Predefined Macros): Document value of
5445         __cplusplus for C++14.
5446
5447 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
5448
5449         * gcc.c (process_command): Use spec_machine rather than
5450         spec_host_machine to build tooldir_prefix2.
5451
5452 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
5453             Bernd Schmidt  <bernds@codesourcery.com>
5454
5455         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5456         (Token, Stmt): Remove structs.
5457         (decls, vars, fns): Remove variables.
5458         (alloc_comment, append_stmt, is_keyword): Remove macros.
5459         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5460         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5461         (parse_init, parse_file): Remove functions.
5462         (read_file): Accept a pointer to a length and store into it.
5463         (process): Don't try to parse the input file, just write it out as
5464         a string, but looking for maps.  Also write out the length.
5465         (main): Don't use "-S" to compile PTX code.
5466
5467 2015-10-02  Jeff Law  <law@redhat.com>
5468
5469         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5470         fixups.
5471
5472 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
5473
5474         PR target/67822
5475         * config/nvptx/mkoffload.c (main): Scan the argument vector for
5476         -fopenmp, and skip generating an offloading image if specified.
5477
5478 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
5479
5480         * system.h (ROUND_UP): New macro definition.
5481         (ROUND_DOWN): Ditto.
5482         * ggc-page.c (ROUND_UP): Remove local macro definition.
5483         (PAGE_ALIGN): Implement using ROUND_UP macro.
5484
5485         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5486         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5487         to align values.
5488         (ix86_compute_frame_layout): Ditto.
5489         (ix86_expand_prologue): Ditto.
5490         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5491         to round down values.
5492         (expand_set_or_movmem_via_rep): Ditto.
5493
5494 2015-10-02  Marek Polacek  <polacek@redhat.com>
5495
5496         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5497
5498 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
5499
5500         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5501         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5502         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5503         (free_gimple_bb): Renamed free_gimple_poly_bb.
5504         (try_generate_gimple_bb): Hoist loop invariant code.
5505         (analyze_drs_in_stmts): Same.
5506         (build_scop_drs): Call renamed functions.
5507         (new_pbb_from_pbb): Same.
5508         (scop_ivs_can_be_represented): Delete as functionality now moved to
5509         graphite-scop-detection.c
5510         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5511
5512 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
5513
5514         * graphite-scop-detection.c (stmt_has_side_effects): New function
5515           outlined from stmt_simple_for_scop_p.
5516         (graphite_can_represent_stmt): Same.
5517         (stmt_simple_for_scop_p): Moved code out of this function for better
5518         readability.
5519
5520 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5521
5522         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5523         F_AVX512IFMA.
5524         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5525
5526 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5527
5528         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5529
5530 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
5531
5532         PR rtl-optimization/67756
5533         * lra-constraints.c (match_reload): Add a new parameter.  Use it
5534         for creating a pseudo with the same value.
5535         (curr_insn_transform): Pass a new argument to match_reload.
5536
5537 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5538
5539         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5540         (expand_vec_perm_even_odd_1): Handle V64QImode.
5541         (ix86_expand_vec_perm_const_1): Try expansion with
5542         expand_vec_perm_even_odd_trunc as well.
5543         * config/i386/sse.md (VI124_AVX512F): Rename to ...
5544         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5545         to V54QI.
5546         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5547         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5548         to V32HI and V16SI.
5549         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5550         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5551         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5552         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5553         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5554         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5555
5556 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5557
5558         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5559         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5560
5561 2015-10-02  Jason Merrill  <jason@redhat.com>
5562
5563         PR c/59218
5564         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5565         (diagnose_tm_1_op): Also diagnose volatile accesses in
5566         transaction_safe function.
5567
5568 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
5569
5570         * system.h (malloc.h): Don't include obsolete header.
5571
5572 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5573
5574         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5575         (TLS_SECTION_ASM_FLAG): Delete.
5576
5577 2015-10-02  Marek Polacek  <polacek@redhat.com>
5578
5579         PR c/64249
5580         * doc/invoke.texi: Document -Wduplicated-cond.
5581         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5582         (insn-dfatab.o): Likewise.
5583         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5584         warning.
5585
5586 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
5587
5588         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5589         sequences.
5590
5591 2015-10-02  Renlin Li  <renlin.li@arm.com>
5592
5593         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5594
5595 2015-10-02  Renlin Li  <renlin.li@arm.com>
5596
5597         PR target/66776
5598         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5599
5600 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5601
5602         PR rtl-optimization/67786
5603         PR rtl-optimization/67787
5604         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5605         it modifies a reg used in the condition calculation.
5606
5607 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
5608
5609         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5610         alternatives for reads from memory and moves from general-purpose
5611         registers.
5612         (*aarch64_combinez_be<mode>): Likewise.
5613
5614 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
5615
5616         PR target/51726
5617         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5618         selectany within this function without need to keep attribute.
5619         (i386_pe_encode_section_info): Remove selectany-code.
5620
5621 2015-10-02  Richard Biener  <rguenther@suse.de>
5622
5623         * tree-ssa-sccvn.c (has_VN_INFO): New function.
5624         (free_scc_vn): Use it.
5625         (visit_use): Remove dead code and refactor to use gassign
5626         and use less indentation.
5627
5628 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5629
5630         PR target/67788
5631         PR target/67789
5632         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5633         (rs6000_cannot_copy_insn_p): New function.
5634         * config/rs6000/rs6000.md (cannot_copy): New attribute.
5635         (load_toc_v4_PIC_1_normal): Set cannot_copy.
5636         (load_toc_v4_PIC_1_476): Ditto.
5637
5638 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
5639
5640         * graphite-scop-detection.c (struct sese_l): New conversion constructor
5641         so that this type can be pushed into a vec.
5642         (class scop_builder): use sese_l to collect scops.
5643         (get_scops): New getter function.
5644         (remove_intersecting_scops): Use sese_l instead of scops_p.
5645         (intersects): Same.
5646         (add_scop): Same.
5647         (subsumes): Same.
5648         (remove_subscops): Same.
5649         (build_scops): Add scops to vec<scops_p> once all the scops have been
5650         detected.
5651
5652 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
5653
5654         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5655         Renamed type from gimple_bb_p to gimple_poly_bb_p.
5656         (translate_isl_ast_node_user): Same.
5657         * graphite-poly.c (new_poly_bb): Same.
5658         * graphite-poly.h (gbb_from_bb): Same.
5659         * sese.h: Same.
5660         * graphite-sese-to-poly.c (new_gimple_bb):
5661         gimple_bb_p -> gimple_poly_bb_p
5662         (build_scop_scattering): Same.
5663         (find_params_in_bb): Same.
5664         (add_conditions_to_domain): Same.
5665         (sese_dom_walker::before_dom_children): Same.
5666         (analyze_drs_in_stmts): Same.
5667         (new_pbb_from_pbb): Same.
5668         (free_data_refs_aux): New pointer to type base_alias_pair.
5669         * graphite-sese-to-poly.h: Same.
5670         * sese.c (if_region_set_false_region): Fixed Indentation.
5671         (move_sese_in_condition): Same.
5672
5673 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
5674             Aditya Kumar  <aditya.k7@samsung.com>
5675
5676         PR tree-optimization/66980
5677         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5678         when data reference analysis has failed.
5679
5680 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
5681             Aditya Kumar  <aditya.k7@samsung.com>
5682
5683         PR tree-optimization/67754
5684         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5685         scev analysis on the same loop nest as analyze_drs_in_stmts.
5686         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5687         renamed...
5688         (try_generate_gimple_bb): Call outermost_loop_in_sese.
5689         (analyze_drs_in_stmts): Same.
5690         * sese.c (outermost_loop_in_sese): ...here.
5691
5692 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
5693             Aditya Kumar  <aditya.k7@samsung.com>
5694
5695         PR tree-optimization/67754
5696         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5697         recursion on the inner loops.
5698
5699 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5700
5701         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5702         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5703         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5704         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5705         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5706
5707 2015-10-01  Marek Polacek  <polacek@redhat.com>
5708
5709         PR c/65345
5710         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5711         create_tmp_var_raw rather than create_tmp_var.
5712
5713 2015-10-01  Marek Polacek  <polacek@redhat.com>
5714
5715         PR tree-optimization/67769
5716         * tree-ssa-phiopt.c (conditional_replacement): Call
5717         reset_flow_sensitive_info_in_bb.
5718         (minmax_replacement): Likewise.
5719         (abs_replacement): Likewise.
5720
5721 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
5722
5723         * builtins.c: Don't include gomp-constants.h.
5724         (fold_builtin_1): Don't fold acc_on_device here.
5725         * gimple-fold.c: Include gomp-constants.h.
5726         (gimple_fold_builtin_acc_on_device): New.
5727         (gimple_fold_builtin): Call it.
5728
5729 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5730
5731         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5732         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5733
5734 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
5735
5736         * config/arm/aarch-common-protos.h
5737         (aarch_accumulator_forwarding): New.
5738         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5739         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5740         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5741         * config/arm/cortex-a53.md: Rewrite.
5742
5743 2015-10-01  Richard Biener  <rguenther@suse.de>
5744
5745         * gimple-match.h (mprts_hook): Declare.
5746         * gimple-match.head.c (mprts_hook): Define.
5747         (maybe_push_res_to_seq): Use new hook.
5748         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5749         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5750         (vn_ssa_aux::has_constants): Remove.
5751         * tree-ssa-sccvn.c: Include gimple-match.h.
5752         (VN_INFO_GET): Assert we don't re-use SSA names.
5753         (vn_get_expr_for): Remove.
5754         (expr_has_constants): Likewise.
5755         (stmt_has_constants): Likewise.
5756         (simplify_binary_expression): Likewise.
5757         (simplify_unary_expression): Likewise.
5758         (vn_lookup_simplify_result): New hook.
5759         (visit_copy): Adjust.
5760         (visit_reference_op_call): Likewise.
5761         (visit_phi): Likewise.
5762         (visit_use): Likewise.
5763         (process_scc): Likewise.
5764         (init_scc_vn): Likewise.
5765         (visit_reference_op_load): Likewise.  Use match-and-simplify and
5766         a gimple seq for inserted expressions.
5767         (try_to_simplify): Remove GENERIC stmt combining code.
5768         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5769         * tree-ssa-pre.c (eliminate_insert): Adjust.
5770         (eliminate_dom_walker::before_dom_children): Likewise.
5771
5772 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5773
5774         * doc/invoke.texi (Optimization Options): Add
5775         -freorder-blocks-algorithm=.
5776         (Optimize Options) <-O>: Add -freorder-blocks.
5777         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
5778         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5779         <-freorder-blocks>: Also enabled at levels -O and -Os.
5780         <-freorder-blocks-algorithm=>: Document new option.
5781
5782 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5783
5784         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5785         with flag_reorder_blocks_algorithm.
5786         * common.opt (freorder-blocks-algorithm=): New flag.
5787         (reorder_blocks_algorithm): New enum.
5788         * flag-types.h (reorder_blocks_algorithm): New enum.
5789         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5790         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5791
5792 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5793
5794         * bb-reorder.c: Add intro comment.
5795         (reorder_basic_blocks_software_trace_cache): Print a header to
5796         the dump file.
5797         (edge_order): New function.
5798         (reorder_basic_blocks_simple): New function.
5799         (reorder_basic_blocks): Choose between the STC and the simple
5800         algorithms (always choose the former).
5801
5802 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5803
5804         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5805         function, factored out from ...
5806         (reorder_basic_blocks): ... here.
5807
5808 2015-10-01  Tom de Vries  <tom@codesourcery.com>
5809
5810         * tree-cfg.c (dump_function_to_file): Dump function attributes using
5811         __attribute__(()) string.  Move dumping of function attributes to before
5812         function name.
5813
5814 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
5815
5816         PR target/66870
5817         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5818         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5819         based on gold linker version.
5820         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5821         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5822         * configure, config.in: Regenerate.
5823
5824 2015-10-01  Alan Modra  <amodra@gmail.com>
5825
5826         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5827         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5828         (rs6000_output_mi_thunk): Likewise.
5829
5830 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
5831
5832         * config/nvptx/mkoffload.c (process): Change offload data format.
5833
5834 2015-09-30  Jeff Law  <law@redhat.com>
5835
5836         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5837         with constant conditions.
5838         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5839         (remove_ctrl_stmt_and_useless_edges): No longer static.
5840         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5841         (remove_ctrl_stmt_and_useless_edges): Likewise.
5842
5843 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
5844             Cesar Philippidis  <cesar@codesourcery.com>
5845
5846         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5847         (TARGET_GOACC_VALIDATE_DIMS): Override.
5848         * target.def (TARGET_GOACC): New target hook prefix.
5849         (validate_dims): New hook.
5850         * targhooks.h (default_goacc_validate_dims): New.
5851         * omp-low.c (oacc_validate_dims): New.
5852         (execute_oacc_device_lower): New.
5853         (default_goacc_validate_dims): New.
5854         (pass_data_oacc_device_lower): New.
5855         (pass_oacc_device_lower): New pass.
5856         (make_pass_oacc_device_lower): New.
5857         * tree-pass.h (make_pass_oacc_device_lower): Declare.
5858         * passes.def (pass_oacc_device_lower): Add it.
5859         * doc/tm.texi: Rebuilt.
5860         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5861         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5862
5863 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5864
5865         PR rtl-optimization/67037
5866         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5867
5868 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
5869
5870         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5871         * passes.c: Include tree-ssanames.h.
5872         (execute_function_todo): Flush the pending free SSA_NAMEs after
5873         eliminating unreachable basic blocks.
5874         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5875         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5876         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5877         (flush_ssanames_freelist): New function.
5878         (release_ssaname_fn): Put released names on the queue.
5879         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5880         * tree-ssanames.h (flush_ssanames_freelist): Declare.
5881
5882 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5883
5884         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5885         (generate_target_descr_file, generate_target_offloadend_file)
5886         (generate_host_descr_file, prepare_target_image): Pass it on.
5887         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5888         (compile_native, main): Pass it on.
5889         * lto-wrapper.c (compile_offload_image): Likewise.
5890
5891 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5892             Ilya Verbin  <ilya.verbin@intel.com>
5893             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5894
5895         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5896         (prepare_target_image, main): Refactor argv building to use
5897         obstacks.
5898
5899 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5900
5901         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5902         * config/spu/spu.c (spu_expand_atomic_op): New function.
5903         * config/spu/spu.md (AINT): New mode iterator.
5904         (ATOMIC): New code iterator.
5905         (atomic_name, atomic_pred): New code predicates.
5906         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5907         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5908         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5909         "atomic_<atomic_name>_fetch<mode>"): Likewise.
5910
5911 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
5912
5913         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5914         debug insns.
5915         (scalar_chain::convert_reg): Likewise.
5916
5917 2015-09-30  Richard Biener  <rguenther@suse.de>
5918
5919         * builtins.c: Add comment that no new simplifications should
5920         be added here.
5921
5922 2015-09-30  Marek Polacek  <polacek@redhat.com>
5923
5924         PR tree-optimization/67690
5925         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5926         reset_flow_sensitive_info_in_bb.
5927         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5928         * tree-ssanames.c: Include "gimple-iterator.h".
5929         (reset_flow_sensitive_info_in_bb): New function.
5930         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5931
5932 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5933
5934         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5935         variable, replacing it with...
5936         (offload_abi): ... this new variable.  Adjust all users.
5937         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5938
5939 2015-09-30  Matthias Klose  <doko@ubuntu.com>
5940
5941         * configure.ac: Remove extraneous ;;.
5942         * configure: Regenerate.
5943
5944 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
5945
5946         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5947         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5948         predicate, disallow register for operand 2.
5949
5950 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
5951
5952         * graphite-dependences.c (scop_get_dependences): Moved in down
5953         in order to be visible to its caller.
5954         * graphite-poly.h: Removed compute_deps, and extend_schedule.
5955
5956 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
5957             Aditya Kumar  <aditya.k7@samsung.com>
5958
5959         PR tree-optimization/67754
5960         * graphite-optimize-isl.c (optimize_isl): Call
5961         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5962
5963 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
5964
5965         * builtins.c (expand_builtin_acc_on_device): Delete.
5966         (expand_builtin): Don't call it.
5967         (fold_builtin_1): Fold acc_on_device.
5968
5969 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5970
5971         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5972         (ix86_nsaved_sseregs): Likewise.
5973
5974 2015-09-29  Jeff Law  <law@redhat.com>
5975
5976         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5977         computation of unused value.
5978
5979         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5980         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5981         inline macro expansion.
5982
5983         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5984
5985         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5986         (gen_shl_sext): Likewise.
5987         * config/sh/sh.md (divsi3): Likewise.
5988         (imm->ext_dest_operand splitter): Likewise.
5989
5990 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
5991             Aditya Kumar  <aditya.k7@samsung.com>
5992
5993         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5994         (nb_data_writes_in_bb): Remove.
5995         (split_pbb): Remove.
5996         (split_reduction_stmt): Remove.
5997         (is_reduction_operation_p): Remove.
5998         (phi_contains_arg): Remove.
5999         (follow_ssa_with_commutative_ops): Remove.
6000         (detect_commutative_reduction_arg): Remove.
6001         (detect_commutative_reduction_assign): Remove.
6002         (follow_inital_value_to_phi): Remove.
6003         (edge_initial_value_for_loop_phi): Remove.
6004         (initial_value_for_loop_phi): Remove.
6005         (used_outside_reduction): Remove.
6006         (detect_commutative_reduction): Remove.
6007         (translate_scalar_reduction_to_array_for_stmt): Remove.
6008         (remove_phi): Remove.
6009         (dr_indices_valid_in_loop): Remove.
6010         (close_phi_written_to_memory): Remove.
6011         (translate_scalar_reduction_to_array): Remove.
6012         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
6013         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
6014         (rewrite_commutative_reductions_out_of_ssa): Remove.
6015         (build_poly_scop): Remove call to
6016         rewrite_commutative_reductions_out_of_ssa.
6017
6018 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
6019
6020         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
6021         Add new insn types for vector load and store pairs.
6022         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
6023         types "neon_ldp{,_q}".
6024         * config/arm/cortex-a57.md (neon_load_c): Add insn types
6025         "neon_ldp{,_q}".
6026         (neon_store_complex): Add insn types "neon_stp{,_q}".
6027         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
6028         "neon_{ldp,stp}_q".
6029
6030 2015-09-29  Jeff Law  <law@redhat.com>
6031
6032         * config/rx/constraints.md (Int08): Fix undefined left shift
6033         behaviour.
6034         (Sint08, Sint16, Sint24): Likewise.
6035         * config/rx/rx.c (rx_get_stack_layout): Likewise.
6036
6037         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
6038         behaviour.
6039
6040         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
6041         left shift behaviour.
6042         * config/msp430/constraints.md ('L' constraint): Similarly.
6043         ('Ys' constraint): Similarly.
6044
6045 2015-09-29  Richard Biener  <rguenther@suse.de>
6046
6047         PR tree-optimization/67170
6048         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
6049         the translate function pointer parameter to get the
6050         bool whether to disambiguate only by reference.
6051         (walk_non_aliased_vuses): Likewise.
6052         * tree-ssa-alias.c (maybe_skip_until): Adjust.
6053         (get_continuation_for_phi_1): Likewise.
6054         (get_continuation_for_phi): Likewise.
6055         (walk_non_aliased_vuses): Likewise.
6056         * tree-ssa-sccvn.c (const_parms): New bitmap.
6057         (vn_reference_lookup_3): Adjust for interface change.
6058         Disambiguate parameters pointing to readonly memory.
6059         (free_scc_vn): Free const_parms.
6060         (run_scc_vn): Initialize const_parms from a fn spec attribute.
6061
6062 2015-09-29  Richard Biener  <rguenther@suse.de>
6063
6064         PR tree-optimization/67741
6065         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
6066         builtin calls with correct signature.
6067
6068 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
6069
6070         PR target/65105
6071         * config/i386/i386.c: Include dbgcnt.h.
6072         (has_non_address_hard_reg): New.
6073         (convertible_comparison_p): New.
6074         (scalar_to_vector_candidate_p): New.
6075         (remove_non_convertible_regs): New.
6076         (scalar_chain): New.
6077         (scalar_chain::scalar_chain): New.
6078         (scalar_chain::~scalar_chain): New.
6079         (scalar_chain::add_to_queue): New.
6080         (scalar_chain::mark_dual_mode_def): New.
6081         (scalar_chain::analyze_register_chain): New.
6082         (scalar_chain::add_insn): New.
6083         (scalar_chain::build): New.
6084         (scalar_chain::compute_convert_gain): New.
6085         (scalar_chain::replace_with_subreg): New.
6086         (scalar_chain::replace_with_subreg_in_insn): New.
6087         (scalar_chain::emit_conversion_insns): New.
6088         (scalar_chain::make_vector_copies): New.
6089         (scalar_chain::convert_reg): New.
6090         (scalar_chain::convert_op): New.
6091         (scalar_chain::convert_insn): New.
6092         (scalar_chain::convert): New.
6093         (convert_scalars_to_vector): New.
6094         (pass_data_stv): New.
6095         (pass_stv): New.
6096         (make_pass_stv): New.
6097         (ix86_option_override): Created and register stv pass.
6098         (flag_opts): Add -mstv.
6099         (ix86_option_override_internal): Likewise.
6100         * config/i386/i386.md (SWIM1248x): New.
6101         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
6102         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
6103         (*anddi3_doubleword): New.
6104         (*zext<mode>_doubleword): New.
6105         (*zextsi_doubleword): New.
6106         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
6107         (*<code>di3_doubleword): New.
6108         * config/i386/i386.opt (mstv): New.
6109         * dbgcnt.def (stv_conversion): New.
6110
6111 2015-09-29  Tom de Vries  <tom@codesourcery.com>
6112
6113         * tree-cfg.c (dump_function_to_file): Dump function attributes.
6114
6115 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6116
6117         PR target/67716
6118         * config/sh/sh.c (sh_override_options_after_change): New.
6119         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6120         (sh_option_override): Move align_loops, align_jumps and
6121         align_functions handling into sh_override_options_after_change.
6122
6123 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
6124
6125         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6126         (nvptx_record_offload_symbol): Record function execution geometry.
6127         * config/nvptx/mkoffload.c (process): Include launch geometry in
6128         function data.
6129         * omp-low.c (oacc_launch_pack): New.
6130         (replace_oacc_fn_attrib): New.
6131         (set_oacc_fn_attrib): New.
6132         (get_oacc_fn_attrib): New.
6133         (expand_omp_target): Create keyed varargs for GOACC_parallel call
6134         generation.
6135         * omp-low.h (get_oacc_fn_attrib): Declare.
6136         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6137         (DEF_FUNCTION_TYPE_VAR_11): Delete.
6138         * tree.h (OMP_CLAUSE_EXPR): New.
6139         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6140
6141 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
6142             Sebastian Pop  <s.pop@samsung.com>
6143
6144         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6145
6146 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
6147             Sebastian Pop  <s.pop@samsung.com>
6148
6149         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6150         * graphite-scop-detection.c (struct sese_l): New type.
6151         (get_entry_bb): API for getting entry bb of SESE.
6152         (get_exit_bb): API for getting exit bb of SESE.
6153         (class debug_printer): New type.  Simple printer in debug mode.
6154         (trivially_empty_bb_p): New.  Return true when BB is empty or
6155         contains only debug instructions.
6156         (graphite_can_represent_expr): Call scalar_evoution_in_region
6157         instead of analyze_scalar_evolution.  Pass in scop instead of only
6158         the scop entry.
6159         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6160         scop entry.
6161         (stmt_simple_for_scop_p): Same.
6162         (harmful_stmt_in_bb): Same.
6163         (graphite_can_represent_loop): Deleted.
6164         (struct scopdet_info): Deleted.
6165         (scopdet_basic_block_info): Deleted.
6166         (build_scops_1): Deleted.
6167         (bb_in_sd_region): Deleted.
6168         (find_single_entry_edge): Deleted.
6169         (find_single_exit_edge): Deleted.
6170         (create_single_entry_edge): Deleted.
6171         (sd_region_without_exit): Deleted.
6172         (create_single_exit_edge): Deleted.
6173         (unmark_exit_edges): Deleted.
6174         (mark_exit_edges): Deleted.
6175         (create_sese_edges): Deleted.
6176         (build_graphite_scops): Deleted.
6177         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6178         (build_scops): Use the new scop_builder to build scops.
6179         (dot_all_scops_1): Use the new pretty printer.  Print loop father
6180         as well.
6181         (loop_body_is_valid_scop): New.  Return true if loop body is a
6182         valid scop.
6183         (class scop_builder): New.  Builds SCoPs for polyhedral
6184         optimizations.
6185         (scop_builder): New constructor.
6186         (static sese_l invalid_sese): sese_l with invalid edges.
6187         (get_sese): Get an sese (from a loop) if possible, invalid_sese
6188         otherwise.
6189         (get_nearest_dom_with_single_entry): Get nearest dominator of a
6190         basic_block with single entry.  Return NULL if we get to the
6191         beginning of a function.
6192         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6193         a basic_block with single exit.  Return NULL if we get to the
6194         beginning of a function.
6195         (print_sese): Pretty-print SESE.
6196         (merge_sese): Merge two SESEs if possible and return the new SESE.
6197         (build_scop_depth): Start building the SCoP within a loop nest.
6198         (build_scop_breadth): Start building the SCoP at a single loop
6199         depth.  Merge adjacent SESEs if valid.
6200         (can_represent_loop_1): Returns true if Graphite can represent
6201         loop inside SCoP.  Helper for can_represent_loop.
6202         (can_represent_loop): Returns true if Graphite can represent LOOP
6203         and all its nested loops in SCoP.
6204         (loop_is_valid_scop): Returns true if LOOP and all its nests
6205         constitute a valid SCoP.
6206         (region_has_one_loop): Returns true of a region has only one loop.
6207         (add_scop): Add SCoP to the list of valid scops.  Removes an
6208         already existing scop if it intersects with or subsumed by this one.
6209         (harmful_stmt_in_region): Returns true if SCoP has any statment
6210         which cannot be represented by Graphite.
6211         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6212         (remove_subscops): Remove any SCoP from the list of already found
6213         SCoPs, if subsumed by S1.
6214         (intersects): Return true if region bounded by SCoPs S1 and S2
6215         intersect.
6216         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6217         * graphite.c (print_graphite_scop_statistics):
6218         (print_graphite_statistics): Print SCoP info while debugging.
6219         (graphite_initialize): Early exit in case number of loops in a
6220         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6221         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6222         (graphite_finalize):
6223         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6224         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6225         (recompute_all_dominators): Recalculate POST_DOMINATORS.
6226         * tree-cfg.c (print_loops): Print the function name while printing
6227         loops.
6228
6229 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
6230             Sebastian Pop  <s.pop@samsung.com>
6231
6232         PR tree-optimization/67700
6233         * graphite-sese-to-poly.c (parameter_index_in_region): Call
6234         invariant_in_sese_p_rec.
6235         (extract_affine): Same.
6236         (rewrite_cross_bb_scalar_deps): Call update_ssa.
6237         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
6238         * sese.h (invariant_in_sese_p_rec): Declare.
6239
6240 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
6241
6242         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6243
6244 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
6245
6246         Revert:
6247         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6248                     Jiong Wang  <jiong.wang@arm.com>
6249
6250         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6251         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6252         (REG_CLASS_NAMES): Likewise.
6253         (REG_CLASS_CONTENTS): Likewise.
6254         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6255         (aarch64_register_move_cost): Likewise.
6256         (aarch64_load_symref_appropriately): Invoke the new added pattern if
6257         possible.
6258         * config/aarch64/constraints.md (Uc0): New constraint.
6259
6260 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
6261
6262         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6263
6264 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
6265
6266         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6267         SECTION_EXCLUDE in XO mapping class.
6268
6269 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
6270
6271         PR target/54236
6272         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6273         and handle ne and eq codes.
6274         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6275         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
6276         CONST_INT_P.  Use reverse_condition.
6277         (sh_split_treg_set_expr): Likewise.
6278
6279 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
6280
6281         * config/arm/types.md (type): Add rotate_imm.
6282         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6283         ROR immediate case.
6284         (*rorsi3_insn_uxtw): Likewise.
6285         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6286         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6287         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6288
6289 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6290
6291         PR rtl-optimization/67481
6292         * ifcvt.c (contains_ccmode_rtx_p): New function.
6293         (insn_valid_noce_process_p): Use it.
6294
6295 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6296
6297         PR rtl-optimization/67456
6298         PR rtl-optimization/67464
6299         PR rtl-optimization/67465
6300         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6301         move in the mode of x.  Handle combination of complex and simple
6302         block pairs as well as the case when one is empty.
6303
6304 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6305
6306         * doc/gimple.texi: Update references to gimple_statement_base.
6307         * gdbhooks.py: Likewise.
6308         * gimple.h: Likewise.
6309
6310 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
6311
6312         * config/sparc/driver-sparc.c: map LEON to leon3
6313
6314 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
6315
6316         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6317           and make it inverse to change default
6318         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6319           supervisor mode
6320         * doc/invoke.texi: Document change of default
6321
6322 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
6323
6324         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6325         true on %f0 for a target without FPU.
6326         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6327         without FPU.
6328         (untyped_return): Do not load %f0 for a target without FPU.
6329
6330 2015-09-28  Andrew Pinski  <apinski@cavium.com>
6331
6332         * config/aarch64/aarch64.md (prefetch):
6333         Change the predicate of operand 0 to register_operand.
6334
6335 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
6336
6337         * config/i386/predicates.md (register_sse4nonimm_operand): New
6338         predicate.
6339         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6340         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6341         Use register_sse4nonimm_operand as operand 0 predicate.
6342         (*vec_extractv8hi_sse2): Remove insn pattern.
6343         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6344         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6345
6346 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
6347             Kaz Kojima  <kkojima@gcc.gnu.org>
6348
6349         PR target/67391
6350         * config/sh/sh-protos.h (sh_lra_p): Declare.
6351         * config/sh/sh.c (sh_lra_p): Make non-static.
6352         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6353         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
6354         Expand into addsi3_scr if operands[2] if needed.
6355         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
6356         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
6357         (addsi3_scr, *addsi3): New insn_and_split patterns.
6358
6359 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
6360
6361         PR rtl-optimization/64164
6362         PR tree-optimization/67312
6363         PR middle-end/67340
6364         PR middle-end/67490
6365         PR bootstrap/67597
6366         * cfgexpand.c (parm_in_stack_slot_p): Remove.
6367         (ssa_default_def_partition): Remove.
6368         (get_rtl_for_parm_ssa_default_def): Remove.
6369         (set_rtl): Check that RTL assignments match expectations.
6370         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
6371         default def location for params and results.  Record SSA names
6372         or types in REG and MEM attrs, respectively.
6373         (set_parm_rtl): New.
6374         (expand_one_ssa_partition): Drop logic that assigned MEMs with
6375         unassigned addresses.
6376         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6377         deferred stack alloc vars.
6378         (expand_used_vars): Skip partitions holding parm default defs.
6379         Move adjust_one_expanded_partition_var loop...
6380         (pass_expand::execute): ... here.  Drop redundant assert.
6381         Adjust comments before the final loop over all ssa names.
6382         Require assigned rtl of parms and results to match exactly.
6383         Reset its attributes to match them, not any other variables in
6384         the same partition.
6385         (expand_debug_expr): Use entry value for PARM's default defs
6386         only iff they have zero nondebug uses.
6387         * cfgexpand.h (parm_in_stack_slot_p): Remove.
6388         (get_rtl_for_parm_ssa_default_def): Remove.
6389         (set_parm_rtl): Declare.
6390         * doc/invoke.texi: Improve wording.
6391         * explow.c (promote_decl_mode): Fix promote_function_mode for
6392         result decls not by reference.
6393         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6394         bypass TYPE_MODE to get the actual vector mode.
6395         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
6396         2015-08-19's changes as follows.  Drop include of
6397         basic-block.h and df.h.
6398         (rtl_for_parm): Remove.
6399         (maybe_reset_rtl_for_parm): Remove.
6400         (parm_in_unassigned_mem_p): Remove.
6401         (use_register_for_decl): Add logic for RESULT_DECLs matching
6402         assign_parms' behavior.
6403         (split_complex_args): Revert.
6404         (assign_parms_augmented_arg_list): Revert.  Add comment
6405         referencing the logic above.
6406         (assign_parm_adjust_stack_rtl): Revert.
6407         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
6408         of SET_DECL_RTL.  Set up a REG if the parm demands so.
6409         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
6410         calls into a single set_parm_rtl.  Set up a temporary RTL
6411         temporarily for expand_assignment.
6412         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
6413         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
6414         (assign_bounds): Revert.
6415         (assign_parms): Revert.  Use set_parm_rtl.
6416         (allocate_struct_function): Relayout result and parms of
6417         non-abstruct functions.
6418         (expand_function_start): Revert.  Use set_parm_rtl.  If the
6419         result is not a hard reg, create a pseudo from the promoted
6420         mode of the default def.  Promote static chain mode.
6421         * tree-outof-ssa.c (remove_ssa_form): Drop unused
6422         partition_has_default_def.  Set up
6423         partitions_for_parm_default_defs.
6424         (finish_out_of_ssa): Remove partition_has_default_def.
6425         Release partitions_for_parm_default_defs.
6426         * tree-outof-ssa.h (struct ssaexpand): Remove
6427         partition_has_default_def.  Add
6428         partitions_for_parm_default_defs.
6429         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6430         stor-layout.h.
6431         (build_ssa_conflict_graph): Fix conflict-detection of default
6432         defs of even unused default defs of params and results.
6433         (for_all_parms): New.
6434         (create_default_def): New.
6435         (register_default_def): New.
6436         (coalesce_with_default): New.
6437         (create_outofssa_var_map): Create default defs for all parms
6438         and results, and register their partitions.  Add GIMPLE_RETURN
6439         operands as coalesce candidates with results.  Add default
6440         defs of each parm or result as coalesce candidates with its
6441         other defs.  Mark each result def, and each default def of
6442         parms, as used_in_copy.
6443         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
6444         with the ssa names, even anonymous ones.  Drop
6445         parm_in_stack_slot_p calls.  Require same signedness and
6446         alignment.
6447         (coalesce_ssa_name): Add coalesce candidates for all defs of
6448         each parm and result, even unused ones.
6449         (parm_default_def_partition_arg): New type.
6450         (set_parm_default_def_partition): New.
6451         (get_parm_default_def_partitions): New.
6452         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6453         * tree-ssa-live.c (partition_view_init): Regard unused defs of
6454         parms and results as used.
6455         (verify_live_on_entry): Don't error out just because they're
6456         not live.
6457
6458 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
6459
6460         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6461         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6462         (output_fde): Don't output length for debug_frame on AIX.
6463         (output_call_frame_info): Don't output length for debug_frame on AIX.
6464         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6465         HAVE_XCOFF_DWARF_EXTRAS.
6466         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6467         HAVE_XCOFF_DWARF_EXTRAS.
6468         (output_compilation_unit_header): Don't output length on AIX.
6469         (output_pubnames): Don't output length on AIX.
6470         (output_aranges): Delete argument. Compute length locally. Don't
6471         output length on AIX.
6472         (output_line_info): Don't output length on AIX.
6473         (dwarf2out_finish): Don't compute aranges_length.
6474         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6475         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6476         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6477         symbol decoration for AIX.
6478         (rs6000_xcoff_debug_unwind_info): New.
6479         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6480         for SECTION_DEBUG.
6481         (rs6000_xcoff_declare_function_name): Emit different
6482         .function pseudo-op when DWARF2_DEBUG. Don't call
6483         xcoffout_declare_function for DWARF2_DEBUG.
6484         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6485         Redefine.
6486         * config/rs6000/aix71.h: New.
6487         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6488         locations support.
6489         * configure: Regenerate.
6490         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6491         DWARF support.
6492
6493 2015-09-26  Jeff Law  <law@redhat.com>
6494
6495         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6496         behaviour.
6497         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6498         behaviour.
6499
6500         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6501         behaviour
6502
6503         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6504         undefined behaviour.
6505
6506         * config/cris/cris.md (asrandb): Fix left shift undefined
6507         behaviour.
6508         (asrandw): Likewise.
6509
6510 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
6511
6512         PR target/61578
6513         * lra-constarints.c (match_reload): Check presence of the input pseudo
6514         in the output operand.
6515
6516 2015-09-25  Tobias Burnus  <burnus@net-b.de>
6517
6518         * doc/invoke.texi (-fsanitize): Minor wording tweak.
6519
6520 2015-09-25  Tobias Burnus  <burnus@net-b.de>
6521
6522         * doc/invoke.texi (-fsanitize): Update URLs.
6523
6524 2015-09-25  Teresa Johnson  <tejohnson@google.com>
6525
6526         * opts.c (finish_options): Unset -freorder-blocks-and-partition
6527         if not using profile.
6528
6529 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6530
6531         PR pretty-print/67567
6532         * pretty-print.c (pp_string): Add gcc_checking_assert.
6533         * pretty-print.h (output_buffer_append_r): Likewise.
6534
6535 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
6536
6537         PR target/67675
6538         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6539         addr2 individually.  Don't emit logical or insn if one is known to
6540         be aligned approriately.
6541         (sh_expand_cmpnstr): Likewise.
6542
6543 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
6544
6545         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6546         __builtin_aarch64_fp[sc]r arguments into a register.
6547
6548 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
6549
6550         * config.gcc (x86_archs): Replace lakemount with lakemont.
6551         (with_cpu): Likewise.
6552         (with_arch): Likewise.
6553         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6554         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
6555         __tune_lakemount__ with __tune_lakemont__.
6556         * config/i386/i386.c (lakemount_cost): Renamed to ...
6557         (lakemont_cost): This.
6558         (m_LAKEMOUNT): Renamed to ...
6559         (m_LAKEMONT): This.
6560         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6561         (processor_target_table): Replace "lakemount" with "lakemont".
6562         (processor_alias_table): Likewise.
6563         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6564         PROCESSOR_LAKEMONT.
6565         (ix86_adjust_cost): Likewise.
6566         (ia32_multipass_dfa_lookahead): Likewise.
6567         * config/i386/i386.h (processor_type): Likewise.
6568         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6569         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
6570         Lakemount with Lakemont.
6571
6572 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
6573
6574         * config.gcc (x86_archs): Replace iamcu with lakemount.
6575         (with_cpu): Likewise.
6576         (with_arch): Likewise.
6577         * doc/invoke.texi: Likewise.
6578         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6579         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
6580         __tune_iamcu__ with __tune_lakemount__.
6581         * config/i386/i386.c (iamcu_cost): Renamed to ...
6582         (lakemount_cost): This.
6583         (m_IAMCU): Renamed to ...
6584         (m_LAKEMOUNT): This.
6585         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6586         (processor_target_table): Replace "iamcu" with "lakemount".
6587         (processor_alias_table): Likewise.
6588         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6589         PROCESSOR_LAKEMOUNT.
6590         (ix86_adjust_cost): Likewise.
6591         (ia32_multipass_dfa_lookahead): Likewise.
6592         * config/i386/i386.h (processor_type): Likewise.
6593         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6594
6595 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
6596
6597         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6598         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6599         Declare.
6600         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6601         (pa_expand_compare_and_swap_loop): New.
6602         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6603         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6604         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6605         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6606         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6607         Revise.
6608
6609 2015-09-24  Michael Collison  <michael.collison@linaro.org>
6610
6611         PR other/57195
6612         * read-md.c (read_name): Allow mode iterators inside angle
6613         brackets in rtl expressions.
6614
6615 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
6616
6617         PR target/61578
6618         * ira-color.c (update_allocno_cost): Add parameter.
6619         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
6620         parameter.
6621
6622 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6623
6624         PR driver/67640
6625         * opts-common.c (prune_options): Discard all -fdiagnostics-color
6626         but the last one, which is moved to the front to be processed
6627         first.
6628         * opts.c (enable_warning_as_error): Reject options that do not
6629         control warnings.
6630
6631 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
6632
6633         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6634
6635 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
6636
6637         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6638         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6639         (aarch64_cannot_force_const_mem): Likewise.
6640         (aarch64_classify_address): Likewise.
6641         (aarch64_classify_symbolic_expression): Likewise.
6642         (aarch64_print_operand): Likewise.
6643         (aarch64_classify_symbol): Likewise.
6644         (aarch64_mov_operand_p): Likewise.
6645         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6646         (aarch64_mov_operand): Likewise.
6647
6648 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
6649
6650         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6651         for info->spe_gp_size.
6652
6653 2015-09-24  Richard Biener  <rguenther@suse.de>
6654
6655         PR lto/67699
6656         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6657         abstract origins.
6658
6659 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
6660
6661         * tree-object-size.c (plus_stmt_object_size)
6662         (cond_expr_object_size): Change the formal parameters from gimple
6663         to gimple *.
6664         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6665         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6666         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6667
6668 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6669
6670         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6671         Check for ld -type pie on Solaris 11.x and 12.
6672         * configure: Regenerate.
6673         * config.in: Regenerate.
6674
6675         * gcc.c (LD_PIE_SPEC): Allow redefinition.
6676
6677         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6678         (STARTFILE_SPEC): Use it.
6679         (ENDFILE_CRTEND_SPEC): Define.
6680         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6681         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6682         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6683         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6684         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6685         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6686         (ENDFILE_ARCH_SPEC): Define.
6687         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6688
6689 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6690
6691         * configure.ac (gcc_cv_solaris_crts): New test.
6692         * configure. Regenerate.
6693         * config.in: Regenerate.
6694         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6695         HAVE_SOLARIS_CRTS variant.
6696
6697 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6698
6699         * tree-inline.h (count_insns_seq): Delete prototype.
6700         (estimate_num_insns_seq): Define prototype.
6701         * tree-inline.c (count_insns_seq): Delete.
6702         (estimate_num_insns_seq): Remove static qualifier.
6703         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6704         with estimate_num_insns_seq.
6705
6706 2015-09-24  Richard Biener  <rguenther@suse.de>
6707
6708         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6709         members.
6710         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6711         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
6712         offset.
6713         (ao_ref_init_from_vn_reference): Record clique and base in the
6714         built base.
6715         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6716
6717 2015-09-24  Richard Biener  <rguenther@suse.de>
6718
6719         PR tree-optimization/48885
6720         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6721         as not including any restrict tags from other pointers.
6722
6723 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
6724
6725         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6726         character when appending to offload_targets.
6727
6728         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6729         offload targets by commas, not colons.
6730         * config.in: Regenerate.
6731         * configure: Likewise.
6732         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6733         instead of setting up the default offload targets here...
6734         (process_command): ..., do it here.
6735         libgomp/
6736         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6737         targets are separated by commas.
6738         * config.h.in: Regenerate.
6739
6740 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
6741             Nathan Sidwell  <nathan@codesourcery.com>
6742
6743         * omp-low.h (omp_reduction_init_op): Declare.
6744         * omp-low.c (omp_reduction_init_op): New, broken out of ...
6745         (omp_reduction_init): ... here.  Call it.
6746         * tree-parloops.c (initialize_reductions): Use
6747         omp_reduction_init_op.
6748
6749 2015-09-23   Richard Biener  <rguenther@suse.de>
6750
6751         PR middle-end/67662
6752         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6753         undefined overflow unless they will cancel out.
6754
6755 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
6756
6757         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6758         insn emit.
6759
6760 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6761
6762         PR c/49655
6763         * opts.h (write_langs): Declare.
6764         * opts-global.c (write_langs): Make it extern.
6765
6766 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
6767
6768         PR target/67391
6769         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6770         overlapping regs when matching the pattern.
6771
6772 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
6773
6774         * config/aarch64/aarch64-simd.md
6775         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6776         (aarch64_float_truncate_hi_v4sf_le): New.
6777         (aarch64_float_truncate_hi_v4sf_be): Likewise.
6778
6779 2015-09-23  Richard Biener  <rguenther@suse.de>
6780
6781         * tree-ssa-structalias.c (intra_create_variable_infos): Build
6782         representatives for all restrict qualified pointer destinations.
6783
6784 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
6785
6786         * config/i386/i386.md (define_code_attr mshift): New.
6787         (define_mode_iterator SWI1248_AVX512BW): Rename ...
6788         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6789         only.
6790         (define_insn "*k<logic><mode>"): Use new iterator name.
6791         (define_insn "*<mshift><mode>3"): New.
6792
6793 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
6794
6795         PR middle-end/67649
6796         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6797         mark the block as accessible.
6798
6799 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
6800
6801         * function.c (thread_prologue_and_epilogue_insns): Delete
6802         orig_entry_edge argument to try_shrink_wrapping.
6803         * shrink-wrap.c (can_get_prologue): New function.
6804         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6805         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
6806         can_get_prologue where needed.  Remove code that finds a single
6807         edge for the prologue.  Remove code that tests if any reg clobbered
6808         by the prologue is live on the prologue edge.  Remove code that finds
6809         the new prologue edge after duplicating blocks.  Make a new prologue
6810         block and edge.
6811         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6812
6813 2015-09-22  Jeff Law  <law@redhat.com>
6814
6815         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6816         behavior.
6817
6818 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
6819
6820         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
6821         -Wtemplates, -Wnamespaces): Document.
6822
6823 2015-09-22  Tom de Vries  <tom@codesourcery.com>
6824
6825         PR tree-optimization/67671
6826         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6827         pointer references as restrict.
6828
6829 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
6830
6831         * config/nios2/nios2.c (nios2_legitimize_address): When handling
6832         'reg + reloc' cases, allow first operand to be non-REG, and use
6833         force_reg() to enforce address pattern.
6834
6835 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
6836
6837         PR target/67480
6838         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6839         (define_mode_iterator VI12_AVX_AVX512F): New.
6840         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6841         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6842         (define_insn "*<code><mode>3"): ... Into new pattern using
6843         VI12_AVX_AVX512F iterators without masking.
6844
6845 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6846
6847         * config.gcc: Support "skylake-avx512".
6848         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6849         PROCESSOR_SKYLAKE_AVX512.
6850         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6851         (processor_target_table): Add "skylake-avx512".
6852         (PTA_SKYLAKE_AVX512): Define.
6853         (ix86_option_override_internal): Add "skylake_avx512".
6854         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6855         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6856         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6857         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6858         * doc/invoke.texi (skylake-avx512): New.
6859
6860 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6861
6862         * config/i386/i386.md (define_insn "kunpckhi"): Fix
6863         operand in pattern.
6864         (define_insn "kunpcksi"): Ditto.
6865         (define_insn "kunpckdi"): Ditto.
6866
6867 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6868
6869         * config/i386/i386.md (define_split not/xor SWI1248x): Use
6870         iterator instead of fixed modes.
6871
6872 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6873
6874         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6875         Adjust declaration.
6876         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6877         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
6878         out_result.  Update to support update-fetch operations.
6879         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6880         Adjust for change to aarch64_gen_atomic_ldop.
6881         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6882         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6883         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6884         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6885         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6886
6887 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6888
6889         * config/aarch64/aarch64-protos.h
6890         (aarch64_atomic_ldop_supported_p): Declare.
6891         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6892         (enum aarch64_atomic_load_op_code): New.
6893         (aarch64_emit_atomic_load_op): New.
6894         (aarch64_gen_atomic_ldop): Update to support load-operate
6895         patterns.
6896         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6897         to an expander.
6898         (aarch64_atomic_<atomic_optab><mode>): New.
6899         (aarch64_atomic_<atomic_optab><mode>_lse): New.
6900         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6901         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6902         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6903
6904 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6905
6906         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6907         (UNSPECV_ATOMIC_LDOP_OR): New.
6908         (UNSPECV_ATOMIC_LDOP_BIC): New.
6909         (UNSPECV_ATOMIC_LDOP_XOR): New.
6910         (UNSPECV_ATOMIC_LDOP_PLUS): New.
6911         (ATOMIC_LDOP): New.
6912         (atomic_ldop): New.
6913         (aarch64_atomic_load<atomic_ldop><mode>): New.
6914
6915 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6916
6917         * config/aarch64/aarch64.md
6918         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6919         pattern.
6920
6921 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6922
6923         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6924         Declare.
6925         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6926         (aarch64_gen_atomic_ldop): New.
6927         (aarch64_split_atomic_op): Fix whitespace and add a comment.
6928         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6929         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6930         (atomic_exchange<mode>): Replace with an expander.
6931         (aarch64_atomic_exchange<mode>): New.
6932         (aarch64_atomic_exchange<mode>_lse): New.
6933         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6934         (aarch64_atomic_swp<mode>): New.
6935
6936 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6937
6938         * tree-inline.c (expand_call_inline): Use inform for extra note.
6939         Do not give a note with UNKNOWN_LOCATION.
6940         Replace input_location with gimple_location (stmt).
6941         Use true/false instead of TRUE/FALSE.
6942
6943 2015-09-22  Tom de Vries  <tom@codesourcery.com>
6944
6945         PR tree-optimization/67666
6946         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6947         with single field non-conservative.
6948
6949 2015-09-21  David S. Miller  <davem@davemloft.net>
6950
6951         PR/67622
6952         Revert:
6953         2015-09-11  David S. Miller  <davem@davemloft.net>
6954
6955         * config/sparc/constraints.md: Make "U" constraint a real register
6956         constraint.
6957         * config/sparc/sparc.c (TARGET_LRA_P): Define.
6958         (D_MODES, DF_MODES): Add missing cast.
6959         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6960         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6961         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6962         cost to 8.
6963         * config/sparc/sparc.h (PROMOTE_MODE): Define.
6964         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6965         provide these insn when flag_pic.
6966
6967         2015-09-17  David S. Miller  <davem@davemloft.net>
6968
6969         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6970         Declare.
6971         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6972         function.
6973         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6974         (HARD_REGNO_CALLER_SAVE_MODE): Define.
6975         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6976         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6977         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6978         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6979         provide when flag_pic.
6980
6981 2015-09-21  Jeff Law  <law@redhat.com>
6982
6983         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6984         behavior.
6985
6986 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6987
6988         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6989
6990 2015-09-21  Richard Biener  <rguenther@suse.de>
6991
6992         * passes.c (rest_of_decl_compilation): Do not call
6993         dwarf2out_early_global_decl for aliases.
6994
6995 2015-09-21  Richard Biener  <rguenther@suse.de>
6996
6997         PR debug/67664
6998         * dwarf2out.c (add_location_or_const_value_attribute): Remove
6999         attribute parameter.  Early exit if either DW_AT_const_value
7000         or DW_AT_location are present already.
7001         (gen_variable_die): Adjust caller.
7002         (dwarf2out_late_global_decl): Likewise.
7003
7004 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
7005
7006         PR target/67657
7007         * config/sh/sh.c (sh_remove_overlapping_post_inc,
7008         sh_peephole_emit_move_insn): Add new functions.
7009         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
7010         sh_peephole_emit_move_insn): Declere them.
7011         * config/sh/sh.md: Use them in various peephole2 patterns.
7012
7013 2015-09-21  Richard Biener  <rguenther@suse.de>
7014
7015         PR middle-end/67651
7016         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
7017         address with -fno-delete-null-pointer-checks.
7018
7019 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
7020
7021         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
7022         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
7023         (reduc_uplus_v16qi): Remove.
7024
7025         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
7026         (reduc_<VEC_reduc_name>_v2df): Remove.
7027         (reduc_<VEC_reduc_name>_v4sf): Remove.
7028         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
7029
7030         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
7031         gen_ function by removing * prefix.
7032         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
7033
7034 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7035
7036         PR middle-end/60832
7037         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
7038         Print i_bound without converting it to a tree.
7039
7040 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
7041
7042         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
7043         operands[4] operands[5] swap with std::swap, removed tmp variable.
7044         (arm_evpc_neon_vzip): Replaced in0/in1 and
7045         out0/out1 swaps with std::swap, removed x variable.
7046         (arm_evpc_neon_vtrn): Replaced in0/int1 and
7047         out0/out1 swaos with std::swap, removed x variable.
7048         (arm_expand_vec_perm_const_1): Replaced
7049         d->op0/d->op1 swap with std::swap, removed x variable.
7050         (arm_evpc_neon_vuzp): Replaced in0/in1 and
7051         out0/out1 swaps with std::swap, removed x variable.
7052
7053 2015-09-21  Jonathan Yong  <10walls@gmail.com>
7054
7055         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
7056         sysroot/usr/lib/32api for additional win32 libraries,
7057         fixes failing Cygwin bootstrapping.
7058
7059 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
7060
7061         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
7062
7063 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
7064
7065         PR target/67126
7066         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
7067         (*mov_t_msb_neg): Rewrite negc pattern.
7068
7069 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
7070
7071         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
7072         immediate generation code.
7073
7074 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
7075
7076         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
7077         redundant immediate generation code.
7078
7079 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
7080
7081         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
7082         (AARCH64_NUM_BITMASKS): Remove.
7083         (aarch64_bitmasks_cmp): Remove.
7084         (aarch64_build_bitmask_table): Remove.
7085
7086 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
7087
7088         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
7089         slow immediate matching loops with a faster algorithm.
7090
7091 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
7092
7093         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
7094         faster algorithm.
7095
7096 2015-09-20  Jeff Law  <law@redhat.com>
7097
7098         PR tree-optimization/47679
7099         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
7100         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
7101         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
7102         (thread_through_normal_block): Use record_temporary_equivalences.
7103
7104 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
7105
7106         * coretypes.h (gimple): Change typedef to be a forward declaration.
7107         * gimple.h (gimple_statement_base): rename to gimple.
7108         * (all functions and types using gimple): Adjust.
7109         * *.[ch]: Likewise.
7110
7111 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
7112             David Edelsohn  <dje.gcc@gmail.com>
7113
7114         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
7115         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7116         (EH_FRAME_THROUGH_COLLECT2): Define.
7117         (EH_TABLES_CAN_BE_READ_ONLY): Define.
7118         (ASM_OUTPUT_DWARF_PCREL): Define.
7119         (ASM_OUTPUT_DWARF_DATAREL): Define.
7120
7121 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
7122
7123         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7124         of TARGET_ELF32.
7125
7126 2015-09-18  Jeff Law  <law@redhat.com>
7127
7128         PR tree-optimization/47679
7129         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
7130         it here ...
7131         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7132         object.  Update constructor.
7133         (pass_dominator::execute):  Corresponding chagnes to declaration
7134         and initialization of avail_exprs_stack.  Update constructor call
7135         for dom_opt_dom_walker object.
7136         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
7137         it down to children as needed.
7138         (record_equivalences_from_incoming_edge): Likewise.
7139         (eliminate_redundant_computations): Likewise.
7140         (record_equivalences_from_stmt): Likewise.
7141         (simplify_stmt_for_jump_threading): Likewise.
7142         (record_temporary_equivalences): Likewise.
7143         (optimize_stmt): Likewise.
7144         (dom_opt_dom_walker::thread_across_edge): Update access to
7145         avail_exprs_stack object and pass it to children as needed.
7146         (dom_opt_dom_walker::before_dom_children): Similarly.
7147         (dom_opt_dom_walker::after_dom_children): Similarly.
7148         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7149         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7150         Add avail_expr_stack argument.  Pass it to children as needed.
7151         (dummy_simplify): Likewise.
7152         (simplify_control_stmt_condition): Likewise.
7153         (thread_around_empty_blocks): Likewise.
7154         (thread_through_normal_block): Likewise.
7155         (thread_across_edge): Likewise.
7156         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7157         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7158
7159         PR tree-optimization/47679
7160         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
7161         it here ...
7162         (dom_opt_dom_walker): New private member holding the const_and_copies
7163         object.  Update constructor.
7164         (pass_dominator::execute): Corresponding changes to declaration
7165         and initialization of const_and_copies.  Update constructor call
7166         for the dom_opt_dom_walker object.
7167         (record_temporary_equivalences): Accept const_and_copies argument
7168         pass it down to children as needed.
7169         (record_equality): Likewise.
7170         (record_equivalences_from_incoming_edge): Likewise.
7171         (cprop_into_successor_phis, optimize_stmt): Likewise.
7172         (eliminate_redundant_computations): Likewise.
7173         (dom_opt_dom_walker::thread_across_edge): Update access to
7174         const_and_copies object and pass it to children as needed.
7175         (dom_opt_dom_walker::before_dom_children): Similarly.
7176         (dom_opt_dom_walker::after_dom_children): Similarly.
7177
7178         PR tree-optimization/47679
7179         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
7180         it into the avail_exprs_stack class.
7181         (pass_dominator::execute): Corresponding changes to declaration
7182         and initialization of avail_exprs.  Pass avail_exprs to
7183         dump_dominator_optimization_stats.
7184         (record_cond): Extract avail_exprs from avail_exprs_stack.
7185         (lookup_avail_expr): Similarly.
7186         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
7187         position in file.
7188         (dump_dominator_optimization_stats): Make static and prototype.
7189         Add argument for the hash table to dump.
7190         (debug_dominator_optimization_stats): Remove.
7191         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7192         prototype.
7193         (debug_dominator_optimization_stats): Similarly.
7194         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7195         "void" in prototype for pop_to_marker method.  Add accessor method
7196         for the underlying avail_exprs table.
7197
7198         * tree-ssa-threadedge.c: Remove trailing whitespace.
7199
7200 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
7201
7202         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7203         unsigned.
7204         (pa_ldil_cint_p): Likewise.
7205         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7206         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7207         Update callers.
7208         * config/pa/pa.md: Likewise.
7209
7210 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
7211
7212         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7213         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7214         (diagnostic_show_locus): Likewise.
7215         (diagnostic_print_caret_line): Likewise.
7216         * diagnostic-show-locus.c: New file.
7217
7218 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
7219
7220         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7221         "back" parameter. Declare label in #if block.
7222
7223 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
7224
7225         PR middle-end/67619
7226         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7227         the address to a register.
7228
7229 2015-09-18  Jeff Law  <law@redhat.com>
7230
7231         PR tree-optimization/47679
7232         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7233         * tree-ssa-dom.c: Remove unnecessary header includes.
7234         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7235         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7236         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7237         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7238         (pass_phi_only_cprop::execute): Likewise.
7239         (make_pass_phi_only_cprop): Likewise.
7240         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
7241         uses of file scoped statics by passing the required objects
7242         as parameters wherever needed.
7243
7244 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
7245             David Edelsohn  <dje.gcc@gmail.com>
7246
7247         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7248         EH_FRAME_THROUGH_COLLECT2.
7249         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7250         DW_EH_PE_datarel.
7251         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7252         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
7253         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7254         * except.c (switch_to_exception_section): Use a read-only section
7255         even if EH_FRAME_SECTION_NAME is undefined.
7256         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7257         * collect2.c (write_c_file_stat): Provide dbase on AIX.
7258         (scan_prog_file): Don't export __dso_handle nor
7259         __gcc_unwind_dbase.
7260         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7261         (EH_TABLES_CAN_BE_READ_ONLY): Define.
7262         (ASM_OUTPUT_DWARF_PCREL): Define.
7263         (ASM_OUTPUT_DWARF_DATAREL): Define.
7264         (EH_FRAME_THROUGH_COLLECT2): Define.
7265         (EH_FRAME_IN_DATA_SECTION): Delete.
7266         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7267         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7268         Declare.
7269         (rs6000_asm_output_dwarf_datarel): Declare.
7270         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7271         (rs6000_aix_asm_output_dwarf_datarel): New.
7272         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7273         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7274         (EH_FRAME_THROUGH_COLLECT2): Define.
7275         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7276         (EH_FRAME_THROUGH_COLLECT2): Define.
7277         (EH_TABLES_CAN_BE_READ_ONLY): Define.
7278         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7279         (EH_FRAME_THROUGH_COLLECT2): New.
7280         (ASM_OUTPUT_DWARF_DATAREL): New.
7281         * doc/tm.texi: Regenerate.
7282
7283 2015-09-18  Richard Biener  <rguenther@suse.de>
7284
7285         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7286         we're in early phase.
7287         (schedule_generic_params_dies_gen): Likewise.
7288         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7289         work as possible, retaining unhandled cases.
7290         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7291         clear out generic_type_instances at the end.
7292         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7293         (dwarf2out_early_finish): ... here.  Do most of
7294         gen_remaining_tmpl_value_param_die_attribute here.
7295
7296 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
7297
7298         PR tree-optimization/67283
7299         * tree-sra.c (type_consists_of_records_p): Rename to...
7300         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7301         (completely_scalarize_record): Rename to...
7302         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7303         (scalarize_elem): New.
7304         (analyze_all_variable_accesses): Follow renamings.
7305
7306 2015-09-18  Richard Biener  <rguenther@suse.de>
7307
7308         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7309         in early-dwarf.
7310
7311 2015-09-18  Richard Biener  <rguenther@suse.de>
7312
7313         PR tree-optimization/66142
7314         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7315         treat MEM[&x] and x the same.
7316         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7317         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7318         when we simplified sth.
7319         (vn_reference_maybe_forwprop_address): Likewise.
7320         (valueize_refs_1): When we simplified through
7321         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7322         set valueized_anything to true.
7323         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7324         one ref kills the other instead of just a offset-based test.
7325         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7326         for the operand_equal_p test to compare bases and also compare
7327         sizes.
7328
7329 2015-09-17  Christian Bruel  <christian.bruel@st.com>
7330
7331         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7332
7333 2015-09-17  Richard Henderson  <rth@redhat.com>
7334
7335         PR libstdc++/65913
7336         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7337         pointers that encode the alignment of the object.
7338
7339 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7340
7341         PR rtl-optimization/66790
7342         * df-problems.c (LIVE): Amend documentation.
7343
7344 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
7345
7346         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7347         and optabs-tree.o.
7348         (GTFILES): Replace optabs.c with optabs-libfunc.c.
7349         * genopinit.c (main): Add an include guard to insn-opinit.h.
7350         Protect the rtx_code parts with NUM_RTX_CODE.
7351         * optabs.h: Split parts out to...
7352         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7353         * optabs.c: Split parts out to...
7354         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7355         * cilk-common.c: Include optabs-query.h rather than optabs.h.
7356         * fold-const.c: Likewise.
7357         * target-globals.c: Likewise.
7358         * tree-if-conv.c: Likewise.
7359         * tree-ssa-forwprop.c: Likewise.
7360         * tree-ssa-loop-prefetch.c: Likewise.
7361         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7362         Remove unncessary include files.
7363         * tree-ssa-phiopt.c: Likewise.
7364         * tree-ssa-reassoc.c: Likewise.
7365         * tree-switch-conversion.c: Likewise.
7366         * tree-vect-data-refs.c: Likewise.
7367         * tree-vect-generic.c: Likewise.
7368         * tree-vect-loop.c: Likewise.
7369         * tree-vect-patterns.c: Likewise.
7370         * tree-vect-slp.c: Likewise.
7371         * tree-vect-stmts.c: Likewise.
7372         * tree-vrp.c: Likewise.
7373         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7374         rather than optabs.h.
7375         * expr.c: Include optabs-tree.h.
7376         * function.c: Likewise.
7377
7378 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7379
7380         PR middle-end/65958
7381         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7382         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7383         * config/arm/arm.c: Include common/common-target.h.
7384         (use_return_insn): Return 0 if the static chain register was saved
7385         above a non-APCS frame.
7386         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7387         (struct scratch_reg): New.
7388         (get_scratch_register_on_entry): New function.
7389         (release_scratch_register_on_entry): Likewise.
7390         (arm_emit_probe_stack_range): Likewise.
7391         (output_probe_stack_range): Likewise.
7392         (arm_expand_prologue): Factor out code dealing with the IP register
7393         for nested function and adjust it for stack checking.
7394         Invoke arm_emit_probe_stack_range if static builtin stack checking
7395         is enabled.
7396         (thumb1_expand_prologue): Sorry out if static builtin stack checking
7397         is enabled.
7398         (arm_expand_epilogue): Add the saved static chain register, if any, to
7399         the amount of pre-pushed registers to pop.
7400         (arm_frame_pointer_required): Return true if static stack checking is
7401         enabled and we want to catch the exception with the EABI unwinder.
7402         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7403         (UNSPEC_PROBE_STACK_RANGE): Likewise.
7404         * config/arm/arm.md (probe_stack): New insn.
7405         (probe_stack_range): Likewise.
7406
7407 2015-09-17  Richard Biener  <rguenther@suse.de>
7408
7409         * genmatch.c (parser::parse_expr): Improve error message
7410         for mis-placed flags.
7411
7412 2015-09-17  Richard Biener  <rguenther@suse.de>
7413
7414         * passes.c (rest_of_decl_compilation): Always call early_global_decl
7415         debug hook when we created a varpool node.
7416         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7417         dwarf2out_early_global_decl, when not just add location or
7418         value attributes to existing DIEs.
7419
7420 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
7421
7422         * config/aarch64/aarch64.md (copysigndf3): New.
7423         (copysignsf3): Likewise.
7424
7425 2015-09-17  David S. Miller  <davem@davemloft.net>
7426
7427         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7428         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7429         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7430         (HARD_REGNO_CALLER_SAVE_MODE): Define.
7431         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7432         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7433         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7434         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7435         provide when flag_pic.
7436
7437 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
7438
7439         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7440         object_allocator change.
7441
7442 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
7443
7444         PR tree-optimization/66388
7445         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7446         (dump_iv): Dump no_overflow information.
7447         (alloc_iv): Initialize new field for struct iv.
7448         (mark_bivs): Count number of no_overflow bivs.
7449         (find_deriving_biv_for_expr, record_biv_for_address_use): New
7450         functions.
7451         (idx_find_step): Call new functions above.
7452         (add_candidate_1, add_candidate): New paramter.
7453         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7454         (get_computation_aff): Simplify convertion of cand for BIV.
7455         (get_computation_cost_at): Step cand's base if necessary.
7456
7457 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
7458
7459         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7460         parameter.
7461         (tree_simplify_using_condition): Ditto.
7462         (simplify_using_initial_conditions): Ditto.
7463         (loop_exits_before_overflow): Pass new argument to function
7464         simplify_using_initial_conditions.  Remove case for type conversions
7465         simplification.
7466         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7467         parameter.
7468         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7469         in iv base using loop initial conditions.
7470
7471 2015-09-16  Jeff Law  <law@redhat.com>
7472
7473         PR tree-optimization/47679
7474         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7475         (free_all_edge_infos): Use it.
7476         (allocate_edge_info): Free preexisting edge info data.
7477         (pass_dominator::execute): Set up initial edge info structures.
7478         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7479         thread_across_edge.
7480         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7481         If non-null, then push/pop markers appropriately.
7482         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7483         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7484         thread-across_edge.
7485
7486 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
7487
7488         * config/ft32/ft32.c: Fix the memory address space predicate.
7489
7490 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
7491
7492         PR target/67573
7493         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7494         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7495
7496 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7497
7498         * toplev.h (check_global_declaration): Remove declaration.
7499         * toplev.c (check_global_declaration): Move to ...
7500         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7501         (analyze_functions): Update call.
7502
7503 2015-09-16  David S. Miller  <davem@davemloft.net>
7504
7505         * lra-constraints.c (simplify_operand_subreg): Do not assume that
7506         lowpart of a SUBREG has offset zero.
7507
7508 2015-09-16  Jeff Law  <law@redhat.com>
7509
7510         PR tree-optimization/47679
7511         * tree-ssa-dom.c (enum expr_kind): Moved from here to
7512         tree-ssa-scopedtables.h.
7513         (struct hashable_expr, class expr_hash_elt): Likewise.
7514         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7515         Move associated methods into tree-ssa-scopedtables.c.
7516         (avail_expr_hash, initialize_expr_from_cond): Similarly.
7517         (hashable_expr_equal_p, add_expr_commutative): Likewise.
7518         (add_hashable_expr): Likewise.
7519         (record_cond): Delete element directly.
7520         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7521         private copy ctor and assignment operator methods.
7522         (expr_elt_hasher): Inline trivial methods.
7523         (initialize_expr_from_cond): Prototype.
7524         * tree-ssa-scopedtables.c: Add necessary includes, functions and
7525         methods that were previously in tree-ssa-dom.c.  Improve various
7526         comments.
7527
7528 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
7529
7530         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7531
7532 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
7533
7534         PR bootstrap/67587
7535         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7536         fixup_partitions.
7537
7538 2015-09-16  Richard Biener  <rguenther@suse.de>
7539
7540         PR middle-end/67253
7541         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7542         location of possibly shared trees.
7543
7544 2015-09-16  Richard Biener  <rguenther@suse.de>
7545
7546         PR middle-end/67271
7547         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7548
7549 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
7550
7551         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7552         offset and size computations instead of HOST_WIDE_INT.
7553
7554 2015-09-16  Richard Biener  <rguenther@suse.de>
7555
7556         PR middle-end/67442
7557         * fold-const.c (extract_muldiv_1): Properly extend multiplication
7558         result before builting a tree via wide_int_to_tree.
7559
7560 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
7561
7562         * Makefile.in: Add memory-block.cc
7563         (pool_allocator::initialize): Use fixed block size.
7564         (pool_allocator::release): Use memory_block_pool.
7565         (pool_allocator::allocate): Likewise.
7566         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7567         object pools.
7568         * cfg.c (initialize_original_copy_tables): Likewise.
7569         * cselib.c (elt_list_pool, elt_loc_list_pool,
7570         cselib_val_pool): Likewise.
7571         * df-problems.c (df_chain_alloc): Likewise.
7572         * df-scan.c (df_scan_alloc): Likewise.
7573         * dse.c (cse_store_info_pool, rtx_store_info_pool,
7574         read_info_type_pool, insn_info_type_pool, bb_info_pool,
7575         group_info_pool, deferred_change_pool): Likewise.
7576         * et-forest.c (et_nodes, et_occurrences): Likewise.
7577         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7578         ipcp_agg_lattice_pool): Likewise.
7579         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7580         * ipa-profile.c (histogram_pool): Likewise.
7581         * ipa-prop.c (ipa_refdesc_pool): Likewise.
7582         * ira-build.c (live_range_pool, allocno_pool, object_pool,
7583         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7584         * ira-color.c (update_cost_record_pool): Likewise.
7585         * lra-lives.c (lra_live_range_pool): Likewise.
7586         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7587         * memory-block.cc: New file.
7588         * memory-block.h: New file.
7589         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7590         * sched-deps.c (sched_deps_init): Likewise.
7591         * sel-sched-ir.c (sched_lists_pool): Likewise.
7592         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7593         * tree-sra.c (access_pool): Likewise.
7594         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7595         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7596         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7597         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7598         * tree-ssa-strlen.c (strinfo_pool): Likewise.
7599         * tree-ssa-structalias.c (variable_info_pool): Likewise.
7600         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7601         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7602
7603 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
7604
7605         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7606         definition.
7607         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7608         call0 ABI.
7609
7610 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
7611
7612         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7613         to pass TLS call argument, according to current ABI.
7614         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7615         callx0 for TLS call, according to current ABI.
7616
7617 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7618
7619         * tree-eh.c (lower_try_finally_dup_block): Clear location information
7620         on stack restore statements.
7621         (decide_copy_try_finally): Do not consider a stack restore statement as
7622         coming from sources.
7623
7624 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
7625
7626         * config/alpha/alpha.c (alpha_expand_block_clear): Use
7627         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7628
7629 2015-09-15  Jeff Law  <law@redhat.com>
7630
7631         PR tree-optimization/47679
7632         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7633         methods and private members.
7634         (avail_exprs_stack): Similarly.  Change type of global
7635         from a pair of expr_hash_elt_t to the new class.
7636         (expr_elt_hasher::hash): Corresponding changes.
7637         (expr_elt_hasher::equal): Similarly.
7638         (avail_expr_hash): Similarly.
7639         (pass_dominator::execute): Similarly.
7640         (dom_opt_dom_walker::thread_across_edge): Similarly.
7641         (record_cond): Similarly.
7642         (dom_opt_dom_walker::before_dom_children): Similarly.
7643         (dom_opt_dom_walker::after_dom_children): Similarly.
7644         (lookup_avail_expr): Likewise.
7645         (initialize_hash_element): Now a expr_hash_elt constructor.
7646         (initialize_hash_element_from_expr): Similarly.
7647         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7648         (free_expr_hash_elt): Call dtor for the element.
7649         (remove_local_expressions_from_table): Now the "pop_to_marker"
7650         method in the available_exprs_stack class.
7651         (avail_expr_stack::record_expr): Method factored out.
7652         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7653         Fix formatting.
7654         (hashable_expr_equal_p): Fix formatting.
7655
7656 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
7657
7658         * input.h (location_get_source_line): Drop "expanded_location"
7659         param in favor of a file and line number.
7660         * input.c (location_get_source_line): Likewise.
7661         (dump_location_info): Update for change in signature of
7662         location_get_source_line.
7663         * diagnostic.c (diagnostic_print_caret_line): Likewise.
7664
7665 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7666
7667         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7668         Bump to 4KB for SJLJ exceptions.
7669         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
7670         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7671         * doc/tm.texi: Regenerate.
7672
7673 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7674
7675         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7676         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
7677         Update prototype.
7678
7679 2015-09-15  Richard Biener  <rguenther@suse.de>
7680
7681         PR tree-optimization/67470
7682         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7683         structure for PHI hoisting by inserting a forwarder block
7684         if appropriate.
7685
7686 2015-09-15  Christian Bruel  <christian.bruel@st.com>
7687
7688         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7689         (arm_option_print): New function.
7690
7691 2015-09-15  Christian Bruel  <christian.bruel@st.com>
7692
7693         PR target/52144
7694         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7695         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7696         Remove flags parameter.
7697         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7698         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7699         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7700         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7701         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7702         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7703         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7704         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7705
7706 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7707
7708         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7709
7710         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7711         AARCH64_VALID_SIMD_DREG_MODE.
7712
7713 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7714
7715         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7716         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7717         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7718         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7719         aarch64_ld4_lane<mode>): Combine together, making...
7720         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7721         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7722         aarch64_st4_lane<mode>): Combine together, making...
7723         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7724         * config/aarch64/iterators.md (nregs): Add comment.
7725
7726 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7727
7728         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7729         Change operand mode from <V_TWO_ELEM> to BLK.
7730         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7731         (aarch64_vec_store_lanesoi_lane<mode): Likewise
7732         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7733         (aarch64_ld2_lane<mode>): Likewise.
7734         (aarch64_st2_lane<VQ:mode>): Likewise.
7735         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7736
7737 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7738
7739         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7740         Change operand mode from <V_FOUR_ELEM> to BLK.
7741         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7742         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7743         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7744         (aarch64_ld4_lane<mode>): Likewise.
7745         (aarch64_st4_lane<mode>): Likewise.
7746         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7747
7748 2015-09-15  Richard Biener  <rguenther@suse.de>
7749
7750         PR middle-end/67563
7751         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7752         transfer EH info from old to new stmt.
7753         (replace_call_with_value): Likewise.
7754         (replace_call_with_call_and_fold): Likewise.
7755         (gimple_fold_builtin_memory_op): Likewise.
7756         (gimple_fold_builtin_memset): Likewise.
7757         (gimple_fold_builtin_stpcpy): Likewise.
7758         (gimple_fold_call): Likewise.
7759
7760 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7761
7762         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7763         comment.
7764         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7765         (aarch64_simd_intEI_type_node): Likewise.
7766         (aarch64_simd_builtin_std_type): Remove EImode case.
7767         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7768         * config/aarch64/aarch64-modes.def: Remove EImode.
7769
7770 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7771
7772         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7773         Change operand mode from <V_THREE_ELEM> to BLK.
7774         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7775         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7776         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7777         (aarch64_ld3_lane<mode>): Likewise.
7778         (aarch64_st3_lane<mode>): Likewise.
7779         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7780
7781 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7782
7783         * config/aarch64/aarch64-simd.md
7784         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7785         Change all TImode operands to BLKmode.
7786         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7787         Change all EImode operands to BLKmode.
7788         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7789         Change all OImode operands to BLKmode.
7790
7791         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7792         and call set_mem_size.
7793         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7794
7795         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7796
7797 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7798
7799         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7800         to...
7801         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7802
7803         (vec_store_lanesci_lane<mode>): Rename to...
7804         (aarch64_vec_store_lanesci_lane<mode>): ...this.
7805
7806         (vec_store_lanesxi_lane<mode>): Rename to...
7807         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7808
7809         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7810         aarch64_st4_lane<mode>): Follow renaming.
7811
7812 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7813
7814         * config/s390/s390.c (s390_const_operand_ok): Add missing
7815         brackets.
7816
7817 2015-09-15  Richard Biener  <rguenther@suse.de>
7818
7819         PR lto/67568
7820         * lto-streamer.h (lto_location_cache::current_sysp): Properly
7821         initialize.
7822         * lto-streamer-out.c (clear_line_info): Likewise.
7823
7824 2015-09-15  Richard Biener  <rguenther@suse.de>
7825
7826         * doc/match-and-simplify.texi: Fix wording.
7827
7828 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
7829
7830         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7831         unnecessary type conversion in op1.
7832
7833 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
7834
7835         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7836         (dup_block_and_redirect): Delete function.
7837         (can_dup_for_shrink_wrapping): New function.
7838         (fix_fake_fallthrough_edge): New function.
7839         (try_shrink_wrapping): Rewrite function.
7840         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7841
7842 2015-09-14  Rich Felker  <dalias@libc.org>
7843
7844         * configure.ac: Change target pattern for sh TLS support
7845         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7846         * configure: Regenerate.
7847
7848 2015-09-14  Jeff Law  <law@redhat.com>
7849
7850         PR tree-optimization/47679
7851         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7852         type rather than void *.
7853
7854 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7855
7856         PR fortran/67460
7857         * diagnostic.c (diagnostic_initialize): Do not set
7858         some_warnings_are_errors.
7859         (diagnostic_finish): Use DK_WERROR count instead.
7860         (diagnostic_report_diagnostic): Do not set
7861         some_warnings_are_errors.
7862         * diagnostic.h (struct diagnostic_context): Remove
7863         some_warnings_are_errors.
7864
7865 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
7866
7867         * config/sparc/predicates.md (const_all_ones_operand): Use
7868         CONSTM1_RTX to simplify definition.
7869
7870 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
7871
7872         PR target/67061
7873         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7874         Handle call insns.
7875
7876 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
7877
7878         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7879         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7880         OPT_fshow_column to handled saved option cases.
7881         (append_compiler_options): Do not skip the above added options.
7882
7883 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7884
7885         PR target/63304
7886         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7887         nopcrelative_literal_loads.
7888         (aarch64_classify_address): Likewise.
7889         (aarch64_constant_pool_reload_icode): Define.
7890         (aarch64_secondary_reload): Handle secondary reloads for
7891         literal pools.
7892         (aarch64_override_options): Handle nopcrelative_literal_loads.
7893         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7894         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7895         Define.
7896         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7897         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7898         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7899         predicate.
7900         * doc/invoke.texi (mpc-relative-literal-loads): Document.
7901
7902 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
7903
7904         PR middle-end/67401
7905         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7906         sync_compare_and_swap_optab libcall to target_oval.
7907
7908 2015-09-14  Marek Polacek  <polacek@redhat.com>
7909
7910         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7911         value.
7912         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7913
7914 2015-09-11  Mark Wielaard  <mjw@redhat.com>
7915
7916         PR c/28901
7917         * toplev.c (check_global_declaration): Check and use
7918         warn_unused_const_variable.
7919         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7920         (-Wunused-variable): Remove non-constant. For C implies
7921         -Wunused-const-variable.
7922         (-Wunused-const-variable): New.
7923
7924 2015-09-14  Richard Biener  <rguenther@suse.de>
7925
7926         * doc/match-and-simplify.texi: Update for changed syntax
7927         of inner ifs and the new switch expression.
7928
7929 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
7930
7931         * config/i386/haswell.md: New file describing Haswell pipeline.
7932         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7933         haswell-like processors.
7934         (ix86_reassociation_width): Increase reassociation width for 64-bit
7935         Haswell processor family.
7936         * config/i386/i386.md: Introduce haswell cpu and include new md file.
7937
7938 2015-09-14  Richard Biener  <rguenther@suse.de>
7939
7940         * doc/match-and-simplify.texi: Fixup some formatting issues
7941         and document the 's' flag.
7942
7943 2015-09-13  Olivier Hainque  <hainque@adacore.com>
7944             Eric Botcazou  <ebotcazou@adacore.com>
7945
7946         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7947         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
7948         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7949         (TARGET_CPU_gr5): Likewise.
7950         (TARGET_CPU_gr6): Likewise.
7951         (MULTILIB_DEFAULTS): Likewise.
7952         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7953         for mcpu=gr5 and mcpu=gr6.
7954         (MULTILIB_DIRNAMES): Adjust accordingly.
7955
7956 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7957
7958         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7959         (mem_ref_p): Likewise.
7960         (outermost_indep_loop): Adjust.
7961         (mem_ref_in_stmt): Likewise.
7962         (determine_max_movement): Likewise.
7963         (mem_ref_alloc): Likewise.
7964         (record_mem_ref_loc): Likewise.
7965         (set_ref_stored_in_loop): Likewise.
7966         (mark_ref_stored): Likewise.
7967         (gather_mem_refs_stmt): Likewise.
7968         (mem_refs_may_alias_p): Likewise.
7969         (for_all_locs_in_loop): Likewise.
7970         (struct rewrite_mem_ref_loc): Likewise.
7971         (rewrite_mem_refs): Likewise.
7972         (struct first_mem_ref_loc_1): Likewise.
7973         (first_mem_ref_loc): Likewise.
7974         (struct sm_set_flag_if_changed): Likewise.
7975         (execute_sm_if_changed_flag_set): Likewise.
7976         (execute_sm): Likewise.
7977         (hoist_memory_references):
7978         (struct ref_always_accessed): Likewise.
7979         (ref_always_accessed_p): Likewise.
7980         (refs_independent_p): Likewise.
7981         (record_dep_loop): Likewise.
7982         (ref_indep_loop_p_1): Likewise.
7983         (ref_indep_loop_p_2): Likewise.
7984         (ref_indep_loop_p): Likewise.
7985         (can_sm_ref_p): Likewise.
7986         (find_refs_for_sm): Likewise.
7987         (tree_ssa_lim_finalize): Likewise.
7988
7989 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7990
7991         * dwarf2out.c (dw_attr_ref): Remove typedef.
7992         (dw_line_info_ref): Likewise.
7993         (pubname_ref): Likewise.
7994         (dw_ranges_ref): Likewise.
7995         (dw_ranges_by_label_ref): Likewise.
7996         (comdat_type_node_ref): Likewise.
7997         (get_AT): Adjust.
7998         (get_AT_low_pc): Likewise.
7999         (get_AT_hi_pc): Likewise.
8000         (get_AT_string): Likewise.
8001         (get_AT_flag): Likewise.
8002         (get_AT_unsigned): Likewise.
8003         (get_AT_ref): Likewise.
8004         (get_AT_file): Likewise.
8005         (remove_AT): Likewise.
8006         (print_die): Likewise.
8007         (check_die): Likewise.
8008         (die_checksum): Likewise.
8009         (attr_checksum_ordered): Likewise.
8010         (struct checksum_attributes): Likewise.
8011         (collect_checksum_attributes): Likewise.
8012         (die_checksum_ordered): Likewise.
8013         (same_die_p): Likewise.
8014         (is_declaration_die): Likewise.
8015         (clone_die): Likewise.
8016         (clone_as_declaration): Likewise.
8017         (copy_declaration_context): Likewise.
8018         (break_out_comdat_types): Likewise.
8019         (copy_decls_walk): Likewise.
8020         (output_location_lists): Likewise.
8021         (external_ref_hasher::hash): Likewise.
8022         (optimize_external_refs_1): Likewise.
8023         (build_abbrev_table): Likewise.
8024         (size_of_die): Likewise.
8025         (unmark_all_dies): Likewise.
8026         (size_of_pubnames): Likewise.
8027         (output_die_abbrevs): Likewise.
8028         (output_die): Likewise.
8029         (output_pubnames): Likewise.
8030         (add_ranges_num): Likewise.
8031         (add_ranges_by_labels): Likewise.
8032         (add_high_low_attributes): Likewise.
8033         (gen_producer_string): Likewise.
8034         (dwarf2out_set_name): Likewise.
8035         (new_line_info_table): Likewise.
8036         (prune_unused_types_walk_attribs): Likewise.
8037         (prune_unused_types_update_strings): Likewise.
8038         (prune_unused_types): Likewise.
8039         (resolve_addr): Likewise.
8040         (optimize_location_lists_1): Likewise.
8041         (index_location_lists): Likewise.
8042         (dwarf2out_finish): Likewise.
8043
8044 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8045
8046         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
8047
8048 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8049
8050         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
8051         (dump_asserts_for): Adjust.
8052         (register_new_assert_for): Likewise.
8053         (process_assert_insertions): Likewise.
8054         (insert_range_assertions): Likewise.
8055
8056 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8057
8058         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
8059         and remove typedef.
8060         (new_temp_expr_table): Adjust.
8061         (free_temp_expr_table): Likewise.
8062         (version_to_be_replaced_p): Likewise.
8063         (make_dependent_on_partition): Likewise.
8064         (add_to_partition_kill_list): Likewise.
8065         (remove_from_partition_kill_list): Likewise.
8066         (add_dependence): Likewise.
8067         (finished_with_expr): Likewise.
8068         (process_replaceable): Likewise.
8069         (kill_expr): Likewise.
8070         (kill_virtual_exprs): Likewise.
8071         (mark_replaceable): Likewise.
8072         (find_replaceable_in_bb): Likewise.
8073         (find_replaceable_exprs): Likewise.
8074         (debug_ter): Likewise.
8075
8076 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8077
8078         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
8079         (struct btr_user): Rename from btr_user_s.
8080         (struct btr_def): Rename from btr_def_s.
8081         (find_btr_def_group): Adjust.
8082         (add_btr_def): Likewise.
8083         (new_btr_user): Likewise.
8084         (note_other_use_this_block): Likewise.
8085         (compute_defs_uses_and_gen): Likewise.
8086         (link_btr_uses): Likewise.
8087         (build_btr_def_use_webs): Likewise.
8088         (block_at_edge_of_live_range_p): Likewise.
8089         (btr_def_live_range): Likewise.
8090         (combine_btr_defs): Likewise.
8091         (move_btr_def): Likewise.
8092         (migrate_btr_def): Likewise.
8093         (migrate_btr_defs): Likewise.
8094
8095 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8096
8097         * var-tracking.c (shared_hash_def): Rename to shared_hash.
8098         (shared_hash): Remove typedef.
8099         (struct dataflow_set): Adjust.
8100         (shared_hash_unshare): Likewise.
8101         (dataflow_set_merge): Likewise.
8102         (vt_initialize): Likewise.
8103         (vt_finalize): Likewise.
8104
8105 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8106
8107         * var-tracking.c (struct location_chain): Rename from
8108         location_chain_def.
8109         (struct variable_part): Adjust.
8110         (variable_htab_free): Likewise.
8111         (unshare_variable): Likewise.
8112         (get_init_value): Likewise.
8113         (get_addr_from_local_cache): Likewise.
8114         (drop_overlapping_mem_locs): Likewise.
8115         (val_reset): Likewise.
8116         (struct variable_union_info): Likewise.
8117         (variable_union): Likewise.
8118         (find_loc_in_1pdv): Likewise.
8119         (insert_into_intersection): Likewise.
8120         (intersect_loc_chains): Likewise.
8121         (canonicalize_loc_order_check): Likewise.
8122         (canonicalize_values_mark): Likewise.
8123         (canonicalize_values_star): Likewise.
8124         (canonicalize_vars_star): Likewise.
8125         (variable_merge_over_cur): Likewise.
8126         (remove_duplicate_values): Likewise.
8127         (variable_post_merge_new_vals): Likewise.
8128         (variable_post_merge_perm_vals): Likewise.
8129         (find_mem_expr_in_1pdv): Likewise.
8130         (dataflow_set_preserve_mem_locs): Likewise.
8131         (dataflow_set_remove_mem_locs): Likewise.
8132         (variable_part_different_p): Likewise.
8133         (onepart_variable_different_p): Likewise.
8134         (find_src_set_src): Likewise.
8135         (dump_var): Likewise.
8136         (set_slot_part): Likewise.
8137         (clobber_slot_part): Likewise.
8138         (delete_slot_part): Likewise.
8139         (vt_expand_var_loc_chain): Likewise.
8140         (emit_note_insn_var_location): Likewise.
8141         (vt_finalize): Likewise.
8142
8143 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8144
8145         * dse.c (store_info_t): Remove typedef.
8146         (group_info_t): Likewise.
8147         (const_group_info_t): Likewise.
8148         (deferred_change_t): Likewise.
8149         (get_group_info): Adjust.
8150         (free_store_info): Likewise.
8151         (canon_address): Likewise.
8152         (clear_rhs_from_active_local_stores): Likewise.
8153         (record_store): Likewise.
8154         (replace_read): Likewise.
8155         (check_mem_read_rtx): Likewise.
8156         (scan_insn): Likewise.
8157         (remove_useless_values): Likewise.
8158         (dse_step1): Likewise.
8159         (dse_step2_init): Likewise.
8160         (dse_step2_nospill): Likewise.
8161         (scan_stores_nospill): Likewise.
8162         (scan_reads_nospill): Likewise.
8163         (dse_step3_exit_block_scan): Likewise.
8164         (dse_step3): Likewise.
8165         (dse_step5_nospill): Likewise.
8166         (dse_step6): Likewise.
8167
8168 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8169
8170         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8171         (alias_set_entry): Remove typedef.
8172         (alias_set_subset_of): Adjust.
8173         (alias_sets_conflict_p): Likewise.
8174         (init_alias_set_entry): Likewise.
8175         (get_alias_set): Likewise.
8176         (new_alias_set): Likewise.
8177         (record_alias_subset): Likewise.
8178
8179 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
8180
8181         * doc/install.texi (Downloading the source): Mark up
8182         contrib/download_prerequisites properly and drop leading "./".
8183
8184 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8185
8186         * config/arc/arc.h: Remove define of STRUCT_VALUE.
8187         * config/lm32/lm32.h: Likewise.
8188         * config/mep/mep.h: Likewise.
8189         * config/visium/visium.h: Likewise.
8190         * system.h: Poison STRUCT_VALUE macro.
8191
8192 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
8193
8194         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8195         CONSTANT_P operands.
8196
8197 2015-09-11  David S. Miller  <davem@davemloft.net>
8198
8199         * config/sparc/constraints.md: Make "U" constraint a real register
8200         constraint.
8201         * config/sparc/sparc.c (TARGET_LRA_P): Define.
8202         (D_MODES, DF_MODES): Add missing cast.
8203         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8204         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8205         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8206         cost to 8.
8207         * config/sparc/sparc.h (PROMOTE_MODE): Define.
8208         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8209         provide these insn when flag_pic.
8210
8211 2015-09-11  Jeff Law  <law@redhat.com>
8212
8213         PR tree-optimization/47679
8214         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8215         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8216         member with m_.  Update inline member functions as necessary.  Add
8217         toplevel comment.
8218         * tree-ssa-scopedtables.c: Update const_and_copies's member
8219         functions to use m_ prefix to access the stack.
8220
8221 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
8222
8223         * graphite-optimize-isl.c (disable_tiling): Remove.
8224         (get_schedule_for_band): Do not use disable_tiling.
8225         (get_prevector_map): Delete function.
8226         (enable_polly_vector): Remove.
8227         (get_schedule_for_band_list): Remove dead code.
8228
8229 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
8230
8231         * graphite-optimize-isl.c (get_tile_map): Refactor.
8232         (get_schedule_for_band): Same.
8233         (getScheduleForBand): Same.
8234         (get_prevector_map): Same.
8235         (get_schedule_for_band_list): Same.
8236         (get_schedule_map): Same.
8237         (get_single_map): Same.
8238         (apply_schedule_map_to_scop): Same.
8239         (optimize_isl): Same.
8240
8241 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8242
8243         PR target/63304
8244         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8245         (movtf): Delete.
8246         * config/aarch64/iterators.md (GPF_TF_F16): New.
8247         (GPF_F16): Delete.
8248
8249 2015-09-10  Nathan Sidwell  <nathan@acm.org>
8250
8251         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8252         (nvptx_reorg): Adjust comments.
8253
8254 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
8255
8256         PR bootstrap/67363
8257         * configure.ac: Check if setenv and unsetenv are declared.
8258         * configure: Rebuild.
8259         * config.in: Rebuild.
8260         * system.h: Declare setenv and unsetenv if not declared.
8261
8262 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8263
8264         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8265         commentary to simplify permute mask adjustment equation.
8266         (special_handling_values): Add SH_VPERM.
8267         (const_load_sequence_p): New function.
8268         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8269         the mask loaded from the constant pool.
8270         (adjust_vperm): New function.
8271         (handle_special_swappables): Call adjust_vperm.
8272         (dump_swap_insn_table): Handle SH_VPERM.
8273
8274 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8275
8276         * shrink-wrap.c (requires_stack_frame_p): Remove static.
8277         * shrink-wrap.h (requires_stack_frame_p): Put back.
8278
8279 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8280
8281         * reload1.c (elimination_costs_in_insn): Locally turn
8282         -Wmaybe-uninitialized into a warning.
8283
8284 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
8285
8286         * shrink-wrap.c (requires_stack_frame_p): Make static.
8287         (prepare_shrink_wrap): Likewise.
8288         (dup_block_and_redirect): Likewise.
8289         * shrink-wrap.h: Remove declarations of those functions.
8290
8291 2015-09-10  Mark Wielaard  <mjw@redhat.com>
8292
8293         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8294
8295 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
8296
8297         PR target/67506
8298         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8299         missing simplify_gen_subreg.
8300
8301 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8302
8303         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8304         the vector element is bigger than 64 bit.
8305
8306 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8307
8308         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8309         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8310
8311 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8312
8313         * config/s390/s390.c: Add V1TImode to constant pool modes.
8314
8315 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8316
8317         PR target/67439
8318         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8319         predicate.  Set predicable_short_it attr to "no".
8320
8321 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
8322
8323         PR rtl-optimization/67421
8324         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8325         left wide shift tranformation.
8326
8327 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
8328
8329         * common/config/arc/arc-common.c: Remove references to A5.
8330         * config/arc/arc-opts.h: Likewise.
8331         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8332         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8333         * config/arc/t-arc-newlib: Likewise.
8334
8335 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
8336
8337         * config/arc/arc.md (length): Fix attribute length for conditional
8338         executed instructions with long immediate.
8339
8340 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8341
8342         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8343         type for second alternative.
8344
8345 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
8346
8347         * doc/invoke.texi (Downloading GCC): Mention
8348         contrib/download_prerequisites script.
8349
8350 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
8351
8352         PR c++/67523
8353         * gimplify.c (gimplify_omp_for): If inner stmt is not found
8354         for combined loop, assert seen_error () and return GS_ERROR.
8355
8356         PR middle-end/67521
8357         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8358         if decl is already in outer->variables.
8359
8360         PR middle-end/67517
8361         * gimplify.c (gimplify_scan_omp_clauses): Instead of
8362         asserting that decl is not specified in octx->variables,
8363         break out of the loop if it is.
8364
8365         PR c++/67514
8366         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8367         iterator is not explicitly determined, but is defined inside
8368         of the combined workshare region, handle it like if it has
8369         DECL_EXPR in OMP_FOR_PRE_BODY.
8370
8371 2015-09-09  Nathan Sidwell  <nathan@acm.org>
8372
8373         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8374         (*cmp<mode>): Add assembler spacing.
8375         (setcc_int<mode>, set_cc_float<mode>): Likewise.
8376         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8377         level.
8378         (write_func_decl_from_insn): Refactor argument loops & comma emission.
8379         (nvptx_expand_call): Likewise.
8380         (nvptx_output_call_insn): Likewise.
8381         (nvptx_reorg_subreg): Add spacing.
8382
8383 2015-09-09  Marek Polacek  <polacek@redhat.com>
8384
8385         PR middle-end/67512
8386         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8387         for comparisons.
8388
8389 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
8390
8391         PR c++/53184
8392         * doc/invoke.texi ([Wsubobject-linkage]): Document.
8393
8394 2015-09-09  Tom de Vries  <tom@codesourcery.com>
8395
8396         * params-list.h: Add missing copyright notice.
8397
8398 2015-09-09  Nathan Sidwell  <nathan@acm.org>
8399
8400         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8401         sel_truesi, not andsi.
8402
8403 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8404
8405         * config/arm/arm.md (*subsi3_compare0): Rename to...
8406         (subsi3_compare0): ... This.
8407         (modsi3): New define_expand.
8408         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8409         when operand is power of 2.
8410
8411 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8412
8413         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8414         (*neg<mode>2_compare0): Rename to...
8415         (neg<mode>2_compare0): ... This.
8416         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8417         Move check for speed inside the if-then-elses.  Reflect
8418         CSNEG sequence in MOD by power of 2 case.
8419
8420 2015-09-09  Alan Modra  <amodra@gmail.com>
8421
8422         PR target/67378
8423         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8424         reload replacement for PRE_MODIFY address reg.
8425
8426 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
8427
8428         PR tree-optimization/53852
8429         * config.in: Regenerate.
8430         * configure: Regenerate.
8431         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8432         * graphite-optimize-isl.c (optimize_isl): Stop computation when
8433         PARAM_MAX_ISL_OPERATIONS is reached.
8434         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8435         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8436         result equal to isl_stat_ok as the status now can be isl_error_quota.
8437         (subtract_commutative_associative_deps): Same.
8438         (compute_deps): Same.
8439
8440 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
8441             Sebastian Pop  <s.pop@samsung.com>
8442
8443         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8444         Return the parameter if it was saved in corresponding
8445         parameter_rename_map of the region.
8446         (copy_def): Copy def from sese region to the newly created region.
8447         (copy_internal_parameters): Copy all the internal parameters defined
8448         within a region to the newly created region.
8449         (graphite_regenerate_ast_isl): Copy parameters to the new region before
8450         translating isl to gimple.
8451         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8452         the loop-nest does not have any data-references.
8453         (build_graphite_scops): Create a scop only when there is at least one
8454         loop inside it.
8455         (contains_only_close_phi_nodes): Deleted.
8456         (print_graphite_scop_statistics): Deleted
8457         (print_graphite_statistics): Deleted
8458         (limit_scops): Deleted.
8459         (build_scops): Removed call to limit_scops.
8460         * sese.c (new_sese): Construct.
8461         (free_sese): Destruct.
8462         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8463         added.
8464         (set_rename): Pass sese region so that parameters inside the region can
8465         be added to its parameter_rename_map.
8466         (rename_uses): Pass sese region.
8467         (graphite_copy_stmts_from_block): Do not copy parameters that have been
8468         generated in the header of the scop. For each SSA_NAME in the
8469         parameter_rename_map rename its usage.
8470         (invariant_in_sese_p_rec): Return false if tree t is defined outside
8471         sese region.
8472         (scalar_evolution_in_region): If the tree t is invariant just return t.
8473         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8474         struct sese to keep track of all the parameters which need renaming.
8475         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8476         any data-refs.
8477         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8478
8479 2015-09-08  Tom de Vries  <tom@codesourcery.com>
8480
8481         * Makefile.in (generated_files): Add params.list.
8482         (params.list, s-params.list): Add rule.
8483         * params.h (enum compiler_param): Include params-list.h.  Move define
8484         DEFPARAM, include params.def and undef DEFPARAM ...
8485         * params-list.h: ... here.  New file.
8486
8487 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
8488
8489         * pretty-print.h (printer_fn): Fix typo in comment.
8490
8491 2015-09-07  Jeff Law  <law@redhat.com>
8492
8493         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8494
8495 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8496
8497         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8498         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8499         (arm_neon_fp16_hw): New.
8500
8501 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8502
8503         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8504         UNITS_PER_WORD >= 4.
8505
8506 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8507
8508         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8509         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8510         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8511         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8512         (aarch64_float_extend_lo_v2df): Rename to...
8513         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8514
8515         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8516         (float_extend_lo): Add v4sf.
8517
8518         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8519         * config/aarch64/iterators.md (VQ_HSF): New iterator.
8520         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8521         (Vwide): New mode_attr.
8522
8523 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8524
8525         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8526         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8527         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8528         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8529         V4HF and V8HF variants to iterator.
8530
8531         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8532
8533         * config/aarch64/iterators.md (VDQF_F16): New.
8534         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8535
8536 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8537
8538         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8539         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8540         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8541         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8542         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8543         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8544         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8545         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8546         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8547         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8548         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8549         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8550         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8551         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8552         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8553         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8554         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8555         vld1q_dup_f16): New.
8556
8557 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8558
8559         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8560         Reparameterize to...
8561         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8562         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8563         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8564
8565         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8566         v8hf variant.
8567         (float_truncate_lo_): Use BUILTIN_VDF iterator.
8568
8569         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8570
8571         * config/aarch64/iterators.md (VDF, Vdtype): New.
8572         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8573
8574 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8575
8576         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8577         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8578         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8579         Add __builtin_aarch64_simd_hf.
8580         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8581         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8582         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8583         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8584         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8585         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8586         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8587         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8588         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8589
8590         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8591         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8592         (VDC, Vdbl): Add V4HF.
8593
8594 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8595
8596         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8597         V4HFmode and V8HFmode.
8598         (aarch64_split_simd_move): Add case for V8HFmode.
8599         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8600         (aarch64_simd_builtin_std_type): Handle HFmode.
8601         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8602
8603         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8604         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8605         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8606
8607         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8608         Float16x8_t.
8609
8610         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8611         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8612         New typedefs.
8613         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8614         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8615         vst1q_lane_f16): New.
8616         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8617         (VALLDI_F16, VALL_F16): New.
8618         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8619         Add cases for V4HF and V8HF.
8620         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8621
8622 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8623
8624         * config/arm/arm-builtins.c (VAR11, VAR12): New.
8625         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8626         vld4_dup): Add v4hf variant.
8627         (vget_high, vget_low): Add v8hf variant.
8628         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8629         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8630         v4hf and v8hf variants.
8631
8632         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8633         (VDX): Add V4HF.
8634         (V_DOUBLE): Add case for V4HF.
8635         (VQX): Add V8HF.
8636         (V_HALF): Add case for V8HF.
8637         (VDQX): Add V4HF, V8HF.
8638         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8639         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8640
8641         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8642         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8643         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8644         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8645         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8646         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8647         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8648         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8649         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8650
8651         (neon_vcreate, neon_vreinterpretv8qi<mode>,
8652         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8653         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8654         Change VDX to VD_RE.
8655
8656         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8657         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8658         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8659
8660         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8661         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8662         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8663         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8664         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8665         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8666         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8667         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8668         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8669
8670 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8671
8672         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8673         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8674         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8675         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8676         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8677         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8678         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8679         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8680         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8681         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8682         New.
8683
8684 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8685
8686         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8687
8688         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8689
8690         * config/arm/arm-builtins.c (v8hf_UP): New.
8691         (arm_init_simd_builtin_types): Initialise Float16x8_t.
8692
8693         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8694
8695         * config/arm/arm_neon.h (float16x8_t): New typedef.
8696
8697 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8698
8699         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8700         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8701         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8702         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8703         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8704         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8705         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8706         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8707         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8708         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8709
8710 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
8711
8712         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8713         non-alphanumeric characters in the symbol name.
8714
8715 2015-09-07  Marek Polacek  <polacek@redhat.com>
8716
8717         PR inline-asm/67448
8718         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8719         a memory input.
8720
8721 2015-09-07  Marek Polacek  <polacek@redhat.com>
8722
8723         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8724
8725 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
8726
8727         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8728         not warn.
8729
8730 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
8731
8732         PR middle-end/67452
8733         * tree-ssa-live.c: Include cfgloop.h.
8734         (remove_unused_locals): Clear loop->simduid if simduid is about
8735         to be removed from cfun->local_decls.
8736
8737 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8738
8739         PR target/65210
8740         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8741         attribute as well.
8742
8743 2015-09-04  Tom de Vries  <tom@codesourcery.com>
8744
8745         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8746
8747 2015-09-04  Jeff Law  <law@redhat.com>
8748
8749         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8750         unnecessary constructor.  It's now trivial and implemented inside...
8751         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8752         constructor.  Add comments to various methods.  Remove unused
8753         private fields.
8754         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8755         * tree-vrp.c (identify_jump_threads): Likewise.
8756         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8757         indentation issues.
8758         (thread_across_edge): Similarly.
8759         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8760         arguments in constructor call.
8761
8762 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
8763
8764         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8765         temp path contains a '-'.
8766
8767 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8768             Petr Murzin  <petr.murzin@intel.com>
8769             Kirill Yukhin  <kirill.yukhin@intel.com>
8770
8771         * config/i386/i386-builtin-types.def
8772         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8773         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8774         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8775         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8776         * config/i386/i386.c
8777         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8778         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8779         IX86_BUILTIN_SCATTERALTDIV16SI.
8780         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8781         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8782         __builtin_ia32_scatteraltdiv8si.
8783         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8784         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8785         IX86_BUILTIN_SCATTERALTDIV16SI.
8786         (ix86_vectorize_builtin_scatter): New.
8787         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8788         ix86_vectorize_builtin_scatter.
8789
8790 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8791             Petr Murzin  <petr.murzin@intel.com>
8792             Kirill Yukhin  <kirill.yukhin@intel.com>
8793
8794         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8795         * doc/tm.texi: Regenerate.
8796         * target.def: Add scatter builtin.
8797         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8798         for loads/stores in case of gather/scatter accordingly.
8799         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8800         STMT_VINFO_GATHER_P(S).
8801         (vect_check_gather): Rename to ...
8802         (vect_check_gather_scatter): this.
8803         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8804         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8805         (vect_check_gather_scatter): Use it instead of vect_check_gather.
8806         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8807         variable and new checkings for it accordingly.
8808         * tree-vect-stmts.c
8809         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8810         STMT_VINFO_GATHER_P(S).
8811         (vect_check_gather_scatter): Use it instead of vect_check_gather.
8812         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8813
8814 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8815
8816         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8817         define_insn.
8818         (mulv16qi3): New define_expand.
8819
8820 2015-09-03  Martin Sebor  <msebor@redhat.com>
8821
8822         PR c/66516
8823         * doc/extend.texi (Other Builtins): Document when the address
8824         of a built-in function can be taken.
8825
8826 2015-09-03  Richard Biener  <rguenther@suse.de>
8827
8828         * dwarf2out.c (flush_limbo_die_list): Split out from ...
8829         (dwarf2out_early_finish): ... here.
8830         (dwarf2out_finish): Do not call dwarf2out_early_finish but
8831         flush_limbo_die_list.  Assert we have no deferred asm names.
8832
8833 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8834
8835         * optabs.c (expand_binop): Don't create a broadcast vector with a
8836         source element wider than the inner mode.
8837
8838 2015-09-03  Richard Biener  <rguenther@suse.de>
8839
8840         * varasm.c (output_constant): Use fold_convert instead of
8841         wide_int_to_tree.
8842
8843 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8844
8845         PR tree-optimization/65637
8846         * omp-low.c (expand_omp_for_static_chunk): Handle case that
8847         fin_bb has 2 predecessors.
8848
8849 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8850
8851         PR tree-optimization/65637
8852         * omp-low.c (find_phi_with_arg_on_edge): New function.
8853         (expand_omp_for_static_chunk): Fix inner loop phi.
8854
8855 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8856
8857         PR tree-optimization/65637
8858         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8859         that head is NULL.
8860
8861 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8862
8863         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8864
8865 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8866
8867         * doc/invoke.texi (parloops-chunk-size): Add item.
8868         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8869         * tree-parloops.c: Include params.h.
8870         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8871         param parloops-chunk-size is used.
8872
8873 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8874
8875         PR middle-end/67351
8876         * fold-const.c (fold_binary_loc) : Move
8877         Transform (x >> c) << c into x & (-1<<c) or
8878         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8879         types using simplify and match.
8880         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8881         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8882
8883 2015-09-03  Richard Biener  <rguenther@suse.de>
8884
8885         PR ipa/66705
8886         * tree-ssa-structalias.c (ctor_for_analysis): New function.
8887         (create_variable_info_for_1): Use ctor_for_analysis instead
8888         of get_constructor.
8889         (create_variable_info_for): Likewise.
8890
8891 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
8892
8893         PR ipa/67280
8894         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8895         in new callgraph edge.
8896
8897 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
8898
8899         PR target/59810
8900         PR target/63652
8901         PR target/63653
8902         * config/aarch64/aarch64-simd.md
8903         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8904         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8905         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8906         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8907
8908 2015-09-02  Alan Modra  <amodra@gmail.com>
8909
8910         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8911         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8912         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8913
8914 2015-09-02  Alan Modra  <amodra@gmail.com>
8915
8916         PR target/67417
8917         * config/rs6000/predicates.md (current_file_function_operand): Don't
8918         return true for weak symbols.
8919         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8920
8921 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
8922             Andrew Bennett  <andrew.bennett@imgtec.com>
8923
8924         * config/mips/mips-opts.h (mips_cb_setting): New enum.
8925         * config/mips/mips-protos.h: Add definitions for
8926         mips_output_jump and mips_output_equal_conditional_branch
8927         * config/mips/mips.c (MIPS_JR): Change to support the
8928         JIC instruction.
8929         (mips_emit_compare): Add support for the MIPS R6 conditional
8930         compact branches.
8931         (mips_process_sync_loop): Likewise.
8932         (mips_output_order_conditional_branch): Likewise.
8933         (mips16_build_call_stub): Change MIPS_CALL to
8934         mips_output_jump.
8935         (mips_print_operand_punctuation): Update 's' case to only
8936         apply to micromips r2.
8937         (mips_adjust_insn_length): Add support for forbidden slot
8938         hazards.
8939         (mips_avoid_hazard): Likewise.
8940         (mips_reorg_process_insns): Likewise.
8941         (mips_output_jump): New function.
8942         (mips_output_equal_conditional_branch): Likewise.
8943         (mips_output_conditional_branch): Use jrc/bc if compact
8944         branch support is enabled.  Ensure the forbidden slots
8945         between the two branch instructions is filled with a nop.
8946         (mips_option_override): Add support to process the compact
8947         branch option and set the correct defaults.  Prevent
8948         non-explict relocs being using for MIPS R6.
8949         (mips_trampoline_init): Add compact branch support.
8950         (mips_mult_zero_zero_cost): Allow zero initialisation of
8951         accumulators with TARGET_DSP.
8952         * config/mips/mips.h (TARGET_CB_NEVER): New define.
8953         (TARGET_CB_MAYBE): New define.
8954         (TARGET_CB_ALWAYS): New define.
8955         (ISA_HAS_DELAY_SLOTS): New define.
8956         (ISA_HAS_COMPACT_BRANCHES): New define.
8957         (ISA_HAS_JRC): New define.
8958         (MIPS_BRANCH_C): New define.
8959         (MIPS_CALL): Removed.
8960         (MICROMIPS_J): Removed.
8961         * config/mips/mips.md (compact_form): New attr.
8962         (hazard): Add support for forbidden slots.
8963         (define_delay): Add support for compact branches.
8964         (*branch_order<mode>): Likewise.
8965         (*branch_order<mode>_inverted): Likewise.
8966         (*branch_equality<mode>): Likewise.
8967         (*branch_equality<mode>_inverted): Likewise.
8968         (*jump_absolute): Likewise.
8969         (*jump_pic): Likewise.
8970         (indirect_jump): Use mips_output_jump to produce assembly output.
8971         (tablejump_<mode>"): Likewise.
8972         (*<optab>"): Likewise.
8973         (<optab>_internal): Likewise.
8974         (sibcall_internal): Likewise.
8975         (sibcall_value_internal): Likewise.
8976         (sibcall_value_multiple_internal): Likewise.
8977         (call_internal): Likewise.
8978         (call_split): Likewise.
8979         (call_internal_direct): Likewise.
8980         (call_direct_split): Likewise.
8981         (call_value_internal): Likewise.
8982         (call_value_split): Likewise.
8983         (call_value_internal_direct): Likewise.
8984         (call_value_direct_split): Likewise.
8985         (call_value_multiple_internal): Likewise.
8986         (call_value_multiple_split): Likewise.
8987         (mips_get_fcsr_mips16_<mode>): Likewise.
8988         (mips_set_fcsr_mips16_<mode>): Likewise.
8989         (tls_get_tp_mips16_<mode>): Likewise.
8990         * config/mips/mips.opt: Add -mcompact-branches option.
8991         * config/mips/predicates.md (order_operator): Ensure the
8992         conditional compact branches are only used if the ISA them.
8993         * doc/invoke.texi: Document -mcompact-branches option.
8994
8995 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
8996
8997         PR target/61578
8998         * lra-lives.c (process_bb_lives): Process move pseudos with the
8999         same value for copies and preferences
9000         * lra-constraints.c (match_reload): Create match reload pseudo
9001         with the same value from single dying input pseudo.
9002
9003 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
9004
9005         PR target/67405
9006         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
9007
9008 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
9009
9010         * trans-mem.c: Add contributed-by.
9011         * trans-mem.h: Same.
9012
9013 2015-09-01  Richard Biener  <rguenther@suse.de>
9014
9015         * expr.c (expand_expr_real_1): For expanding TERed defs
9016         set the current location to that of the def if not UNKNOWN.
9017
9018 2015-09-01  David Sherwood  <david.sherwood@arm.com>
9019
9020         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
9021
9022 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9023
9024         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
9025         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
9026         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
9027         Include rtl-iter.h.
9028         (noce_simple_bbs): New function.
9029         (noce_try_move): Bail if basic blocks are not simple.
9030         (noce_try_store_flag): Likewise.
9031         (noce_try_store_flag_constants): Likewise.
9032         (noce_try_addcc): Likewise.
9033         (noce_try_store_flag_mask): Likewise.
9034         (noce_try_cmove): Likewise.
9035         (noce_try_minmax): Likewise.
9036         (noce_try_abs): Likewise.
9037         (noce_try_sign_mask): Likewise.
9038         (noce_try_bitop): Likewise.
9039         (bbs_ok_for_cmove_arith): New function.
9040         (noce_emit_all_but_last): Likewise.
9041         (noce_emit_insn): Likewise.
9042         (noce_emit_bb): Likewise.
9043         (noce_try_cmove_arith): Handle non-simple basic blocks.
9044         (insn_valid_noce_process_p): New function.
9045         (contains_mem_rtx_p): Likewise.
9046         (bb_valid_for_noce_process_p): Likewise.
9047         (noce_process_if_block): Allow non-simple basic blocks
9048         where appropriate.
9049
9050 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
9051
9052         * tree-ssa-dom.c (record_equivalences_from_phis,
9053         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
9054         (lookup_avail_expr): Likewise, and remove comment and unused temp.
9055
9056 2015-09-01  Nick Clifton  <nickc@redhat.com>
9057
9058         * config/msp430/msp430.opt (mcpu): Fix typo.
9059
9060 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9061
9062         * config/aarch64/aarch64.c (aarch64_set_current_function):
9063         Re-layout any vector parameters have non-simd layout.
9064         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
9065         Delete.
9066         (aarch64_simd_expand_args): Delete call to the above.
9067
9068 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
9069
9070         * doc/invoke.texi (asan-stack): Add space before option.
9071
9072 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
9073
9074         * tree.h (zerop): New function.
9075         * tree.c (zerop): Likewise.
9076         (element_precision): Handle expressions.
9077         * match.pd (define_predicates): Add zerop.
9078         (x <= +Inf): Fix comment.
9079         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
9080         * fold-const.c (fold_binary_loc): ... here. Remove.
9081
9082 2015-08-31  Richard Biener  <rguenther@suse.de>
9083
9084         PR middle-end/67381
9085         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
9086
9087 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
9088
9089         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
9090         (CEXPI): New operator list.
9091         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
9092         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
9093         Converted from ...
9094         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
9095
9096 2015-08-31  Tom de Vries  <tom@codesourcery.com>
9097
9098         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
9099         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
9100         parameter.
9101         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
9102         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
9103         (rewrite_into_loop_closed_ssa): ... here.
9104         (replace_uses_in_dominated_bbs): Remove function.
9105         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
9106         rewrite_into_loop_closed_ssa_1.
9107
9108 2015-08-31  Michael Matz  <matz@suse.de>
9109
9110         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
9111         enter entry and exit blocks for reverse post order.
9112
9113 2015-08-31  Richard Biener  <rguenther@suse.de>
9114
9115         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
9116         (lto_location_cache::current_sysp): Likewise.
9117         (output_block::current_sysp): Likewise.
9118         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
9119         (lto_location_cache::apply_location_cache): Properly record
9120         system header locations.
9121         (lto_location_cache::input_location): Input whether a file
9122         is a system header.
9123         * lto-streamer-out.c (lto_output_location): Stream whether a file
9124         is a system header.
9125
9126 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9127
9128         PR bootstrap/67363
9129         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9130
9131 2015-08-31  Tom de Vries  <tom@codesourcery.com>
9132
9133         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9134         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9135         Improve function header comments.
9136
9137 2015-08-30  Michael Collison  <michael.collison@linaro.org>
9138
9139         PR other/67320
9140         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9141         standard names
9142
9143 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9144
9145         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9146         special_handling bitfield.
9147         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9148         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9149         that represents a general xxpermdi.
9150         (insn_is_swappable_p): Add handling for vec_concat of two
9151         doublewords, which maps to a specific xxpermdi.
9152         (adjust_xxpermdi): New function.
9153         (adjust_concat): Likewise.
9154         (handle_special_swappables): Call adjust_xxpermdi and
9155         adjust_concat.
9156         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9157
9158 2015-08-30  Rich Felker <dalias@libc.org>
9159
9160         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9161         case instead of sh[123456ble]-*-*.
9162
9163 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
9164
9165         * ira.c (print_unform_and_important_classes,
9166         print_translated_classes): Remove reg_class_names static array.
9167         (print_unform_and_important_classes): Rename to ...
9168         (print_uniform_and_important_classes): ... this.
9169         (ira_debug_allocno_classes): Update accordingly.
9170
9171 2015-08-29  Tom de Vries  <tom@codesourcery.com>
9172
9173         PR tree-optimization/46193
9174         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9175         clause.
9176
9177 2015-08-28  Jeff Law  <law@redhat.com>
9178
9179         PR lto/66752
9180         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9181         unable to find X NE 0 in the tables, return X as the simplified
9182         condition.
9183         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9184         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
9185         to VISISTED_BBS.
9186         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9187         after removing the control flow statement and unnecessary edges.
9188
9189 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
9190
9191         Revert:
9192         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
9193
9194         PR tree-optimization/67283
9195         * tree-sra.c (type_consists_of_records_p): Rename to...
9196         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9197
9198         (completely_scalarize_record): Rename to...
9199         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9200         code to:
9201         (scalarize_elem): New.
9202
9203 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
9204
9205         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9206         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9207         (aarch64_symbol_type): Likewise.
9208         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9209         Likewise.
9210         (aarch64_expand_mov_immediate): Likewise.
9211         (aarch64_print_operand): Likewise.
9212         (aarch64_classify_tls_symbol): Likewise.
9213
9214 2015-08-28  Richard Biener  <rguenther@suse.de>
9215
9216         * cgraphunit.c (symbol_table::compile): Move early debug generation
9217         and finish...
9218         (symbol_table::finalize_compilation_unit): ... back here and
9219         add a !seen_error () guard.
9220
9221 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
9222
9223         * toplev.c (process_options): Do not use flag_loop_block,
9224         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
9225         flag_loop_optimize_isl.
9226
9227 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
9228
9229         * Makefile.in (OBJS): Remove graphite-blocking.o and
9230         graphite-interchange.o.
9231         * common.opt (floop-strip-mine, floop-interchange, floop-block):
9232         Alias of floop-nest-optimize.
9233         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9234         Document as alias of -floop-nest-optimize.
9235         * graphite-blocking.c: Remove.
9236         * graphite-interchange.c: Remove.
9237         * graphite-optimize-isl.c: Include dumpfile.h.
9238         (getScheduleForBand): Add dump for tiled loops.  Use
9239         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9240         * graphite-poly.c (scop_max_loop_depth): Remove.
9241         (print_scattering_function_1): Remove.
9242         (print_scattering_function): Remove.
9243         (print_scattering_functions): Remove.
9244         (debug_scattering_function): Remove.
9245         (debug_scattering_functions): Remove.
9246         (apply_poly_transforms): Remove use of flag_loop_block,
9247         flag_loop_strip_mine, and flag_loop_interchange.
9248         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9249         PBB_ORIGINAL.
9250         (print_pdr_access_layout): Remove.
9251         (print_pdr): Print ISL representation.
9252         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9253         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9254         (free_scop): Same.
9255         (openscop_print_pbb_domain): Remove.
9256         (print_pbb): Remove call to print_scattering_function.
9257         (openscop_print_scop_context): Remove.
9258         (print_scop_context): Do not print matrices anymore.
9259         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9260         SCOP_TRANSFORMED_SCHEDULE.
9261         (print_isl_set): Add printing of a new line.
9262         (print_isl_map): Same.
9263         (print_isl_aff): Same.
9264         (print_isl_constraint): Same.
9265         (loop_to_lst): Remove.
9266         (scop_to_lst): Remove.
9267         (lst_indent_to): Remove.
9268         (print_lst): Remove.
9269         (debug_lst): Remove.
9270         (dot_lst_1): Remove.
9271         (dot_lst): Remove.
9272         (reverse_loop_at_level): Remove.
9273         (reverse_loop_for_pbbs): Remove.
9274         * graphite-poly.h (pdr_dim_iter_domain): Remove.
9275         (pdr_nb_params): Remove.
9276         (pdr_alias_set_dim): Remove.
9277         (pdr_subscript_dim): Remove.
9278         (pdr_iterator_dim): Remove.
9279         (pdr_parameter_dim): Remove.
9280         (same_pdr_p): Remove.
9281         (struct poly_scattering): Remove.
9282         (struct poly_bb): Remove _original, _transformed, _saved.
9283         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9284         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9285         (PBB_NB_LOCAL_VARIABLES): Remove.
9286         (PBB_NB_SCATTERING_TRANSFORM): Remove.
9287         (schedule_to_scattering): Remove.
9288         (number_of_write_pdrs): Remove.
9289         (pbb_dim_iter_domain): Remove.
9290         (pbb_nb_params): Remove.
9291         (pbb_nb_scattering_orig): Remove.
9292         (pbb_nb_scattering_transform): Remove.
9293         (pbb_nb_dynamic_scattering_transform): Remove.
9294         (pbb_nb_local_vars): Remove.
9295         (pbb_iterator_dim): Remove.
9296         (pbb_parameter_dim): Remove.
9297         (psco_scattering_dim): Remove.
9298         (psct_scattering_dim): Remove.
9299         (psct_local_var_dim): Remove.
9300         (psco_iterator_dim): Remove.
9301         (psct_iterator_dim): Remove.
9302         (psco_parameter_dim): Remove.
9303         (psct_parameter_dim): Remove.
9304         (psct_dynamic_dim): Remove.
9305         (psct_static_dim): Remove.
9306         (psct_add_local_variable): Remove.
9307         (new_lst_loop): Remove.
9308         (new_lst_stmt): Remove.
9309         (free_lst): Remove.
9310         (copy_lst): Remove.
9311         (lst_add_loop_under_loop): Remove.
9312         (lst_depth): Remove.
9313         (lst_dewey_number): Remove.
9314         (lst_dewey_number_at_depth): Remove.
9315         (lst_pred): Remove.
9316         (lst_succ): Remove.
9317         (lst_find_pbb): Remove.
9318         (find_lst_loop): Remove.
9319         (lst_find_first_pbb): Remove.
9320         (lst_empty_p): Remove.
9321         (lst_find_last_pbb): Remove.
9322         (lst_contains_p): Remove.
9323         (lst_contains_pbb): Remove.
9324         (lst_create_nest): Remove.
9325         (lst_remove_from_sequence): Remove.
9326         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9327         (lst_niter_for_loop): Remove.
9328         (pbb_update_scattering): Remove.
9329         (lst_update_scattering_under): Remove.
9330         (lst_update_scattering): Remove.
9331         (lst_insert_in_sequence): Remove.
9332         (lst_replace): Remove.
9333         (lst_substitute_3): Remove.
9334         (lst_distribute_lst): Remove.
9335         (lst_remove_all_before_including_pbb): Remove.
9336         (lst_remove_all_before_excluding_pbb): Remove.
9337         (struct scop): Remove original_schedule, transformed_schedule, and
9338         saved_schedule.
9339         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9340         (SCOP_SAVED_SCHEDULE): Remove.
9341         (poly_scattering_new): Remove.
9342         (poly_scattering_free): Remove.
9343         (poly_scattering_copy): Remove.
9344         (store_scattering_pbb): Remove.
9345         (store_lst_schedule): Remove.
9346         (restore_lst_schedule): Remove.
9347         (store_scattering): Remove.
9348         (restore_scattering_pbb): Remove.
9349         (restore_scattering): Remove.
9350         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9351         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
9352         compute the scattering polyhedron dimension from the dimension of
9353         pbb->domain.
9354         (build_scop_scattering): Update call to
9355         build_pbb_scattering_polyhedrons.
9356         (build_poly_scop): Remove call to scop_to_lst.
9357         * graphite.c (graphite_transform_loops): Add call to print_scop.
9358         (gate_graphite_transforms): Remove use of flag_loop_block,
9359         flag_loop_interchange, and flag_loop_strip_mine.
9360
9361 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
9362
9363         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9364         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9365         -floop-nest-optimize.
9366         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9367         (generate_luj_sepclass): Remove.
9368         (generate_luj_options): Remove.
9369         (set_options): Remove opt_luj.
9370         (scop_to_isl_ast): Remove opt_luj.
9371         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9372         flag_loop_unroll_jam.
9373         (getPrevectorMap_full): Remove.
9374         (getScheduleForBandList): Remove map_sepcl.
9375         (getScheduleMap): Same.
9376         (apply_schedule_map_to_scop): Remove sepcl.
9377         (optimize_isl): Same.
9378         * graphite-poly.c (apply_poly_transforms): Remove check for
9379         flag_loop_unroll_jam.
9380         (new_poly_bb): Remove map_sepclass.
9381         * graphite-poly.h (struct poly_bb): Same.
9382         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9383         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9384         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9385         * toplev.c (process_options): Remove flag_loop_unroll_jam.
9386
9387 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
9388
9389         PR target/67317
9390         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9391         (addqi3_cc): Ditto.
9392         (UNSPEC_ADD_CARRY): Remove.
9393         (addqi3_cconly_overflow): New expander.
9394         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9395         Adjust for changed add<mode>3_carry.
9396         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9397         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9398         (<plusminus_insn><mode>3_carry): Remove expander.
9399         (*<plusminus_insn><mode>3_carry): Split insn pattern to
9400         add<mode>3_carry and sub<mode>3_carry.
9401         (plusminus_carry_mnemonic): Remove code attribute.
9402         (add<mode>3_carry): Canonicalize insn pattern.
9403         (*addsi3_carry_zext): Ditto.
9404         (sub<mode>3_carry): Ditto.
9405         (*subsi3_carry_zext): Ditto.
9406         (adcx<mode>3): Remove insn pattern.
9407         (addcarry<mode>): New insn pattern.
9408         (subborrow<mode>): Ditto.
9409         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9410         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9411         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9412         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9413         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9414         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9415         Rewrite expander to not clobber carry flag chains.
9416
9417 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
9418
9419         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9420         instead of a rotate.
9421
9422 2015-08-27  Marek Polacek  <polacek@redhat.com>
9423
9424         PR middle-end/67005
9425         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9426         an entry into an irreducible region.
9427
9428 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9429
9430         * configure: Regenerate.
9431
9432 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
9433
9434         PR tree-optimization/67283
9435         * tree-sra.c (type_consists_of_records_p): Rename to...
9436         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9437
9438         (completely_scalarize_record): Rename to...
9439         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9440         (scalarize_elem): New.
9441
9442 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
9443
9444         * tree-sra.c (completely_scalarize_var): Rename to...
9445         (create_total_scalarization_access): ... Here. Drop call to
9446         completely_scalarize_record.
9447
9448         (analyze_all_variable_accesses): Replace completely_scalarize_var
9449         with create_total_scalarization_access and completely_scalarize_record.
9450
9451 2015-08-27  Alan Modra  <amodra@gmail.com>
9452
9453         PR target/67356
9454         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9455         for operand 1.
9456
9457 2015-08-27  Richard Biener  <rguenther@suse.de>
9458
9459         * passes.c (rest_of_decl_compilation): Guard early_global_decl
9460         call with !seen_error ().
9461         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9462         early debug generation and finish...
9463         (symbol_table::compile): ... here to put it after a !seen_error ()
9464         guard.
9465
9466 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9467
9468         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9469         Solaris 12+.
9470
9471 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9472             Andre Vieira  <andre.simoesdiasvieira@arm.com>
9473
9474         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9475         (*cb<optab><mode>1): Likewise.
9476         (*tb<optab><mode>1): Likewise.
9477         (*cb<optab><mode>1): Likewise.
9478         * config/aarch64/iterators.md (inv_cb): New code attribute.
9479         (inv_tb): Likewise.
9480         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9481         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9482
9483 2015-08-27  Richard Biener  <rguenther@suse.de>
9484
9485         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9486
9487 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9488
9489         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9490         trap to fix ICE.
9491
9492 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
9493
9494         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9495         Add declaration.
9496
9497         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9498         comment.
9499         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9500         floating point in VSX registers.
9501         (rs6000_output_move_128bit): Always print out the set insn if we
9502         can't generate an appropriate 128-bit move.
9503         (rs6000_generate_compare): Add support for IEEE 128-bit floating
9504         point in VSX registers comparisons.
9505         (rs6000_expand_float128_convert): Likewise.
9506
9507         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9508         predicate for only GPR hard registers.
9509
9510         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9511         modes to iterators. Add new iterators for moving 128-bit values in
9512         scalar FPR registers and VSX registers.
9513         (FMOVE128): Likewise.
9514         (FMOVE128_FPR): Likewise.
9515         (FMOVE128_GPR): Likewise.
9516         (FMOVE128_VSX): Likewise.
9517         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9518         in VSX registers.
9519         (IFKF): Likewise.
9520         (IBM128): Likewise.
9521         (TFIFKF): Likewise.
9522         (RELOAD): Add IEEE 128-bit floating point modes.
9523         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9524         floating point in VSX registers modes.
9525         (signbit<mode>2, IBM128 iterator): Likewise.
9526         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9527         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9528         (negtf2): Likewise.
9529         (neg<mode>2, TFIFKF iterator): Likewise.
9530         (negtf2_internal): Likewise.
9531         (abstf2): Likewise.
9532         (abs<mode>2, TFIFKF iterator): Likewise.
9533         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9534         VSX insn support for negate, absolute value, and negative absolute
9535         value.
9536         (ieee_128bit_vsx_neg<mode>2): Likewise.
9537         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9538         (ieee_128bit_vsx_abs<mode>2): Likewise.
9539         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9540         (ieee_128bit_vsx_nabs<mode>2): Likewise.
9541         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9542         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9543         floating point in VSX registers.
9544         (unpack<mode>_dm): Likewise.
9545         (unpack<mode>_nodm): Likewise.
9546         (pack<mode>): Likewise.
9547         (unpackv1ti): Likewise.
9548         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9549         (packv1ti): Likewise.
9550         (pack<mode>, FMOVE128_VSX iterator): Likewise.
9551         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9552         registers.
9553         (extenddftf2_internal): Likewise.
9554         (trunctfdf2): Likewise.
9555         (trunctfdf2_internal2): Likewise.
9556         (fix_trunc_helper): Likewise.
9557         (fix_trunctfdi2"): Likewise.
9558         (floatditf2): Likewise.
9559         (floatuns<mode>tf2): Likewise.
9560         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9561         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9562         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9563         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9564         (float<SDI:mode><IFKF:mode>2): Likewise.
9565         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9566
9567 2015-08-26  Renlin Li  <renlin.li@arm.com>
9568
9569         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9570
9571 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9572             Jiong Wang  <jiong.wang@arm.com>
9573
9574         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9575         (tlsie_tiny_<mode>): New define_insn.
9576         (tlsie_tiny_sidi): Likewise.
9577         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9578         SYMBOL_TINY_TLSIE.
9579         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9580         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9581         SYMBOL_TINY_TLSIE.
9582         (aarch64_expand_mov_immediate): Likewise.
9583         (aarch64_print_operand): Likewise.
9584         (arch64_classify_tls_symbol): Likewise.
9585
9586 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9587
9588         * config/arm/arm-arches.def: Replace single value flags with
9589         an initializer built from ARM_FSET_MAKE_CPU1.
9590         * config/arm/arm-cores.def: Likewise.
9591         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9592         derivation from the ARM_CORE macro definition, use the given value
9593         instead.
9594         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9595         ARM_ARCH macro definition, use the given value instead.
9596
9597 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9598
9599         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9600         feature set.
9601         (struct builtin_description): Replace field mask with field
9602         features.
9603         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9604         (IWMMXT2_BUILTIN): Likewise.
9605         (IWMMXT2_BUILTIN2): Likewise.
9606         (FP_BUILTIN): Likewise.
9607         (CRC32_BUILTIN): Likewise.
9608         (CRYPTO_BUILTIN): Likewise.
9609         (iwmmx_mbuiltin): Likewise.
9610         (iwmmx2_mbuiltin): Likewise.
9611         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9612         struct builtin_description.
9613
9614 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9615
9616         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9617         (struct builtin_description): Change type of mask to unsigned
9618         long.
9619         * config/arm/arm-protos.h (insn_flags): Declare as type
9620         arm_feature_set.
9621         (tune_flags): Likewise.
9622         * config/arm/arm.c (feature_count): New.
9623         (insn_flags): Define as type arm_feature_set.
9624         (tune_flags): Likewise.
9625         (struct processors): Define field flags as type arm_feature_set.
9626         (all_cores): Update for change to struct processors.
9627         (all_architectures): Likewise.
9628         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9629         macros.
9630         (arm_option_override_internal): Likewise.
9631         (arm_option_override): Likewise.
9632
9633 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9634             Jiong Wang  <jiong.wang@arm.com>
9635
9636         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9637         tls size for tiny, small, large memory model.
9638         (aarch64_load_symref_appropriately): Support new symbol types.
9639         (aarch64_expand_mov_immediate): Likewise.
9640         (aarch64_print_operand): Likewise.
9641         (aarch64_classify_tls_symbol): Likewise.
9642         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9643         (aarch64_symbol_type): Likewise.
9644         * config/aarch64/aarch64.md (tlsle): Deleted.
9645         (tlsle12_<mode>): New define_insn.
9646         (tlsle24_<mode>): Likewise.
9647         (tlsle32_<mode>): Likewise.
9648         (tlsle48_<mode>): Likewise.
9649         * doc/sourcebuild.texi (AArch64-specific attributes): Document
9650         "aarch64_tlsle32".
9651
9652 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9653
9654         * config/arm/arm-protos.h (FL_NONE): New.
9655         (FL_ANY): New.
9656         (arm_feature_set): New.
9657         (ARM_FSET_MAKE): New.
9658         (ARM_FSET_MAKE_CPU1): New.
9659         (ARM_FSET_MAKE_CPU2): New.
9660         (ARM_FSET_CPU1): New.
9661         (ARM_FSET_CPU2): New.
9662         (ARM_FSET_EMPTY): New.
9663         (ARM_FSET_ANY): New.
9664         (ARM_FSET_HAS_CPU1): New.
9665         (ARM_FSET_HAS_CPU2): New.
9666         (ARM_FSET_HAS_CPU): New.
9667         (ARM_FSET_ADD_CPU1): New.
9668         (ARM_FSET_ADD_CPU2): New.
9669         (ARM_FSET_DEL_CPU1): New.
9670         (ARM_FSET_DEL_CPU2): New.
9671         (ARM_FSET_UNION): New.
9672         (ARM_FSET_INTER): New.
9673         (ARM_FSET_XOR): New.
9674         (ARM_FSET_EXCLUDE): New.
9675         (AFM_FSET_IS_EMPTY): New.
9676         (ARM_FSET_CPU_SUBSET): New.
9677
9678 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
9679
9680         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9681         SYMBOL_TLSLE to SYMBOL_TLSLE24.
9682         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9683         Likewise.
9684         (aarch64_expand_mov_immediate): Likewise.
9685         (aarch64_print_operand): Likewise.
9686         (aarch64_classify_symbol): Likewise.
9687
9688 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
9689
9690         * config/aarch64/aarch64.opt (mtls-size): New entry.
9691         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9692         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9693         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9694
9695 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9696
9697         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9698         ARM_CORE entry.  Fix some white-space.
9699         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9700         ARM_CORE definition.
9701
9702 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9703
9704         * fold-const.c (fold_binary_loc) : Move Optimize
9705         root(x)*root(y) as root(x*y) to match.pd.
9706         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9707         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9708         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9709         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9710         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9711         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9712         (mult (exps:s @0) (exps:s @1)) : New simplifier.
9713         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9714         (rdiv @0 (exps:s @1)) : New simplifier.
9715
9716 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
9717
9718         * gcc.c (driver::finalize): Only assign to extra_specs if
9719         [EXTRA_SPECS].
9720
9721 2015-08-25  Marek Polacek  <polacek@redhat.com>
9722
9723         PR middle-end/67330
9724         * varasm.c (declare_weak): Return after giving an error.
9725
9726 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
9727
9728         * gcc-main.c (main): Add params to driver ctor.
9729         * gcc.c (class env_manager): New.
9730         (env): New global.
9731         (env_manager::init): New.
9732         (env_manager::get): New.
9733         (env_manager::xput): New.
9734         (env_manager::restore): New.
9735         Poison getenv and putenv.
9736         (DEFAULT_TARGET_SYSTEM_ROOT): New.
9737         (target_system_root): Update initialization to use
9738         DEFAULT_TARGET_SYSTEM_ROOT.
9739         (struct spec_list): Add field "default_ptr".
9740         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9741         (init_spec): Likewise.
9742         (set_spec): Clear field "default_ptr".
9743         (read_specs): Free "spec" and "buffer".
9744         (xputenv): Reimplement in terms of env_manager.
9745         (process_command): Replace ::getenv calls with calls to the
9746         env_manager singleton.
9747         (process_brace_body): Free string in three places.
9748         (driver::driver): New.
9749         (driver::~driver): New.
9750         (used_arg): Convert from a function to...
9751         (class used_arg_t): ...this class, and...
9752         (used_arg): ...this new global instance.
9753         (used_arg_t::finalize): New function.
9754         (getenv_spec_function): Add "const" to local "value".  Replace
9755         ::getenv call with call to the env_manager singleton.
9756         (path_prefix_reset): New function.
9757         (driver::finalize): New function.
9758         * gcc.h (driver::driver): New.
9759         (driver::~driver): New.
9760         (driver::finalize): New.
9761
9762 2015-08-25  Nathan Sidwell  <nathan@acm.org>
9763
9764         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9765         target doesn't have one.
9766
9767 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
9768
9769         PR target/67346
9770         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9771
9772 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
9773
9774         PR target/67344
9775         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9776         a define_insn, remove second alternative.
9777
9778 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
9779             Joseph Myers  <joseph@codesourcery.com>
9780
9781         * gcc.c (struct switchstr): Expand comment.
9782
9783 2015-08-25  Nathan Sidwell  <nathan@acm.org>
9784
9785         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9786         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9787
9788 2015-08-25  Richard Biener  <rguenther@suse.de>
9789
9790         PR middle-end/67306
9791         * genmatch.c (expr::gen_transform): Verify the result of
9792         builtin_decl_implicit.
9793         (dt_simplify::gen_1): Likewise.
9794
9795 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9796
9797         * config/arm/constraints.md: Also list Cs and US ARM-specific
9798         constraints as used.
9799
9800 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9801
9802         PR target/66609
9803         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9804         UNSPEC_PCREL.
9805         (nonpic_symbol_mentioned_p): Likewise.
9806         (sh_delegitimize_address): Likewise.
9807         (sh_function_ok_for_sibcall): Take into account weak symbols.
9808         (sh_expand_sym_label2reg): New.
9809         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9810         * config/sh/sh.md (UNSPEC_PCREL): New enum.
9811         (call_pcrel): Use sh_expand_sym_label2reg.
9812         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9813         (symPCREL_label2reg) New expand.
9814
9815 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
9816
9817         * graphite-poly.c: Change type of region from void* to sese.
9818         * graphite-poly.h (struct scop): Changing the type of scop::region
9819         from void* to sese. Change accessor macro accordingly.
9820         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9821
9822 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
9823
9824         * graphite-scop-detection.c (stmt_simple_for_scop_p):
9825         Constrain only on INTEGER_TYPE.
9826
9827 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9828
9829         PR target/67211
9830         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9831         -mefficient-unaligned-vsx on ISA 2.7.
9832
9833         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9834         option to a masked option.
9835
9836         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9837         logic for -mefficient-unaligned-vsx so that it is set via an arch
9838         ISA option, instead of being set if -mtune=power8 is set. Move
9839         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9840         near other default option handling.
9841
9842 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9843
9844         * genflags.c (gen_macro): Delete.
9845         (gen_proto): Don't create GEN.*CALL.* macros.
9846         * gensupport.h (get_file_location): Declare.
9847         * gensupport.c (rtx_locs): New variable.
9848         (read_md_rtx): Record rtx locations.
9849         (get_file_location): New function.
9850         * target-insns.def (call, call_pop, call_value, call_value_pop)
9851         (sibcall, sibcall_value): New patterns.
9852         * gentarget-def.c (parse_argument): New function.
9853         (def_target_insn): Use it.  Handle optional operands.  Raise an
9854         error if an .md pattern has the wrong number of operands for the
9855         pattern name.  Remove the names of unused operands from the prototype.
9856         * builtins.c (expand_builtin_apply): Use targetm functions
9857         instead of HAVE_call_value and GEN_CALL_VALUE.
9858         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
9859         and sibcall_value_pop.
9860         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9861         of GEN_CALL.
9862         * config/alpha/alpha.md (untyped_call): Likewise.
9863         * config/iq2000/iq2000.md (untyped_call): Likewise.
9864         * config/m68k/m68k.md (untyped_call): Likewise.
9865         * config/mips/mips.md (untyped_call): Likewise.
9866         * config/pa/pa.md (untyped_call): Likewise.
9867         * config/rs6000/rs6000.md (untyped_call): Likewise.
9868         * config/sparc/sparc.md (untyped_call): Likewise.
9869         * config/tilegx/tilegx.md (untyped_call): Likewise.
9870         * config/tilepro/tilepro.md (untyped_call): Likewise.
9871         * config/visium/visium.md (untyped_call): Likewise.
9872         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9873         gen_call_value instead of GEN_CALL_VALUE.
9874         * config/arm/arm.md (untyped_call): Likewise.
9875         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9876         GEN_CALL.
9877
9878 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9879
9880         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9881         (have_cbranchcc4): New variable.
9882         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9883         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9884         (if_convert): Initialize have_cbranchcc4.
9885
9886 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9887
9888         * builtins.c (expand_cmpstrn): Rename to...
9889         (expand_cmpstrn_or_cmpmem): ...this.
9890         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9891         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9892         Remove mode argument.
9893         (expand_builtin): Update accordingly.
9894
9895 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9896
9897         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9898         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
9899         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9900         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9901         Add predicates for operands 0 and 3.
9902         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9903         operand.
9904         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9905         immediate_operand to nonmemory_operand.
9906
9907 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9908
9909         * df-scan.c (df_insn_info_init_fields): New function, split out
9910         from...
9911         (df_insn_create_insn_record): ...here.
9912         (df_insn_info_free_fields): New function, split out from...
9913         (df_insn_info_delete): ...here.
9914         (df_insn_rescan): Use the new functions instead of freeing and
9915         reallocating the df_insn_info.
9916
9917 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9918
9919         * doc/install.texi (Binaries): Remove links no longer valid.
9920
9921 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
9922
9923         * config/nvptx/mkoffload.c (process): Replace
9924         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9925
9926 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
9927
9928         PR target/67329
9929         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9930
9931 2015-08-24  Renlin Li  <renlin.li@arm.com>
9932
9933         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9934         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9935         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9936         * config/arm/constraints.md ("j"): Add check for high code.
9937
9938 2015-08-24  Tom de Vries  <tom@codesourcery.com>
9939
9940         PR tree-optimization/65468
9941         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9942         chunk_size is one.
9943
9944 2015-08-24  Nathan Sidwell  <nathan@acm.org>
9945
9946         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9947         change to nvptx_type_from_mode call. Use arg_promotion for both
9948         split and non-split args.
9949
9950 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9951
9952         * target-insns.def (movstr): New pattern.
9953         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9954         (expand_movstr): Use targetm rather than HAVE_movstr/
9955         CODE_FOR_movstr.
9956
9957 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9958
9959         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9960         cast syntax.
9961
9962 2015-08-24  Andrew Pinski  <apinski@cavium.com>
9963
9964         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9965         AARCH64_EXTRA_TUNING_OPTION.
9966         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9967         New enum.
9968         (aarch64_extra_tuning_flags): Base the shifted value on the index
9969         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9970         * config/aarch64/aarch64.c: Remove the last argument to
9971         AARCH64_EXTRA_TUNING_OPTION.
9972
9973 2015-08-23  Nathan Sidwell  <nathan@acm.org>
9974
9975         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9976         decls.
9977         (nvptx_declare_function_name): Insert formatting tabs for
9978         consistency.
9979
9980 2015-08-23  Tom de Vries  <tom@codesourcery.com>
9981
9982         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9983         parm_decl, rather than generating a dummy default def in cfun.
9984         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
9985         ssa_name from cfun and child_fn do not share a stmt as def stmt.
9986         (move_stmt_op): Handle PARM_DECl.
9987         (gather_ssa_name_hash_map_from): New function.
9988         (move_sese_region_to_fn): Add default defs for function params, and add
9989         them to vars_map.  Release copied ssa names.
9990         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9991
9992 2015-08-23  Tom de Vries  <tom@codesourcery.com>
9993
9994         * doc/sourcebuild.texi: Rename vect_no_int_max with
9995         vect_no_int_min_max.  Update description.
9996
9997 2015-08-22  Andrew Pinski  <apinski@cavium.com>
9998
9999          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
10000         * config/aarch64/aarch64-protos.h
10001         (aarch64_fusion_pairs_index): New enum.
10002         (aarch64_fusion_pairs): Base the shifted value on the index instead
10003         Rewrite AARCH64_FUSE_ALL to be based on the end index.
10004         of the argument to AARCH64_FUSION_PAIR.
10005         * config/aarch64/aarch64.c: Remove the last argument to
10006         AARCH64_FUSION_PAIR.
10007
10008 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
10009
10010         * dominance.c (new_zero_array): Define.
10011         (dom_info): Redefine as class with proper encapsulation.
10012         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
10013         Add new members.
10014         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
10015         allocations/deallocations.  Pass function as parameter (instead of
10016         using cfun).
10017         (dom_info::get_idom): Define accessor method.
10018         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
10019         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
10020         (calculate_dominance_info): Adjust to use dom_info class.
10021         (verify_dominators): Likewise.
10022
10023 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
10024
10025         * print-rtl.c (print_rtx): Check the correct range for
10026         flag_dump_unnumbered_links to behave as documented.
10027
10028         PR rtl-optimization/67227
10029         PR rtl-optimization/64164
10030         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
10031         (nonoverlapping_memrefs_p): Test offsets and sizes when given
10032         identical gimple_reg exprs.
10033
10034 2015-08-21  Nathan Sidwell  <nathan@acm.org>
10035
10036         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
10037         expansion.
10038         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
10039         crtl->stack_alignment_needed to determine alignment.
10040         (nvptx_get_drap_rtx): New.
10041         (TARGET_GET_DRAP_RTX): Override.
10042         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
10043
10044 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10045
10046         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
10047
10048 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10049
10050         * configure.ac: Remove uwin* cases.
10051         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
10052         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
10053         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
10054         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
10055         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
10056         i[34567]86-*-uwin*, powerpc-*-beos*.
10057
10058 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
10059
10060         * gencodes.c (gencodes): Print the comma for the preceding
10061         enum value rather than the current one.  Use aliased enum values
10062         rather than #defines for compiled-out patterns.
10063         (main): Update accordingly.  Replace LAST_INSN_CODE with
10064         NUM_INSN_CODES.
10065         * lra.c (insn_code_data): Update accordingly.
10066         (finish_insn_code_data_once, get_static_insn_data): Likewise.
10067         * recog.h (target_recog): Likewise.
10068         (preprocess_insn_constraints): Change parameter to unsigned int.
10069         * recog.c (preprocess_insn_constraints): Likewise.
10070         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
10071         * tree-vect-stmts.c (vectorizable_operation): Simplify.
10072
10073 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10074
10075         PR rtl-optimization/61657
10076         * loop-iv.c (iv_number_of_iterations): Declare up and down as
10077         unsigned.  Remove superflous uint64_t cast.
10078
10079 2014-08-21  Felix Yang  <felix.yang@huawei.com>
10080             Jiji Jiang  <jiangjiji@huawei.com>
10081
10082         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
10083         argument and get builtin function code directly from CALL.
10084         (gimple_stringop_fixed_value): Modified accordingly.
10085         (gimple_stringops_transform, gimple_stringops_values_to_profile):
10086         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
10087
10088 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10089
10090         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
10091
10092 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10093
10094         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
10095         to match.pd.
10096         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
10097         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
10098         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
10099         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
10100         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
10101         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
10102         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
10103         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
10104         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
10105         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
10106
10107         * match.pd (SIN ) : New Operator.
10108         (TAN) : New Operator.
10109         (mult (SQRT@1 @0) @1) : New simplifier.
10110         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
10111         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10112         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10113         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
10114         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
10115         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
10116         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
10117         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
10118         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
10119         (rdiv @0 (POW:s @1 @2)) : New simplifier.
10120
10121 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
10122
10123         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
10124         loop if EXPR is simplified to const value.
10125
10126 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
10127
10128         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10129         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10130
10131 2015-08-21  Richard Biener  <rguenther@suse.de>
10132
10133         PR middle-end/67285
10134         * gimple-fold.c (replace_stmt_with_simplification): Assert
10135         seq is empty when replacing a call with itself but different
10136         arguments.
10137         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10138         a call require that it is const.
10139
10140 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10141
10142         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10143         * builtins.c (get_object_alignment_2): Adjust.
10144         * varasm.c (align_variable): Likewise.
10145         (get_variable_align): Likewise.
10146         (build_constant_desc): Likewise.
10147         (force_const_mem): Likewise.
10148         * doc/tm.texi.in: Likewise.
10149         * doc/tm.texi: Regenerate.
10150
10151 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10152
10153         * genconfig.c (main): Always define HAVE_cc0.
10154         * recog.c (rest_of_handle_peephole2): Adjust.
10155
10156 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10157
10158         * reorg.c (relax_delay_slots): Don't use #if to check value of
10159         HAVE_cc0.
10160
10161 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10162
10163         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10164         * targhooks.c (default_have_conditional_execution): Adjust.
10165
10166 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10167
10168         * rtl.h (rtvec_all_equal_p): Declare.
10169         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10170         * rtl.c (rtvec_all_equal_p): New function.
10171         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10172         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10173         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10174         * config/arm/arm.c (neon_vdup_constant): Likewise.
10175         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10176         * config/tilegx/constraints.md (W, Y): Likewise.
10177         * config/tilepro/constraints.md (W, Y): Likewise.
10178         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10179         (classify_immediate): Use unwrap_const_vec_duplicate.
10180         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10181         (reg_or_v2s8bit_operand): Likewise.
10182         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10183         (reg_or_v4s8bit_operand): Likewise.
10184
10185 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10186
10187         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10188         (vec_shasigma_be): New #define.
10189         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10190         (VPMSUMH): Likewise.
10191         (VPMSUMW): Likewise.
10192         (VPMSUMD): Likewise.
10193         (VPMSUM): New BU_P8V_OVERLOAD_2.
10194         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10195         entries for VEC_MADD and VEC_VPMSUM.
10196
10197 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
10198
10199         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10200         Multiply argument avr_n_flash by 64 to match unit of "KiB".
10201         (avr_pgm_check_var_decl): Same.
10202
10203 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
10204
10205         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10206         initialization of HFmode scalar type (float16_t) to...
10207         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10208         code.
10209
10210         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10211
10212         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10213         having an -mfp16-format.
10214
10215 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10216
10217         * config/i386/predicates.md (vector_all_ones_operand): Use
10218         CONSTM1_RTX to simplify definition.
10219
10220 2015-08-20  Richard Biener  <rguenther@suse.de>
10221
10222         * toplev.c (compile_file): Remove loop calling late_global_decl
10223         on all symbols.
10224         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10225         on decls we assembled.
10226
10227 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
10228
10229         * common/config/aarch64/aarch64-common.c
10230         (AARCH64_CPU_NAME_LENGTH): Delete.
10231         (aarch64_option_extension): New.
10232         (all_extensions): Likewise.
10233         (processor_name_to_arch): Likewise.
10234         (arch_to_arch_name): Likewise.
10235         (all_cores): New.
10236         (all_architectures): Likewise.
10237         (aarch64_get_extension_string_for_isa_flags): Likewise.
10238         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10239         architecture names.
10240         * config/aarch64/aarch64-protos.h
10241         (aarch64_get_extension_string_for_isa_flags): New.
10242         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10243         (aarch64_option_print): Get the string to print from
10244         aarch64_get_extension_string_for_isa_flags.
10245         (aarch64_declare_function_name): Likewise.
10246         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10247         (MCPU_TO_MARCH_SPEC): This.
10248         (ASM_CPU_SPEC): Use it.
10249         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10250         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10251         (EXTRA_SPEC_FUNCTIONS): Use it.
10252
10253 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
10254
10255         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10256         expansion when !ISA_HAS_LWL_LWR.
10257         (mips_block_move_straight): Update the size of elements copied to
10258         account for alignment when !ISA_HAS_LWL_LWR.
10259         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10260
10261 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
10262
10263         * expr.c (expand_expr_real_2): Check gimple statement during
10264         LSHIFT_EXPR expand.
10265
10266 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
10267
10268         * common.opt (fstack-protector): Initialize to -1.
10269         (fstack-protector-all): Likewise.
10270         (fstack-protector-strong): Likewise.
10271         (fstack-protector-explicit): Likewise.
10272         * configure.ac: Add --enable-default-ssp.
10273         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
10274         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10275         -1.
10276         * doc/install.texi: Document --enable-default-ssp.
10277         * config.in: Regenerated.
10278         * configure: Likewise.
10279
10280 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
10281
10282         PR rtl-optimization/64164
10283         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10284         (parm_in_stack_slot_p): ... this.  Disregard mode, what
10285         matters is whether the parm will live in a pseudo or a stack
10286         slot.
10287         (expand_one_ssa_partition): Deal with params without a default
10288         def.  Disregard mode.
10289         * cfgexpand.h: Renamed function declaration.
10290         * tree-ssa-coalesce.c: Adjust.
10291         * function.c (split_complex_args): Allocate stack slot for
10292         unassigned parms before splitting.
10293         (parm_in_unassigned_mem_p): New.  Use it instead of
10294         parm_maybe_byref_p throughout this file.
10295         (assign_parm_setup_block): Use it.  Accept pseudos in the
10296         expand-assigned rtl.
10297         (assign_parm_setup_reg): Drop BLKmode requirement.
10298         (assign_parm_setup_stack): Allocate and fill in the address of
10299         unassigned MEM parms.
10300
10301 2015-08-19  David Sherwood  <david.sherwood@arm.com>
10302
10303         * genmodes.c (emit_mode_unit_size_inline): New function.
10304         (emit_mode_unit_precision_inline): New function.
10305         (emit_insn_modes_h): Emit new #define.  Emit new functions.
10306         (emit_mode_unit_size): New function.
10307         (emit_mode_unit_precision): New function.
10308         (emit_mode_adjustments): Add mode_unit_size adjustments.
10309         (emit_insn_modes_c): Emit new arrays.
10310         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10311         use new inline methods.
10312
10313 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10314
10315         * config/aarch64/aarch64.c (bit_count): Delete prototype
10316         and definition.
10317         (aarch64_print_operand): Use popcount_hwi instead of the above.
10318
10319 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10320
10321         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10322         comment.
10323
10324 2015-08-19  Marek Polacek  <polacek@redhat.com>
10325
10326         PR middle-end/67133
10327         * gimple-ssa-isolate-paths.c
10328         (insert_trap_and_remove_trailing_statements): Rename to ...
10329         (insert_trap): ... this.  Don't remove trailing statements; split
10330         block instead.
10331         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10332
10333 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
10334
10335         PR other/67042
10336         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10337         conditionalize the whole on __GNUC__.  Add fallback code
10338         depending neither on undefined nor implementation-defined behaviour.
10339
10340 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
10341
10342         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10343         whitespaces with tab.
10344
10345 2015-08-19  Florian Weimer  <fweimer@redhat.com>
10346
10347         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10348         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10349         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10350         Move Name_Ids instantiation to the Prj.Proc package, to avoid
10351         trampolines.
10352
10353 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10354
10355         * config/arm/arm.c (bounds_check): Use %wd print format
10356         for HOST_WIDE_INT arguments.
10357
10358 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
10359
10360         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10361         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10362         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10363         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10364         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10365         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10366         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10367         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10368         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10369         typedefs.
10370
10371 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
10372
10373         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10374         function.c, graphite-scop-detection.c, haifa-sched.c,
10375         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10376         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10377         varasm.c: Remove typedefs of structs.
10378
10379 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10380
10381         * config/rs6000/altivec.h (vec_adde): New define.
10382         (vec_addec): Likewise.
10383         (vec_double): Likewise.
10384         (vec_bperm): Likewise.
10385         (vec_gb): Likewise.
10386         * config/rs6000/rs6000-builtin.def (ADDE): New
10387         BU_ALTIVEC_OVERLOAD_3.
10388         (ADDEC): Likewise.
10389         (DOUBLE): New BU_VSX_OVERLOAD_1.
10390         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10391         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10392         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10393         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10394         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10395         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10396         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10397         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10398         and P8V_BUILTIN_VEC_VBPERMQ.
10399
10400 2015-08-18  Jason Merrill  <jason@redhat.com>
10401
10402         * print-tree.c (print_node): Handle TREE_BINFO.
10403
10404 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10405
10406         PR middle-end/36757
10407         * builtins.c (expand_builtin_signbit): Add asserts to make sure
10408         we can expand BUILT_IN_SIGNBIT inline.
10409         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10410         * doc/extend.texi: Document the type-generic __builtin_signbit.
10411
10412 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
10413
10414         PR rtl-optimization/67218
10415         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10416         (simplify_unary_operation_1): Use it.
10417
10418 2015-08-18  Marek Polacek  <polacek@redhat.com>
10419
10420         PR middle-end/67222
10421         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10422         if the call isn't valid.
10423         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10424         gimple_call_builtin_p.
10425         (call_may_clobber_ref_p_1): Likewise.
10426         (stmt_kills_ref_p): Likewise.
10427
10428 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
10429
10430         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10431         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10432         (mips_hard_regno_scratch_ok): Likewise.
10433         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10434         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10435
10436 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
10437
10438         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10439         (determine_value_range): Call refine_value_range_using_guard for
10440         each loop initial condition to improve value range.
10441
10442 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
10443
10444         * config/i386/i386.c: Remove include of fibheap.h.
10445
10446 2015-08-17  Richard Biener  <rguenther@suse.de>
10447
10448         PR tree-optimization/67221
10449         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10450         (sccvn_dom_walker::before_dom_children): Mark backedges of
10451         non-executable blocks as not executable.
10452
10453 2015-08-17  David Sherwood  <david.sherwood@arm.com>
10454
10455         * config/arm/arm.c (neon_element_bits): Replace call to
10456         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10457         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10458         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10459         (neon_vdup_lane<mode>): Likewise.
10460         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10461         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10462         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10463         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10464         * config/spu/spu.c (arith_immediate_p): Likewise.
10465         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10466         * expr.c (expand_expr_real_2): Likewise.
10467         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10468         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10469         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10470         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10471         New variable.
10472         * fold-const.c (fold_binary_loc): Replace call to
10473         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10474         GET_MODE_UNIT_PRECISION (m).
10475
10476 2015-08-17  Mike Stump  <mikestump@comcast.net>
10477
10478         * config/arm/arm.c (arm_block_move_unaligned_straight):
10479         Emit normal move instead of unaligned load when source or destination
10480         are appropriately aligned.
10481
10482 2015-08-17  Richard Biener  <rguenther@suse.de>
10483             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10484
10485         PR middle-end/16107
10486         * match.pd (div (coss (op @0) : New simplifier.
10487
10488 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
10489
10490         PR rtl-optimization/64164
10491         PR bootstrap/66978
10492         PR middle-end/66983
10493         PR rtl-optimization/67000
10494         PR middle-end/67034
10495         PR middle-end/67035
10496         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10497         * tree-ssa-copyrename.c: Removed.
10498         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10499         -ftree-coalesce-vars.
10500         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10501         * common.opt (ftree-copyrename): Ignore.
10502         (ftree-coalesce-inlined-vars): Likewise.
10503         * doc/invoke.texi: Remove the ignored options above.
10504         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10505         * tree-ssa-coalesce.h: ... here.
10506         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10507         headers required by it.
10508         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10509         across variables when flag_tree_coalesce_vars.  Check register
10510         use and promoted modes to allow coalescing.  Do not coalesce
10511         maybe-byref parms with SSA_NAMEs of other variables, or
10512         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
10513         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10514         with its member functions to tree-ssa-coalesce.c.
10515         (var_map_base_init): Likewise.  Renamed to
10516         compute_samebase_partition_bases.
10517         (partition_view_normal): Drop want_bases parameter.
10518         (partition_view_bitmap): Likewise.
10519         * tree-ssa-live.h: Adjust declarations.
10520         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10521         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10522         default defs at the entry point.
10523         (dump_part_var_map): New.
10524         (compute_optimized_partition_bases): New, called by...
10525         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10526         of compute_samebase_partition_bases.  Adjust.
10527         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10528         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10529         (ssa_default_def_partition): New.
10530         (get_rtl_for_parm_ssa_default_def): New.
10531         (align_local_variable, add_stack_var): Support anonymous SSA
10532         names.
10533         (defer_stack_allocation): Likewise.  Declare earlier.
10534         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10535         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10536         Do no record deferred-allocation marker in
10537         SA.partition_to_pseudo.
10538         (expand_stack_vars): Adjust check for the marker in it.
10539         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10540         redundant MEM attr setting.
10541         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10542         from...
10543         (expand_one_stack_var): ... this.  New wrapper to check and
10544         skip already expanded SSA partitions.
10545         (record_alignment_for_reg_var): New, factored out of...
10546         (expand_one_var): ... this.
10547         (expand_one_ssa_partition): New.
10548         (adjust_one_expanded_partition_var): New.
10549         (expand_one_register_var): Check and skip already expanded SSA
10550         partitions.
10551         (expand_used_vars): Don't create DECLs for anonymous SSA
10552         names.  Expand all SSA partitions, then adjust all SSA names.
10553         (pass::execute): Replace the loops that set
10554         SA.partition_to_pseudo from partition leaders and cleared
10555         DECL_RTL for multi-location variables, and that which used to
10556         rename vars and set attrs, with one that clears DECL_RTL and
10557         checks that PARMs and RESULTs default_defs match DECL_RTL.
10558         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10559         * emit-rtl.c: Include stor-layout.h.
10560         (set_reg_attrs_for_parm): Handle NULL decl.
10561         (set_reg_attrs_for_decl_rtl): Take mode from expression if
10562         it's not a DECL.
10563         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10564         rather than its possibly-NULL DECL.
10565         * explow.c (promote_ssa_mode): New.
10566         * explow.h (promote_ssa_mode): Declare.
10567         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10568         (read_complex_part): Export.
10569         * expr.h (read_complex_part): Declare.
10570         * cfgexpand.h (parm_maybe_byref_p): Declare.
10571         * function.c: Include cfgexpand.h.
10572         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10573         (use_register_for_parm_decl): Wrapper for the above to
10574         special-case the result_ptr.
10575         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10576         (split_complex_args): Take assign_parm_data_all argument.
10577         Pass it to rtl_for_parm.  Set up rtl and context for split
10578         args.  Reset complex parm before fetching its default decl
10579         rtl.
10580         (assign_parms_unsplit_complex): Use the default-def complex
10581         parm rtl if it matches the components.
10582         (assign_parms_augmented_arg_list): Adjust.
10583         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10584         multiple locations.  Recognize split complex args.
10585         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10586         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10587         (assign_parm_setup_block): Prefer SSA-assigned location, and
10588         fill in its address if the memory location of a maybe-byref
10589         parm was not assigned by cfgexpand.
10590         (assign_parm_setup_reg): Likewise.  Adjust its mode as
10591         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
10592         sure passed_pointer parms don't need conversion.  Copy address
10593         or value as needed.
10594         (assign_parm_setup_stack): Prefer SSA-assigned location.
10595         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10596         rtl before testing for pointer bounds.  Special-case result_ptr.
10597         (expand_function_start): Maybe reset DECL_RTL of result.
10598         Prefer SSA-assigned location for result and static chain.
10599         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
10600         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
10601         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10602         anonymous SSA names.  Use promote_ssa_mode.
10603         (get_temp_reg): Likewise.
10604         (remove_ssa_form): Adjust.
10605         * stor-layout.c (layout_decl): Don't set mem attributes of
10606         non-MEMs.
10607         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10608         and get its reg_usage for reg invalidation.
10609         (compute_bb_dataflow): Pass it insn.
10610         (emit_notes_in_bb): Likewise.
10611
10612 2015-08-14  Marek Polacek  <polacek@redhat.com>
10613
10614         * tree-core.h (tree_base): Fix typo.
10615
10616 2015-08-14  Marek Polacek  <polacek@redhat.com>
10617
10618         PR middle-end/67133
10619         * gimple.c (infer_nonnull_range_by_attribute): Check that the
10620         nonnull argument position is not outside function arguments.
10621
10622 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
10623
10624         PR target/67143
10625         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10626         'lconst_atomic' with 'const_atomic'.
10627         (atomic_fetch_<optab><mode>): Likewise.
10628         (atomic_<optab>_fetch<mode>): Likewise.
10629         * config/aarch64/iterators.md (lconst-atomic): Move below
10630         'const_atomic'.
10631         (const_atomic): New.
10632
10633 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
10634             Bernd Schmidt  <bernds@codesourcery.com>
10635
10636         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10637         debug options.
10638         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10639         (DWARF2_DEBUGGING_INFO): Don't define.
10640         * debug.h (dwarf2_lineno_debug_hooks): Declare.
10641         * toplev.c (process_options): Add a case for it.
10642         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10643         (dwarf2out_init): Skip most initializations if
10644         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10645         case.
10646         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10647         DWARF2_LINENO_DEBUGGING_INFO.
10648         * opts.c (set_debug_level): Likewise.
10649
10650 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
10651
10652         * config/arm/types.md (is_neon_type): Add missing types.
10653
10654 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
10655
10656         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10657         for skylake.
10658         * config/i386/i386.c (PTA_SKYLAKE): New macros.
10659         (processor_alias_table): Add skylake description.
10660         (enum processor_model): Add skylake processor.
10661         (arch_names_table): Add skylake record.
10662         * doc/invoke.texi: Add skylake item.
10663
10664 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
10665
10666         * ira-int.h: Include recog.h.
10667         * ira-build.c: Don't include recog.h.
10668         * ira-color.c: Likewise.
10669         * ira-conflicts.c: Likewise.
10670         * ira-costs.c: Likewise.
10671         * ira-emit.c: Likewise.
10672         * ira-lives.c: Likewise.
10673         * ira.c: Likewise.
10674         * sched-deps.c: Likewise.
10675         * sel-sched.c: Likewise.
10676         * target-globals.c: Likewise.
10677
10678 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
10679
10680         PR bootstrap/55035
10681         * reload1.c (elimination_costs_in_insn): Make it obvious to the
10682         compiler that the n_dups and n_operands loop bounds are invariant.
10683
10684 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10685
10686         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10687         expressions in A and B.
10688
10689 2015-08-13  Richard Biener  <rguenther@suse.de>
10690
10691         * tree.c (nonnull_arg_p): Move from ...
10692         * tree-vrp.c (nonnull_arg_p): ... here.
10693         * tree.h (nonnull_arg_p): Declare.
10694         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10695         here, register ptr != 0 for nonnull_arg_p pointer arguments.
10696         Properly initialize static chain and by-reference result pointer.
10697         (run_scc_vn): Adjust.
10698
10699 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
10700
10701         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10702         TUNE_I6400.
10703
10704 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
10705
10706         * config/aarch64/aarch64-protos.h
10707         (aarch64_gen_atomic_cas): Declare.
10708         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10709         Choose appropriate instruction pattern for the target.
10710         (aarch64_gen_atomic_cas): New.
10711         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10712         (atomic_compare_and_swap<mode>_1): Rename to
10713         aarch64_compare_and_swap<mode>.  Fix some indentation.
10714         (aarch64_compare_and_swap<mode>_lse): New.
10715         (aarch64_atomic_cas<mode>): New.
10716
10717 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
10718
10719         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10720         (TARGET_LSE): New.
10721
10722 2015-08-13  Richard Biener  <rguenther@suse.de>
10723
10724         PR tree-optimization/67191
10725         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10726         assert we value-numbered last stmts operand because it can validly
10727         trigger for unreachable code.
10728
10729 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10730
10731         PR rtl-optimization/67103
10732         * ifcvt.c (noce_try_store_flag_constants): Move
10733         x = (-(test != 0) & (b - a)) + a transformation to...
10734         (noce_try_cmove): ... Here.  Try it if normal conditional
10735         move fails.
10736
10737 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
10738
10739         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10740         pseudo-processors.
10741         * config/mips/mips.md (processor): Remove w32 and w64.
10742
10743 2015-08-13  Richard Biener  <rguenther@suse.de>
10744
10745         PR tree-optimization/66502
10746         PR tree-optimization/67167
10747         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10748         backedge arguments.
10749         (vn_phi_lookup): Adjust.
10750         (vn_phi_insert): Likewise.
10751         (visit_phi): Prefer to value-number to another PHI node
10752         over value-numbering to a PHI argument.
10753         (init_scc_vn): Mark DFS back edges.
10754
10755 2015-08-13  Richard Biener  <rguenther@suse.de>
10756
10757         * gimple.h (gcall::code_): New constant static member.
10758         (gcond::code_): Likewise.
10759         * gimple.c (gcall::code_): Define.
10760         (gcond::code_): Likewise.
10761         (is_a_helper <const gcond *>): Add.
10762         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10763         and forward to a new gcall overload with less checking and a
10764         cheaper way to access the operand.
10765         (gimple_call_lhs_ptr): Likewise.
10766         (gimple_call_set_lhs): Likewise.
10767         (gimple_call_internal_p): Likewise.
10768         (gimple_call_with_bounds_p): Likewise.
10769         (gimple_call_set_with_bounds): Likewise.
10770         (gimple_call_internal_fn): Likewise.
10771         (gimple_call_set_ctrl_altering): Likewise.
10772         (gimple_call_ctrl_altering_p): Likewise.
10773         (gimple_call_fntype): Likewise.
10774         (gimple_call_fn): Likewise.
10775         (gimple_call_fn_ptr): Likewise.
10776         (gimple_call_set_fndecl): Likewise.
10777         (gimple_call_fndecl): Likewise.
10778         (gimple_call_chain): Likewise.
10779         (gimple_call_num_args): Likewise.
10780         (gimple_call_arg): Likewise.
10781         (gimple_call_arg_ptr): Likewise.
10782         (gimple_call_set_arg): Likewise.
10783         (gimple_call_noreturn_p): Likewise.
10784         (gimple_cond_code): Likewise.
10785         (gimple_cond_lhs): Likewise.
10786         (gimple_cond_rhs): Likewise.
10787         (gimple_has_lhs): Reduce checking.
10788
10789 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10790
10791         PR middle-end/25529
10792         * match.pd (div (mult @0 @1) @1) : New simplifier.
10793
10794 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10795
10796         PR target/67071
10797         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10798         predicate to allow construction of vector constants using the
10799         VSLDOI vector shift instruction.
10800
10801         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10802         declaration.
10803
10804         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10805         the number of bytes to be shifted left and filled in with either
10806         all zero or all one bits.
10807         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10808         methods exist.
10809         (output_vec_const_move): On power8, generate XXLORC to generate
10810         a vector constant with all 1's. Do a split if we need to use a
10811         VSLDOI instruction.
10812
10813         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10814         properly test for the MSB.
10815
10816         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10817         vector constants that can be created with VSLDOI.
10818
10819 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
10820
10821         revert:
10822         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10823         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10824         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10825         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10826         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10827         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10828         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10829         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10830         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10831
10832 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
10833
10834         * config/xtensa/constraints.md (define_constraint "Y"): New
10835         constraint.
10836         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10837         * config/xtensa/linux.h (ASM_SPEC): Likewise.
10838         * config/xtensa/predicates.md (move_operand): Match constants
10839         and symbols in the presence of TARGET_AUTO_LITPOOLS.
10840         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10841         immediate references to TLS data.
10842         (xtensa_emit_move_sequence): Don't force constants to memory in
10843         the presence of TARGET_AUTO_LITPOOLS.
10844         (print_operand): Add 'y' format, same as default, but capable of
10845         printing SF mode constants as well.
10846         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10847         (movsf_internal): Add movi pattern that loads literal.
10848         (movsf, movdf): Don't force constants to memory in the presence
10849         of TARGET_AUTO_LITPOOLS.
10850         (movdf_internal): Add 'Y' constraint.
10851         * config/xtensa/xtensa.opt (mauto-litpools): New option.
10852         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10853
10854 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
10855
10856         * config/arm/arm-fpus.def: Replace booleans with feature flags.
10857         Update comment.
10858         * config/arm/arm.c (ARM_FPU): Update macro.
10859         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10860         (TARGET_FP16): Likewise.
10861         (TARGET_CRYPTO): Likewise.
10862         (TARGET_NEON): Likewise.
10863         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
10864         field features.
10865
10866 2015-08-12  Tom de Vries  <tom@codesourcery.com>
10867
10868         PR other/67092
10869         PR other/67098
10870         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
10871         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10872         accordingly.  Mention default for --with-stage1-ldflags.
10873
10874 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
10875
10876         * config/arm/arm.h (arm_fpu_feature_set): New.
10877         (ARM_FPU_FSET_HAS): New.
10878         (FPU_FL_NONE): New.
10879         (FPU_FL_NEON): New.
10880         (FPU_FL_FP16): New.
10881         (FPU_FL_CRYPTO): New.
10882
10883 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10884
10885         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10886         after -mcmodel=large -fPIC sorry.
10887
10888 2015-08-12  Richard Biener  <rguenther@suse.de>
10889
10890         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10891         comparison operand order and commutative ternary op operand order.
10892         (sccvn_dom_walker::cond_stack): New state to track temporary
10893         expressions.
10894         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10895         no longer valid.
10896         (sccvn_dom_walker::record_cond): Add a single temporary conditional
10897         expression.
10898         (sccvn_dom_walker::record_conds): Add a temporary conditional
10899         expressions and all related expressions also true/false.
10900         (sccvn_dom_walker::before_dom_children): Record temporary
10901         expressions based on the controlling condition of a single
10902         predecessor.  When trying to simplify a conditional statement
10903         lookup expressions we might have inserted earlier.
10904
10905 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
10906
10907         PR target/67127
10908         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10909         to ARM core registers.
10910
10911 2015-08-12  Nathan Sidwell  <nathan@acm.org>
10912
10913         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10914         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10915
10916 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
10917
10918         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10919         line with comments.
10920         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10921
10922 2015-08-12  Richard Biener  <rguenther@suse.de>
10923
10924         * gimple.h (remove_pointer): New trait.
10925         (GIMPLE_CHECK2): New inline template function.
10926         (gassign::code_): New constant static member.
10927         (is_a_helper<const gassign *>): Add.
10928         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10929         and forward to a new gassign overload with less checking and a
10930         cheaper way to access the operand.
10931         (gimple_assign_lhs_ptr): Likewise.
10932         (gimple_assign_set_lhs): Likewise.
10933         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10934         Likewise.
10935         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10936         Likewise.
10937         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10938         Likewise.
10939         (gimple_assign_rhs_code): Likewise.
10940         * gimple.c (gassign::code_): Define.
10941
10942 2015-08-12  Richard Biener  <rguenther@suse.de>
10943
10944         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10945         Eliminate edges marked as not executable by SCCVN.
10946         * tree-ssa-sccvn.c: Include gimple-iterator.h.
10947         (cond_dom_walker): Rename to sccvn_dom_walker.
10948         (sccvn_dom_walker::before_dom_children): Value-number defs
10949         of all stmts.
10950         (run_scc_vn): Remove loop value-numbering all SSA names.
10951         Drop not visited SSA names to varying.
10952
10953 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
10954
10955         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10956         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10957         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10958         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10959         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10960         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10961         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10962         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10963         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10964
10965 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
10966
10967         PR target/66954
10968         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10969         to enum feature_priority and feature_list.
10970         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10971         and isa_names_table.
10972
10973 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
10974
10975         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10976         vect_induction_def.
10977
10978 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10979
10980         PR c/66098
10981         PR c/66711
10982         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10983         account when deciding what was the command-line status.
10984
10985 2015-08-11  Nathan Sidwell  <nathan@acm.org>
10986
10987         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10988
10989         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10990         we're not the only contributor to target phi.
10991
10992 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
10993
10994         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10995         FIXED_REG0.
10996
10997 2015-08-11  Tom de Vries  <tom@codesourcery.com>
10998
10999         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
11000
11001 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
11002
11003         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
11004         with CPU_SLM.
11005         * config/i386/i386.md (cpu): Remove knl.
11006
11007 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
11008
11009         PR libgomp/65742
11010         PR middle-end/66332
11011         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
11012         open-coded sequence.
11013         * omp-low.c (oacc_process_reduction_data): Remove handline of
11014         GOMP_DEVICE_HOST_NONSHM.
11015
11016         * lto-streamer-in.c (lto_input_mode_table): Adjust to
11017         GET_MODE_INNER changes.
11018
11019 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
11020             Ilya Verbin  <ilya.verbin@intel.com>
11021
11022         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
11023
11024 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11025
11026         * doc/options.texi (EnabledBy): Document that the argument must be
11027         a Common option.
11028         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
11029         Not enabled by -Wall.
11030         * optc-gen.awk: Give nicer error messages. Detect if the argument
11031         of EnabledBy is not a Common option.
11032         * common.opt (Wnull-dereference): Not enabled by -Wall.
11033         * opt-functions.awk (lang_enabled_by): Nicer error messages.
11034
11035 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11036
11037         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
11038         model == 0x4f as Broadwell.
11039
11040 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
11041
11042         PR rtl-optimization/67028
11043         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
11044         Add test to see if a const_int fits in the new mode.
11045
11046 2015-08-07  DJ Delorie  <dj@redhat.com>
11047
11048         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
11049
11050 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11051
11052         PR rtl-optimization/67029
11053         * ira-color.c: Include "recog.h" before including "ira-int.h".
11054         * target-globals.c: Likewise.
11055         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
11056         adds an alternative_mask argument and use it instead of
11057         preferred_alternatives.
11058         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
11059         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
11060         * sched-deps.c: Include "ira-int.h" after including "ira.h".
11061         (sched_analyze_insn): Update call to
11062         ira_implicitly_set_insn_hard_regs.
11063         * sel-sched.c: Include "ira-int.h" after including "ira.h".
11064         (implicit_clobber_conflict_p): Update call to
11065         ira_implicitly_set_insn_hard_regs.
11066
11067 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
11068
11069         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
11070
11071 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
11072
11073         PR target/67002
11074         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
11075         currently_expanding_to_rtl is set.
11076
11077 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
11078
11079         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
11080         * configure: Regenerate.
11081
11082 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11083             Jiong Wang  <jiong.wang@arm.com>
11084
11085         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11086         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11087         (REG_CLASS_NAMES): Likewise.
11088         (REG_CLASS_CONTENTS): Likewise.
11089         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11090         (aarch64_register_move_cost): Likewise.
11091         (aarch64_load_symref_appropriately): Invoke the new added pattern if
11092         possible.
11093         * config/aarch64/constraints.md (Uc0): New constraint.
11094
11095 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
11096
11097         * config/aarch64/constraints.md (Usf): Add the test of
11098         aarch64_is_noplt_call_p.
11099
11100 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
11101
11102         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
11103         declaration.
11104         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
11105         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
11106         (call_symbol): Likewise.
11107
11108 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11109
11110         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
11111         for vectorizing multiplication patterns.
11112         * tree-vectorizer.h: Adjust the number of patterns.
11113
11114 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
11115
11116         * config/i386/sse.md (*vec_concatv2df): Declare added
11117         alternatives as sselog type.
11118
11119 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11120
11121         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
11122         all GPRs.
11123
11124 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11125
11126         * config/s390/s390.c (s390_expand_tbegin): Expand either
11127         tbegin_1_z13 or tbegin_1 depending on VX flag.
11128         * config/s390/s390.md ("tbegin_1_z13"): New expander.
11129
11130 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11131
11132         * config/s390/s390.opt: Clarify description for -mzvector
11133         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11134         -mzvector.
11135
11136 2015-08-06  Richard Biener  <rguenther@suse.de>
11137
11138         * gimple.h (gimple_call_set_fn): Access op member directly.
11139         (gimple_call_chain_ptr): Likewise.
11140         (gimple_call_set_chain): Likewise.
11141         (gimple_cond_lhs_ptr): Likewise.
11142         (gimple_cond_set_lhs): Likewise.
11143         (gimple_cond_rhs_ptr): Likewise.
11144         (gimple_cond_set_rhs): Likewise.
11145         (gimple_cond_true_label): Likewise.
11146         (gimple_cond_set_true_label): Likewise.
11147         (gimple_cond_set_false_label): Likewise.
11148         (gimple_cond_false_label): Likewise.
11149         (gimple_label_label): Likewise.
11150         (gimple_label_set_label): Likewise.
11151         (gimple_goto_set_dest): Likewise.
11152         (gimple_asm_input_op): Likewise.
11153         (gimple_asm_input_op_ptr): Likewise.
11154         (gimple_asm_set_input_op): Likewise.
11155         (gimple_asm_output_op): Likewise.
11156         (gimple_asm_output_op_ptr): Likewise.
11157         (gimple_asm_set_output_op): Likewise.
11158         (gimple_asm_clobber_op): Likewise.
11159         (gimple_asm_set_clobber_op): Likewise.
11160         (gimple_asm_label_op): Likewise.
11161         (gimple_asm_set_label_op): Likewise.
11162         (gimple_switch_index): Likewise.
11163         (gimple_switch_index_ptr): Likewise.
11164         (gimple_return_retval_ptr): Likewise.
11165         (gimple_return_retval): Likewise.
11166         (gimple_return_set_retval): Likewise.
11167         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
11168         (gimple_switch_label): Likewise.
11169         (gimple_switch_set_label): Likewise.
11170
11171 2015-08-06  Richard Biener  <rguenther@suse.de>
11172
11173         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11174         bool comparison canonicalization and restrict to integers.
11175
11176 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
11177
11178         * coretypes.h (enum symbol_visibility): Relocate here.
11179         * flag-types.h (enum symbol_visibility): Remove.
11180         * tree-core.h (enum symbol_visibility): Remove.
11181
11182 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
11183
11184         PR target/66870
11185         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11186         for no_split_stack function attribute along with
11187         flag_split_stack.
11188         (rs6000_expand_split_stack_prologue): Likewise.
11189
11190 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11191             Jeff Law  <law@redhat.com>
11192
11193         PR c/16351
11194         * doc/invoke.texi (Wnull-dereference): New.
11195         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11196         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11197         Warn for potential NULL dereferences.
11198         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11199         * ubsan.c (instrument_nonnull_arg): Call
11200         infer_nonnull_range_by_attribute.
11201         (instrument_nonnull_return): Likewise.
11202         * common.opt (Wnull-dereference); New.
11203         * gimple.c (infer_nonnull_range): Remove bool arguments.
11204         (infer_nonnull_range_by_dereference): New.
11205         (infer_nonnull_range_by_attribute): New.
11206         * gimple.h: Update declarations.
11207
11208 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11209
11210         * gensupport.c (sequence_num): Replace with...
11211         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11212         ...these new variables.
11213         (init_rtx_reader_args_cb): Update accordingly.
11214         (get_num_code_insns): Likewise.
11215         (read_md_rtx): Rework to use a while loop and get_c_test.
11216         Use the new counters.  Remove redundant DEFINE_SUBST case.
11217         * genoutput.c (gen_split): Delete.
11218         (main): Don't call it.
11219
11220 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11221
11222         * gensupport.h (get_c_test): Declare.
11223         * gensupport.c (get_c_test): New function.
11224         * genconditions.c (main): Use it.
11225         * genrecog.c (validate_pattern): Likewise.
11226         (match_pattern_1): Likewise.  Remove c_test argument.
11227         (match_pattern): Update accordingly and remove c_test argument.
11228         (main): Update accordingly.
11229
11230 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11231
11232         * gensupport.h (get_num_insn_codes): Declare.
11233         * gensupport.c (get_num_insn_codes): New function.
11234         * genattrtab.c (optimize_attrs): Rename max_insn_code to
11235         num_insn_codes.
11236         (main): Likewise.  Use get_num_insn_codes.
11237         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11238
11239 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11240
11241         PR middle-end/66311
11242         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11243         is zero- rather than sign-extended.
11244
11245 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11246
11247         * target-insns.def (can_extend): Delete.
11248
11249 2015-08-05  Richard Biener  <rguenther@suse.de>
11250
11251         PR tree-optimization/67121
11252         * tree-if-conv.c (combine_blocks): Clear range-info produced
11253         by stmts no longer executed conditionally.
11254
11255 2015-08-05  Nick Clifton  <nickc@redhat.com>
11256
11257         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11258         to allow identical far pointers to remain.
11259
11260 2015-08-05  Richard Biener  <rguenther@suse.de>
11261
11262         PR middle-end/67120
11263         * match.pd: Compare address bases with == if they are decls
11264         or SSA names, not operand_equal_p.  Otherwise fail.
11265
11266 2015-08-05  Richard Biener  <rguenther@suse.de>
11267
11268         PR tree-optimization/67055
11269         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11270         NULL gimple_block.
11271
11272         * g++.dg/torture/pr67055.C: New testcase.
11273
11274 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
11275
11276         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11277         noavx512vl.
11278         (define_attr "enabled"): Handle avx521vl and noavx512vl.
11279         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11280         AVX-512 alternative out of SSE.
11281         (define_insn "*vec_concatv2df"): Ditto.
11282
11283 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
11284
11285         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11286         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11287         CODE_FOR_avx_ptestv4di.
11288         * config/i386/sse.md (define_mode_iterator V_AVX): New.
11289         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11290         (define_insn "avx_ptest256"): Merge this ...
11291         (define_insn "sse4_1_ptest"): And this ...
11292         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11293
11294 2015-08-05  Richard Biener  <rguenther@suse.de>
11295
11296         PR tree-optimization/67109
11297         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11298         against too big groups.  Print whether this is a load or store
11299         group.  Rename from ...
11300         (vect_analyze_group_access): ... this which is now a wrapper
11301         dissolving an invalid group.
11302         (vect_analyze_data_ref_accesses): Print whether this is a load
11303         or store group.
11304
11305 2015-08-05  Richard Biener  <rguenther@suse.de>
11306
11307         PR middle-end/67107
11308         * match.pd: Guard const_binop result checking against NULL_TREE
11309         result.
11310
11311 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
11312
11313         * cse.c (cse_insn): Restoring old behaviour for src_eqv
11314          when dest and value in the REG_EQUAL are same and dest
11315          is STRICT_LOW_PART.
11316
11317 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
11318
11319         * config/moxie/moxie.h (PRINT_OPERAND,
11320           PRINT_OPERAND_ADDRESS): Remove macros.
11321         * config/moxie/moxie-protos.h (moxie_print_operand,
11322           moxie_print_operand_address): Remove declaration.
11323         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11324           TARGET_PRINT_OPERAND_ADDRESS): Define.
11325           (moxie_print_operand, moxie_print_operand_address): Make static.
11326
11327 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11328
11329         PR target/66731
11330         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11331         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11332
11333 2015-08-04  Richard Biener  <rguenther@suse.de>
11334
11335         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11336         generated code.
11337         (dt_operand::gen_gimple_expr): Adjust.
11338
11339 2015-08-04  Richard Biener  <rguenther@suse.de>
11340
11341         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11342         bool compares on RHS.
11343         * match.pd: Add X ==/!= !X is false/true pattern.
11344
11345 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
11346
11347         * config/aarch64/aarch64.c: Change inner loop statement cost
11348         to be consistent with other targets.
11349
11350 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
11351
11352         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11353         targets.
11354
11355 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
11356
11357         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11358         (machine_function): Remove pseudos field.
11359
11360 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11361
11362         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11363         Exit early and use target_option_current_node if processing current
11364         pragma.
11365
11366 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11367
11368         * doc/extend.texi (AArch64 Function Attributes): New node.
11369         (AArch64 Pragmas): Likewise.
11370
11371 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11372
11373         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11374         Initialize simd builtins if TARGET_SIMD.
11375         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11376         Make sure that the builtins are initialized only once no matter how
11377         many times the function is called.
11378         (aarch64_init_builtins): Unconditionally initialize crc builtins.
11379         (aarch64_relayout_simd_param): New function.
11380         (aarch64_simd_expand_args): Use above during argument expansion.
11381         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11382         simd builtins if TARGET_SIMD.
11383         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11384         prototype.
11385         (aarch64_relayout_simd_types): Likewise.
11386
11387 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11388
11389         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11390         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11391         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11392         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11393         static keyword.
11394         (aarch64_reset_previous_fndecl): New function.
11395         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11396         the string.
11397         * config/aarch64/aarch64-c.c: New file.
11398         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11399         Push and pop options at beginning and end.  Remove ifdef
11400         __ARM_FEATURE_CRC32.
11401         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11402         Add pragma +nothing+simd and +nothing+crypto where appropriate.
11403         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11404         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11405         Define prototype.
11406         (aarch64_register_pragmas): Likewise.
11407         (aarch64_reset_previous_fndecl): Likewise.
11408         (aarch64_process_target_attr): Likewise.
11409         (aarch64_override_options_internal): Likewise.
11410
11411 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11412
11413         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11414         New function.
11415         (aarch64_can_inline_p): Likewise.
11416         (TARGET_CAN_INLINE_P): Define.
11417
11418 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11419
11420         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11421         Remove static.  Handle OPT_mgeneral_regs_only,
11422         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11423         OPT_momit_leaf_frame_pointer.
11424         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11425         (aarch64_attr_opt_type): New enum.
11426         (aarch64_attribute_info): New struct.
11427         (aarch64_handle_attr_arch): New function.
11428         (aarch64_handle_attr_cpu): Likewise.
11429         (aarch64_handle_attr_tune): Likewise.
11430         (aarch64_handle_attr_isa_flags): Likewise.
11431         (aarch64_attributes): New table.
11432         (aarch64_process_one_target_attr): New function.
11433         (num_occurences_in_str): Likewise.
11434         (aarch64_process_target_attr): Likewise.
11435         (aarch64_option_valid_attribute_p): Likewise.
11436         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11437         * config/aarch64/aarch64-protos.h: Include input.h
11438         (aarch64_handle_option): Declare prototype.
11439
11440 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11441
11442         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11443         * config/aarch64/aarch64.c: Include target-globals.h
11444         (aarch64_previous_fndecl): New variable.
11445         (aarch64_set_current_function): New function.
11446         (TARGET_SET_CURRENT_FUNCTION): Define.
11447
11448 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11449
11450         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11451         (explicit_arch): Likewise.
11452         (x_aarch64_isa_flags): Likewise.
11453         (mgeneral-regs-only): Mark as Save.
11454         (mfix-cortex-a53-835769): Likewise.
11455         (mcmodel=): Likewise.
11456         (mstrict-align): Likewise.
11457         (momit-leaf-frame-pointer): Likewise.
11458         (mtls-dialect): Likewise.
11459         (master=): Likewise.
11460         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11461         (aarch64_isa_flags): Remove extern declaration.
11462         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11463         to indicate success or failure.
11464         (aarch64_validate_march): Likewise.
11465         (aarch64_validate_mtune): Likewise.
11466         (aarch64_isa_flags): Delete.
11467         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11468         instead of aarch64_isa_flags.
11469         (aarch64_get_tune_cpu): New function.
11470         (aarch64_get_arch): Likewise.
11471         (aarch64_override_options): Use above and set up explicit_tune_core
11472         and explicit_arch.
11473         (aarch64_print_extension): Move earlier in file.  Add isa_flags
11474         argument and use that instead of the global aarch64_isa_flags.
11475         (aarch64_option_save): New function.
11476         (aarch64_option_restore): Likewise.
11477         (aarch64_option_print): Likewise.
11478         (aarch64_declare_function_name): Likewise.
11479         (aarch64_start_file): Delete.
11480         (TARGET_ASM_FILE_START): Do not define.
11481         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11482         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11483         Declare prototype.
11484
11485 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11486
11487         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11488         flag_omit_leaf_frame_pointer to 2.
11489
11490 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11491
11492         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11493         define to 0 or 1.
11494         (TARGET_FIX_ERR_A53_835769): New macro.
11495         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11496         handling of opts->x_aarch64_fix_a53_err835769.
11497         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11498         than aarch64_fix_a53_err835769.
11499         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11500         * config/aarch64/aarch64-linux.h: Likewise.
11501
11502 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
11503
11504         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11505         ix86_expand_int_movcc as boolean.
11506
11507 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11508
11509         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11510         (aarch64_cpu_string): Likewise.
11511         (aarch64_tune_string): Likewise.
11512         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11513         (aarch64_parse_extension): Return aarch64_parse_opt_result.
11514         Add extra argument to put result into.
11515         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
11516         (aarch64_parse_cpu): Add arguments to put results into. Return
11517         aarch64_parse_opt_result.
11518         (aarch64_parse_tune): Likewise.
11519         (aarch64_override_options_after_change_1): New function.
11520         (aarch64_override_options_internal): New function.
11521         (aarch64_validate_mcpu): Likewise.
11522         (aarch64_validate_march): Likewise.
11523         (aarch64_validate_mtune): Likewise.
11524         (aarch64_override_options): Update to reflect above changes.
11525         Move some logic into aarch64_override_options_internal.
11526         Initialize target_option_default_node and target_option_current_node.
11527         (aarch64_override_options_after_change): Move logic into
11528         aarch64_override_options_after_change_1 and call it with global_options.
11529         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11530         flag values from that.
11531
11532 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11533
11534         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11535         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11536         * config/aarch64/aarch64.c (struct processor): Add arch field.
11537         (all_architectures): Handle above, move above all_cores.
11538         (all_cores): Handle above.
11539         (aarch64_parse_arch): Handle above changes.
11540         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11541         above.  Update comments.
11542         (armv8.1-a): Likewise.
11543         * config/aarch64/aarch64-cores.def: Update according to above.
11544         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11545         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11546         aarch64_arch_driver_info.
11547
11548 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11549
11550         * config/aarch64/aarch64.c (struct processor): Add ident field.
11551         Rename core sched_core.
11552         (all_cores): Handle above changes.
11553         (all_architectures): Likewise.
11554         (aarch64_parse_arch): Likewise.
11555         (aarch64_override_options): Likewise.
11556
11557 2015-08-04  Richard Biener  <rguenther@suse.de>
11558
11559         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11560         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11561         comparisons embedded in [VEC_]COND_EXPRs.
11562
11563 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
11564
11565         * tree-if-conv.c: Fix various typos in comments.
11566         * tree-vect-stmts.c: Likewise.
11567
11568 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11569
11570         PR tree-optimization/67043
11571         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11572         preheader after hoisting invariant in it.
11573         (find_defs): Force recomputation of all luids.
11574
11575 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
11576
11577         * config/rs6000/htm.md (tabort.): Restrict the source operand to
11578         using a base register.
11579
11580 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
11581
11582         * main.c (main): Pass in NULL for toplev's external_timer.
11583         * timevar.c: Include coretypes.h.
11584         (class timer::named_items): New.
11585         (timer::named_items::named_items): New.
11586         (timer::named_items::~named_items): New.
11587         (timer::named_items::push): New.
11588         (timer::named_items::pop): New.
11589         (timer::named_items::print): New.
11590         (timer::timer): Initialize field "m_jit_client_items".
11591         (timer::~timer): New.
11592         (timer::push): Move bulk of implementation to...
11593         (timer::push_internal): ...here.  New function.
11594         (timer::pop): Move bulk of implementation to...
11595         (timer::pop_internal): ...here.  New function.
11596         (timer::push_client_item): New.
11597         (timer::pop_client_item): New.
11598         (timer::print_row): New function, taken from timer::print.
11599         (timer::print): Print "GCC items" header if we also have client
11600         items.  Move row-printing to timer::print_row.  Print any client
11601         items.
11602         (timer::get_topmost_item_name): New method.
11603         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11604         (TV_JIT_CLIENT_CODE): New.
11605         * timevar.h (timer::push_client_item): New declaration.
11606         (timer::pop_client_item): New declaration.
11607         (timer::get_topmost_item_name): New method.
11608         (timer::push_internal): New declaration.
11609         (timer::pop_internal): New declaration.
11610         (timer::print_row): New declaration.
11611         (timer::named_items): New declaration.
11612         (timer::m_jit_client_items): New field.
11613         (timer): Add friend class named_items.
11614         (auto_timevar::auto_timevar): Add timer param.
11615         (auto_timevar::~auto_timevar): Use field "m_timer".
11616         (auto_timevar::m_timer): New field.
11617         * toplev.c (initialize_rtl): Add g_timer as param when
11618         constructing auto_timevar instance.
11619         (toplev::toplev): Add "external_timer" param, and use it to
11620         initialize the "g_timer" global if non-NULL.
11621         (toplev::~toplev): If this created "g_timer", delete it.
11622         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11623         with "external_timer" timer *.
11624
11625 2015-08-03  Alexander Basov <coohpt@gmail.com>
11626
11627         PR middle-end/64744
11628         PR middle-end/48470
11629         PR middle-end/43404
11630         * cfgexpand.c (expand_one_var): Add check if stack is going to
11631         be used in naked function.
11632         * expr.c (expand_expr_addr_expr_1): Remove excess checking
11633         whether expression should not reside in MEM.
11634         * function.c (use_register_for_decl): Do not use registers for
11635         non-register things (volatile, float, BLKMode) in naked functions.
11636
11637 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
11638
11639         PR target/67060
11640         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11641         Adjust splits to match new pattern.
11642
11643 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11644
11645         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11646         (VEC_M): Likewise.
11647         (VEC_N): Likewise.
11648         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11649         point in VSX registers.
11650
11651         * config/rs6000/constraints.md (wb constraint): Document unused
11652         w<x> constraint.
11653         (we constraint): Likewise.
11654         (wo constraint): Likewise.
11655         (wp constraint): New constraint for IEEE 128-bit floating point in
11656         VSX registers.
11657         (wq constraint): Likewise.
11658
11659         * config/rs6000/predicates.md (easy_fp_constant): Add support for
11660         IEEE 128-bit floating point in VSX registers.
11661         (easy_scalar_constant): Likewise.
11662
11663         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11664         constraints (wp, wq) for IEEE 128-bit floating point in VSX
11665         registers.
11666         (rs6000_init_hard_regno_mode_ok): Likewise.
11667
11668         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11669         floating point in VSX registers.
11670         (VSX_L): Likewise.
11671         (VSX_M): Likewise.
11672         (VSX_M2): Likewise.
11673         (VSm): Likewise.
11674         (VSs): Likewise.
11675         (VSr): Likewise.
11676         (VSa): Likewise.
11677         (VSv): Likewise.
11678         (vsx_le_permute_<mode>): Add support to properly swap bytes for
11679         IEEE 128-bit floating point in VSX registers on little endian.
11680         (vsx_le_undo_permute_<mode>): Likewise.
11681         (vsx_le_perm_load_<mode>): Likewise.
11682         (vsx_le_perm_store_<mode>): Likewise.
11683         (splitters for IEEE 128-bit fp moves): Likewise.
11684
11685         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11686         wq constraints.
11687
11688         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11689         floating point in VSX registers.
11690         (VM2): Likewise.
11691
11692         * doc/md.text (Machine Constraints): Document wp and wq
11693         constraints on PowerPC.
11694
11695 2015-08-03  Jeff Law  <law@redhat.com>
11696
11697         PR middle-end/66314
11698         PR gcov-profile/66899
11699         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11700         iterate over the jump threading paths when an element in the
11701         jump threading paths array is eliminated.
11702
11703 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
11704
11705         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11706
11707 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
11708
11709         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11710         is_use_properly_guarded the variable def_preds.  Free its
11711         contents before returning.
11712         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11713         (is_use_properly_guarded): Replace local variable def_preds with
11714         a parameter.  Adjust accordingly.  Only update *def_preds if it's
11715         the empty vector.
11716
11717 2015-08-03  Richard Biener  <rguenther@suse.de>
11718
11719         * genmatch.c (simplify::for_subst_vec): New member.
11720         (binary_ok): New helper for for lowering.
11721         (lower_for): Delay substituting operators into result expressions
11722         if we can merge the results eventually again.
11723         (capture_info::walk_result): Adjust for user_id appearing as
11724         result expression operator.
11725         (expr::gen_transform): Likewise.
11726         (dt_simplify::gen_1): Likewise.
11727         (dt_simplify::gen): Pass not substituted operators to tail
11728         functions or initialize local variable with it.
11729         (decision_tree::gen): Adjust function signature.
11730         * match.pd: Fix tests against global code and add default
11731         cases to switch stmts.
11732
11733 2015-08-03  Richard Biener  <rguenther@suse.de>
11734
11735         * genmatch.c (dt_simplify::gen): Create captures array
11736         with an initializer.
11737
11738 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11739
11740         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11741         the host compiler is affected by placement new aliasing bug.
11742         * configure: Regenerate.
11743         * Makefile.in (ALIASING_FLAGS): New variable.
11744         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11745
11746 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11747
11748         PR target/66731
11749         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11750         (negmulsf3_vfp): Likewise.
11751         (muldf3negdf_vfp): Disable for -frounding-math.
11752         (mulsf3negsf_vfp): Likewise.
11753         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11754         fix MULT cost with -frounding-math.
11755
11756 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11757
11758         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11759         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11760         explicit.  Prefer to add the flag whenever possible.
11761         (noce_process_if_block): Try noce_try_store_flag_constants before
11762         noce_try_cmove.
11763
11764 2015-08-03  Richard Biener  <rguenther@suse.de>
11765
11766         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11767         New hash-map to record equivalent transforms.
11768         (dt_node::analyze): Populate the equivalent transforms hash-map.
11769         (dt_simplify::info): Add reference to hash-map entry.
11770         (dt_simplify::gen): If we have split out a function for the
11771         transform, generate a call to it.
11772         (sinfo_hashmap_traits::hash): New function.
11773         (compare_op): New helper function for ...
11774         (sinfo_hashmap_traits::equal_keys): ... this new function.
11775         (decision_tree::gen): Split out common equivalent transforms
11776         into functions.
11777
11778 2015-08-03  Richard Biener  <rguenther@suse.de>
11779
11780         * gimple-fold.c (fold_gimple_assign): Remove folding of
11781         the comparison in COND_EXPRs.
11782
11783 2015-08-03  Richard Biener  <rguenther@suse.de>
11784
11785         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11786         on the rhs of assignments first simplify the embedded
11787         GENERIC condition.
11788
11789 2015-08-03  Richard Biener  <rguenther@suse.de>
11790
11791         PR tree-optimization/66917
11792         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11793         field.
11794         (DR_VECT_AUX): New macro.
11795         (set_dr_misalignment): Adjust.
11796         (dr_misalignment): Likewise.
11797         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11798         Compute whether the base is at least element aligned.
11799         * tree-vect-stmts.c (ensure_base_align): Adjust.
11800         (vectorizable_store): If the base is not element aligned
11801         preserve alignment of the original access if misalignment is unknown.
11802         (vectorizable_load): Likewise.
11803
11804 2015-08-02  Martin Sebor  <msebor@redhat.com>
11805
11806         * c-family/c.opt (-Wframe-address): New warning option.
11807         * doc/invoke.texi (Wframe-address): Document it.
11808         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11809         Clarify possible effects of calling the functions with non-zero
11810         arguments and mention -Wframe-address.
11811         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11812
11813 2015-08-01  Michael Collison  <michael.collison@linaro.org
11814             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11815
11816         * config/arm/arm.md (*arm_smin_cmp): New pattern.
11817         (*arm_umin_cmp): Likewise.
11818
11819 2015-08-01  Caroline Tice  <cmtice@google.com>
11820
11821         PR 66521
11822         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11823         global variables.
11824         (vtbl_find_mangled_name):  New function.
11825         (vtbl_register_mangled_name):  New function.
11826         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
11827         mangled name in mangled name vectors.
11828         (find_or_create_vtbl_map_node):  Ditto.
11829         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
11830         update recursion_depth on function entry; pass it to every recursive
11831         call; automatically exit if depth > 25 (give up looking at that point).
11832         (verify_bb_vtables):  Initialize recursion_depth and pass it to
11833         var_is_used_for_virtual_call_p.
11834         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11835         global variable decls.
11836         (vtbl_register_mangled_name): New extern function decl.
11837
11838 2015-08-01  Tom de Vries  <tom@codesourcery.com>
11839
11840         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11841         function.
11842         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11843         Declare.
11844         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11845         operation_no_trapping_overflow.  Allow non-overflow operations.
11846         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11847         operations.
11848
11849 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11850
11851         PR target/67049
11852         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11853
11854 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11855
11856         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11857         Enable for TARGET_32BIT.
11858         (*if_move_neg): Likewise.
11859
11860 2015-07-31  Nick Clifton  <nickc@redhat.com>
11861
11862         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11863         Returns true for __model__.
11864         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11865
11866 2015-07-31  Alan Modra  <amodra@gmail.com>
11867
11868         PR target/66870
11869         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11870         (rs6000_emit_prologue): Set it.
11871         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11872
11873 2015-07-31  Richard Biener  <rguenther@suse.de>
11874
11875         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11876         -> X == (C1 ^ C2) which is already implemented in match.pd.
11877         Remove redundant dispatching to fold_relational_const.
11878         Move unordered self and NaN compares ...
11879         * match.pd: ... as patterns here.  Remove some stray captures
11880         and add a comment.
11881
11882 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
11883
11884         * config/i386/i386.c
11885         (bdesc_special_args): Convert mask type from signed to unsigned for
11886         masked builtins.
11887         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11888         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11889         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11890         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11891         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11892         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11893         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11894         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11895         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11896         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11897         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11898         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11899         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11900         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11901         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11902         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11903         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11904         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11905         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11906         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11907         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11908         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11909         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11910         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11911         * config/i386/i386-builtin-types.def
11912         (V16QI_FTYPE_V16SI): Remove.
11913         (V8DF_FTYPE_V8SI): Ditto.
11914         (V8HI_FTYPE_V8DI): Ditto.
11915         (V8SI_FTYPE_V8DI): Ditto.
11916         (V8SF_FTYPE_V8DF): Ditto.
11917         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11918         (V16HI_FTYPE_V16SI): Ditto.
11919         (V16SF_FTYPE_V16HI): Ditto.
11920         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11921         (V16SF_FTYPE_V16SI): Ditto.
11922         (V4DI_FTYPE_V4DI): Ditto.
11923         (V16SI_FTYPE_V16SF): Ditto.
11924         (V16SF_FTYPE_FLOAT): Ditto.
11925         (V8DF_FTYPE_DOUBLE): Ditto.
11926         (V8DI_FTYPE_INT64): Ditto.
11927         (V8DI_FTYPE_V4DI): Ditto.
11928         (V16QI_FTYPE_V8DI): Ditto.
11929         (UINT_FTYPE_V4SF): Ditto.
11930         (UINT64_FTYPE_V4SF): Ditto.
11931         (UINT_FTYPE_V2DF): Ditto.
11932         (UINT64_FTYPE_V2DF): Ditto.
11933         (V16SI_FTYPE_V16SI): Ditto.
11934         (V8DI_FTYPE_V8DI): Ditto.
11935         (V16SI_FTYPE_PV4SI): Ditto.
11936         (V16SF_FTYPE_PV4SF): Ditto.
11937         (V8DI_FTYPE_PV2DI): Ditto.
11938         (V8DF_FTYPE_PV2DF): Ditto.
11939         (V4DI_FTYPE_PV2DI): Ditto.
11940         (V4DF_FTYPE_PV2DF): Ditto.
11941         (V16SI_FTYPE_PV2SI): Ditto.
11942         (V16SF_FTYPE_PV2SF): Ditto.
11943         (V8DI_FTYPE_PV4DI): Ditto.
11944         (V8DF_FTYPE_PV4DF): Ditto.
11945         (V8SF_FTYPE_FLOAT): Ditto.
11946         (V4SF_FTYPE_FLOAT): Ditto.
11947         (V4DF_FTYPE_DOUBLE): Ditto.
11948         (V8SF_FTYPE_PV4SF): Ditto.
11949         (V8SI_FTYPE_PV4SI): Ditto.
11950         (V4SI_FTYPE_PV2SI): Ditto.
11951         (V8SF_FTYPE_PV2SF): Ditto.
11952         (V8SI_FTYPE_PV2SI): Ditto.
11953         (V16SF_FTYPE_PV8SF): Ditto.
11954         (V16SI_FTYPE_PV8SI): Ditto.
11955         (V8DI_FTYPE_V8SF): Ditto.
11956         (V4DI_FTYPE_V4SF): Ditto.
11957         (V2DI_FTYPE_V4SF): Ditto.
11958         (V64QI_FTYPE_QI): Ditto.
11959         (V32HI_FTYPE_HI): Ditto.
11960         (V8UHI_FTYPE_V8UHI): Ditto.
11961         (V16UHI_FTYPE_V16UHI): Ditto.
11962         (V32UHI_FTYPE_V32UHI): Ditto.
11963         (V2UDI_FTYPE_V2UDI): Ditto.
11964         (V4UDI_FTYPE_V4UDI): Ditto.
11965         (V8UDI_FTYPE_V8UDI): Ditto.
11966         (V4USI_FTYPE_V4USI): Ditto.
11967         (V8USI_FTYPE_V8USI): Ditto.
11968         (V16USI_FTYPE_V16USI): Ditto.
11969         (V2DF_FTYPE_V2DF_UINT64): Ditto.
11970         (V2DI_FTYPE_V2DF_V2DF): Ditto.
11971         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11972         (V8DF_FTYPE_V8DF_V8DI): Ditto.
11973         (V4SF_FTYPE_V4SF_UINT64): Ditto.
11974         (V4SI_FTYPE_V4SF_V4SF): Ditto.
11975         (V16SF_FTYPE_V16SF_V16SI): Ditto.
11976         (V64QI_FTYPE_V32HI_V32HI): Ditto.
11977         (V32HI_FTYPE_V16SI_V16SI): Ditto.
11978         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11979         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11980         (V32HI_FTYPE_V64QI_V64QI): Ditto.
11981         (V32HI_FTYPE_V32HI_V32HI): Ditto.
11982         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11983         (V16SI_FTYPE_V16SI_V4SI): Ditto.
11984         (V16SI_FTYPE_V16SI_V16SI): Ditto.
11985         (V16SI_FTYPE_V32HI_V32HI): Ditto.
11986         (V16SI_FTYPE_V16SI_SI): Ditto.
11987         (V8DI_FTYPE_V8DI_V8DI): Ditto.
11988         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11989         (V8DI_FTYPE_V16SI_V16SI): Ditto.
11990         (V8DI_FTYPE_V8DI_V2DI): Ditto.
11991         (QI_FTYPE_QI): Ditto.
11992         (SI_FTYPE_SI): Ditto.
11993         (DI_FTYPE_DI): Ditto.
11994         (QI_FTYPE_QI_QI): Ditto.
11995         (QI_FTYPE_QI_INT): Ditto.
11996         (HI_FTYPE_HI_INT): Ditto.
11997         (SI_FTYPE_SI_INT): Ditto.
11998         (DI_FTYPE_DI_INT): Ditto.
11999         (HI_FTYPE_V16QI_V16QI): Ditto.
12000         (SI_FTYPE_V32QI_V32QI): Ditto.
12001         (DI_FTYPE_V64QI_V64QI): Ditto.
12002         (QI_FTYPE_V8HI_V8HI): Ditto.
12003         (HI_FTYPE_V16HI_V16HI): Ditto.
12004         (SI_FTYPE_V32HI_V32HI): Ditto.
12005         (QI_FTYPE_V4SI_V4SI): Ditto.
12006         (QI_FTYPE_V8SI_V8SI): Ditto.
12007         (QI_FTYPE_V2DI_V2DI): Ditto.
12008         (QI_FTYPE_V4DI_V4DI): Ditto.
12009         (QI_FTYPE_V8DI_V8DI): Ditto.
12010         (HI_FTYPE_V16SI_V16SI): Ditto.
12011         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
12012         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
12013         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
12014         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
12015         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
12016         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
12017         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
12018         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
12019         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
12020         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
12021         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
12022         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
12023         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
12024         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
12025         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
12026         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
12027         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
12028         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
12029         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
12030         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
12031         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
12032         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
12033         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
12034         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
12035         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
12036         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
12037         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
12038         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
12039         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
12040         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
12041         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
12042         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
12043         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
12044         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
12045         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
12046         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
12047         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
12048         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
12049         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
12050         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
12051         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
12052         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
12053         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
12054         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
12055         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
12056         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
12057         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
12058         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
12059         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
12060         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
12061         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
12062         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
12063         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
12064         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
12065         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
12066         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
12067         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
12068         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
12069         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
12070         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
12071         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
12072         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
12073         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
12074         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
12075         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
12076         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
12077         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
12078         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
12079         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
12080         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
12081         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
12082         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
12083         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
12084         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
12085         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
12086         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
12087         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
12088         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
12089         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
12090         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
12091         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
12092         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
12093         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
12094         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
12095         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
12096         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
12097         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
12098         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
12099         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
12100         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
12101         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
12102         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
12103         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
12104         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
12105         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
12106         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
12107         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
12108         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
12109         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
12110         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
12111         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
12112         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
12113         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
12114         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
12115         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
12116         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
12117         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
12118         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
12119         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
12120         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
12121         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
12122         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
12123         (HI_FTYPE_HI): Ditto.
12124         (HI_FTYPE_V16QI): Ditto.
12125         (SI_FTYPE_V32QI): Ditto.
12126         (DI_FTYPE_V64QI): Ditto.
12127         (QI_FTYPE_V8HI): Ditto.
12128         (HI_FTYPE_V16HI): Ditto.
12129         (SI_FTYPE_V32HI): Ditto.
12130         (QI_FTYPE_V4SI): Ditto.
12131         (QI_FTYPE_V8SI): Ditto.
12132         (HI_FTYPE_V16SI): Ditto.
12133         (QI_FTYPE_V2DI): Ditto.
12134         (QI_FTYPE_V4DI): Ditto.
12135         (QI_FTYPE_V8DI): Ditto.
12136         (V16QI_FTYPE_HI): Ditto.
12137         (V32QI_FTYPE_SI): Ditto.
12138         (V64QI_FTYPE_DI): Ditto.
12139         (V8HI_FTYPE_QI): Ditto.
12140         (V16HI_FTYPE_HI): Ditto.
12141         (V32HI_FTYPE_SI): Ditto.
12142         (V4SI_FTYPE_QI): Ditto.
12143         (V4SI_FTYPE_HI): Ditto.
12144         (V8SI_FTYPE_QI): Ditto.
12145         (V8SI_FTYPE_HI): Ditto.
12146         (V2DI_FTYPE_QI): Ditto.
12147         (V4DI_FTYPE_QI): Ditto.
12148         (HI_FTYPE_HI_HI): Ditto.
12149         (SI_FTYPE_SI_SI): Ditto.
12150         (DI_FTYPE_DI_DI): Ditto.
12151         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12152         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12153         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12154         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12155         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12156         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12157         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12158         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12159         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12160         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12161         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12162         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12163         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12164         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12165         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12166         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12167         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12168         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12169         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12170         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12171         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12172         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12173         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12174         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12175         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12176         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12177         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12178         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12179         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12180         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12181         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12182         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12183         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12184         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12185         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12186         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12187         (V16SI_FTYPE_HI): Ditto.
12188         (V8DI_FTYPE_QI): Ditto.
12189         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12190         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12191         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12192         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12193         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12194         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12195         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12196         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12197         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12198         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12199         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12200         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12201         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12202         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12203         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12204         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12205         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12206         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12207         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12208         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12209         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12210         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12211         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12212         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12213         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12214         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12215         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12216         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12217         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12218         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12219         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12220         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12221         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12222         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12223         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12224         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12225         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12226         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12227         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12228         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12229         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12230         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12231         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12232         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12233         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12234         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12235         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12236         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12237         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12238         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12239         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12240         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12241         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12242         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12243         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12244         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12245         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12246         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12247         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12248         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12249         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12250         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12251         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12252         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12253         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12254         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12255         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12256         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12257         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12258         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12259         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12260         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12261         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12262         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12263         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12264         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12265         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12266         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12267         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12268         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12269         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12270         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12271         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12272         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12273         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12274         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12275         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12276         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12277         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12278         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12279         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12280         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12281         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12282         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12283         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12284         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12285         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12286         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12287         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12288         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12289         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12290         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12291         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12292         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12293         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12294         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12295         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12296         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12297         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12298         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12299         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12300         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12301         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12302         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12303         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12304         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12305         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12306         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12307         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12308         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12309         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12310         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12311         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12312         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12313         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12314         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12315         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12316         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12317         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12318         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12319         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12320         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12321         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12322         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12323         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12324         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12325         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12326         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12327         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12328         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12329         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12330         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12331         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12332         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12333         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12334         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12335         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12336         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12337         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12338         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12339         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12340         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12341         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12342         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12343         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12344         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12345         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12346         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12347         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12348         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12349         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12350         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12351         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12352         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12353         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12354         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12355         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12356         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12357         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12358         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12359         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12360         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12361         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12362         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12363         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12364         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12365         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12366         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12367         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12368         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12369         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12370         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12371         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12372         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12373         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12374         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12375         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12376         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12377         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12378         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12379         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12380         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12381         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12382         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12383         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12384         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12385         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12386         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12387         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12388         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12389         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12390         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12391         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12392         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12393         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12394         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12395         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12396         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12397         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12398         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12399         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12400         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12401         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12402         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12403         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12404         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12405         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12406         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12407         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12408         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12409         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12410         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12411         (QI_FTYPE_V8DF_INT_QI): Ditto.
12412         (QI_FTYPE_V4DF_INT_QI): Ditto.
12413         (QI_FTYPE_V2DF_INT_QI): Ditto.
12414         (HI_FTYPE_V16SF_INT_HI): Ditto.
12415         (QI_FTYPE_V8SF_INT_QI): Ditto.
12416         (QI_FTYPE_V4SF_INT_QI): Ditto.
12417         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12418
12419 2015-07-31  Richard Biener  <rguenther@suse.de>
12420
12421         * gimple-fold.c (fold_gimple_assign): Remove folding of
12422         GIMPLE_BINARY_RHS.
12423
12424 2015-07-31  Tom de Vries  <tom@codesourcery.com>
12425
12426         PR tree-optimization/66846
12427         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12428         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12429         (expand_omp_target) [ENABLE_CHECKING]: Same.
12430         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12431         cfun if !LOOPS_NEED_FIXUP.
12432         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
12433         that omp_for already has its own loop struct.
12434         * tree-parloops.c (create_phi_for_local_result)
12435         (create_call_for_reduction): Handle simple latch bb.
12436         (create_parallel_loop): Add simple latch bb to preserve
12437         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
12438         (gen_parallel_loop): Remove call to cancel_loop_tree.
12439         (parallelize_loops): Skip loops that are inner loops of parallelized
12440         loops.
12441         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12442         verify_loop_structure.
12443
12444 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
12445
12446         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12447         * config/v850/v850.md (RV_REGNUM): New constants.
12448         * config/v850/v850.c (v850_libcall_value): New functions.
12449         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12450         (TARGET_LIBCALL_VALUE): Define.
12451
12452 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
12453
12454         * rtl.h (lowpart_subreg): Move in file.
12455         * loop-iv.c (lowpart_subreg): Move to...
12456         * simplify-rtx.c (lowpart_subreg): ...here.
12457           (simplify_binary_operation_1): Use lowpart_subreg instead of
12458           simplify_gen_subreg.
12459         * expr.c (expand_expr_real_2): Ditto.
12460         * emit-rtl.c (gen_lowpart_common): Ditto.
12461         * combine.c (gen_lowpart_for_combine): Ditto.
12462         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12463           expand_debug_source_expr): Ditto.
12464
12465 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
12466
12467         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12468         (expand_builtin_atomic_clear): Remove support for atomic_clear
12469         pattern.
12470
12471 2015-07-30  Richard Biener  <rguenther@suse.de>
12472
12473         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12474         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12475         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
12476         redundant operand canonicalization.
12477
12478 2015-07-30  David Sherwood  <david.sherwood@arm.com>
12479
12480         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12481         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12482         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12483         * config/arm/arm.c (neon_valid_immediate): Likewise.
12484         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12485         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12486         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12487         (expand_vec_perm_vpshufb2_vpermq): Likewise.
12488         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12489         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12490         * config/i386/sse.md
12491         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12492         (*ssse3_palignr<mode>_perm): Likewise.
12493         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12494         * config/spu/spu.c (arith_immediate_p): Likewise.
12495         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12496         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12497
12498 2015-07-30  Richard Biener  <rguenther@suse.de>
12499
12500         * genmatch.c (decision_tree::gen_gimple): Merge with ...
12501         (decision_tree::gen_generic): ... this into ...
12502         (decision_tree::gen): ... this.
12503         (main): Adjust callers.
12504
12505 2015-07-30  Richard Biener  <rguenther@suse.de>
12506
12507         * genmatch.c (verbose): New global.
12508         (warning_at): Add overload with source_location.
12509         (capture_info::capture_info): Add bool whether generating gimple
12510         or generic.  Add gimple member.
12511         (capture_info::cinfo): Add capture member.
12512         (capture_info::walk_match): Record capture.  Warn on
12513         non-captured leafs.
12514         (capture_info::walk_c_expr): Add more fragments captures cannot
12515         escape through.  Warn on escaped captures.
12516         (dt_simplify::gen_1): Warn on operands we force to have no
12517         side-effects.
12518         (main): Initialize verbose.
12519         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12520
12521 2015-07-30  Richard Biener  <rguenther@suse.de>
12522
12523         PR middle-end/67053
12524         * match.pd: Allow both operands to independently have conversion
12525         when simplifying compares of addresses.
12526
12527 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
12528
12529         PR target/66217
12530         PR target/67045
12531         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12532         around those cases that need one.
12533
12534 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
12535
12536         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12537
12538 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12539
12540         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12541         New.  Copied from config/i386/gnu-user.h.
12542         (ASM_COMMENT_START): Likewise.
12543         (DBX_REGISTER_NUMBER): Likewise.
12544
12545 2015-07-29  Richard Biener  <rguenther@suse.de>
12546
12547         * gimple-fold.c (fold_gimple_cond): Remove.
12548         (fold_stmt_1): Do not call it.
12549
12550 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
12551
12552         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12553         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12554
12555         * config/aarch64/aarch64-modes.def: Add HFmode.
12556
12557         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12558         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12559
12560         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12561         aarch64_promoted_type): New.
12562
12563         (aarch64_float_const_representable_p): Disable HFmode.
12564         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12565         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12566         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12567
12568         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12569         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12570
12571         * config/aarch64/iterators.md (GPF_F16): New.
12572
12573 2015-07-29  Richard Biener  <rguenther@suse.de>
12574
12575         * match.pd: Merge address comparison patterns and make them
12576         handle some more cases.
12577
12578 2015-07-29  Richard Biener  <rguenther@suse.de>
12579
12580         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12581         (parser::parse_capture): Add bool argument on whether to reject
12582         unknown captures.
12583         (parser::parse_expr): Adjust.
12584         (parser::parse_op): Likewise.
12585         (parser::parse_pattern): Likewise.
12586
12587 2015-07-29  Richard Biener  <rguenther@suse.de>
12588
12589         * gimple-fold.c (has_use_on_stmt): New function.
12590         (replace_stmt_with_simplification): Use it to allow
12591         abnormals originally referenced in the stmt.
12592         (fold_stmt_1): Canonicalize operand order.
12593
12594 2015-07-28  David Sherwood  <david.sherwood@arm.com>
12595
12596         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12597         GET_MODE_INNER unconditionally.
12598         * config/spu/spu.c (arith_immediate_p): Likewise.
12599         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12600         * expmed.c (synth_mult): Remove check for VOIDmode result from
12601         GET_MODE_INNER.
12602         (expand_mult_const): Likewise.
12603         * fold-const.c (fold_binary_loc): Replace call to element_precision
12604         with call to GET_MODE_PRECISION.
12605         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12606         m->name.
12607         (emit_mode_inner): Likewise.
12608         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12609         result check.
12610         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12611         (GET_MODE_UNIT_PRECISION): Likewise.
12612         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12613         * simplify-rtx.c (simplify_immed_subreg): Likewise.
12614         * stor-layout.c (bitwise_type_for_mode): Update assert.
12615         (element_precision): Remove.
12616
12617 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12618
12619         * target-insns.def (reload_load_address): New targetm instruction
12620         pattern.
12621         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12622
12623 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12624
12625         * target-insns.def (atomic_test_and_set): New targetm instruction
12626         pattern.
12627         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12628         HAVE_*/gen_* interface.
12629
12630 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12631
12632         * target-insns.def (can_extend, ptr_extend): New targetm instruction
12633         patterns.
12634         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12635         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12636         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12637         * rtlanal.c (nonzero_bits1): Likewise.
12638         (num_sign_bit_copies1): Likewise.
12639
12640 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12641
12642         * target-insns.def (eh_return): New targetm instruction pattern.
12643         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12644         interface.
12645         * function.c (thread_prologue_and_epilogue_insns): Remove
12646         preprocessor condition.
12647
12648 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12649
12650         * target-insns.def (indirect_jump): New targetm instruction pattern.
12651         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12652         interface.
12653
12654 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12655
12656         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12657         instead of nonimmediate_operand.  Remove C condiition.
12658
12659 2015-07-28  Richard Biener  <rguenther@suse.de>
12660
12661         * match.pd: Add more simplification of address comparisons.
12662
12663 2015-07-28  Richard Biener  <rguenther@suse.de>
12664
12665         * match.pd: Re-order two cases in comparison with max/min
12666         value simplification to make it apply for bools.
12667
12668 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12669
12670         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12671         Handle simple SIGN_EXTEND or ZERO_EXTEND.
12672         (aarch64_rtx_costs): Properly strip extend or extract before
12673         passing down to rtx costs again.
12674
12675 2015-07-28  Nick Clifton  <nickc@redhat.com>
12676
12677         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12678         Optimizes the case where -mes0 is active and a constant symbolic
12679         address is used.
12680         * config/rl78/rl78-protos.h: Prototype the new function.
12681         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12682
12683 2015-07-28  Tom de Vries  <tom@codesourcery.com>
12684
12685         * tree-parloops.c (reduc_stmt_res): New function.
12686         (initialize_reductions, add_field_for_reduction)
12687         (create_phi_for_local_result, create_loads_for_reductions)
12688         (create_stores_for_reduction, build_new_reduction): Handle case that
12689         reduc_stmt is a phi.
12690         (gather_scalar_reductions): Allow double_reduc reductions.
12691
12692 2015-07-28  Richard Biener  <rguenther@suse.de>
12693
12694         * fold-const.c (fold_comparison): Remove equality folding
12695         of decl addresses ...
12696         * match.pd: ... here and merge with existing pattern.
12697
12698 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12699
12700         PR tree-optimization/66828
12701         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12702         from int64_t to uint64_t.
12703
12704 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12705
12706         * opts-common.c (read_cmdline_option): List DriverOnly enum values
12707         as valid only in the error message of the driver, not in the
12708         messages of the language compilers.
12709
12710 2015-07-27  Tom de Vries  <tom@codesourcery.com>
12711
12712         * tree-parloops.c (gather_scalar_reductions): Simplify function
12713         structure.
12714
12715 2015-07-27  Marek Polacek  <polacek@redhat.com>
12716
12717         * ipa-devirt.c (types_same_for_odr): Fix typo.
12718
12719 2015-07-27  Jason Merrill  <jason@redhat.com>
12720
12721         PR debug/66468
12722         * dwarf2out.c (gen_inlined_subroutine_die): Check
12723         cgraph_function_possibly_inlined_p.
12724
12725 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
12726
12727         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12728         Place integer variant first.
12729         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12730
12731 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
12732
12733         PR/63870
12734         * config/arm/arm-builtins.c (enum arm_builtins):
12735         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12736         (ARM_BUILTIN_NEON_BASE): Rename macro to....
12737         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12738         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12739         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12740
12741 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
12742
12743         PR/63870
12744         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12745         Add qualifier_lane_index.
12746         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12747         (arm_getlane_qualifiers): Use qualifier_lane_index.
12748         (arm_lanemac_qualifiers): Rename to...
12749         (arm_mac_n_qualifiers): ...this.
12750         (LANEMAC_QUALIFIERS): Rename to...
12751         (MAC_N_QUALIFIERS): ...this.
12752         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12753         (arm_setlane_qualifiers): Use qualifier_lane_index.
12754         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12755         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12756         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12757         (arm_expand_neon_builtin): Handle qualifier_lane_index.
12758
12759         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12760         * config/arm/arm.c (bounds_check): Likewise, improve error message.
12761         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12762         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12763         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12764         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12765         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12766         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12767         qualifiers to TERNOP_IMM.
12768         (vdup_lane): Change qualifiers to GETLANE.
12769         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12770         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12771         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12772         vqdmlsl_n): Change qualifiers to MAC_N.
12773
12774         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12775         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12776         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12777         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12778         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12779         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12780         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12781         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12782         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12783         Remove call to neon_lane_bounds.
12784
12785 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
12786
12787         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12788         Place integer variant first.
12789
12790 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
12791
12792         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12793         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12794         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12795         for armv6kz targets.
12796         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12797         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12798         (FL_FOR_ARCH6ZK): Remove.
12799         (FL_FOR_ARCH6KZ): New.
12800         (arm_arch6zk): New declaration.
12801         * config/arm/arm-tables.opt: Regenerate.
12802         * config/arm/arm.c (arm_arch6kz): New.
12803         (arm_option_override): Set arm_arch6kz.
12804         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12805         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12806         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12807
12808 2015-07-27  Marek Polacek  <polacek@redhat.com>
12809
12810         PR c++/66555
12811         PR c/54979
12812         * doc/invoke.texi: Document -Wtautological-compare.
12813
12814 2015-07-27  Richard Biener  <rguenther@suse.de>
12815
12816         * genmatch.c (decision_tree::gen_gimple): Split out large
12817         subtrees into separate functions.
12818         (decision_tree::gen_generic): Likewise.
12819
12820 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
12821
12822         * config/alpha/alpha.c: Use SUBREG_P predicate.
12823         * config/alpha/predicates.md: Ditto.
12824
12825 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12826
12827         * config.host (s390*-*-*): Include driver-native.c only when
12828         building with s390* as host *and* target.
12829
12830 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
12831
12832         PR target/66930
12833         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12834         T bit register modified_between_p check.
12835
12836 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12837
12838         * config/i386/i386.c: Use SUBREG_P predicate.
12839         * config/i386/i386.md: Ditto.
12840         * config/i386/sse.md: Ditto.
12841         * config/i386/predicates.md: Ditto.
12842
12843 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12844
12845         PR target/67004
12846         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12847         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12848
12849 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
12850
12851         * Makefile.in: Remove use of TREEBROWSER.
12852         * config.in: Regenerated.
12853         * configure: Regenerated.
12854         * configure.ac: Remove definition of TREEBROWSER.
12855         * tree-browser.c: Removed.
12856         * tree-browser.def: Removed.
12857
12858 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
12859
12860         * graphite-scop-detection.c: Include gimple-pretty-print.h.
12861         (stmt_simple_for_scop_p): Print when a stmt is not handled in
12862         Graphite.
12863         (scopdet_basic_block_info): Print when a loop or bb cannot be
12864         represented in Graphite.
12865
12866 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12867
12868         PR target/66648
12869         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12870         execution guard when min_size is less than size_needed.
12871
12872 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
12873
12874         * doc/install.texi: Document supported versions of ISL.
12875
12876 2015-07-25  Jeff Law  <law@redhat.com>
12877
12878         Revert:
12879         PR lto/66752
12880         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12881         unable to find X NE 0 in the tables, return X as the simplified
12882         condition.
12883         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12884         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
12885         to VISISTED_BBS.  */
12886         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12887         after removing the control flow statement and unnecessary edges.
12888
12889 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
12890
12891         Revert:
12892         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
12893
12894         PR rtl-optimization/64164
12895         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12896         * tree-ssa-copyrename.c: Removed.
12897         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12898         -ftree-coalesce-vars.
12899         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12900         * common.opt (ftree-copyrename): Ignore.
12901         (ftree-coalesce-inlined-vars): Likewise.
12902         * doc/invoke.texi: Remove the ignored options above.
12903         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12904         * tree-ssa-coalesce.h: ... here.
12905         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12906         headers required by it.
12907         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12908         across variables when flag_tree_coalesce_vars.  Check register
12909         use and promoted modes to allow coalescing.  Moved to
12910         tree-ssa-coalesce.c.
12911         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12912         with its member functions to tree-ssa-coalesce.c.
12913         (var_map_base_init): Likewise.  Renamed to
12914         compute_samebase_partition_bases.
12915         (partition_view_normal): Drop want_bases parameter.
12916         (partition_view_bitmap): Likewise.
12917         * tree-ssa-live.h: Adjust declarations.
12918         * tree-ssa-coalesce.c: Include explow.h.
12919         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12920         default defs at the entry point.
12921         (dump_part_var_map): New.
12922         (compute_optimized_partition_bases): New, called by...
12923         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12924         of compute_samebase_partition_bases.  Adjust.
12925         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12926         * cfgexpand.c (leader_merge): New.
12927         (get_rtl_for_parm_ssa_default_def): New.
12928         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12929         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12930         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
12931         redundant MEM attr setting.
12932         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
12933         from...
12934         (expand_one_stack_var): ... this.  New wrapper to check and
12935         skip already expanded SSA partitions.
12936         (record_alignment_for_reg_var): New, factored out of...
12937         (expand_one_var): ... this.
12938         (expand_one_ssa_partition): New.
12939         (adjust_one_expanded_partition_var): New.
12940         (expand_one_register_var): Check and skip already expanded SSA
12941         partitions.
12942         (expand_used_vars): Don't create DECLs for anonymous SSA
12943         names.  Expand all SSA partitions, then adjust all SSA names.
12944         (pass::execute): Replace the loops that set
12945         SA.partition_to_pseudo from partition leaders and cleared
12946         DECL_RTL for multi-location variables, and that which used to
12947         rename vars and set attrs, with one that clears DECL_RTL and
12948         checks that PARMs and RESULTs default_defs match DECL_RTL.
12949         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12950         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12951         * explow.c (promote_ssa_mode): New.
12952         * explow.h (promote_ssa_mode): Declare.
12953         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12954         * function.c: Include cfgexpand.h.
12955         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12956         (use_register_for_parm_decl): Wrapper for the above to
12957         special-case the result_ptr.
12958         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12959         (split_complex_args): Take assign_parm_data_all argument.
12960         Pass it to rtl_for_parm.  Set up rtl and context for split
12961         args.
12962         (assign_parms_augmented_arg_list): Adjust.
12963         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12964         multiple locations.  Recognize split complex args.
12965         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12966         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
12967         (assign_parm_setup_block): Prefer SSA-assigned location.
12968         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
12969         if stack_parm is NULL.
12970         (assign_parm_setup_stack): Prefer SSA-assigned location.
12971         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
12972         rtl before testing for pointer bounds.  Special-case result_ptr.
12973         (expand_function_start): Maybe reset DECL_RTL of result.
12974         Prefer SSA-assigned location for result and static chain.
12975         Factor out DECL_RESULT and SET_DECL_RTL.
12976         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12977         anonymous SSA names.  Use promote_ssa_mode.
12978         (get_temp_reg): Likewise.
12979         (remove_ssa_form): Adjust.
12980         * stor-layout.c (layout_decl): Don't set mem attributes of
12981         non-MEMs.
12982         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12983         and get its reg_usage for reg invalidation.
12984         (compute_bb_dataflow): Pass it insn.
12985         (emit_notes_in_bb): Likewise.
12986
12987 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12988
12989         * config/i386/i386.c (ix86_va_start): Remove
12990         unneeded !TARGET_64BIT check.
12991         (ix86_gimplify_va_arg): Ditto.
12992
12993 2015-07-24  Tom de Vries  <tom@codesourcery.com>
12994
12995         * graphite-sese-to-poly.c (build_poly_scop): Always call
12996         rewrite_commutative_reductions_out_of_ssa.
12997
12998 2015-07-24  Tom de Vries  <tom@codesourcery.com>
12999
13000         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
13001         flag_associative_math to FLOAT_TYPE_P.  Honour
13002         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
13003
13004 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13005
13006         PR c++/64079
13007         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
13008         and "%qD" in warning_at instead of "%q+D" in warning.
13009
13010 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
13011
13012         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
13013         (ix86_function_abi): Cleanup.
13014
13015 2015-07-24  Michael Darling  <darlingm@gmail.com>
13016
13017         PR other/66259
13018         * acinclude.m4: Reflects renaming of configure.in to configure.ac
13019         * configure: Likewise
13020         * configure.ac: Likewise
13021         * doc/install.texi: Likewise
13022         * doc/tm.texi: Likewise
13023         * doc/tm.texi.in: Likewise
13024
13025 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13026
13027         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
13028         manually swapping values.
13029         * cse.c (fold_rtx): Likewise.
13030         * lra-eliminations.c (form_sum): Likewise.
13031
13032 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
13033
13034         PR target/64003
13035         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
13036         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
13037         (*jcc_1, *jcc_2, jump, simple_return_internal)
13038         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
13039         Set length_nobnd attribute instead of length attribute.
13040         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
13041         (length_nobnd): Remove attribute.
13042         (length): Remove length_nobnd processing.
13043
13044 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
13045
13046         * gimplify.c (omp_default_clause): New function.  Reorganize flow
13047         for clarity. Broken out of ...
13048         (omp_notice_variable): ... here.
13049
13050 2015-07-24  Gary Funck  <gary@intrepid.com>
13051
13052         PR middle-end/66984
13053         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
13054         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
13055
13056 2015-07-24  Tom de Vries  <tom@codesourcery.com>
13057
13058         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
13059         exit-first loop transform.
13060
13061 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
13062
13063         PR 66714
13064         * tree-cfg.c (struct replace_decls_d): New struct.
13065         (replace_block_vars_by_duplicates_1): New function.
13066         (replace_block_vars_by_duplicates): Use it to replace the decls
13067         in the value exprs by duplicates.
13068
13069 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13070
13071         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
13072         -shared, -symbolic, -rdynamic.
13073
13074 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13075
13076         PR target/65711
13077         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
13078         -dynamic-linker within %{!static %{!shared, and -rdynamic within
13079         %{!static.
13080
13081 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
13082
13083         PR ipa/66566
13084         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
13085         edge summary is available.
13086
13087 2015-07-24  Richard Biener  <rguenther@suse.de>
13088
13089         * genmatch.c (struct dt_node): Add statistic fields.
13090         (dt_node::analyze): New method.
13091         (decision_tree::gen_gimple): Call analyze on the root node
13092         and print statistics to stderr.
13093         (decision_tree::gen_generic): Likewise.
13094
13095 2015-07-24  Richard Biener  <rguenther@suse.de>
13096
13097         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
13098         against the highest or lowest possible integer ...
13099         * match.pd: ... as patterns here.
13100
13101 2015-07-24  Richard Biener  <rguenther@suse.de>
13102
13103         * genmatch.c (struct capture_info): Add same_as field.
13104         (capture_info::capture_info): Initialize same_as.
13105         (capture_info::walk_match): Compute same_as.
13106         (capture_info::walk_result): Compute stuff for the leader.
13107         (capture_info::walk_c_expr): Likewise.
13108         (dt_simplify::gen_1): Only look at leaders when deciding
13109         to force no side-effects or emit side-effects of omitted operands.
13110
13111 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13112
13113         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
13114         reg note to the GPR -> FPR save instructions.
13115
13116 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13117
13118         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
13119         cheaper.
13120         (s390_expand_insv): Don't generate risbg pattern for constant zero
13121         sources.
13122         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
13123         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
13124         splitters.
13125
13126 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13127
13128         * config/s390/s390.c (s390_reorg): Clean up handling of processors
13129         with
13130         -mtune=
13131         (s390_issue_rate): Likewise.
13132         (s390_sched_reorder): Likewise.
13133         (s390_sched_variable_issue): Likewise.
13134         (s390_loop_unroll_adjust): Likewise.
13135         (s390_option_override):  Likewise.
13136
13137 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13138
13139         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13140         processor capabilities with -march=native.
13141         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13142         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
13143         (S390_TARGET_BITS_STRING): Macro to simplify specs.
13144
13145 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13146
13147         * config/s390/s390.c (s390_issue_rate): Handle
13148         PROCESSOR_2094_Z9_EC.
13149         (s390_option_override): Likewise.
13150         (s390_adjust_priority): Likewise.
13151
13152 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13153
13154         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13155         when cross compiling.
13156
13157 2015-07-24  Richard Biener  <rguenther@suse.de>
13158
13159         * fold-const.c (maybe_canonicalize_comparison_1): Move
13160         A code CST canonicalization ...
13161         * match.pd: ... to a pattern here.
13162
13163 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
13164
13165         Revert:
13166         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
13167         PR target/63521
13168         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13169         (HONOR_REG_ALLOC_ORDER): Define.
13170
13171 2015-07-24  Richard Biener  <rguenther@suse.de>
13172
13173         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13174         * fold-const.c (fold_comparison): Move parameter does not
13175         alias &local simplification ...
13176         * match.pd: ... as a pattern here.
13177
13178 2015-07-24  Richard Biener  <rguenther@suse.de>
13179
13180         * gimple-fold.c (replace_stmt_with_simplification): Special-case
13181         valueizing call operands.
13182         * gimple-match-head.c (maybe_push_res_to_seq): Take
13183         number of call arguments from ops array.
13184         (do_valueize): New function.
13185         (gimple_simplify): Return true if valueization changed
13186         any operand even if the result didn't simplify further.
13187
13188 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13189
13190         PR middle-end/25530
13191         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13192
13193 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13194
13195         PR middle-end/25529
13196         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13197
13198 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13199
13200         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13201         instruction.
13202
13203 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13204
13205         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13206         clean up.
13207
13208 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
13209
13210         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13211         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
13212         targets here.
13213         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13214         ms_va_list_type_node initialization.
13215
13216 2015-07-23  Jeff Law  <law@redhat.com>
13217
13218         PR lto/66752
13219         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13220         unable to find X NE 0 in the tables, return X as the simplified
13221         condition.
13222         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13223         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13224         to VISISTED_BBS.  */
13225         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13226         after removing the control flow statement and unnecessary edges.
13227
13228 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13229
13230         * tree-pass.h (get_current_pass_name): Removed.
13231
13232 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
13233
13234         PR rtl-optimization/64164
13235         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13236         * tree-ssa-copyrename.c: Removed.
13237         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13238         -ftree-coalesce-vars.
13239         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13240         * common.opt (ftree-copyrename): Ignore.
13241         (ftree-coalesce-inlined-vars): Likewise.
13242         * doc/invoke.texi: Remove the ignored options above.
13243         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13244         * tree-ssa-coalesce.h: ... here.
13245         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13246         headers required by it.
13247         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13248         across variables when flag_tree_coalesce_vars.  Check register
13249         use and promoted modes to allow coalescing.  Moved to
13250         tree-ssa-coalesce.c.
13251         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13252         with its member functions to tree-ssa-coalesce.c.
13253         (var_map_base_init): Likewise.  Renamed to
13254         compute_samebase_partition_bases.
13255         (partition_view_normal): Drop want_bases parameter.
13256         (partition_view_bitmap): Likewise.
13257         * tree-ssa-live.h: Adjust declarations.
13258         * tree-ssa-coalesce.c: Include explow.h.
13259         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13260         default defs at the entry point.
13261         (dump_part_var_map): New.
13262         (compute_optimized_partition_bases): New, called by...
13263         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13264         of compute_samebase_partition_bases.  Adjust.
13265         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13266         * cfgexpand.c (leader_merge): New.
13267         (get_rtl_for_parm_ssa_default_def): New.
13268         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13269         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13270         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13271         redundant MEM attr setting.
13272         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13273         from...
13274         (expand_one_stack_var): ... this.  New wrapper to check and
13275         skip already expanded SSA partitions.
13276         (record_alignment_for_reg_var): New, factored out of...
13277         (expand_one_var): ... this.
13278         (expand_one_ssa_partition): New.
13279         (adjust_one_expanded_partition_var): New.
13280         (expand_one_register_var): Check and skip already expanded SSA
13281         partitions.
13282         (expand_used_vars): Don't create DECLs for anonymous SSA
13283         names.  Expand all SSA partitions, then adjust all SSA names.
13284         (pass::execute): Replace the loops that set
13285         SA.partition_to_pseudo from partition leaders and cleared
13286         DECL_RTL for multi-location variables, and that which used to
13287         rename vars and set attrs, with one that clears DECL_RTL and
13288         checks that PARMs and RESULTs default_defs match DECL_RTL.
13289         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13290         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13291         * explow.c (promote_ssa_mode): New.
13292         * explow.h (promote_ssa_mode): Declare.
13293         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13294         * function.c: Include cfgexpand.h.
13295         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13296         (use_register_for_parm_decl): Wrapper for the above to
13297         special-case the result_ptr.
13298         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13299         (split_complex_args): Take assign_parm_data_all argument.
13300         Pass it to rtl_for_parm.  Set up rtl and context for split
13301         args.
13302         (assign_parms_augmented_arg_list): Adjust.
13303         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13304         multiple locations.  Recognize split complex args.
13305         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13306         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13307         (assign_parm_setup_block): Prefer SSA-assigned location.
13308         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
13309         if stack_parm is NULL.
13310         (assign_parm_setup_stack): Prefer SSA-assigned location.
13311         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13312         rtl before testing for pointer bounds.  Special-case result_ptr.
13313         (expand_function_start): Maybe reset DECL_RTL of result.
13314         Prefer SSA-assigned location for result and static chain.
13315         Factor out DECL_RESULT and SET_DECL_RTL.
13316         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13317         anonymous SSA names.  Use promote_ssa_mode.
13318         (get_temp_reg): Likewise.
13319         (remove_ssa_form): Adjust.
13320         * stor-layout.c (layout_decl): Don't set mem attributes of
13321         non-MEMs.
13322         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13323         and get its reg_usage for reg invalidation.
13324         (compute_bb_dataflow): Pass it insn.
13325         (emit_notes_in_bb): Likewise.
13326
13327 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
13328
13329         PR target/66217
13330         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13331         prototype.
13332         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13333         (rs6000_emit_2insn_and): Handle dot forms.
13334         * config/rs6000/rs6000.md (and<mode>3): Adjust.
13335         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
13336         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13337
13338 2015-07-23  Richard Biener  <rguenther@suse.de>
13339
13340         * generic-match-head.c: Include cgraph.h.
13341         * gimple-match-head.c: Likewise.
13342         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13343         SSA names.
13344         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13345         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
13346         pattern.
13347
13348 2015-07-23  Richard Biener  <rguenther@suse.de>
13349
13350         * gimple-fold.c (fold_gimple_cond): Do not require folding
13351         results to pass valid_gimple_rhs_p.
13352         * tree-cfg.h (fold_cond_expr_cond): Remove.
13353         * tree-cfg.c (fold_cond_expr_cond): Likewise.
13354         (make_edges): Do not call it.
13355         * tree-inline.c (tree_function_versioning): Likewise.
13356
13357 2015-07-23  Tom de Vries  <tom@codesourcery.com>
13358
13359         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13360         vect_force_simple_reduction.
13361         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13362         (vect_is_simple_reduction_1): Add and handle
13363         need_wrapping_integral_overflow parameter.
13364         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13365         need_wrapping_integral_overflow parameter.
13366         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13367         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13368         decl.
13369
13370 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
13371
13372         PR tree-optimization/66926,66951
13373         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13374         INNER_LOOP and fix up condition for renaming virtual operands.
13375
13376 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13377
13378         * combine.c (try_combine): Use std::swap instead of manually
13379         swapping.
13380
13381 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
13382
13383         * config/mips/i6400.md: New file.
13384         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13385         (mips64r6): Likewise.
13386         (i6400): Define.
13387         * config/mips/mips-tables.opt: Regenerate.
13388         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13389         (mips_issue_rate): Add support for i6400.
13390         (mips_multipass_dfa_lookahead): Likewise.
13391         * config/mips/mips.h (TUNE_I6400): Define.
13392         * config/mips/mips.md: Include i6400.md.
13393         (processor): Add i6400.
13394         * doc/invoke.texi (-march=@var{arch}): Add i6400.
13395
13396 2015-07-23  Richard Biener  <rguenther@suse.de>
13397
13398         PR middle-end/66916
13399         * match.pd: Guard widen and sign-change comparison simplification
13400         with single_use.
13401
13402 2015-07-23  Richard Biener  <rguenther@suse.de>
13403
13404         PR tree-optimization/66945
13405         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13406         ::before_dom_children): Force the propagators idea of
13407         non-executable edges to materialize, not what the folder
13408         chooses.
13409
13410 2015-07-23  Richard Biener  <rguenther@suse.de>
13411
13412         * gimple.h (gimple_cond_make_false): Use 0 != 0.
13413         (gimple_cond_make_true): Use 1 != 0.
13414
13415 2015-07-22  DJ Delorie  <dj@redhat.com>
13416
13417         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13418         slashes.
13419
13420         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13421         (ashrhi3): Likewise.
13422         (lshrhi3): Likewise.
13423         (movhi): Take advantage of zero-extend to load small constants.
13424         (movpsi): Likewise.
13425         (and<mode>3): Likewise.
13426         (zero_extendqihi2): Likewise.
13427         (zero_extendqisi2): New.
13428         * config/msp430/constraints.md (N,O): New.
13429         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13430
13431 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
13432
13433         PR target/66954
13434         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13435         to enum feature_priority and feature_list.
13436         (fold_builtin_cpu): Add F_AES to enum processor_features
13437         and isa_names_table.
13438
13439 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
13440
13441         PR driver/66737
13442         * config/i386/linux-common.h (MPX_SPEC): Use linker option
13443         for 64bit target only.
13444
13445 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13446
13447         * config/nvptx/nvptx.c: Expand some comments.
13448
13449 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
13450
13451         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13452         (cortex_a53_advsimd): ...This.
13453
13454 2015-07-22  Richard Biener  <rguenther@suse.de>
13455
13456         * genmatch.c (expr::gen_transform): Clarify error message
13457         and display location.
13458
13459 2015-07-22  Richard Biener  <rguenther@suse.de>
13460
13461         * genmatch.c (struct operand): Add location member.
13462         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13463         constructors.
13464         (struct simplify): Remove match_location and result_location
13465         members.
13466         (elsehwere): Adjust.
13467
13468 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
13469
13470         * config/mips/m5100.md: New file.
13471         * config/mips/mips-cpus.def (m5100, m5101): Define.
13472         * config/mips/mips-tables.opt: Regenerate.
13473         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13474         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13475         -march=m5101 to -mips32r5.
13476         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13477         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13478         !-msoft-float.
13479         * config/mips/mips.md: Include m5100.md.
13480         (processor): Add m5100.
13481         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13482
13483 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
13484
13485         * config/mips/mips-cpus.def (interaptiv): Define.
13486         * config/mips/mips-tables.opt: Regenerate.
13487         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13488         -mips32r2.
13489         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13490         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13491
13492 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
13493
13494         PR target/63521
13495         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13496         (HONOR_REG_ALLOC_ORDER): Define.
13497
13498 2015-07-22  Richard Biener  <rguenther@suse.de>
13499
13500         PR tree-optimization/66952
13501         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13502         blocks we end up executing unconditionally reset all SSA
13503         info such as range and alignment.
13504         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13505         * tree-ssanames.c (reset_flow_sensitive_info): New function.
13506
13507 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
13508
13509         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13510         typo in attribute.
13511
13512 2015-07-22  Richard Biener  <rguenther@suse.de>
13513
13514         * genmatch.c (parser::parse_result): Properly handle
13515         match with result operands and conditions.
13516
13517 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
13518
13519         PR target/63870
13520         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13521         Add qualifier_struct_load_store_lane_index.
13522         (aarch64_types_loadstruct_lane_qualifiers): Use
13523         qualifier_struct_load_store_lane_index for lane index argument for
13524         last argument.
13525         (aarch64_types_storestruct_lane_qualifiers): Ditto.
13526         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13527         (aarch64_simd_expand_args): Add new argument describing mode of
13528         builtin. Check lane bounds for arguments with
13529         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13530         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13531         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13532         (aarch64_simd_expand_builtin): Handle arguments with
13533         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13534         aarch64_simd_expand_args.
13535         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13536         vst[234]_lane with BUILTIN_VALLDIF.
13537         * config/aarch64/aarch64-simd.md:
13538         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13539         endianness reversal on lane index.
13540         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13541         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13542         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13543         (vec_store_lanesci_lane<mode>): Ditto.
13544         (vec_store_lanesxi_lane<mode>): Ditto.
13545         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13546         reversal of lane index.
13547         (aarch64_ld3_lane<mode>): Ditto.
13548         (aarch64_ld4_lane<mode>): Ditto.
13549         (aarch64_st2_lane<mode>): Ditto.
13550         (aarch64_st3_lane<mode>): Ditto.
13551         (aarch64_st4_lane<mode>): Ditto.
13552         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13553         to qmode. Add new mode parameter. Update uses.
13554         (__LD3_LANE_FUNC): Ditto.
13555         (__LD4_LANE_FUNC): Ditto.
13556         (__ST2_LANE_FUNC): Ditto.
13557         (__ST3_LANE_FUNC): Ditto.
13558         (__ST4_LANE_FUNC): Ditto.
13559
13560 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
13561
13562         * doc/invoke.texi (Language Independent Options): Rename node to
13563         Diagnostic Message Formatting Options.
13564
13565 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
13566
13567         PR ipa/66424.
13568         * lra-remat.c (operand_to_remat): Prevent using insns with input
13569         subregs processed separately by IRA.
13570
13571 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
13572
13573         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13574         straight loops.
13575         (single_imm_use): Check for iterator node.
13576         (num_imm_uses): Likewise.
13577         * tree-ssa-operands.c (has_zero_uses_1): Delete.
13578         (single_imm_use_1): Check for iterator node.
13579
13580 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
13581             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13582
13583         * configure.ac: Add check for new options in isl-0.15.
13584         * config.in, configure: Rebuilt.
13585         * graphite-blocking.c: Include <isl/constraint.h>
13586         * graphite-interchange.c,  graphite-poly.c: Likewise.
13587         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13588         * graphite.c: Likewise.
13589         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13590         <isl/union_set.h>.
13591         * graphite-dependences.c: Include <isl/constraint.h>.
13592         (max_number_of_out_dimensions): Returns isl_stat.
13593         (extend_schedule_1): Likewise
13594         (extend_schedule): Corresponding changes.
13595         * graphite-optimize-isl.c: Include <isl/constraint.h> and
13596         <isl/union_set.h>.
13597         (getSingleMap): Change return type of isl_stat.
13598         (optimize_isl): Conditionally use
13599         isl_options_set_schedule_serialize_sccs.
13600         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13601         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13602
13603 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
13604
13605         PR target/66956
13606         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13607         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13608
13609 2015-07-21  Richard Biener  <rguenther@suse.de>
13610
13611         PR tree-optimization/66948
13612         * genmatch.c (capture_info::walk_match): Also recurse to
13613         captures.  Properly compute expr state from captures of
13614         captures.
13615         * match.pd: Add single-use guards to
13616         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13617
13618 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
13619
13620         * config/nvptx/mkoffload.c (process): Add static destructor call.
13621
13622 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13623
13624         PR middle-end/66915
13625         * match.pd (A - B -> A + (-B)): Don't allow folding
13626         when type if a fixed-point type.
13627
13628 2015-07-20  DJ Delorie  <dj@redhat.com>
13629
13630         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13631         (iorqi3_real): Likewise for set1.
13632
13633 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
13634
13635         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13636         for !TARGET_64BIT.
13637
13638 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
13639
13640         * graphite-isl-ast-to-gimple.c:
13641         Refactor so that each function can access 'region'. This will help
13642         maintain a parameter rename_map within a region.
13643
13644 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
13645
13646         * config/rs6000/rs6000.md (*lt0_disi): New.
13647
13648 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
13649
13650         PR target/66217
13651         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
13652         "available letters" comment.
13653         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13654         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13655         and_2rld_operand):  Delete.
13656         (and_operand): Adjust.
13657         (rotate_mask_operator): New.
13658         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13659         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13660         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13661         extract_ME): Delete.
13662         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13663         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13664         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13665         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13666         rs6000_emit_2insn_and): New.
13667         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13668         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13669         includes_rldic_lshift_p, includes_rldicr_lshift_p,
13670         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13671         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13672         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13673         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13674         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13675         rs6000_emit_2insn_and): New.
13676         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13677         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13678         handling.
13679         <NOT>: Don't fall through to next case.
13680         <AND>: Handle the various rotate-and-mask cases directly.
13681         <IOR>: Always cost as one insn.
13682         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13683         (and<mode>3): Adjust expander for the new patterns.
13684         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13685         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13686         (*and<mode>3_imm_dot_shifted): New.
13687         (*and<mode>3_mask): Delete, rewrite as ...
13688         (and<mode>3_mask): ... New.
13689         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13690         (andsi3_internal0_nomc): Delete.
13691         (*andsi3_internal6): Delete.
13692         (*and<mode>3_2insn): New.
13693         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13694         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13695         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13696         *insvdi_internal3): Delete.
13697         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13698         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13699         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13700         *ior<mode>_mask): New.
13701         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13702         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13703         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13704         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13705         Delete.
13706         (ashr<mode>3): Delete expander.
13707         (*ashr<mode>3): Rename to ...
13708         (ashr<mode>3): ... This.
13709         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13710         (*rotldi3_internal4, *rotldi3_internal5 and split,
13711         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13712         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13713         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13714         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13715         (splitter for loading a mask): Adjust.
13716         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13717
13718 2015-07-20  Marek Polacek  <polacek@redhat.com>
13719
13720         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13721         output_add_clobbers, output_added_clobbers_hard_reg_p,
13722         gen_rtx_scratch): Remove declarations.
13723
13724 2015-07-20  Marek Polacek  <polacek@redhat.com>
13725
13726         PR c++/55095
13727         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13728
13729 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13730
13731         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13732         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13733
13734 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13735
13736         * combine.c (combine_simplify_rtx): Move simplification step
13737         before various transformations/substitutions.
13738
13739 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
13740
13741         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13742         (struct int_traits): Likewise.
13743
13744 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13745
13746         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13747         function to vmsdbgout_function_decl.
13748
13749 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
13750
13751         PR target/66922
13752         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13753         from misaligned positions.
13754         (ix86_expand_pinsr): Reject insertions to misaligned positions.
13755
13756 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
13757
13758         PR middle-end/46851
13759         PR middle-end/60340
13760         * Makefile.in: Removed omega.o.
13761         * common.opt: Document flag fcheck-data-deps as deprecated.
13762         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13763         its associated params: omega-max-vars, omega-max-geqs,
13764         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13765         omega-max-keys, omega-eliminate-redundant-constraints.
13766         * doc/loop.texi: Remove all the section on Omega.
13767         * graphite-blocking.c: Include missing params.h: it used to be
13768         included through tree-data-ref.h and omega.h.
13769         * graphite-isl-ast-to-gimple.c: Same.
13770         * graphite-optimize-isl.c: Same.
13771         * graphite-sese-to-poly.c: Same.
13772         * graphite.c: Same.
13773         * omega.c: Remove.
13774         * omega.h: Remove.
13775         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13776         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13777         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13778         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13779         * passes.def: Remove pass_check_data_deps.
13780         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13781         (dump_conflict_function): Same.
13782         (dump_subscript): Same.
13783         (print_direction_vector): Same.
13784         (print_dir_vectors): Same.
13785         (print_lambda_vector): Same.
13786         (print_dist_vectors): Same.
13787         (dump_data_dependence_relation): Same.
13788         (dump_data_dependence_relations): Same.
13789         (dump_dist_dir_vectors): Same.
13790         (dump_ddrs): Same.
13791         (init_omega_eq_with_af): Removed.
13792         (omega_extract_distance_vectors): Removed.
13793         (omega_setup_subscript): Removed.
13794         (init_omega_for_ddr_1): Removed.
13795         (init_omega_for_ddr): Removed.
13796         (ddr_consistent_p): Removed.
13797         (compute_affine_dependence): Do not use omega to check data
13798         dependences.
13799         (compute_data_dependences_for_bb): Removed.
13800         (analyze_all_data_dependences): Removed.
13801         (tree_check_data_deps): Removed.
13802         * tree-data-ref.h: Do not include omega.h.
13803         (compute_data_dependences_for_bb): Removed.
13804         (tree_check_data_deps): Removed.
13805         * tree-ssa-loop.c (pass_check_data_deps): Removed.
13806         (make_pass_check_data_deps): Removed.
13807         * tree-ssa-phiopt.c: Include params.h.
13808         * tree-vect-data-refs.c: Same.
13809         * tree-vect-slp.c: Same.
13810
13811 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
13812
13813         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13814         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
13815         (mem->fpreg splitters): Ditto.
13816         (general_operand->nonimmediate_operand splitter): Use explicit modes.
13817         Disable DFmode for TARGET_64BIT.
13818
13819 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13820
13821         PR target/66906
13822         * config/i386/i386.c (ix86_expand_prologue): Replicate static
13823         chain on the stack.
13824
13825 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
13826
13827         * config/nvptx/mkoffload.c (process): Constify host data.
13828         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13829         Constify host data.
13830         (generate_host_descr_file): Likewise.
13831
13832 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
13833             Sebastian Pop  <s.pop@samsung.com>
13834
13835         PR middle-end/61929
13836         * graphite-dependences.c (add_pdr_constraints): Renamed
13837         pdr->extent to pdr->subscript_sizes.
13838         * graphite-interchange.c (build_linearized_memory_access): Add
13839         back all gcc_assert's that the "isl_int to isl_val conversion"
13840         patch has removed.  Refactored.
13841         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13842         * graphite-poly.c (new_poly_dr): Same.
13843         (free_poly_dr): Same.
13844         * graphite-poly.h (struct poly_dr): Same.
13845         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13846         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13847         * graphite-scop-detection.h: Fix space.
13848         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13849         back all gcc_assert's removed by a previous patch.
13850         (wrap): Remove the_isl_ctx global variable that the same patch has
13851         added.
13852         (build_loop_iteration_domains): Same.
13853         (add_param_constraints): Same.
13854         (pdr_add_data_dimensions): Same.  Refactored.
13855         (build_poly_dr): Renamed extent to subscript_sizes.
13856
13857 2015-07-17  Marek Polacek  <polacek@redhat.com>
13858
13859         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13860         * match.pd: ... here.
13861
13862 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
13863
13864         * config/nvptx/mkoffload.c (process): Constify target data.
13865         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13866         Constify target data.
13867         (generate_target_offloadend_file): Likewise.
13868
13869 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
13870
13871         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13872         to allow renaming of PHI arguments on edges incoming from outer
13873         loop header, add corresponding check before start PHI iterator.
13874         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13875         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13876         with true force_vectorize.  Set-up dominator for outer loop too.
13877         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13878         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13879         was marked with force_vectorize and has restricted cfg.
13880         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13881         inner loop.
13882         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13883         do peeling for outer loops.
13884
13885 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
13886             Matthias Klose  <doko@ubuntu.com>
13887
13888         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13889         build-sysroot, sysroot from the `Miscenalleous configure options' to
13890         the `Directories' section and strip trailing `/' from with_sysroot.
13891         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13892         * configure: Regenerated.
13893
13894 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
13895
13896         PR target/66824
13897         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13898         (TARGET_HARD_DF_REGS): Ditto.
13899         (TARGET_HARD_XF_REGS): Ditto.
13900         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13901         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13902         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13903         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13904         (*movsf_internal): Add alternatives 16 and 17. Enable
13905         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13906
13907 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
13908
13909         PR rtl-optimization/66891
13910         * calls.c (expand_call): Wrap precompute_register_parameters with
13911         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13912
13913 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
13914
13915         * config/nvptx/mkoffload.c (process): Constify mapping variables.
13916         Define target data struct and initialize it.
13917
13918 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
13919
13920         PR rtl-optimization/66626
13921         * ira.h (emit-rtl.h): Include.
13922         (non_spilled_static_chain_regno_p): New.
13923         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13924         unless it is non spilled static chain pseudo.
13925         (assign_hard_rego): Spill memory profitable allocno unless it is
13926         non spilled static chain pseudo.
13927         (allocno_spill_priority_compare): Put non spilled static chain
13928         pseudo at the end of sorted array.
13929         (improve_allocation): Do nothing if we have static chain and
13930         non-local goto.
13931         (allocno__priority_compare_func): Put non spilled static chain
13932         pseudo at the beginning of sorted array.
13933         (move_spill_restore): Ignore non spilled static chain pseudo.
13934         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13935         to non spilled static chain pseudo.
13936         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13937         pseudo at the beginning of sorted array.
13938         (spill_for): Spill non spilled static chain pseudo last.
13939         * lra-constraints.c (lra_constraints): Remove static chain pseudo
13940         check for equivalence.
13941
13942 2015-07-16  Martin Liska  <mliska@suse.cz>
13943
13944         PR ipa/66896.
13945         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13946         dst_ctx if it does not exist.
13947
13948 2015-07-16  Martin Liska  <mliska@suse.cz>
13949
13950         * hash-set.h (remove): New function.
13951         (iterator): New iteration class for hash_set.
13952
13953 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13954
13955         * genattrtab.c (make_canonical): Add a file_location parameter.
13956         Use fatal_at rather than fatal.
13957         (get_attr_value): Likewise.  Update call to make_canonical.
13958         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13959         (make_internal_attr): Update calls accordingly.
13960
13961 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13962
13963         * read-md.h (message_with_line, error_with_line): Delete.
13964         * read-md.c (message_with_line, error_with_line): Delete.
13965         * gensupport.h: Include read-md.h.
13966         (md_rtx_info): New structure.
13967         (read_md_rtx): Use it.  Return a bool success value.
13968         * gensupport.c (read_md_rtx): Likewise.
13969         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13970         (main): Update after interface changes.
13971         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13972         (main): Update after interface changes.
13973         * genattrtab.c (insn_code_number): Delete.
13974         (optimize_attrs): Add a max_insn_code parameter and use it instead
13975         of insn_code_number.
13976         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13977         Use *_at rather than *_with_line functions.
13978         (gen_insn): Likewise.
13979         (gen_delay): Likewise.
13980         (gen_insn_reserv): Likewise.
13981         (gen_bypass): Take an md_rtx_info rather than an rtx.
13982         (main): Update after interface changes.  Use a local max_insn_code
13983         variable instead of insn_code_number.
13984         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13985         an rtx.  Use fatal_at rather than fatal.
13986         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13987         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13988         (gen_absence_set, gen_final_absence_set, gen_automaton)
13989         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13990         (main): Update after interface changes.
13991         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13992         and code number.
13993         (main): Update after interface changes.
13994         * genconditions.c (main): Use new read_md_rtx interface.
13995         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13996         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13997         (main): Update after interface changes.
13998         * genemit.c (insn_code_number, insn_index_number): Delete.
13999         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14000         Use fatal_at rather than fatal.
14001         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
14002         rather than fatal.
14003         (gen_split): Likewise.
14004         (main): Update after interface changes.
14005         * genextract.c (line_no): Delete.
14006         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14007         Update call to walk_rtx.
14008         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
14009         rather than message_with_line.
14010         (walk_rtx): Add an md_rtx_info argument.  Update call to
14011         VEC_safe_set_locstr.
14012         (main): Update after interface changes.
14013         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
14014         and lineno.  Use error_at rather than separate message_with_line
14015         calls and have_error assignments.
14016         (main): Update after interface changes.
14017         * genmddump.c (main): Use new read_md_rtx interface.
14018         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
14019         (main): Update after interface changes.
14020         * genoutput.c (next_code_number): Delete.
14021         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14022         (gen_peephole, gen_expand, gen_split): Likewise.
14023         (note_constraint): Likewise.  Use *_at rather than *_with_line
14024         functions.
14025         (main): Update after interface changes.
14026         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
14027         rtx and lineno.
14028         (main): Update after interface changes.
14029         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
14030         than an rtx and lineno.
14031         (process_define_constraint): Likewise.
14032         (process_define_register_constraint): Likewise.
14033         (main): Update after interface changes.
14034         * genrecog.c (next_insn_code, pattern_lineno): Delete.
14035         (validate_pattern): Replace top-level rtx with an md_rtx_info.
14036         Use *_at rather than *_with_line functions.
14037         (match_pattern_2): Likewise.
14038         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
14039         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
14040         Use *_at rather than *_with_line functions.
14041         * gentarget-def.c (add_insn): New function.
14042         (main): Use it.  Use new read_md_rtx interface.
14043
14044 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14045
14046         * gensupport.h (compute_test_codes): Take a file_location rather
14047         than a line number.
14048         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
14049         rather than *_with_line functions.
14050         (process_define_predicate): Update call to compute_test_codes.
14051         * genpreds.c (validate_exp): Take a file_location rather than a
14052         line number.  Use *_at functions rather than *_with_line functions.
14053         (process_define_predicate): Update call to validate_exp.
14054         (constraint_data): Replace lineno field with a file_location.
14055         (add_constraint): Take a file_location rather than a line number.
14056         Use *_at functions rather than *_with_line functions.  Fix error
14057         message for address constraints.  Update after changes to
14058         validate_exp, constraint_data and compute_test_codes.
14059         (process_define_constraint): Update accordingly.
14060         (process_define_register_constraint): Likewise.
14061
14062 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14063
14064         * genoutput.c (data): Use a file_location to record the source
14065         position.
14066         (nothing): Delete.
14067         (idata, idata_end): Remove initialization.
14068         (constraint_data): Replace lineno with a file_location.
14069         (output_insn_data): Update after changes to data.
14070         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
14071         (scan_operands): Likewise, using *_at rather than *_with_line
14072         functions.
14073         (process_template): Likewise.
14074         (validate_insn_alternatives): Likewise.
14075         (validate_insn_operands): Likewise.
14076         (validate_optab_operands): Likewise.
14077         (init_insn_for_nothing): Initialize idata and idata_end.
14078         (note_constraint): Update after changes to constraint_data,
14079         using at rather than with_line functions.
14080         (mdep_constraint_len): Take a file_location rather than a
14081         line number.  Use at rather than with_line functions.
14082
14083 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14084
14085         * read-md.h (fatal_at): Declare.
14086         * read-md.c (fatal_at): New function.
14087         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
14088         to record the source position.
14089         (check_attr_test): Take a file_location instead of a line number.
14090         Use fatal_at instead of fatal.
14091         (check_attr_value): Update after above changes, using "at"
14092         rather than "with_line" reporting functions.
14093         (convert_set_attr_alternative): Likewise.
14094         (gen_attr): Likewise.
14095         (check_defs): Likewise.  Don't assign to read_md_filename.
14096         (gen_insn): Update initialization after above changes.
14097         (gen_delay): Likewise.
14098         (write_insn_cases): Print the filename for a define_peephole.
14099         (gen_insn_reserv): Take a line number as argument and update
14100         the call to check_attr_test.
14101         (main): Pass a line number to gen_insn_reserv.
14102
14103 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14104
14105         * read-md.h (file_location): New structure.
14106         (directive_handler_t): Take a file_location rather than a line number.
14107         (message_at, error_at): Declare.
14108         (read_skip_construct): Delete.
14109         * read-md.c (message_with_line_1): Replace with...
14110         (message_at_1): ...this new function.
14111         (message_at, error_at): New functions.
14112         (message_with_line, error_with_line): Update to use message_at_1.
14113         (handle_enum): Take a file_location rather than a line number
14114         and use error_at for error reporting.
14115         (handle_include): Likewise.
14116         (read_skip_construct): Likewise.  Make static.
14117         (handle_file): Update after above changes.  Pass a file_location
14118         rather than a line number to handle_directive.
14119         * gensupport.c (queue_elem): Replace separate filename and lineno
14120         with a file_location.
14121         (queue_pattern): Replace filename and lineno arguments with a
14122         file_location.  Update after change to queue_elem.
14123         (process_define_predicate): Replace lineno argument with a
14124         file_location and use error_at for error reporting.  Update
14125         after above changes.
14126         (process_rtx): Likewise.
14127         (subst_pattern_match): Likewise.
14128         (get_alternatives_number): Likewise.
14129         (alter_predicate_for_insn): Likewise.
14130         (rtx_handle_directive): Likewise.
14131         (is_predicable): Update after above changes, using error_at rather
14132         than error_with_line.
14133         (has_subst_attribute): Likewise.
14134         (identify_predicable_attribute): Likewise.
14135         (alter_attrs_for_subst_insn): Likewise.
14136         (process_one_cond_exec): Likewise.
14137         (process_substs_on_one_elem): Likewise.
14138         (process_define_subst): Likewise.
14139         (check_define_attr_duplicates): Likewise.
14140         (read_md_rtx): Update after change to queue_elem.
14141
14142 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14143
14144         * genoutput.c (next_index_number): Delete.
14145         (data): Remove index_number.
14146         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14147         (main): Remove manipulation of next_index_number.
14148
14149 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14150
14151         * genattrtab.c (check_attr_value): Remove handling of null attrs.
14152         (make_canonical): Likewise.
14153
14154 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
14155
14156         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14157         instead of adjust_address_nv.
14158         (restore_stack_nonlocal): Likewise.
14159         (nonlocal_goto): Likewise.
14160
14161 2015-07-16  Tom de Vries  <tom@codesourcery.com>
14162
14163         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14164         not have a corresponding loop header phi.
14165
14166 2015-07-16  Tom de Vries  <tom@codesourcery.com>
14167
14168         * tree-parloops.c (create_loads_for_reductions): Handle case that
14169         reduction is unused.
14170
14171 2015-07-16  Richard Biener  <rguenther@suse.de>
14172
14173         PR tree-optimization/66894
14174         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14175         about deriving NE_EXPR from truncated values.
14176
14177 2015-07-16  Martin Liska  <mliska@suse.cz>
14178
14179         * alloc-pool.h
14180         (object_allocator): Add new class.
14181         (pool_allocator::initialize): Use the underlying class.
14182         (pool_allocator::allocate): Likewise.
14183         (pool_allocator::remove): Likewise.
14184         (operator new): A new generic allocator.
14185         * asan.c (struct asan_mem_ref): Remove unused members.
14186         (asan_mem_ref_new): Replace new operator with
14187         object_allocator::allocate.
14188         (free_mem_ref_resources): Change deallocation.
14189         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14190         with object_allocator.
14191         * config/sh/sh.c (add_constant): Replace new operator with
14192         object_allocator::allocate.
14193         (sh_reorg): Change call to a release method.
14194         * cselib.c (struct elt_list): Remove unused members.
14195         (new_elt_list): Replace new operator with
14196         object_allocator::allocate.
14197         (new_elt_loc_list): Likewise.
14198         (new_cselib_val): Likewise.
14199         (unchain_one_elt_list): Change delete operator with remove method.
14200         (unchain_one_elt_loc_list): Likewise.
14201         (unchain_one_value): Likewise.
14202         (cselib_finish): Release newly added static allocators.
14203         * cselib.h (struct cselib_val): Remove unused members.
14204         (struct elt_loc_list): Likewise.
14205         * df-problems.c (df_chain_alloc): Replace pool_allocator with
14206         object_allocator.
14207         * df-scan.c (struct df_scan_problem_data): Likewise.
14208         (df_scan_alloc): Likewise.
14209         * df.h (struct dataflow): Likewise.
14210         * dse.c (struct read_info_type): Likewise.
14211         (struct insn_info_type): Likewise.
14212         (struct dse_bb_info_type): Likewise.
14213         (struct group_info): Likewise.
14214         (struct deferred_change): Likewise.
14215         (get_group_info): Likewise.
14216         (delete_dead_store_insn): Likewise.
14217         (free_read_records): Likewise.
14218         (replace_read): Likewise.
14219         (check_mem_read_rtx): Likewise.
14220         (scan_insn): Likewise.
14221         (dse_step1): Likewise.
14222         (dse_step7): Likewise.
14223         * et-forest.c (struct et_occ): Remove unused members.
14224         (et_new_occ): Use allocate instead of new operator.
14225         (et_new_tree): Likewise.
14226         (et_free_tree): Call release method explicitly.
14227         (et_free_tree_force): Likewise.
14228         (et_free_pools): Likewise.
14229         (et_split): Use remove instead of delete operator.
14230         * et-forest.h (struct et_node): Remove unused members.
14231         * ipa-cp.c: Change pool_allocator to object_allocator.
14232         * ipa-inline-analysis.c: Likewise.
14233         * ipa-profile.c: Likewise.
14234         * ipa-prop.c: Likewise.
14235         * ipa-prop.h: Likewise.
14236         * ira-build.c (initiate_cost_vectors): Cast return value.
14237         (ira_allocate_cost_vector): Likewise.
14238         * ira-color.c (struct update_cost_record): Remove unused members.
14239         * lra-int.h (struct lra_live_range): Likewise.
14240         (struct lra_copy): Likewise.
14241         (struct lra_insn_reg): Likewise.
14242         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14243         * lra.c (new_insn_reg): Replace new operator with allocate method.
14244         (free_insn_regs): Same for operator delete.
14245         (finish_insn_regs): Release new static allocator.
14246         (finish_insn_recog_data): Likewise.
14247         (lra_free_copies): Replace delete operator with remove method.
14248         (lra_create_copy): Replace operator new with allocate method.
14249         (invalidate_insn_data_regno_info): Same for remove method.
14250         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14251         (free_debug_insn_changes): Replace delete operator with remove method.
14252         (replace_oldest_value_reg): Replace operator new with allocate method.
14253         (pass_cprop_hardreg::execute): Release new static variable.
14254         * sched-deps.c (sched_deps_init): Change pool_allocator to
14255         object_allocator.
14256         * sel-sched-ir.c: Likewise.
14257         * sel-sched-ir.h: Likewise.
14258         * stmt.c (expand_case): Likewise.
14259         (expand_sjlj_dispatch_table): Likewise.
14260         * tree-sra.c (struct access): Remove unused members.
14261         (struct assign_link): Likewise.
14262         (sra_deinitialize): Release newly added static pools.
14263         (create_access_1):Replace operator new with allocate method.
14264         (build_accesses_from_assign): Likewise.
14265         (create_artificial_child_access): Likewise.
14266         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14267         pool_allocator to object_allocator.
14268         * tree-ssa-pre.c: Likewise.
14269         * tree-ssa-reassoc.c: Likewise.
14270         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14271         * tree-ssa-strlen.c: Likewise.
14272         * tree-ssa-structalias.c: Likewise.
14273         * var-tracking.c (onepart_pool_allocate): New function.
14274         (unshare_variable): Use the newly added function.
14275         (variable_merge_over_cur): Likewise.
14276         (variable_from_dropped): Likewise.
14277         (variable_was_changed): Likewise.
14278         (set_slot_part): Likewise.
14279         (emit_notes_for_differences_1): Likewise.
14280         (vt_finalize): Release newly added static pools.
14281
14282 2015-07-16  Martin Jambor  <mjambor@suse.cz>
14283
14284         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
14285         all uses.  Fix two typos in its general comment.
14286         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
14287
14288 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
14289
14290         * config/i386/linux-common.h (LINK_MPX): New.
14291         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14292         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14293         indicating '-z bndplt' support by linker.
14294         * configure: Regenerate.
14295         * config.in: Regenerate.
14296
14297 2015-07-16  Richard Biener  <rguenther@suse.de>
14298
14299         * fold-const.c (fold_widened_comparison): Remove.
14300         (fold_sign_changed_comparison): Likewise.
14301         (fold_comparison): Move widened and sign-changed comparison
14302         simplification ...
14303         * match.pd: ... to patterns here.
14304         * generic-match-head.c: Include target.h.
14305         * gimple-match-head.c: Likewise.
14306
14307 2015-07-16  Richard Biener  <rguenther@suse.de>
14308
14309         * tree-ssa-dom.c (dom_valueize): New function.
14310         (record_temporary_equivalences): Also record equivalences
14311         for dominating stmts that have uses of equivalences we are
14312         about to record.
14313
14314 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
14315
14316         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14317         add_autoinc_candidates.
14318         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14319         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14320         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14321         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14322         Call new function.
14323         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14324         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14325         Remove parameter struct iv*.  Call add_autoinc_candidates here.
14326         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14327         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14328         Call new function.
14329         (find_iv_candidates): Call new functions.
14330
14331 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
14332
14333         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14334         uninitialized-variable warning.
14335
14336 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14337
14338         PR target/65249
14339         * config/sh/sh.md (movdi): Split simple reg move to two movsi
14340         when the destination is R0.
14341
14342 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
14343
14344         PR target/66866
14345         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14346         * config/i386/i386.c (ix86_expand_pextr): New function.
14347         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
14348         for non-lowpart subregs.
14349         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14350         (insv<mode>): Use SWI248 mode iterator.
14351         (insv<mode>_1): Ditto.
14352
14353 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14354             Sebastian Pop  <s.pop@samsung.com>
14355
14356         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14357         iterator to use_stmt.
14358
14359 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14360             Sebastian Pop <s.pop@samsung.com>
14361
14362         * graphite-scop-detection.c (build_scops_1): Discard scops for
14363         which entry==exit.
14364
14365 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14366             Sebastian Pop <s.pop@samsung.com>
14367
14368         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14369         case of a return statement in scop.
14370
14371 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14372             Sebastian Pop <s.pop@samsung.com>
14373
14374         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14375         INTEGER_TYPE parameters.
14376         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14377         VECTOR_CST in scan_tree_for_params.
14378         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14379
14380 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
14381
14382         * gimple-pretty-print.h: Don't include pretty-print.h.
14383         * tree-streamer.h: Don't include lto-streamer.h.
14384         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14385         * gimple-streamer-in.c: Remove redundant includes.
14386         * gimple-streamer-out.c: Likewise.
14387         * ipa-devirt.c: Likewise.
14388         * ipa-icf.c: Likewise.
14389         * ipa-inline-analysis.c: Likewise.
14390         * ipa-polymorphic-call.c: Likewise.
14391         * ipa-profile.c: Likewise.
14392         * ipa-prop.c: Likewise.
14393         * ipa-pure-const.c: Likewise.
14394         * lto-cgraph.c: Likewise.
14395         * lto-streamer-in.c: Likewise.
14396         * lto-streamer-out.c: Likewise.
14397         * lto-streamer.c: Likewise.
14398         * tree-streamer-in.c: Likewise.
14399         * tree-streamer-out.c: Likewise.
14400         * tree-streamer.c: Likewise.
14401
14402 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
14403
14404         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14405         include input.h.
14406         * opts.c: Remove multiline #include comment.
14407
14408 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14409
14410         * config/nvptx/mkoffload.c (process): Add C++ protection to
14411         emitted code.
14412
14413 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14414
14415         PR target/66854
14416         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14417         null before IEEE 128-bit floating point support patch.
14418
14419 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14420
14421         * simplify-rtx.c (simplify_ternary_operation): Add simplification
14422         for (!c) != {0,...,0} ? a : b for vector modes.
14423
14424 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
14425             Martin Jambor  <mjambor@suse.cz>
14426
14427         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14428         struct func_body_info* instead of struct ipa_node_params*, expecting
14429         fbi->info to be filled in.  Replace throughout.  Adjust call to
14430         ipa_load_from_parm_agg.
14431         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14432         instead of struct ipa_node_params*.  Adjust calls to other functions
14433         so that they pass either fbi or fbi->info.
14434         (set_switch_stmt_execution_predicate): Likewise.
14435         (will_be_nonconstant_predicate): Likewise.
14436         (compute_bb_predicates): Likewise.
14437         (estimate_function_body_sizes): Move asserts earlier.  Fill in
14438         struct func_body_info, replace parms_info with fbi.info.  Adjust
14439         calls to functions that now accept struct func_body_info.
14440         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14441         (struct func_body_info): Likewise.
14442         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14443         remove static.  Adjust callers.
14444         (ipa_load_from_parm_agg): Remove.
14445         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14446         (func_body_info): Likewise.
14447         (ipa_load_from_parm_agg): Adjust prototype.
14448
14449 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14450
14451         * gensupport.c (rtx_handle_directive): Adjust.
14452         * read-rtl.c (apply_iterators): Take vector to add rtxs to
14453         instead of expr list rtx.
14454         (add_define_attr_for_define_subst): Likewise.
14455         (add_define_subst_attr): Likewise.
14456         (read_subst_mapping): Likewise.
14457         (read_rtx): Likewise.
14458         * rtl.h (read_rtx): Adjust.
14459
14460 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14461
14462         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14463
14464 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
14465
14466         PR target/58066
14467         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14468         (*tls_local_dynamic_base_64_<mode>): Ditto.
14469         (*tls_local_dynamic_base_64_largepic): Ditto.
14470         (tls_global_dynamic_64_<mode>): Update expander pattern.
14471         (tls_local_dynamic_base_64_<mode>): Ditto.
14472
14473 2015-07-15  Richard Biener  <rguenther@suse.de>
14474
14475         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14476         and bool_var == 1 -> bool_var simplifications ...
14477         * match.pd: ... to patterns here.  Factor out negate_expr_p
14478         cases from the A - B -> A + (-B) patterns as negate_expr_p
14479         predicate and add a -(A + B) -> (-B) - A pattern.
14480
14481 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
14482
14483         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14484
14485 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
14486             Robert Suchanek  <robert.suchanek@imgtec.com>
14487
14488         * config/mips/mips.c (mips_int_mask): New enum.
14489         (mips_shadow_set): Likewise.
14490         (int_mask): New variable.
14491         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14492         (machine_function): Add int_mask and use_shadow_register_set.
14493         (mips_attribute_table): Add attribute handlers for interrupt and
14494         use_shadow_register_set.
14495         (mips_interrupt_mask): New static function.
14496         (mips_handle_interrupt_attr): Likewise.
14497         (mips_handle_use_shadow_register_set_attr): Likewise.
14498         (mips_use_shadow_register_set): Change return type to enum
14499         mips_shadow_set.  Add argument handling for use_shadow_register_set
14500         attribute.
14501         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14502         compare with mips_shadow_set enum.
14503         (mips_compute_frame_info): Add interrupt mask and
14504         use_shadow_register_set to per-function information structure.
14505         Add a stack slot for EPC unconditionally.
14506         (mips_expand_prologue): Compare use_shadow_register_set value
14507         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
14508         masked interrupt register but in EIC mode use K0 and save Cause in K0.
14509         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
14510         copying the stack pointer from the shadow register set.
14511         * config/mips/mips.h (SR_IM0): New define.
14512         * config/mips/mips.md (mips_rdpgpr): Rename to...
14513         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
14514         * doc/extend.texi (Declaring Attributes of Functions): Document
14515         optional arguments for interrupt and use_shadow_register_set
14516         attributes.
14517
14518 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
14519
14520         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14521         interrupt attribute.
14522         (mips_expand_prologue): Disable the floating point unit in an ISR.
14523         * config/mips/mips.h (SR_COP1): New define.
14524
14525 2015-07-15  Richard Biener  <rguenther@suse.de>
14526
14527         * genmatch.c (parser::peek, parser::peek_ident): Add argument
14528         to tell how many tokens to peek ahead (default 1).
14529         (parser::eat_token, parser::eat_ident): Return token consumed.
14530         (parser::parse_result): Parse new switch statement.
14531         * match.pd: Use case statements where appropriate.
14532
14533 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
14534
14535         PR rtl-optimization/58066
14536         * calls.c (expand_call): Precompute register parameters before stack
14537         alignment is performed.
14538
14539 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
14540
14541         PR rtl-optimization/66838
14542         * postreload.c (reload_cse_move2add): Also process
14543         CALL_INSN_FUNCTION_USAGE when resetting information of
14544         call-clobbered registers.
14545
14546 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14547             Cesar Philippidis  <cesar@codesourcery.com>
14548             Chung-Lin Tang  <cltang@codesourcery.com>
14549
14550         * config/nios2/constraints.md (U, v): New constraints.
14551         * config/nios2/predicates.md (rdprs_dcache_operand): New.
14552         (ldstex_memory_operand): New.
14553         * config/nios2/sync.md: New file.
14554         * config/nios2/nios2.md (unspecv): Add new builtin function
14555         UNSPECV codes.
14556         (rdprs, flushd, flushda, wrpie, eni): New patterns.
14557         (top-level): Include sync.md.
14558         * config/nios2/nios2.c (N2_FTYPES): Add function types for
14559         new builtins.
14560         (N2_BUILTINS): Add arch field setting, add new builtins.
14561         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14562         for arch field.
14563         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14564         Also handle ldex/stex/ldsex/stsex builtins.
14565         (nios2_expand_rdprs_builtin): New function.
14566         (nios2_expand_cache_builtin): New function.
14567         (nios2_expand_wrpie_builtin): New function.
14568         (nios2_expand_eni_builtin): New function.
14569         (nios2_expand_builtin): Add arch field handling and new builtin
14570         cases.
14571         * doc/extend.texi (Altera Nios II Built-in Functions): Document
14572         new builtins.
14573         * doc/md.texi (Machine Constraints): Document U and v constraints.
14574
14575 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14576             Cesar Philippidis  <cesar@codesourcery.com>
14577             Chung-Lin Tang  <cltang@codesourcery.com>
14578
14579         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14580         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14581         callee_save_reg_size and uses_anonymous_args fields.
14582         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14583         (nios2_create_cfa_notes): New function.
14584         (nios2_adjust_stack): New function for adjusting stack.
14585         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14586         Use nios2_adjust_stack.
14587         (nios2_expand_epilogue): Likewise.
14588         (nios2_expand_return): New function.
14589         (nios2_can_use_return_insn): Update for CDX pop.n usage.
14590         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14591         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14592         * config/nios2/nios2.md (return): Use nios2_expand_return.
14593
14594 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14595             Cesar Philippidis  <cesar@codesourcery.com>
14596             Chung-Lin Tang  <cltang@codesourcery.com>
14597
14598         * config/nios2/predicates.md (pop_operation): New.
14599         (ldwm_operation, stwm_operation): New.
14600         (nios2_hard_register_operand): New.
14601         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14602         (ldstwm_operation_p): Declare.
14603         (gen_ldstwm_peep): Declare.
14604         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14605         (base_reg_adjustment_p): New.
14606         (pop_operation_p): New.
14607         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14608         (nios2_ldstwm_regset_p): New.
14609         (ldstwm_operation_p): New.
14610         (gen_ldst): New.
14611         (nios2_ldst_parallel): New.
14612         (struct ldswm_operand): Declare.
14613         (compare_ldstwm_operands): New.
14614         (can_use_cdx_ldstw): New.
14615         (gen_ldstwm_peep): New.
14616         * config/nios2/nios2-ldstwm.sml: New.
14617         * config/nios2/nios2.md: Include ldstwm.md.
14618         * config/nios2/ldstwm.md: Generated.
14619
14620 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14621             Cesar Philippidis  <cesar@codesourcery.com>
14622             Chung-Lin Tang  <cltang@codesourcery.com>
14623
14624         * config/nios2/nios2.h (LABEL_ALIGN): Define.
14625         (REG_ALLOC_ORDER): Define.
14626         (ADJUST_REG_ALLOC_ORDER): Define.
14627         (HONOR_REG_ALLOC_ORDER): Define.
14628         (CDX_REG_P): Define.
14629         (ANDCLEAR_INT): Define.
14630         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14631         (nios2_label_align): Declare.
14632         (nios2_cdx_narrow_form_p): Declare.
14633         (nios2_adjust_reg_alloc_order): Declare.
14634         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14635         operation.
14636         (nios2_large_unspec_reloc_p): New function, split from...
14637         (nios2_legitimate_pic_operand_p): ...here.
14638         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14639         (nios2_print_operand_punct_valid_p): New.
14640         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
14641         (split_mem_address): New.
14642         (split_alu_insn): New.
14643         (cdxreg): New.
14644         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14645         (enum nios2_add_insn_kind): New.
14646         (nios2_add_insn_names, nios2_add_insn_narrow): New.
14647         (nios2_add_insn_classify): New.
14648         (nios2_add_insn_asm): New.
14649         (nios2_cdx_narrow_form_p): New.
14650         (label_align, min_labelno, max_labelno): New.
14651         (nios2_reorg): New.
14652         (nios2_label_align): New.
14653         (nios2_adjust_reg_alloc_order): New.
14654         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14655         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14656         * config/nios2/constraints.md (P): New constraint.
14657         * config/nios2/predicates.md (const_and_operand): New.
14658         (and_operand): New.
14659         (stack_memory_operand): New.
14660         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14661         (length): Update to use nios2_cdx_narrow_form_p().
14662         (type): Add new insn type values.
14663         (control, alu, st, ld, shift): Update insn reservations with
14664         new insn type values.
14665         (*high, *lo_sum): Define new insn patterns for constant generation.
14666         (movqi_internal, movhi_internal, movsi_internal): Reduce
14667         alternatives, update asm template to handle CDX variants, update
14668         type attributes.
14669         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14670         template, update type attributes.
14671         (extendhisi2, extendqi<mode>2): Likewise.
14672         (addsi3): Change to use function for asm string.
14673         (subsi3): Add CDX notation to asm template, update type attributes.
14674         (negsi3, one_cmplsi3): Likewise.
14675         (andsi3): New pattern, specialized from logical patterns.
14676         (<code>si3): Remove and case, combine alternatives, update asm
14677         template.
14678         (<shift_op>si3): Add CDX notation, update type attributes.
14679         (rotrsi3): Update type attribute.
14680         (*merge, extzv, insv): New insn patterns.
14681         (return): Change to define_expand.
14682         (simple_return): Add CDX notation, update type attributes.
14683         (indirect_jump): Add CDX notation.
14684         (jump): Update asm cases, update length attribute expression.
14685         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14686         (nios2_cbranch): Update asm cases and length attribute expression
14687         to handle CDX variants.
14688         (nios2_cmp<code>): Update asm template.
14689         (nop): Add CDX notation, update type attributes.
14690         (trap): Add CDX notation.
14691         (ctrapsi4): Update asm cases and length attribute expression to
14692         handle CDX variant.
14693         * doc/md.texi (Machine Constraints): Document P constraint.
14694
14695 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14696             Cesar Philippidis  <cesar@codesourcery.com>
14697             Chung-Lin Tang  <cltang@codesourcery.com>
14698
14699         * config/nios2/nios2.h (SMALL_INT12): New macro.
14700         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14701         (nios2_valid_addr_expr_p): Use it.
14702         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14703         with implicit "io" instructions on R2.
14704         * config/nios2/constraints.md (w): New constraint.
14705         * config/nios2/predicates.md (ldstio_memory_operand): New.
14706         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14707         operand predicate and constraint.
14708         (ld<bh>io_signed, st<bhw>io>): Likewise.
14709         * doc/md.texi (Machine Constraints): Document w constraint.
14710
14711 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14712             Cesar Philippidis  <cesar@codesourcery.com>
14713             Chung-Lin Tang  <cltang@codesourcery.com>
14714
14715         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14716         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14717         Nios II architecture level.
14718         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14719         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14720         (OPTION_DEFAULT_SPECS): Define.
14721         (ASM_SPEC): Add -march= spec strings.
14722         * config/nios2/nios2.c (nios2_option_override): Check for
14723         conflicts involving new options.
14724         * config.gcc (nios2*-*-*): Support --with-arch=.
14725         * doc/invoke.texi (Option Summary, Nios II Options): Document
14726         -march=, -mbmx, and -mcdx.
14727
14728 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
14729
14730         PR rtl-optimization/66626
14731         * lra-constraints.c (lra_constraints): Prevent equivalence
14732         substitution for static chain pseudo in functions with nonlocal
14733         goto.
14734
14735 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14736
14737         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14738         (nios2_emit_stack_limit_check): Add size parameter.  Handle
14739         -fstack-limit-symbol as well as -fstack-limit-register.
14740         (nios2_expand_prologue): Emit only a single stack limit check,
14741         even if multiple stack adjustments are required.
14742         (nios2_option_override): Diagnose unsupported combination of -fpic
14743         and -stack-limit-symbol.
14744
14745 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
14746
14747         * Makefile.in (top_srcdir): New.
14748         * configure.ac: Use AM_ZLIB.
14749         * configure: Regeneated.
14750
14751 2015-07-14  Matthias Klose  <doko@ubuntu.com>
14752
14753         PR target/66840
14754         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14755
14756 2015-07-14  Richard Biener  <rguenther@suse.de>
14757
14758         PR tree-optimization/66863
14759         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14760         what we record for conversion use stmt lhs inequalities.
14761
14762 2015-07-14  Richard Biener  <rguenther@suse.de>
14763
14764         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14765         (decision_tree::gen_gimple): Likewise.
14766
14767 2015-07-14  Tom de Vries  <tom@codesourcery.com>
14768
14769         * gcc.c (greater_than_spec_func): Declare forward.
14770         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14771         -ftree-parallelize-loops={0,1}.
14772         (static_spec_functions): Add greater_than_spec_func function with name
14773         "gt".
14774         (greater_than_spec_func): New function.
14775
14776 2015-07-14  Richard Biener  <rguenther@suse.de>
14777
14778         * tree-ssa-dom.c (record_temporary_equivalences): Merge
14779         wideing type conversion case from record_equivalences_from_incoming_edge
14780         and use record_equality to record equivalences.
14781         (record_equivalences_from_incoming_edge): Call
14782         record_temporary_equivalences.
14783
14784 2015-07-14  Richard Biener  <rguenther@suse.de>
14785
14786         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14787         (struct if_expr): New.
14788         (struct with_expr): Likewise.
14789         (is_a_helper): Add helpers for if_expr and with_expr.
14790         (struct simplify): Add simplify_kind enum and member.  Remove
14791         ifexpr_vec member.
14792         (simplify::simplify): Adjust.
14793         (lower_commutative): Adjust.
14794         (lower_opt_convert): Likewise.
14795         (lower_cond): Likewise.
14796         (replace_id): Handle with_expr and if_expr.
14797         (lower_for): Adjust.
14798         (dt_simplify::gen_1): New recursive worker, split out from ...
14799         (dt_simplify::gen): ... here.  Deal with if and with expansion
14800         recursively.
14801         (capture_info::capture_info): Take context argument
14802         (capture_info::walk_result): Only analyze specific result.
14803         (parser::parse_result): New function.
14804         (parser::parse_simplify): Adjust to parse ifs with then end
14805         else case.
14806         (parser::parse_if): Simplify.
14807         (parser::parse_pattern): Pass down simplify kind.
14808         * match.pd: Convert if structure to new syntax.
14809
14810 2015-07-13  Marek Polacek  <polacek@redhat.com>
14811
14812         * rtl.c (rtx_equal_p_cb): Fix typo.
14813
14814 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
14815
14816         * omega.h: Don't include config.h, don't include params.h again if
14817         omega.h has already been included.
14818         * graphite-poly.h: Include sese.h.
14819         * graphite.c: Don't include sese.h, remove needless includes and
14820         minimize includes outside #ifdef HAVE_isl block.
14821         * graphite-blocking.c: Don't include sese.h, remove needless includes,
14822         and wrap entire file in #ifdef HAVE_isl
14823         * graphite-dependences.c: Likewise.
14824         * graphite-interchange.c: Likewise.
14825         * graphite-isl-ast-to-gimple.c: Likewise.
14826         * graphite-optimize-isl.c: Likewise.
14827         * graphite-poly.c: Likewise.
14828         * graphite-scop-detection.c: Likewise.
14829         * graphite-sese-to-poly.c: Likewise.
14830
14831 2015-07-13  Tom de Vries  <tom@codesourcery.com>
14832
14833         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14834
14835 2015-07-13  Renlin Li  <renlin.li@arm.com>
14836
14837         PR rtl/66556
14838         * simplify-rtx.c (simplify_const_relational_operation): Add
14839         side_effects_p checks.
14840
14841 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
14842
14843         * bitmap.h: Fix double word typos.
14844         * builtins.c: Same.
14845         * calls.c: Same.
14846         * cfgloopmanip.c: Same.
14847         * cgraph.c: Same.
14848         * cgraph.h: Same.
14849         * cgraphclones.c: Same.
14850         * combine.c: Same.
14851         * config/aarch64/aarch64-protos.h: Same.
14852         * config/aarch64/aarch64.c: Same.
14853         * config/aarch64/aarch64.md: Same.
14854         * config/arm/arm.md: Same.
14855         * config/arm/arm1020e.md: Same.
14856         * config/arm/arm1026ejs.md: Same.
14857         * config/arm/arm926ejs.md: Same.
14858         * config/arm/fa526.md: Same.
14859         * config/arm/fa606te.md: Same.
14860         * config/arm/fa626te.md: Same.
14861         * config/arm/fa726te.md: Same.
14862         * config/arm/fmp626.md: Same.
14863         * config/darwin.c: Same.
14864         * config/epiphany/epiphany.c: Same.
14865         * config/frv/frv.c: Same.
14866         * config/ft32/ft32.c: Same.
14867         * config/gnu-user.h: Same.
14868         * config/h8300/constraints.md: Same.
14869         * config/i386/i386.c: Same.
14870         * config/i386/i386.md: Same.
14871         * config/iq2000/iq2000.md: Same.
14872         * config/mips/mips.c: Same.
14873         * config/mmix/mmix.md: Same.
14874         * config/moxie/moxie.c: Same.
14875         * config/nds32/nds32.md: Same.
14876         * config/pa/pa.h: Same.
14877         * config/rs6000/aix.h: Same.
14878         * config/rs6000/rs6000.h: Same.
14879         * config/sh/sh.c: Same.
14880         * config/tilegx/tilegx.md: Same.
14881         * config/tilepro/gen-mul-tables.cc: Same.
14882         * cse.c: Same.
14883         * dbxout.c: Same.
14884         * doc/invoke.texi: Same.
14885         * dse.c: Same.
14886         * dwarf2out.c: Same.
14887         * final.c: Same.
14888         * gcc.c: Same.
14889         * genmatch.c: Same.
14890         * gimplify.c: Same.
14891         * hash-table.h: Same.
14892         * internal-fn.c: Same.
14893         * ipa-cp.c: Same.
14894         * ipa-devirt.c: Same.
14895         * ipa-icf.c: Same.
14896         * ipa-icf.h: Same.
14897         * ipa-profile.c: Same.
14898         * ipa-prop.c: Same.
14899         * ipa-prop.h: Same.
14900         * ira.c: Same.
14901         * omp-low.c: Same.
14902         * reg-stack.c: Same.
14903         * regcprop.c: Same.
14904         * reorg.c: Same.
14905         * rtl.h: Same.
14906         * sbitmap.h: Same.
14907         * tree-eh.c: Same.
14908         * tree-inline.c: Same.
14909         * tree-sra.c: Same.
14910         * tree-ssa-dom.c: Same.
14911         * tree-ssa-loop-ivopts.c: Same.
14912         * tree-ssa-structalias.c: Same.
14913         * tree-ssa-tail-merge.c: Same.
14914         * tree-ssa-ter.c: Same.
14915         * tree-ssa-threadupdate.c: Same.
14916         * tree-ssa-uninit.c: Same.
14917         * tree-ssanames.c: Same.
14918         * tree-vect-loop-manip.c: Same.
14919         * tree-vrp.c: Same.
14920         * tree.c: Same.
14921         * valtrack.c: Same.
14922         * vec.h: Same.
14923
14924 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14925
14926         PR middle-end/66726
14927         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14928         tree_ssa_phiopt_worker): Call it.
14929
14930 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14931
14932         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14933         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14934         REG_EQUAL note.
14935
14936 2015-07-11  Marek Polacek  <polacek@redhat.com>
14937
14938         PR middle-end/66353
14939         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14940         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14941         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14942         rather than bb_has_abnormal_call_pred.
14943         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14944         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14945         rather than bb_has_abnormal_call_pred.
14946
14947 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
14948
14949         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14950         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14951         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14952         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14953         v850_legitimate_address_p): New functions.
14954         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14955
14956 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14957
14958         PR target/66819
14959         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14960         indirect sibcall with register arguments if register available
14961         for argument passing.
14962         (init_cumulative_args): Set cfun->machine->arg_reg_available
14963         to (cum->nregs > 0) or to true if function has a variable
14964         argument list.
14965         (function_arg_advance_32): Set cfun->machine->arg_reg_available
14966         to false if cum->nregs <= 0.
14967         * config/i386/i386.h (machine_function): Add arg_reg_available.
14968
14969 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
14970
14971         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14972         and gen_higpart instead of gen_rtx_SUBREG.
14973         * config/i386/i386.md
14974         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14975         (read-modify peephole2): Use gen_lowpart instead of
14976         gen_rtx_SUBREG for operand 5.
14977
14978 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
14979
14980         * config/tilepro/gen-mul-tables.cc (main): Change include list for
14981         generated files.
14982         * config/tilepro/mul-tables.c: Regenerate.
14983         * config/tilegx/mul-tables.c: Regenerate.
14984
14985 2015-07-10  Richard Biener  <rguenther@suse.de>
14986
14987         * fold-const.c (distribute_bit_expr): Remove.
14988         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14989         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14990         to A & (B | C) and simplifying A << C1 << C2 to ...
14991         * match.pd: ... patterns here.
14992
14993 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
14994
14995         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14996         Mark mem as READONLY and NOTRAP for PIC symbol.
14997
14998 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
14999
15000         * gimple-predict.h: New file.
15001         (gimple_predict_predictor, gimple_predict_set_predictor,
15002         gimple_predict_outcome, gimple_predict_set_outcome,
15003         gimple_build_predict): Relocate here.
15004         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
15005         gimple_predict_outcome, gimple_predict_set_outcome): Move to
15006         gimple-predict.h.
15007         * gimple.c (gimple_build_predict): Move to gimple-predict.h
15008         * basic-block.h: Don't include cfghooks.h.
15009         * backend.h: Don't include predict.h.
15010         * cfghooks.h: Include predict.h.
15011         * gimple-pretty-print.c: Include gimple-predict.h.
15012         * gimplify.c: Likwise.
15013         * predict.c: Adjust includes.
15014         * tree-inline.c: Likewise.
15015         * asan.c: Likewise.
15016         * auto-inc-dec.c: Likewise.
15017         * auto-profile.c: Likewise.
15018         * bb-reorder.c: Likewise.
15019         * builtins.c: Likewise.
15020         * caller-save.c: Likewise.
15021         * calls.c: Likewise.
15022         * cfganal.c: Likewise.
15023         * cfgbuild.c: Likewise.
15024         * cfg.c: Likewise.
15025         * cfgcleanup.c: Likewise.
15026         * cfgexpand.c: Likewise.
15027         * cfghooks.c: Likewise.
15028         * cfgloopanal.c: Likewise.
15029         * cfgloop.c: Likewise.
15030         * cfgloopmanip.c: Likewise.
15031         * cfgrtl.c: Likewise.
15032         * cgraph.c: Likewise.
15033         * cgraphunit.c: Likewise.
15034         * combine.c: Likewise.
15035         * cprop.c: Likewise.
15036         * cse.c: Likewise.
15037         * dce.c: Likewise.
15038         * dojump.c: Likewise.
15039         * dse.c: Likewise.
15040         * except.c: Likewise.
15041         * expmed.c: Likewise.
15042         * expr.c: Likewise.
15043         * final.c: Likewise.
15044         * fold-const.c: Likewise.
15045         * function.c: Likewise.
15046         * fwprop.c: Likewise.
15047         * gcc-plugin.h: Likewise.
15048         * gcse.c: Likewise.
15049         * genattrtab.c: Likewise.
15050         * genemit.c: Likewise.
15051         * gengtype.c: Likewise.
15052         * genopinit.c: Likewise.
15053         * genoutput.c: Likewise.
15054         * genpreds.c: Likewise.
15055         * genrecog.c: Likewise.
15056         * gimple-fold.c: Likewise.
15057         * gimple-iterator.c: Likewise.
15058         * gimple-ssa-isolate-paths.c: Likewise.
15059         * gimple-ssa-strength-reduction.c: Likewise.
15060         * graph.c: Likewise.
15061         * graphite-blocking.c: Likewise.
15062         * graphite.c: Likewise.
15063         * graphite-dependences.c: Likewise.
15064         * graphite-interchange.c: Likewise.
15065         * graphite-isl-ast-to-gimple.c: Likewise.
15066         * graphite-optimize-isl.c: Likewise.
15067         * graphite-poly.c: Likewise.
15068         * graphite-scop-detection.c: Likewise.
15069         * graphite-sese-to-poly.c: Likewise.
15070         * haifa-sched.c: Likewise.
15071         * ifcvt.c: Likewise.
15072         * internal-fn.c: Likewise.
15073         * ipa-cp.c: Likewise.
15074         * ipa-profile.c: Likewise.
15075         * ipa-split.c: Likewise.
15076         * ipa-utils.c: Likewise.
15077         * ira-build.c: Likewise.
15078         * ira-color.c: Likewise.
15079         * ira-conflicts.c: Likewise.
15080         * ira-costs.c: Likewise.
15081         * ira-emit.c: Likewise.
15082         * ira-lives.c: Likewise.
15083         * jump.c: Likewise.
15084         * loop-doloop.c: Likewise.
15085         * loop-init.c: Likewise.
15086         * loop-invariant.c: Likewise.
15087         * loop-unroll.c: Likewise.
15088         * lower-subreg.c: Likewise.
15089         * lra-assigns.c: Likewise.
15090         * lra.c: Likewise.
15091         * lra-coalesce.c: Likewise.
15092         * lra-constraints.c: Likewise.
15093         * lra-lives.c: Likewise.
15094         * lto-cgraph.c: Likewise.
15095         * lto-streamer-in.c: Likewise.
15096         * mode-switching.c: Likewise.
15097         * modulo-sched.c: Likewise.
15098         * omp-low.c: Likewise.
15099         * optabs.c: Likewise.
15100         * passes.c: Likewise.
15101         * postreload.c: Likewise.
15102         * postreload-gcse.c: Likewise.
15103         * profile.c: Likewise.
15104         * recog.c: Likewise.
15105         * regstat.c: Likewise.
15106         * reload1.c: Likewise.
15107         * reorg.c: Likewise.
15108         * rtlanal.c: Likewise.
15109         * sched-ebb.c: Likewise.
15110         * sel-sched-ir.c: Likewise.
15111         * sese.c: Likewise.
15112         * shrink-wrap.c: Likewise.
15113         * simplify-rtx.c: Likewise.
15114         * stmt.c: Likewise.
15115         * store-motion.c: Likewise.
15116         * tracer.c: Likewise.
15117         * trans-mem.c: Likewise.
15118         * tree-call-cdce.c: Likewise.
15119         * tree-cfg.c: Likewise.
15120         * tree-cfgcleanup.c: Likewise.
15121         * tree-chkp.c: Likewise.
15122         * tree-complex.c: Likewise.
15123         * tree-eh.c: Likewise.
15124         * tree-if-conv.c: Likewise.
15125         * tree-loop-distribution.c: Likewise.
15126         * tree-outof-ssa.c: Likewise.
15127         * tree-parloops.c: Likewise.
15128         * tree-predcom.c: Likewise.
15129         * tree-pretty-print.c: Likewise.
15130         * tree-profile.c: Likewise.
15131         * tree-sra.c: Likewise.
15132         * tree-ssa.c: Likewise.
15133         * tree-ssa-coalesce.c: Likewise.
15134         * tree-ssa-dce.c: Likewise.
15135         * tree-ssa-dom.c: Likewise.
15136         * tree-ssa-forwprop.c: Likewise.
15137         * tree-ssa-ifcombine.c: Likewise.
15138         * tree-ssa-loop-ch.c: Likewise.
15139         * tree-ssa-loop-im.c: Likewise.
15140         * tree-ssa-loop-ivcanon.c: Likewise.
15141         * tree-ssa-loop-ivopts.c: Likewise.
15142         * tree-ssa-loop-manip.c: Likewise.
15143         * tree-ssa-loop-prefetch.c: Likewise.
15144         * tree-ssa-loop-unswitch.c: Likewise.
15145         * tree-ssa-math-opts.c: Likewise.
15146         * tree-ssa-phiopt.c: Likewise.
15147         * tree-ssa-pre.c: Likewise.
15148         * tree-ssa-reassoc.c: Likewise.
15149         * tree-ssa-sink.c: Likewise.
15150         * tree-ssa-tail-merge.c: Likewise.
15151         * tree-ssa-threadedge.c: Likewise.
15152         * tree-ssa-threadupdate.c: Likewise.
15153         * tree-switch-conversion.c: Likewise.
15154         * tree-tailcall.c: Likewise.
15155         * tree-vect-data-refs.c: Likewise.
15156         * tree-vect-loop.c: Likewise.
15157         * tree-vect-loop-manip.c: Likewise.
15158         * tree-vectorizer.c: Likewise.
15159         * tree-vrp.c: Likewise.
15160         * ubsan.c: Likewise.
15161         * value-prof.c: Likewise.
15162         * varasm.c: Likewise.
15163         * var-tracking.c: Likewise.
15164         * config/aarch64/aarch64-builtins.c: Likewise.
15165         * config/aarch64/aarch64.c: Likewise.
15166         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15167         * config/alpha/alpha.c: Likewise.
15168         * config/arc/arc.c: Likewise.
15169         * config/arm/arm.c: Likewise.
15170         * config/avr/avr.c: Likewise.
15171         * config/bfin/bfin.c: Likewise.
15172         * config/c6x/c6x.c: Likewise.
15173         * config/cr16/cr16.c: Likewise.
15174         * config/cris/cris.c: Likewise.
15175         * config/darwin.c: Likewise.
15176         * config/darwin-c.c: Likewise.
15177         * config/epiphany/epiphany.c: Likewise.
15178         * config/epiphany/mode-switch-use.c: Likewise.
15179         * config/epiphany/resolve-sw-modes.c: Likewise.
15180         * config/fr30/fr30.c: Likewise.
15181         * config/frv/frv.c: Likewise.
15182         * config/ft32/ft32.c: Likewise.
15183         * config/h8300/h8300.c: Likewise.
15184         * config/i386/i386.c: Likewise.
15185         * config/i386/winnt.c: Likewise.
15186         * config/ia64/ia64.c: Likewise.
15187         * config/iq2000/iq2000.c: Likewise.
15188         * config/lm32/lm32.c: Likewise.
15189         * config/m32c/m32c.c: Likewise.
15190         * config/m32r/m32r.c: Likewise.
15191         * config/m68k/m68k.c: Likewise.
15192         * config/mcore/mcore.c: Likewise.
15193         * config/mep/mep.c: Likewise.
15194         * config/microblaze/microblaze.c: Likewise.
15195         * config/mips/mips.c: Likewise.
15196         * config/mmix/mmix.c: Likewise.
15197         * config/mn10300/mn10300.c: Likewise.
15198         * config/moxie/moxie.c: Likewise.
15199         * config/msp430/msp430.c: Likewise.
15200         * config/nds32/nds32.c: Likewise.
15201         * config/nds32/nds32-cost.c: Likewise.
15202         * config/nds32/nds32-fp-as-gp.c: Likewise.
15203         * config/nds32/nds32-intrinsic.c: Likewise.
15204         * config/nds32/nds32-isr.c: Likewise.
15205         * config/nds32/nds32-md-auxiliary.c: Likewise.
15206         * config/nds32/nds32-memory-manipulation.c: Likewise.
15207         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15208         * config/nds32/nds32-predicates.c: Likewise.
15209         * config/nios2/nios2.c: Likewise.
15210         * config/nvptx/nvptx.c: Likewise.
15211         * config/pa/pa.c: Likewise.
15212         * config/pdp11/pdp11.c: Likewise.
15213         * config/rl78/rl78.c: Likewise.
15214         * config/rs6000/rs6000.c: Likewise.
15215         * config/rx/rx.c: Likewise.
15216         * config/s390/s390.c: Likewise.
15217         * config/sh/sh.c: Likewise.
15218         * config/sh/sh-mem.cc: Likewise.
15219         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15220         * config/sh/sh_treg_combine.cc: Likewise.
15221         * config/sparc/sparc.c: Likewise.
15222         * config/spu/spu.c: Likewise.
15223         * config/stormy16/stormy16.c: Likewise.
15224         * config/tilegx/tilegx.c: Likewise.
15225         * config/tilepro/tilepro.c: Likewise.
15226         * config/v850/v850.c: Likewise.
15227         * config/vax/vax.c: Likewise.
15228         * config/visium/visium.c: Likewise.
15229         * config/xtensa/xtensa.c: Likewise.
15230
15231 2015-07-10  Richard Biener  <rguenther@suse.de>
15232
15233         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15234         (decision_tree::gen_gimple): Likewise.
15235         (decision_tree::gen_generic): Likewise.
15236
15237 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
15238
15239         PR target/66813
15240         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15241         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15242
15243 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
15244
15245         PR middle-end/66820
15246         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15247         or ORT_TASK contexts.
15248         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15249         is non-zero.
15250
15251 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15252
15253         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15254         above function.
15255
15256 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15257
15258         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15259         insert nit + 1 bound.
15260
15261 2015-07-10  Richard Biener  <rguenther@suse.de>
15262
15263         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15264         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15265         (if_convertible_loop_p_1): For this always compute bb predicates.
15266         (if_convertible_loop_p): And free them.
15267
15268 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15269
15270         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15271         in dump message.
15272
15273 2015-07-10  Richard Biener  <rguenther@suse.de>
15274
15275         PR tree-optimization/66823
15276         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15277         inverted predicate.
15278
15279 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
15280
15281         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15282         to handle mips[32|64]r3 and mips[32|64]r5.
15283
15284 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
15285
15286         PR middle-end/66633
15287         * tree-nested.c (get_static_chain): Or in a flag into
15288         info->static_chain_added.
15289         (get_frame_field, get_nonlocal_debug_decl): Likewise.
15290         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15291         2015-07-01 changes.
15292         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15293         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15294         add it to clauses.
15295
15296         PR tree-optimization/66718
15297         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15298         field.
15299         (vect_simd_lane_linear): New function.
15300         (vectorizable_simd_clone_call): Support using linear arguments for
15301         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15302
15303 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15304
15305         PR target/66821
15306         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15307
15308 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
15309
15310         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15311         Use machine mode, not enum machine_mode in the prototype.
15312
15313         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15314         classify 128-bit floating point support.
15315         (FLOAT128_IBM_P): Likewise.
15316         (FLOAT128_VECTOR_P): Likewise.
15317         (FLOAT128_2REG_P): Likewise.
15318         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15319         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15320         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15321         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15322
15323         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15324         tests against TFmode/TDmode, since those modes do not use VSX
15325         addresses.
15326         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15327         support.
15328         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15329         tests against TFmode, etc.
15330         (invalid_e500_subreg): Add tests against IFmode/KFmode.
15331         (reg_offset_addressing_ok_p): Likewise.
15332         (rs6000_legitimate_offset_address_p): Likewise.
15333         (rs6000_legitimize_address): Likewise.
15334         (rs6000_legitimize_reload_address): Likewise.
15335         (rs6000_legitimate_address_p): Clean up tests against TFmode and
15336         TDmode to use the new helper macros, which will include IFmode and
15337         KFmode.
15338         (rs6000_emit_move): Likewise.
15339         (rs6000_darwin64_record_arg_recurse): Likewise.
15340         (print_operand): Likewise.
15341         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15342         that uses a single vector register as a vector and not as a
15343         floating point register in terms of the calling sequence.
15344         (rs6000_discover_homogeneous_aggregate): Likewise.
15345         (rs6000_return_in_memory): Likewise.
15346         (init_cumulative_args): Likewise.
15347         (rs6000_function_arg_boundary): Likewise.
15348         (rs6000_function_arg_advance_1): Likewise.
15349         (rs6000_function_arg): Likewise.
15350         (rs6000_pass_by_reference): Likewise.
15351         (rs6000_gimplify_va_arg): Likewise.
15352         (rs6000_secondary_reload_memory): Use machine_mode not enum
15353         machine mode.
15354         (rs6000_split_multireg_move): Use new helper macros.
15355         (spe_func_has_64bit_regs_p): Likewise.
15356         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15357         (output_toc): Use new helper macros.
15358         (rs6000_register_move_cost): Likewise.
15359         (rs6000_function_value): Add IEEE 128-bit floating point calling
15360         sequence support.
15361         (rs6000_libcall_value): Likewise.
15362         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15363         floating point support.
15364         (rs6000_vector_mode_supported_p): Likewise.
15365
15366 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
15367
15368         PR rtl-optimization/66782
15369         * lra-int.h (struct lra_insn_recog_data): Add comment about
15370         clobbered hard regs for arg_hard_regs.
15371         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15372         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15373         Add condition for processing used hard regs.
15374         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15375         Process clobbered hard regs.
15376
15377 2015-07-09  Michael Matz  <matz@suse.de>
15378
15379         * genmatch.c (fprintf_indent): New function.
15380         (operand::gen_transform): Add indent parameter.
15381         (expr::gen_transform, c_expr::gen_transform,
15382         capture::gen_transform): Ditto and use fprintf_indent.
15383         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15384         (dt_operand::gen, dt_operand::gen_predicate,
15385         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15386         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15387         (decision_tree::gen_gimple): Adjust calls and indent generated
15388         code.
15389         (decision_tree::gen_generic): Ditto.
15390         (write_predicate): Ditto.
15391
15392 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
15393
15394         PR target/66814
15395         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15396         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15397         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15398         {GENERAL,SSE,MMX}_REG_P where appropriate.
15399
15400 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
15401
15402         * lto-streamer.h: Don't include target.h and alloc-pool.h.
15403         * builtins.c: Adjust includes.
15404         * gimple.c: Likewise.
15405         * ipa-icf.c: Likewise.
15406         * lto-opts.c: Likewise.
15407         * ipa-reference.c: Likewise.
15408         * lto-section-out.c: Likewise.
15409         * lto-streamer-in.c: Likewise.
15410         * lto-streamer-out.c: Likewise.
15411         * opts-global.c: Likewise.
15412         * symtab.c: Likewise.
15413         * tree-chkp.c: Likewise.
15414         * tree-ssa-live.c: Likewise.
15415         * tree-streamer-in.c: Likewise.
15416         * tree-streamer-out.c: Likewise.
15417         * config/darwin.c: Likewise.
15418         * config/i386/winnt.c: Likewise.
15419
15420 2015-07-09  Richard Biener  <rguenther@suse.de>
15421
15422         * genmatch.c (struct expr): Add force_single_use flag.
15423         (expr::expr): Add copy constructor.
15424         (capture_info::walk_match): Gather force_single_use captures.
15425         (expr::gen_transform): Use possibly NULLified sequence.
15426         (dt_simplify::gen): Apply single-use restrictions by NULLifying
15427         seq if any constrained expr is not single-use.
15428         (parser::parse_expr): Refactor to allow multiple flags.  Handle
15429         's' flag to force an expression have a single-use if the pattern
15430         simplifies to more than one statement.
15431         * match.pd: Convert most single_use conditionals to :s flags.
15432
15433 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15434
15435         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15436         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15437         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15438
15439 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
15440
15441         * flags.h: Don't include flag-types.h or options.h.
15442         * opts-common.c: Adjust includes.
15443         * opts-global.c: Likewise.
15444         * common/config/epiphany/epiphany-common.c: Likewise.
15445
15446 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15447
15448         PR target/66818
15449         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15450         for IA MCU.
15451
15452 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15453
15454         PR target/66817
15455         * config/i386/i386.c (ix86_return_in_memory): Return true
15456         if int_size_in_bytes returns negative for IA MCU.
15457
15458 2015-07-09  Marek Polacek  <polacek@redhat.com>
15459
15460         PR tree-optimization/66718
15461         * Makefile.in (OBJS): Add gimple-laddress.o.
15462         * passes.def: Schedule pass_laddress.
15463         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15464         * tree-pass.h (make_pass_laddress): Declare.
15465         * gimple-laddress.c: New file.
15466
15467 2015-07-09  Richard Biener  <rguenther@suse.de>
15468
15469         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15470
15471 2015-07-09  Richard Biener  <rguenther@suse.de>
15472
15473         PR tree-optimization/66807
15474         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15475
15476 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
15477
15478         * function.c (stack_protect_epilogue): Use if rather than switch for
15479         check targetm.have_stack_protect_test.
15480
15481 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15482
15483         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15484         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15485         * config/arc/arc.h: Likewise.
15486         * config/arm/arm.h: Likewise.
15487         * config/bfin/bfin.h: Likewise.
15488         * config/epiphany/epiphany.h: Likewise.
15489         * config/frv/frv.h: Likewise.
15490         * config/ia64/ia64.h: Likewise.
15491         * config/iq2000/iq2000.h: Likewise.
15492         * config/lm32/lm32.h: Likewise.
15493         * config/m32r/m32r.h: Likewise.
15494         * config/mcore/mcore.h: Likewise.
15495         * config/mep/mep.h: Likewise.
15496         * config/microblaze/microblaze.h: Likewise.
15497         * config/mips/mips.h: Likewise.
15498         * config/mmix/mmix.h: Likewise.
15499         * config/mn10300/mn10300.h: Likewise.
15500         * config/nds32/nds32.h: Likewise.
15501         * config/nios2/nios2.h: Likewise.
15502         * config/pa/pa.h: Likewise.
15503         * config/rl78/rl78.h: Likewise.
15504         * config/sh/sh.h: Likewise.
15505         * config/sparc/sparc.h: Likewise.
15506         * config/stormy16/stormy16.h: Likewise.
15507         * config/tilegx/tilegx.h: Likewise.
15508         * config/tilepro/tilepro.h: Likewise.
15509         * config/v850/v850.h: Likewise.
15510         * config/xtensa/xtensa.h: Likewise.
15511         * doc/tm.texi: Regenerate.
15512         * doc/tm.texi.in: Adjust.
15513         * combine.c (simplify_set): Likewise.
15514         (simplify_comparison): Likewise.
15515         * expr.c (store_constructor): Likewise.
15516         * internal-fn.c (expand_arith_overflow): Likewise.
15517         * reload.c (push_reload): Likewise.
15518         (find_reloads): Likewise.
15519         (find_reloads_subreg_address): Likewise.
15520         * reload1.c (eliminate_regs_1): Likewise.
15521         * rtlanal.c (nonzero_bits1): Likewise.
15522         (num_sign_bit_copies1): Likewise.
15523         * simplify-rtx.c (simplify_truncation): Likewise.
15524
15525 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15526
15527         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15528         of AUTO_INC_DEC with the preprocessor.
15529         * combine.c (combine_instructions): Likewise.
15530         (can_combine_p): Likewise.
15531         (try_combine): Likewise.
15532         * emit-rtl.c (try_split): Likewise.
15533         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15534         * lower-subreg.c (resolve_simple_move): Likewise.
15535         * lra.c (update_inc_notes): Likewise.
15536         * recog.c (asm_operand_ok): Likewise.
15537         (constrain_operands): Likewise.
15538         * regrename.c (scan_rtx_address): Likewise.
15539         * reload.c (update_auto_inc_notes): Likewise.
15540         (reg_inc_found_and_valid_p): Likewise.
15541         * reload1.c (reload): Likewise.
15542         (emit_input_reload_insns): Likewise.
15543         (delete_output_reload): Likewise.
15544         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15545         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15546
15547 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15548
15549         * rtl.h: Always define AUTO_INC_DEC.
15550         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15551         * combine.c (combine_instructions): Likewise.
15552         (can_combine_p): Likewise.
15553         (try_combine): Likewise.
15554         * emit-rtl.c (try_split): Likewise.
15555         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15556         * lower-subreg.c (resolve_simple_move): Likewise.
15557         * lra.c (update_inc_notes): Likewise.
15558         * recog.c (asm_operand_ok): Likewise.
15559         (constrain_operands): Likewise.
15560         * regrename.c (scan_rtx_address): Likewise.
15561         * reload.c (update_auto_inc_notes): Likewise.
15562         (find_equiv_reg): Likewise.
15563         * reload1.c (reload): Likewise.
15564         (reload_as_needed): Likewise.
15565         (choose_reload_regs): Likewise.
15566         (emit_input_reload_insns): Likewise.
15567         (delete_output_reload): Likewise.
15568         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15569         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15570
15571 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15572
15573         * combine.c (can_combine_def_p): Don't check the value of
15574         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15575         (combinable_i3pat): Likewise.
15576         (mark_used_regs_combine): Likewise.
15577         * regrename.c (rename_chains): Likewise.
15578         * reload.c (find_reloads_address): Likewise.
15579         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15580
15581 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15582
15583         * combine.c (update_rsp_from_reg_equal): Don't check if
15584         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15585         (reg_nonzero_bits_for_combine): Likewise.
15586         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15587         1.
15588         * config/frv/frv.h: Likewise.
15589         * config/lm32/lm32.h: Likewise.
15590         * config/mep/mep.h: Likewise.
15591         * config/mips/mips.h: Likewise.
15592         * config/rs6000/rs6000.h: Likewise.
15593         * config/sh/sh.h: Likewise.
15594         * config/tilegx/tilegx.h (enum reg_class): Likewise.
15595         * config/tilepro/tilepro.h: Likewise.
15596         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15597         * doc/tm.texi: Regenerate.
15598         * doc/tm.texi.in: Adjust.
15599         * rtlanal.c (nonzero_bits1): Likewise.
15600
15601 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15602
15603         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15604         with the preprocessor.
15605         (combine_instructions): Likewise.
15606         (try_combine): Likewise.
15607         (subst): Likewise.
15608         (distribute_notes): Likewise.
15609
15610 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15611
15612         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15613         defined.
15614         (simplify_set): Likewise.
15615         * cse.c (cse_insn): Likewise.
15616         * fold-const.c (fold_single_bit_test): Likewise.
15617         (fold_unary_loc): Likewise.
15618         * postreload.c (reload_cse_simplify_set): Likewise.
15619         (reload_cse_simplify_operands): Likewise.
15620
15621 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
15622
15623         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15624         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15625
15626 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
15627
15628         PR target/66746
15629         * config/i386/x86intrin.h: Include <adxintrin.h> even if
15630         __iamcu__ is defined.
15631
15632 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
15633
15634         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15635
15636 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
15637
15638         PR target/66523
15639         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15640         names from preservation.
15641
15642 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
15643
15644         PR target/66806
15645         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15646         change for IAMCU.
15647         (function_arg_advance_32): Don't pass vectors in registers for
15648         IAMCU.
15649         (function_arg_32): Likewise.
15650         (ix86_return_in_memory): Don't return vectors in registers for
15651         IAMCU.
15652
15653 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
15654
15655         PR middle-end/66334
15656         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15657         hard regno live at the start of BB with incoming abnormal edges.
15658         * lra-lives.c (process_bb_lives): Ditto.
15659
15660 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15661
15662         PR libgomp/65099
15663         * config/nvptx/mkoffload.c (main): Create an offload image only in
15664         64-bit configurations.
15665
15666 2015-07-08  Martin Liska  <mliska@suse.cz>
15667
15668         PR bootstrap/66744
15669         * tree-sra.c (create_access_1): Call ctor without brackets.
15670         (create_artificial_child_access): Likewise.
15671
15672 2015-07-08  Richard Biener  <rguenther@suse.de>
15673
15674         PR tree-optimization/66793
15675         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15676         Properly split the block after stmts ending it.
15677
15678 2015-07-08  Richard Biener  <rguenther@suse.de>
15679
15680         PR tree-optimization/66794
15681         * passes.c (execute_function_todo): Assert that post-dominators
15682         are not computed.
15683         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15684         Free post-dominators.
15685
15686 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15687
15688         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15689         with early exit.
15690
15691 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
15692
15693         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15694         more than or equal 8 and less than 32 when optimizing for size.
15695
15696 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15697
15698         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15699         COSTS_N_INSNS (1) and increment it appropriately throughout the
15700         function.
15701
15702 2015-07-08  Richard Biener  <rguenther@suse.de>
15703
15704         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15705
15706 2015-07-08  Alan Modra  <amodra@gmail.com>
15707
15708         * target.def (rtx_costs): Remove "code" param, add "mode".
15709         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15710         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
15711         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15712         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
15713         call.  Track mode when given in rtx.
15714         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
15715         (default_address_cost): Pass Pmode to rtx_cost.
15716         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15717         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15718         with NULL set.
15719         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
15720         (notreg_cost): Add mode param.  Use it.
15721         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
15722         mode param and pass to set_src_cost.  Update all calls.
15723         (hash_scan_set): Formatting.
15724         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15725         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15726         * hooks.h: Ditto.
15727         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15728         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15729         emit_store_flag): Update set_src_cost and rtx_cost calls.
15730         * auto-inc-dec.c (attempt_change): Likewise.
15731         * calls.c (precompute_register_parameters): Likewise.
15732         * combine.c (expand_compound_operation, make_extraction,
15733         force_to_mode, distribute_and_simplify_rtx): Likewise.
15734         * dojump.c (prefer_and_bit_test): Likewise.
15735         * dse.c (find_shift_sequence): Likewise.
15736         * expr.c (compress_float_constant): Likewise.
15737         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15738         * ifcvt.c (noce_try_sign_mask): Likewise.
15739         * loop-doloop.c (doloop_optimize): Likewise.
15740         * loop-invariant.c (create_new_invariant): Likewise.
15741         * lower-subreg.c (shift_cost, compute_costs): Likewise.
15742         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15743         lshift_cheap_p): Likewise.
15744         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15745         try_replace_in_use, reload_cse_move2add): Likewise.
15746         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15747         Likewise.
15748         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15749         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15750         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15751         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15752         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15753         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
15754         to rtx_cost calls.
15755         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15756         * config/arc/arc.c (arc_rtx_costs): Likewise.
15757         * config/arm/arm.c (arm_rtx_costs): Likewise.
15758         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15759         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15760         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15761         * config/cris/cris.c (cris_rtx_costs): Likewise.
15762         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15763         * config/frv/frv.c (frv_rtx_costs): Likewise.
15764         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15765         * config/i386/i386.c (ix86_rtx_costs): Likewise.
15766         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15767         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15768         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15769         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15770         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15771         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15772         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15773         * config/mep/mep.c (mep_rtx_cost): Likewise.
15774         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15775         * config/mips/mips.c (mips_rtx_costs): Likewise.
15776         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15777         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15778         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15779         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15780         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15781         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15782         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15783         * config/pa/pa.c (hppa_rtx_costs): Likewise.
15784         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15785         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15786         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15787         * config/s390/s390.c (s390_rtx_costs): Likewise.
15788         * config/sh/sh.c (sh_rtx_costs): Likewise.
15789         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15790         * config/spu/spu.c (spu_rtx_costs): Likewise.
15791         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15792         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15793         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15794         * config/v850/v850.c (v850_rtx_costs): Likewise.
15795         * config/vax/vax.c (vax_rtx_costs): Likewise.
15796         * config/visium/visium.c (visium_rtx_costs): Likewise.
15797         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15798         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15799         "code" param, and pass as outer_code to first rtx_cost call.  Pass
15800         mode to rtx_cost calls.
15801         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15802         calls.
15803         (aarch64_rtx_costs_wrapper): Update.
15804         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15805         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15806         rtx_cost calls.
15807         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15808         and rtx_cost calls.
15809         (avr_operand_rtx_cost): Similarly.
15810         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15811         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15812         * config/mips/mips.c (mips_stack_address_p): Comment typo.
15813         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15814         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15815         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15816         rtx_cost.
15817         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15818         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15819         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15820         * doc/tm.texi: Regenerate.
15821
15822 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
15823
15824         * tree-core.h: Include symtab.h.
15825         * rtl.h: Include hard-reg-set.h but not flags.h.
15826         (HARD_CONST): Remove condition compilation involving HARD_CONST since
15827         hard-reg-set.h is always included.
15828         * regs.h: Don't include hard-reg-set.h or rtl.h.
15829         * cfg.h: Include dominance.h.
15830         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15831         * backend.h: New.  Aggregate commonly used backend header files.
15832         * gimple-ssa.h: Don't include tree-hasher.h.
15833         * ssa.h: New.  Aggregate commonly used SSA header files.
15834         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15835         * sel-sched-ir.h: Flatten includes.
15836         * lra-int.h: Flatten completely.
15837         * sel-sched-dump.h: Flatten includes.
15838         * ira-int.h: Flatten includes.
15839         * gimple-streamer.h: Remove all includes.
15840         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15841         * resource.h: Flatten hard-reg-set.h and df.h.
15842         * sched-int.h: Flatten insn-arrt.h and df.h.
15843         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15844         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15845         * genattrtab.c (write_header): Adjust generated includes.
15846         * genautomata.c (main): Likewise.
15847         * genconditions.c (write-header): Likewise.
15848         * genemit.c (main): Likewise.
15849         * gengtype.c (open_base_files): Likewise.
15850         * genopinit.c (main): Likewise.
15851         * genoutput.c (output_prologue): Likewise.
15852         * genpeep.c (main): Likewise.
15853         * genpreds.c (write_insn_preds_c): Likewise.
15854         * genrecog.c (write_header): Likewise.
15855         * alias.c: Adjust includes.
15856         * asan.c: Likewise.
15857         * attribs.c: Likewise.
15858         * auto-inc-dec.c: Likewise.
15859         * auto-profile.c: Likewise.
15860         * bb-reorder.c: Likewise.
15861         * bt-load.c: Likewise.
15862         * builtins.c: Likewise.
15863         * caller-save.c: Likewise.
15864         * calls.c: Likewise.
15865         * ccmp.c: Likewise.
15866         * cfg.c: Likewise.
15867         * cfganal.c: Likewise.
15868         * cfgbuild.c: Likewise.
15869         * cfgcleanup.c: Likewise.
15870         * cfgexpand.c: Likewise.
15871         * cfghooks.c: Likewise.
15872         * cfgloop.c: Likewise.
15873         * cfgloopanal.c: Likewise.
15874         * cfgloopmanip.c: Likewise.
15875         * cfgrtl.c: Likewise.
15876         * cgraph.c: Likewise.
15877         * cgraphbuild.c: Likewise.
15878         * cgraphclones.c: Likewise.
15879         * cgraphunit.c: Likewise.
15880         * cilk-common.c: Likewise.
15881         * combine-stack-adj.c: Likewise.
15882         * combine.c: Likewise.
15883         * compare-elim.c: Likewise.
15884         * convert.c: Likewise.
15885         * coverage.c: Likewise.
15886         * cppbuiltin.c: Likewise.
15887         * cprop.c: Likewise.
15888         * cse.c: Likewise.
15889         * cselib.c: Likewise.
15890         * data-streamer-in.c: Likewise.
15891         * data-streamer-out.c: Likewise.
15892         * data-streamer.c: Likewise.
15893         * dbxout.c: Likewise.
15894         * dce.c: Likewise.
15895         * ddg.c: Likewise.
15896         * debug.c: Likewise.
15897         * df-core.c: Likewise.
15898         * df-problems.c: Likewise.
15899         * df-scan.c: Likewise.
15900         * dfp.c: Likewise.
15901         * dojump.c: Likewise.
15902         * dominance.c: Likewise.
15903         * domwalk.c: Likewise.
15904         * double-int.c: Likewise.
15905         * dse.c: Likewise.
15906         * dumpfile.c: Likewise.
15907         * dwarf2asm.c: Likewise.
15908         * dwarf2cfi.c: Likewise.
15909         * dwarf2out.c: Likewise.
15910         * emit-rtl.c: Likewise.
15911         * et-forest.c: Likewise.
15912         * except.c: Likewise.
15913         * explow.c: Likewise.
15914         * expmed.c: Likewise.
15915         * expr.c: Likewise.
15916         * final.c: Likewise.
15917         * fixed-value.c: Likewise.
15918         * fold-const.c: Likewise.
15919         * function.c: Likewise.
15920         * fwprop.c: Likewise.
15921         * gcc-plugin.h: Likewise.
15922         * gcse-common.c: Likewise.
15923         * gcse.c: Likewise.
15924         * generic-match-head.c: Likewise.
15925         * ggc-page.c: Likewise.
15926         * gimple-builder.c: Likewise.
15927         * gimple-expr.c: Likewise.
15928         * gimple-fold.c: Likewise.
15929         * gimple-iterator.c: Likewise.
15930         * gimple-low.c: Likewise.
15931         * gimple-match-head.c: Likewise.
15932         * gimple-pretty-print.c: Likewise.
15933         * gimple-ssa-isolate-paths.c: Likewise.
15934         * gimple-ssa-strength-reduction.c: Likewise.
15935         * gimple-streamer-in.c: Likewise.
15936         * gimple-streamer-out.c: Likewise.
15937         * gimple-walk.c: Likewise.
15938         * gimple.c: Likewise.
15939         * gimplify-me.c: Likewise.
15940         * gimplify.c: Likewise.
15941         * godump.c: Likewise.
15942         * graph.c: Likewise.
15943         * graphite-blocking.c: Likewise.
15944         * graphite-dependences.c: Likewise.
15945         * graphite-interchange.c: Likewise.
15946         * graphite-isl-ast-to-gimple.c: Likewise.
15947         * graphite-optimize-isl.c: Likewise.
15948         * graphite-poly.c: Likewise.
15949         * graphite-scop-detection.c: Likewise.
15950         * graphite-sese-to-poly.c: Likewise.
15951         * graphite.c: Likewise.
15952         * haifa-sched.c: Likewise.
15953         * hw-doloop.c: Likewise.
15954         * ifcvt.c: Likewise.
15955         * init-regs.c: Likewise.
15956         * internal-fn.c: Likewise.
15957         * ipa-chkp.c: Likewise.
15958         * ipa-comdats.c: Likewise.
15959         * ipa-cp.c: Likewise.
15960         * ipa-devirt.c: Likewise.
15961         * ipa-icf-gimple.c: Likewise.
15962         * ipa-icf.c: Likewise.
15963         * ipa-inline-analysis.c: Likewise.
15964         * ipa-inline-transform.c: Likewise.
15965         * ipa-inline.c: Likewise.
15966         * ipa-polymorphic-call.c: Likewise.
15967         * ipa-profile.c: Likewise.
15968         * ipa-prop.c: Likewise.
15969         * ipa-pure-const.c: Likewise.
15970         * ipa-ref.c: Likewise.
15971         * ipa-reference.c: Likewise.
15972         * ipa-split.c: Likewise.
15973         * ipa-utils.c: Likewise.
15974         * ipa-visibility.c: Likewise.
15975         * ipa.c: Likewise.
15976         * ira-build.c: Likewise.
15977         * ira-color.c: Likewise.
15978         * ira-conflicts.c: Likewise.
15979         * ira-costs.c: Likewise.
15980         * ira-emit.c: Likewise.
15981         * ira-lives.c: Likewise.
15982         * ira.c: Likewise.
15983         * jump.c: Likewise.
15984         * langhooks.c: Likewise.
15985         * lcm.c: Likewise.
15986         * loop-doloop.c: Likewise.
15987         * loop-init.c: Likewise.
15988         * loop-invariant.c: Likewise.
15989         * loop-iv.c: Likewise.
15990         * loop-unroll.c: Likewise.
15991         * lower-subreg.c: Likewise.
15992         * lra-assigns.c: Likewise.
15993         * lra-coalesce.c: Likewise.
15994         * lra-constraints.c: Likewise.
15995         * lra-eliminations.c: Likewise.
15996         * lra-lives.c: Likewise.
15997         * lra-remat.c: Likewise.
15998         * lra-spills.c: Likewise.
15999         * lra.c: Likewise.
16000         * lto-cgraph.c: Likewise.
16001         * lto-compress.c: Likewise.
16002         * lto-opts.c: Likewise.
16003         * lto-section-in.c: Likewise.
16004         * lto-section-out.c: Likewise.
16005         * lto-streamer-in.c: Likewise.
16006         * lto-streamer-out.c: Likewise.
16007         * lto-streamer.c: Likewise.
16008         * mcf.c: Likewise.
16009         * mode-switching.c: Likewise.
16010         * modulo-sched.c: Likewise.
16011         * omega.c: Likewise.
16012         * omp-low.c: Likewise.
16013         * optabs.c: Likewise.
16014         * opts-global.c: Likewise.
16015         * passes.c: Likewise.
16016         * plugin.c: Likewise.
16017         * postreload-gcse.c: Likewise.
16018         * postreload.c: Likewise.
16019         * predict.c: Likewise.
16020         * print-rtl.c: Likewise.
16021         * print-tree.c: Likewise.
16022         * profile.c: Likewise.
16023         * real.c: Likewise.
16024         * realmpfr.c: Likewise.
16025         * recog.c: Likewise.
16026         * ree.c: Likewise.
16027         * reg-stack.c: Likewise.
16028         * regcprop.c: Likewise.
16029         * reginfo.c: Likewise.
16030         * regrename.c: Likewise.
16031         * regstat.c: Likewise.
16032         * reload.c: Likewise.
16033         * reload1.c: Likewise.
16034         * reorg.c: Likewise.
16035         * resource.c: Likewise.
16036         * rtl-chkp.c: Likewise.
16037         * rtlanal.c: Likewise.
16038         * rtlhooks.c: Likewise.
16039         * sanopt.c: Likewise.
16040         * sched-deps.c: Likewise.
16041         * sched-ebb.c: Likewise.
16042         * sched-rgn.c: Likewise.
16043         * sched-vis.c: Likewise.
16044         * sdbout.c: Likewise.
16045         * sel-sched-dump.c: Likewise.
16046         * sel-sched-ir.c: Likewise.
16047         * sel-sched.c: Likewise.
16048         * sese.c: Likewise.
16049         * shrink-wrap.c: Likewise.
16050         * simplify-rtx.c: Likewise.
16051         * stack-ptr-mod.c: Likewise.
16052         * stmt.c: Likewise.
16053         * stor-layout.c: Likewise.
16054         * store-motion.c: Likewise.
16055         * stringpool.c: Likewise.
16056         * symtab.c: Likewise.
16057         * target-globals.c: Likewise.
16058         * targhooks.c: Likewise.
16059         * toplev.c: Likewise.
16060         * tracer.c: Likewise.
16061         * trans-mem.c: Likewise.
16062         * tree-affine.c: Likewise.
16063         * tree-browser.c: Likewise.
16064         * tree-call-cdce.c: Likewise.
16065         * tree-cfg.c: Likewise.
16066         * tree-cfgcleanup.c: Likewise.
16067         * tree-chkp-opt.c: Likewise.
16068         * tree-chkp.c: Likewise.
16069         * tree-chrec.c: Likewise.
16070         * tree-complex.c: Likewise.
16071         * tree-data-ref.c: Likewise.
16072         * tree-dfa.c: Likewise.
16073         * tree-diagnostic.c: Likewise.
16074         * tree-dump.c: Likewise.
16075         * tree-eh.c: Likewise.
16076         * tree-emutls.c: Likewise.
16077         * tree-if-conv.c: Likewise.
16078         * tree-inline.c: Likewise.
16079         * tree-into-ssa.c: Likewise.
16080         * tree-iterator.c: Likewise.
16081         * tree-loop-distribution.c: Likewise.
16082         * tree-nested.c: Likewise.
16083         * tree-nrv.c: Likewise.
16084         * tree-object-size.c: Likewise.
16085         * tree-outof-ssa.c: Likewise.
16086         * tree-parloops.c: Likewise.
16087         * tree-phinodes.c: Likewise.
16088         * tree-predcom.c: Likewise.
16089         * tree-pretty-print.c: Likewise.
16090         * tree-profile.c: Likewise.
16091         * tree-scalar-evolution.c: Likewise.
16092         * tree-sra.c: Likewise.
16093         * tree-ssa-address.c: Likewise.
16094         * tree-ssa-alias.c: Likewise.
16095         * tree-ssa-ccp.c: Likewise.
16096         * tree-ssa-coalesce.c: Likewise.
16097         * tree-ssa-copy.c: Likewise.
16098         * tree-ssa-copyrename.c: Likewise.
16099         * tree-ssa-dce.c: Likewise.
16100         * tree-ssa-dom.c: Likewise.
16101         * tree-ssa-dse.c: Likewise.
16102         * tree-ssa-forwprop.c: Likewise.
16103         * tree-ssa-ifcombine.c: Likewise.
16104         * tree-ssa-live.c: Likewise.
16105         * tree-ssa-loop-ch.c: Likewise.
16106         * tree-ssa-loop-im.c: Likewise.
16107         * tree-ssa-loop-ivcanon.c: Likewise.
16108         * tree-ssa-loop-ivopts.c: Likewise.
16109         * tree-ssa-loop-manip.c: Likewise.
16110         * tree-ssa-loop-niter.c: Likewise.
16111         * tree-ssa-loop-prefetch.c: Likewise.
16112         * tree-ssa-loop-unswitch.c: Likewise.
16113         * tree-ssa-loop.c: Likewise.
16114         * tree-ssa-math-opts.c: Likewise.
16115         * tree-ssa-operands.c: Likewise.
16116         * tree-ssa-phiopt.c: Likewise.
16117         * tree-ssa-phiprop.c: Likewise.
16118         * tree-ssa-pre.c: Likewise.
16119         * tree-ssa-propagate.c: Likewise.
16120         * tree-ssa-reassoc.c: Likewise.
16121         * tree-ssa-sccvn.c: Likewise.
16122         * tree-ssa-scopedtables.c: Likewise.
16123         * tree-ssa-sink.c: Likewise.
16124         * tree-ssa-strlen.c: Likewise.
16125         * tree-ssa-structalias.c: Likewise.
16126         * tree-ssa-tail-merge.c: Likewise.
16127         * tree-ssa-ter.c: Likewise.
16128         * tree-ssa-threadedge.c: Likewise.
16129         * tree-ssa-threadupdate.c: Likewise.
16130         * tree-ssa-uncprop.c: Likewise.
16131         * tree-ssa-uninit.c: Likewise.
16132         * tree-ssa.c: Likewise.
16133         * tree-ssanames.c: Likewise.
16134         * tree-stdarg.c: Likewise.
16135         * tree-streamer-in.c: Likewise.
16136         * tree-streamer-out.c: Likewise.
16137         * tree-streamer.c: Likewise.
16138         * tree-switch-conversion.c: Likewise.
16139         * tree-tailcall.c: Likewise.
16140         * tree-vect-data-refs.c: Likewise.
16141         * tree-vect-generic.c: Likewise.
16142         * tree-vect-loop-manip.c: Likewise.
16143         * tree-vect-loop.c: Likewise.
16144         * tree-vect-patterns.c: Likewise.
16145         * tree-vect-slp.c: Likewise.
16146         * tree-vect-stmts.c: Likewise.
16147         * tree-vectorizer.c: Likewise.
16148         * tree-vrp.c: Likewise.
16149         * tree.c: Likewise.
16150         * tsan.c: Likewise.
16151         * ubsan.c: Likewise.
16152         * valtrack.c: Likewise.
16153         * value-prof.c: Likewise.
16154         * var-tracking.c: Likewise.
16155         * varasm.c: Likewise.
16156         * varpool.c: Likewise.
16157         * vmsdbgout.c: Likewise.
16158         * vtable-verify.c: Likewise.
16159         * web.c: Likewise.
16160         * wide-int.cc: Likewise.
16161         * xcoffout.c: Likewise.
16162         * config/aarch64/aarch64-builtins.c: Likewise.
16163         * config/aarch64/aarch64.c: Likewise.
16164         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16165         * config/alpha/alpha.c: Likewise.
16166         * config/arc/arc.c: Likewise.
16167         * config/arm/aarch-common.c: Likewise.
16168         * config/arm/arm-builtins.c: Likewise.
16169         * config/arm/arm-c.c: Likewise.
16170         * config/arm/arm.c: Likewise.
16171         * config/avr/avr-c.c: Likewise.
16172         * config/avr/avr-log.c: Likewise.
16173         * config/avr/avr.c: Likewise.
16174         * config/bfin/bfin.c: Likewise.
16175         * config/c6x/c6x.c: Likewise.
16176         * config/cr16/cr16.c: Likewise.
16177         * config/cris/cris.c: Likewise.
16178         * config/darwin-c.c: Likewise.
16179         * config/darwin.c: Likewise.
16180         * config/epiphany/epiphany.c: Likewise.
16181         * config/epiphany/mode-switch-use.c: Likewise.
16182         * config/epiphany/resolve-sw-modes.c: Likewise.
16183         * config/fr30/fr30.c: Likewise.
16184         * config/frv/frv.c: Likewise.
16185         * config/ft32/ft32.c: Likewise.
16186         * config/h8300/h8300.c: Likewise.
16187         * config/i386/i386-c.c: Likewise.
16188         * config/i386/i386.c: Likewise.
16189         * config/i386/msformat-c.c: Likewise.
16190         * config/i386/winnt-cxx.c: Likewise.
16191         * config/i386/winnt-stubs.c: Likewise.
16192         * config/i386/winnt.c: Likewise.
16193         * config/ia64/ia64-c.c: Likewise.
16194         * config/ia64/ia64.c: Likewise.
16195         * config/iq2000/iq2000.c: Likewise.
16196         * config/lm32/lm32.c: Likewise.
16197         * config/m32c/m32c-pragma.c: Likewise.
16198         * config/m32c/m32c.c: Likewise.
16199         * config/m32r/m32r.c: Likewise.
16200         * config/m68k/m68k.c: Likewise.
16201         * config/mcore/mcore.c: Likewise.
16202         * config/mep/mep-pragma.c: Likewise.
16203         * config/mep/mep.c: Likewise.
16204         * config/microblaze/microblaze-c.c: Likewise.
16205         * config/microblaze/microblaze.c: Likewise.
16206         * config/mips/mips.c: Likewise.
16207         * config/mmix/mmix.c: Likewise.
16208         * config/mn10300/mn10300.c: Likewise.
16209         * config/moxie/moxie.c: Likewise.
16210         * config/msp430/msp430-c.c: Likewise.
16211         * config/msp430/msp430.c: Likewise.
16212         * config/nds32/nds32-cost.c: Likewise.
16213         * config/nds32/nds32-fp-as-gp.c: Likewise.
16214         * config/nds32/nds32-intrinsic.c: Likewise.
16215         * config/nds32/nds32-isr.c: Likewise.
16216         * config/nds32/nds32-md-auxiliary.c: Likewise.
16217         * config/nds32/nds32-memory-manipulation.c: Likewise.
16218         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16219         * config/nds32/nds32-predicates.c: Likewise.
16220         * config/nds32/nds32.c: Likewise.
16221         * config/nios2/nios2.c: Likewise.
16222         * config/nvptx/nvptx.c: Likewise.
16223         * config/pa/pa.c: Likewise.
16224         * config/pdp11/pdp11.c: Likewise.
16225         * config/rl78/rl78-c.c: Likewise.
16226         * config/rl78/rl78.c: Likewise.
16227         * config/rs6000/rs6000-c.c: Likewise.
16228         * config/rs6000/rs6000.c: Likewise.
16229         * config/rx/rx.c: Likewise.
16230         * config/s390/s390-c.c: Likewise.
16231         * config/s390/s390.c: Likewise.
16232         * config/sh/sh-c.c: Likewise.
16233         * config/sh/sh-mem.cc: Likewise.
16234         * config/sh/sh.c: Likewise.
16235         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16236         * config/sh/sh_treg_combine.cc: Likewise.
16237         * config/sol2-c.c: Likewise.
16238         * config/sol2-cxx.c: Likewise.
16239         * config/sol2-stubs.c: Likewise.
16240         * config/sol2.c: Likewise.
16241         * config/sparc/sparc-c.c: Likewise.
16242         * config/sparc/sparc.c: Likewise.
16243         * config/spu/spu-c.c: Likewise.
16244         * config/spu/spu.c: Likewise.
16245         * config/stormy16/stormy16.c: Likewise.
16246         * config/tilegx/mul-tables.c: Likewise.
16247         * config/tilegx/tilegx-c.c: Likewise.
16248         * config/tilegx/tilegx.c: Likewise.
16249         * config/tilepro/mul-tables.c: Likewise.
16250         * config/tilepro/tilepro-c.c: Likewise.
16251         * config/tilepro/tilepro.c: Likewise.
16252         * config/v850/v850-c.c: Likewise.
16253         * config/v850/v850.c: Likewise.
16254         * config/vax/vax.c: Likewise.
16255         * config/visium/visium.c: Likewise.
16256         * config/vms/vms-c.c: Likewise.
16257         * config/vms/vms.c: Likewise.
16258         * config/vxworks.c: Likewise.
16259         * config/xtensa/xtensa.c: Likewise.
16260
16261 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
16262
16263         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16264         Remove operand constraints.  Change operand 2 predicate to
16265         nonmemory operand.  Limit const_int values to mode bitsize.  Only
16266         allow const_int values less than 32 when optimizing for size.
16267         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16268         Remove operand constraints.
16269         (*bt<mode>): Use SImode for const_int values less than 32.
16270         (regmode): Remove mode attribute.
16271
16272 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
16273
16274         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16275         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16276           moxie_legitimate_address_p): New functions.
16277           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16278
16279 2015-07-07  Tom de Vries  <tom@codesourcery.com>
16280
16281         PR tree-optimization/66642
16282         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16283         header comment.  Rename split_edge variable to edge_at_split.  Split
16284         exit edge to create new loop exit bb.  Insert loop exit phis in new
16285         loop exit bb.
16286
16287 2015-07-07  Tom de Vries  <tom@codesourcery.com>
16288
16289         * tree-cfg.c (get_virtual_phi): New function.
16290         * tree-cfg.h (get_virtual_phi): Declare.
16291         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16292         (rewrite_virtuals_into_loop_closed_ssa): New function.
16293         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16294         Declare.
16295         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16296         (transform_to_exit_first_loop_alt): Use
16297         rewrite_virtuals_into_loop_closed_ssa.
16298
16299 2015-07-07  Richard Biener  <rguenther@suse.de>
16300
16301         * fold-const.c (fold_binary_loc): Move
16302         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16303         * match.pd: ... here.
16304         Add (X * C1) % C2 -> 0 simplification pattern derived from
16305         extract_muldiv_1.
16306
16307 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16308
16309         PR target/66780
16310         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16311         change for target/65249.
16312
16313 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
16314
16315         * symtab.c (address_matters_1): Fix typo in comment above.
16316         (can_increase_alignment_p): Likewise.
16317
16318 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16319
16320         * function.c (free_after_compilation): Clear PROP_cfg in
16321         f->curr_properties.
16322
16323 2015-07-07  Richard Biener  <rguenther@suse.de>
16324
16325         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16326         add which use to.
16327         (add_control_edge): Remove excessive vertical space in dumping.
16328         (process_ssa_edge_worklist): Simulate at most one statement and
16329         return whether we did.  Do not simulate PHIs if they are in a
16330         BB not yet simulated.
16331         (ssa_propagate): Adjust to always drain the BB worklist whenever
16332         a BB is available there, likewise the VARYING edges list before
16333         the interesting edge list.
16334
16335 2015-07-07  Christian Bruel  <christian.bruel@st.com>
16336
16337         PR target/52144
16338         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16339
16340 2015-07-07  Richard Biener  <rguenther@suse.de>
16341
16342         PR middle-end/66739
16343         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16344         A - B.
16345
16346 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
16347
16348         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
16349         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
16350         Copy operand 0 to a temporary if !ext_register_operand.  Remove
16351         ancient extract_bit_field workaround.
16352         (insv<mode>_1): Rename from mov<mode>_insv_1.
16353         (*insvqi): Rename from *movqi_insv_2.
16354         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16355         for renamed insvsi_1.
16356         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16357
16358 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
16359
16360         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
16361         call to nvptx_reorg_subreg.
16362
16363 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
16364
16365         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16366         * graphite-dependencies.c, graphite-interchange.c,
16367         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16368         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16369         Likewise.
16370
16371 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
16372
16373         * match.pd: Remove element_mode inside HONOR_*.
16374         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16375         (~X | X -> -1, ~X ^ X -> -1): Merge.
16376         * tree.c (build_each_one_cst): New function.
16377         * tree.h (build_each_one_cst): Likewise.
16378
16379 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16380
16381         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16382         PROCESSOR_IAMCU.
16383
16384 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
16385
16386         * config.gcc <mips*-*-*>: Add fused-madd.opt.
16387         * config/mips/mips.opt (mfused-madd): Remove.
16388         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16389         * config/mips/mips.h (TARGET_MIPS8000): New.
16390         (ISA_HAS_FP_MADD4_MSUB4): Remove.
16391         (ISA_HAS_FP_MADDF_MSUBF): Remove.
16392         (ISA_HAS_FP_MADD3_MSUB3): Remove.
16393         (ISA_HAS_NMADD4_NMSUB4): Remove.
16394         (ISA_HAS_NMADD3_NMSUB3): Remove.
16395         (ISA_HAS_FUSED_MADD4): New.
16396         (ISA_HAS_UNFUSED_MADD4): New.
16397         (ISA_HAS_FUSED_MADDF): New.
16398         (ISA_HAS_FUSED_MADD3): New.
16399         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16400         (*fma<mode>4_madd3) New.
16401         (*fma<mode>4_madd4) New.
16402         (*fma<mode>4_maddf) New.
16403         (fms<mode>4) New.
16404         (*fms<mode>4_msub3) New.
16405         (*fms<mode>4_msub4) New.
16406         (fnma<mode>4) New.
16407         (*fnma<mode>4_nmadd3) New.
16408         (*fnma<mode>4_nmadd4) New.
16409         (fnms<mode>4) New.
16410         (*fnms<mode>4_nmsub3) New.
16411         (*fnms<mode>4_nmsub4) New.
16412         (*madd4<mode>) Modify to be unfused only.
16413         (*msub4<mode>) Modify to be unfused only.
16414         (*nmadd4<mode>) Modify to be unfused only.
16415         (*nmsub4<mode>) Modify to be unfused only.
16416         (*madd3<mode>) Remove.
16417         (*msub3<mode>) Remove.
16418         (*nmadd3<mode>) Remove.
16419         (*nmsub3<mode>) Remove.
16420         (*nmadd3<mode>_fastmath) Remove.
16421         (*nmsub3<mode>_fastmath) Remove.
16422         (*nmadd4<mode>_fastmath) Update condition.
16423         (*nmsub4<mode>_fastmath) Update condition.
16424
16425 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
16426
16427         PR target/65956
16428         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16429         alignment attribute, exploring one level down for records and arrays.
16430
16431 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
16432
16433         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
16434         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
16435         Copy operand 1 to a temporary if !ext_register_operand.  Remove
16436         ancient extract_bit_field workaround.
16437         (*extv<mode>): Rename from *mov<mode>_extv_1.
16438         (*extvqi): Rename from *movqi_extv_1.
16439         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
16440         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
16441         to a temporary if !ext_register_operand.  Remove ancient
16442         extract_bit_field workaround.
16443         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16444         (*extzvqi): Rename from *movqi_extzv_2.
16445         (*testqi_ext_3): Remove modes from const_int_operand predicated
16446         operands.  Add "n" constraint.
16447         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16448         operand.  Add "J" constraint.
16449         (*btsq, *btrq, *btcq peephole2s): Remove mode from
16450         const_0_to_63 predicated operand.
16451         (regmode): New insn attribute.
16452         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
16453         to nonmemory_operand.  Use regmode insn attribute.
16454         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16455         (*jcc_bt<mode>_mask): Remove mode from operand 3.
16456         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16457         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16458         operands.  Use "N" constraint instead of "n".
16459
16460 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
16461
16462         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16463
16464 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16465
16466         PR target/66749
16467         * config/i386/i386.c (iamcu_cost): New.
16468         (m_IAMCU): Likewise.
16469         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16470         (processor_target_table): Add an entry for "iamcu".
16471         (processor_alias_table): Likewise.
16472         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16473         (ix86_adjust_cost): Likewise.
16474         (ia32_multipass_dfa_lookahead): Likewise.
16475         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16476         * config/i386/x86-tune.def: Updated for m_IAMCU.
16477
16478 2015-07-06  Richard Biener  <rguenther@suse.de>
16479
16480         PR tree-optimization/66772
16481         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16482         values are available in the PHI node BB when there are
16483         still unexecutable edges.
16484
16485 2015-07-06  Richard Biener  <rguenther@suse.de>
16486
16487         PR tree-optimization/66767
16488         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16489         Make sure to build the alignment test on a SSA name without
16490         final alignment info valid only if the alignment test
16491         evaluates to true.
16492
16493 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16494
16495         PR target/66620
16496         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16497         loop start when inserting LSETUP.
16498
16499 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16500
16501         PR target/53383
16502         * config/i386/i386.c (ix86_option_override_internal): Allow
16503         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16504
16505 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16506
16507         * read-md.c (decimal_string): Rename to ...
16508         (md_decimal_string): ... this.
16509         (handle_enum): Reflect this.
16510
16511 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16512
16513         PR target/66731
16514         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16515
16516 2015-07-06  Richard Biener  <rguenther@suse.de>
16517
16518         PR middle-end/66759
16519         * match.pd: Add missing constraint of y to REAL_CST in
16520         REAL_CST - x CMP y to y - CST CMP x simplification.
16521
16522 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
16523
16524         PR tree-optimization/66757
16525         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16526
16527 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
16528             Sandra Loosemore <sandra@codesourcery.com>
16529
16530         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16531         Delete extern declaration.
16532         (gprel_constant_p): Add extern declaration.
16533         * config/nios2/constraints.md ("S"): Use gprel_constant_p
16534         instead of nios2_symbol_ref_in_small_data_p.
16535         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16536         (nios2_symbol_ref_in_small_data_p): Make static.
16537         (gprel_constant_p): Make non-static.
16538
16539 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
16540
16541         * doc/fragments.texi (Target Fragment): Convert debian.org
16542         link to use https.
16543         * doc/install.texi (Configuration): Ditto.
16544
16545 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
16546
16547         PR tree-optimization/66718
16548         * tree-vect-stmts.c (vectorizable_call): Replace uses of
16549         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16550
16551         PR tree-optimization/66718
16552         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16553         vectorizable_load, vectorizable_condition): Move vectype,
16554         nunits, ncopies computation after checking what kind of statement
16555         stmt is.
16556
16557 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16558
16559         * target-insns.def (extv, extzv, insv): New targetm instruction
16560         patterns.
16561         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16562         interface.
16563         * recog.c (simplify_while_replacing): Likewise.
16564
16565 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16566
16567         * target-insns.def (doloop_begin, doloop_end): New targetm
16568         instruction patterns.
16569         * loop-init.c: Include target.h.
16570         (pass_loop2::gate): Use the new targetm patterns instead of
16571         HAVE_*/gen_* interface.
16572         (pass_rtl_doloop::gate): Likewise.
16573         (pass_rtl_doloop::execute): Remove preprocessor condition.
16574         * hw-doloop.c: Build unconditionally.
16575         * loop-doloop.c: Likewise.
16576         (doloop_optimize): Use the new targetm patterns instead of
16577         HAVE_*/gen_* interface.
16578         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16579         * modulo-sched.c (doloop_register_get): Likewise.
16580
16581 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16582
16583         * target-insns.def (clear_cache): New targetm instruction pattern.
16584         * builtins.c (expand_builtin___clear_cache): Use it instead of
16585         HAVE_*/gen_* interface.
16586
16587 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16588
16589         * target-insns.def (allocate_stack, check_stack, probe_stack)
16590         (probe_stack_address, split_stack_prologue, split_stack_space_check):
16591         New targetm instruction patterns.
16592         * explow.c (allocate_dynamic_stack_space): Use them instead of
16593         HAVE_*/gen_* interface.
16594         (emit_stack_probe): Likewise.
16595         (probe_stack_range): Likewise.
16596         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16597
16598 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16599
16600         * target-insns.def (stack_protect_set, stack_protect_test): New
16601         targetm instruction patterns.
16602         * cfgexpand.c (stack_protect_prologue): Use them instead of
16603         HAVE_*/gen_* interface.
16604         * function.c (stack_protect_epilogue): Likewise.
16605
16606 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16607
16608         * expr.h (gen_move_insn_uncast): Delete.
16609         * expr.c (gen_move_insn_uncast): Delete.
16610
16611 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16612
16613         * target-insns.def (restore_stack_block, restore_stack_function)
16614         (restore_stack_nonlocal, save_stack_block, save_stack_function)
16615         (save_stack_nonlocal): New targetm instruction patterns.
16616         * builtins.c (expand_builtin_apply): Use them instead of
16617         HAVE_*/gen_* interface.
16618         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16619
16620 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16621
16622         * target-insns.def (trap): New targetm instruction pattern.
16623         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16624         interface.
16625         * explow.c (allocate_dynamic_stack_space): Likewise.
16626         * ifcvt.c (find_if_header): Likewise.
16627
16628 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16629
16630         * target-insns.def (prefetch): New targetm instruction pattern.
16631         * tree-ssa-loop-prefetch.c: Include targeth.
16632         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16633         of HAVE_*/gen_* interface.
16634         * builtins.c (expand_builtin_prefetch): Likewise.
16635         * toplev.c (process_options): Likewise.
16636
16637 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16638
16639         * target-insns.def (untyped_call, untyped_return): New targetm
16640         instruction patterns.
16641         * builtins.c (expand_builtin_apply): Use them instead of
16642         HAVE_*/gen_* interface.
16643         (result_vector): Define unconditionally.
16644
16645 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16646
16647         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16648         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16649         (nonlocal_goto_receiver): New targetm instruction patterns.
16650         * builtins.c (expand_builtin_setjmp_setup): Use them instead
16651         of HAVE_*/gen_* interface.
16652         (expand_builtin_setjmp_receiver): Likewise.
16653         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16654         * except.c (expand_dw2_landing_pad_for_region): Likewise.
16655
16656 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16657
16658         * target.def: Add code_for_* hooks.
16659         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16660         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16661         * target-insns.def (casesi, tablejump): New targetm instruction
16662         patterns.
16663         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16664         (do_tablejump): Likewise.
16665         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16666         (expand_sjlj_dispatch_table): Likewise.
16667         * targhooks.c (default_case_values_threshold): Likewise.
16668
16669 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
16670
16671         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16672         Use rtx_insn * instead of rtx.
16673         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16674         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16675         (nios2_call_tls_get_addr): Likewise.
16676         (nios2_emit_expensive_div): Likewise.
16677         (nios2_emit_move_sequence): Change return type to bool.
16678         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16679         Change return type to bool.
16680
16681 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16682
16683         PR target/66747
16684         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16685
16686 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
16687
16688         PR target/66114
16689         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16690         of register_operand.  Remove constraint.
16691
16692 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
16693
16694         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16695         the first argument.
16696
16697 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
16698
16699         * attribs.c (decl_attributes): Guard inform with the return value
16700         of the preceding warning.
16701
16702 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
16703
16704         * doc/invoke.texi (moverride): Move to correct section.
16705
16706 2015-07-03  Richard Biener  <rguenther@suse.de>
16707
16708         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16709         Copy from tree.c
16710         (dt_operand::gen_gimple_expr): After valueizing operands
16711         re-canonicalize operand order for commutative tree codes.
16712
16713 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
16714
16715         PR target/66746.
16716         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16717         is defined.
16718         (__crc32w): Likewise.
16719         (__crc32d): Likewise.
16720         (__rdpmc): Likewise.
16721         (__rdtscp): Likewise.
16722         (_rdpmc): Likewise.
16723         (_rdtscp): Likewise.
16724         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16725         is defined.
16726
16727 2015-07-03  Richard Biener  <rguenther@suse.de>
16728
16729         * fold-const.c (fold_mathfn_compare): Remove.
16730         (fold_inf_compare): Likewise.
16731         (fold_comparison): Move floating point comparison simplifications...
16732         * match.pd: ... to patterns here.  Introduce simple_comparisons
16733         operator list and use it for patterns formerly in fold_comparison.
16734
16735 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
16736
16737         PR tree-optimization/66119
16738         * toplev.c (process_options): Don't set up default values for
16739         the sra_max_scalarization_size_{speed,size} parameters.
16740         * tree-sra (analyze_all_variable_accesses): If no values
16741         have been set for the sra_max_scalarization_size_{speed,size}
16742         parameters, call get_move_ratio to get target defaults.
16743
16744 2015-07-03  Richard Biener  <rguenther@suse.de>
16745
16746         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16747         * match.pd: ... here.
16748
16749 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
16750
16751         PR target/37072
16752         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16753         is not actually the default on FreeBSD.
16754
16755 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16756
16757         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16758         definition.
16759         (CMPGE_8HI): Likewise.
16760         (CMPGE_4SI): Likewise.
16761         (CMPGE_2DI): Likewise.
16762         (CMPGE_U16QI): Likewise.
16763         (CMPGE_U8HI): Likewise.
16764         (CMPGE_U4SI): Likewise.
16765         (CMPGE_U2DI): Likewise.
16766         (CMPLE_16QI): Likewise.
16767         (CMPLE_8HI): Likewise.
16768         (CMPLE_4SI): Likewise.
16769         (CMPLE_2DI): Likewise.
16770         (CMPLE_U16QI): Likewise.
16771         (CMPLE_U8HI): Likewise.
16772         (CMPLE_U4SI): Likewise.
16773         (CMPLE_U2DI): Likewise.
16774         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16775         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16776         ALTIVEC_BUILTIN_VEC_CMPLE.
16777         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16778         floating-point vector modes.
16779         (vector_nlt<mode>): New define_expand.
16780         (vector_nltu<mode>): Likewise.
16781         (vector_ngt<mode>): Likewise.
16782         (vector_ngtu<mode>): Likewise.
16783
16784 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16785
16786         PR rtl-optimization/66706
16787         * combine.c (make_compound_operation): If an AND of SUBREG of
16788         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16789
16790 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
16791
16792         * tree-pass.h (make_pass_ch_vect): New.
16793         * passes.def: Add pass_ch_vect just before pass_if_conversion.
16794
16795         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16796         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16797         make_pass_ch_vect): New.
16798         (pass_ch): Extend ch_base.
16799
16800         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16801         (ch_base::copy_headers): ...here.
16802
16803 2015-07-02  Richard Biener  <rguenther@suse.de>
16804
16805         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16806         * fold-const.c (get_pointer_modulus_and_residue): Remove.
16807         (fold_binary_loc): Implement (T)ptr & CST in terms of
16808         get_pointer_alignment_1.
16809         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16810         Make sure to build the alignment test on a SSA name without
16811         final alignment info valid only after the prologue.
16812
16813 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
16814
16815         * config/cris/cris.md ("epilogue"): Remove condition.
16816         ("prologue"): Ditto.
16817
16818 2015-07-02  Richard Biener  <rguenther@suse.de>
16819
16820         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16821         parameter to record a condition that is false.
16822         (record_conditions): When recording an extra NE_EXPR that is
16823         true also record a EQ_EXPR that is false.
16824
16825 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
16826
16827         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16828         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16829         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
16830         (set_iv, find_interesting_uses_address, add_candidate_1): New
16831         argument to alloc_iv.
16832         (find_interesting_uses_op, find_interesting_uses_cond): Don't
16833         duplicate struct iv.
16834         (free_loop_data): Don't free struct iv explicitly.
16835         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16836
16837 2015-07-01  DJ Delorie  <dj@redhat.com>
16838
16839         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16840         (LIB_SPEC): Add.
16841         (SUPPORTS_DISCRIMINATOR): Define.
16842
16843 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
16844
16845         PR bootstrap/66685
16846         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16847         there are no CALLs in the same pattern.
16848
16849 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16850
16851         PR rtl-optimization/61047
16852         * rtlanal.c (get_initial_register_offset): New function.
16853         (rtx_addr_can_trap_p_1): Check offsets of stack references.
16854
16855 2015-07-01  Richard Biener  <rguenther@suse.de>
16856
16857         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16858         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16859         ~X CMP C -> X CMP' ~C to ...
16860         * match.pd: ... patterns here.
16861
16862 2015-07-01  Nick Clifton  <nickc@redhat.com>
16863
16864         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16865         a 16-bit value into a 20-bit memory slot.
16866
16867 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
16868
16869         * doc/sourcebuild.texi (AArch64-specific attributes): Document
16870         "aarch64_tiny", "aarch64_small", "aarch64_large",
16871         "aarch64_little_endian", "aarch64_big_endian".
16872
16873 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
16874
16875         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16876         Document "aarch64_small_fpic".
16877
16878 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
16879
16880         * configure.ac: Add check for aarch64 assembler -fpic relocation
16881         modifier support.
16882         * configure: Regenerate.
16883         * config.in: Regenerate.
16884         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16885         to -fPIC if not support of -fpic relocation modifier in assembler.
16886
16887 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
16888
16889         PR bootstrap/66685
16890         * rtl.c (classify_insn): Handle returns in PARALLELs.
16891
16892 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
16893
16894         PR middle-end/66633
16895         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16896         to true if the function is nested and if not optimizing.
16897         (convert_local_omp_clauses): Initialize need_frame to true if the
16898         function contains nested functions and if not optimizing.
16899
16900 2015-07-01  Richard Biener  <rguenther@suse.de>
16901
16902         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16903         (X & Y) ^ Y -> ~X & Y transforms to ...
16904         * match.pd: ... here.
16905
16906 2015-07-01  Richard Biener <rguenther@suse.de>
16907
16908         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16909         of converts to avoid uninteresting noise from the conversion
16910         simplifying patterns.
16911
16912 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
16913
16914         * config/c6x/c6x.c (try_rename_operands): Do not depend on
16915         gcc_assert evaluating its argument for side-effect.
16916
16917 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16918
16919         PR target/64833
16920         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16921         flag_pic is set.
16922
16923 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
16924
16925         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16926         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16927         (hash_scc): Add this_ref_p and ref_p parameters and pass them
16928         to the inner DFS walk.
16929
16930 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16931
16932         * target-insns.def (jump): New targetm instruction pattern.
16933         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16934         instead of gen_jump.
16935         (fix_up_crossing_landing_pad): Likewise.
16936         (add_labels_and_missing_jumps): Likewise.
16937         (fix_crossing_conditional_branches): Likewise.
16938         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16939         (force_nonfallthru_and_redirect): Likewise.
16940         * cse.c (cse_insn): Likewise.
16941         * expmed.c (expand_divmod): Likewise.
16942         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16943         * haifa-sched.c (init_before_recovery): Likewise.
16944         (sched_create_recovery_edges): Likewise.
16945         * ifcvt.c (find_cond_trap): Likewise.
16946         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16947         (expand_float, expand_fix): Likewise.
16948         * stmt.c (emit_jump): Likewise.
16949
16950 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16951
16952         * defaults.h (HAVE_load_multiple, gen_load_multiple)
16953         (HAVE_store_multiple, gen_store_multiple): Delete.
16954         * target-insns.def (load_multiple, store_multiple): New targetm
16955         instruction patterns.
16956         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16957         of HAVE_*/gen_* interface.
16958
16959 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16960
16961         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16962         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16963         (gen_mem_signal_fence): Delete.
16964         * target-insns.def (mem_signal_fence, mem_thread_fence)
16965         (memory_barrier): New targetm instruction patterns.
16966         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16967         interface.
16968         (expand_mem_signal_fence): Likewise.
16969
16970 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16971
16972         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16973         * target-insns.def (epilogue, prologue, sibcall_prologue): New
16974         targetm instruction patterns.
16975         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16976         interface.
16977         * calls.c (expand_call): Likewise.
16978         * cfgrtl.c (cfg_layout_finalize): Likewise.
16979         * df-scan.c (df_get_entry_block_def_set): Likewise.
16980         (df_get_exit_block_use_set): Likewise.
16981         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16982         * final.c (final_start_function): Likewise.
16983         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16984         (reposition_prologue_and_epilogue_notes): Likewise.
16985         * reorg.c (find_end_label): Likewise.
16986         * toplev.c (process_options): Likewise.
16987
16988 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
16989
16990         * typed-splay-tree.h: New file.
16991
16992 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
16993
16994         PR debug/66691
16995         * lra-int.h (lra_substitute_pseudo): Add a parameter.
16996         (lra_substitute_pseudo_within_insn): Ditto.
16997         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
16998         of constant.
16999         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
17000         to lra_substitute_pseudo.
17001         * lra-lives.c (process_bb_lives): Add an argument to
17002         lra_substitute_pseudo_within_insn call.
17003         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
17004         argument to lra_substitute_pseudo and
17005         lra_substitute_pseudo_within_insn calls.
17006         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
17007
17008 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
17009
17010         * configure: Regenerated.
17011
17012 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
17013
17014         * config.gcc: Support i[34567]86-*-elfiamcu target.
17015         * config/i386/iamcu.h: New.
17016         * config/i386/i386.opt: Add -miamcu.
17017         * doc/invoke.texi: Document -miamcu.
17018         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
17019         off x87/MMX/SSE/AVX codegen for -miamcu.
17020         * config/i386/i386-c.c (ix86_target_macros_internal): Define
17021         __iamcu/__iamcu__ for -miamcu.
17022         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
17023         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
17024         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
17025         * config/i386/i386.c (ix86_option_override_internal): Ignore and
17026         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
17027         MCU by default.  Default long double to 64-bit for Intel MCU.
17028         Turn on -freg-struct-return for Intel MCU.  Issue an error when
17029         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
17030         AVX is turned on.
17031         (function_arg_advance_32): Pass value whose size is no larger
17032         than 8 bytes in registers for Intel MCU.
17033         (function_arg_32): Likewise.
17034         (ix86_return_in_memory): Return value whose size is no larger
17035         than 8 bytes in registers for Intel MCU.
17036         (iamcu_alignment): New function.
17037         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
17038         true.
17039         (ix86_local_alignment): Don't increase alignment for Intel MCU.
17040         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
17041         true.
17042
17043 2015-06-30  Marek Polacek  <polacek@redhat.com>
17044
17045         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
17046         both operands of the resulting expression.
17047
17048         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
17049         the final expression with the operand's type and then convert
17050         it to the type of the expression.
17051
17052 2015-06-30  Richard Biener  <rguenther@suse.de>
17053
17054         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
17055         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
17056         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
17057         * match.pd: ... to patterns here.
17058
17059 2015-06-30  Richard Biener  <rguenther@suse.de>
17060
17061         PR tree-optimization/66704
17062         * tree-vect-data-refs.c (vect_setup_realignment): Use
17063         make_ssa_name for non-SSA name source.
17064
17065 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
17066
17067         PR middle-end/66702
17068         * omp-low.c (simd_clone_adjust): Handle addressable linear
17069         or uniform parameters or non-gimple type uniform parameters.
17070
17071 2015-06-30  Richard Biener  <rguenther@suse.de>
17072
17073         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
17074         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
17075         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
17076         * match.pd: ... here.
17077         Add a few cases of A - B -> A + (-B) when B "easily" negates.
17078         Move (x & y) | x -> x and friends before
17079         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
17080
17081 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
17082
17083         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
17084         -mfix-ut699 is not specified.
17085         (leon3_load): Rename into...
17086         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
17087         is specified.
17088
17089 2015-06-30  Marek Polacek  <polacek@redhat.com>
17090
17091         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
17092         * match.pd: ... here.
17093
17094 2015-06-30  Richard Biener  <rguenther@suse.de>
17095
17096         * target-insns.def (canonicalize_funcptr_for_compare): Add.
17097         * fold-const.c (build_range_check): Replace uses of
17098         HAVE_canonicalize_funcptr_for_compare.
17099         (fold_widened_comparison): Likewise.
17100         (fold_sign_changed_comparison): Likewise.
17101         * dojump.c: Include "target.h".
17102         (do_compare_and_jump): Replace uses of
17103         HAVE_canonicalize_funcptr_for_compare and
17104         gen_canonicalize_funcptr_for_compare.
17105         * expr.c (do_store_flag): Likewise.
17106
17107 2015-06-30  Tom de Vries  <tom@codesourcery.com>
17108
17109         PR tree-optimization/66652
17110         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
17111         max_loop_iterations to determine if nit + 1 overflows.
17112
17113 2015-06-30  Richard Biener  <rguenther@suse.de>
17114
17115         * tree-vrp.c (register_edge_assert_for_2): Also register
17116         asserts for dominating conversion results.
17117
17118 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
17119
17120         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
17121         field in struct iv.
17122
17123 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
17124
17125         PR target/66509
17126         * configure.ac: Fix filds and fildq test for 64-bit.
17127         * configure: Regenerated.
17128
17129 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
17130
17131         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17132         (nvptx_reorg): Here.  Keep the non-subreg pieces.
17133
17134 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
17135
17136         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17137         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17138
17139 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
17140
17141         * config/i386/i386.md (*jcc_1): Use %! in asm template.
17142         Set attribute "length_nobnd" instead of "length".
17143         (*jcc_2): Ditto.
17144         (jump): Ditto.
17145         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17146
17147 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
17148
17149         * config/nios2/nios2.c (nios2_delegitimize_address): Make
17150         assert less restrictive.
17151
17152 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17153
17154         PR fortran/66605
17155         * cgraphunit.c (cgraph_node::finalize_function): Do not call
17156         do_warn_unused_parameter.
17157         * function.c (do_warn_unused_parameter): Move from here.
17158         * function.h (do_warn_unused_parameter): Do not declare.
17159
17160 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17161
17162         PR target/65697
17163         * gcc.target/arm/armv-sync-comp-swap.c: New.
17164         * gcc.target/arm/armv-sync-op-acquire.c: New.
17165         * gcc.target/arm/armv-sync-op-full.c: New.
17166         * gcc.target/arm/armv-sync-op-release.c: New.
17167
17168 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17169
17170         PR target/65697
17171         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17172         initial acquire barrier with final barrier.
17173
17174 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17175
17176         PR target/65697
17177         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17178         initial acquire barrier with final barrier.
17179
17180 2015-06-29  Richard Henderson  <rth@redhat.com>
17181
17182         * config/i386/constraints.md (Bf): New constraint.
17183         * config/i386/i386-c.c (ix86_target_macros): Define
17184         __GCC_ASM_FLAG_OUTPUTS__.
17185         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17186         as flags outputs.
17187         * doc/extend.texi (FlagOutputOperands): Document them.
17188
17189 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
17190
17191         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17192         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17193         unspec name.
17194         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17195         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17196         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17197         (aarch64_symbol_context): Ditto.
17198         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17199         and use new pattern name.
17200         (aarch64_expand_mov_immediate): Ditto.
17201         (aarch64_print_operand): Ditto.
17202         (aarch64_classify_tls_symbol): Ditto.
17203
17204 2015-06-29  Marek Polacek  <polacek@redhat.com>
17205             Marc Glisse  <marc.glisse@inria.fr>
17206
17207         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17208         * match.pd: ... pattern here.
17209
17210 2015-06-29  Tom de Vries  <tom@codesourcery.com>
17211
17212         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17213         function structure.
17214
17215 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17216
17217         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17218         feature description, split out the native option, add a link to
17219         the feature documentation, rearrange and slightly rewrite text.
17220         (Aarch64 options, -mcpu): Likewise.
17221         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
17222         +rdma implies Adv. SIMD.
17223
17224 2015-06-29  Marek Polacek  <polacek@redhat.com>
17225
17226         PR c/66322
17227         * function.c (stack_protect_epilogue): Remove a cast to int.
17228         * doc/invoke.texi: Update -Wswitch-bool description.
17229
17230 2015-06-29  Richard Biener  <rguenther@suse.de>
17231
17232         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17233         * fold-const.c (fold_binary_loc): Move &A - &B simplification
17234         via ptr_difference_const ...
17235         * match.pd: ... here.
17236         When matching (X ^ Y) == Y also match with swapped operands.
17237
17238 2015-06-29  Richard Biener  <rguenther@suse.de>
17239
17240         * lto-streamer.h (LTO_major_version): Bump to 5.
17241
17242 2015-06-29  Richard Biener  <rguenther@suse.de>
17243
17244         PR tree-optimization/66677
17245         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17246         STMT_VINFO_VEC_STMT clobbering less strict.
17247
17248 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
17249
17250         PR middle-end/64130
17251         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17252         division, compute max and min when value ranges for dividend and
17253         divisor are available.
17254
17255 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
17256             Sandra Loosemore <sandra@codesourcery.com>
17257
17258         * regrename.h (regrename_do_replace): Change to return bool.
17259         * regrename.c (rename_chains): Check return value of
17260         regname_do_replace.
17261         (regrename_do_replace): Re-validate the modified insns and
17262         return bool status.
17263         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17264         Update to match rename_chains changes.
17265         * config/c6x/c6x.c (try_rename_operands): Assert that
17266         regrename_do_replace returns true.
17267
17268 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
17269
17270         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17271         operand 2 here.  Use copy_addr_to_reg to copy non-index
17272         register operand 2 to a temporary.
17273         (<mode>_stx): Ditto for operand 1.
17274         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17275         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17276         (ix86_store_bounds): Ditto.
17277
17278 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
17279
17280         * print-tree.c (print_node) [TREE_VEC]: Print its length.
17281
17282 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
17283
17284         * gimple.c (gimple_call_set_fndecl): Remove.
17285         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17286         build1_loc directly instead of build_fold_addr_expr_loc.
17287
17288 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
17289
17290         * hash-map.h (hash_map::traverse): Use the definition of the
17291         Key typedef rather than the typedef itself.
17292
17293 2015-06-26  Martin Jambor  <mjambor@suse.cz>
17294
17295         PR debug/66301
17296         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17297         NULL instead of calling dump_enabled_p.
17298
17299 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17300
17301         * config/aarch64/aarch64.opt: (override): New.
17302         * doc/invoke.texi (override): Document.
17303         * config/aarch64/aarch64.c (aarch64_flag_desc): New
17304         (aarch64_fusible_pairs): Likewise.
17305         (aarch64_tuning_flags): Likewise.
17306         (aarch64_tuning_override_function): Likewise.
17307         (aarch64_tuning_override_functions): Likewise.
17308         (aarch64_parse_one_option_token): Likewise.
17309         (aarch64_parse_boolean_options): Likewise.
17310         (aarch64_parse_fuse_string): Likewise.
17311         (aarch64_parse_tune_string): Likewise.
17312         (aarch64_parse_one_override_token): Likewise.
17313         (aarch64_parse_override_string): Likewise.
17314         (aarch64_override_options): Parse the -override string if it
17315         is present.
17316
17317 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17318
17319         * config/aarch64/aarch64-protos.h (tune_params): Remove
17320         const from members.
17321         (aarch64_tune_params): Remove const, change to no longer be
17322         a pointer.
17323         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17324         change to no longer be a pointer, initialize to generic_tunings.
17325         (aarch64_min_divisions_for_recip_mul): Change dereference of
17326         aarch64_tune_params to member access.
17327         (aarch64_reassociation_width): Likewise.
17328         (aarch64_rtx_mult_cost): Likewise.
17329         (aarch64_address_cost): Likewise.
17330         (aarch64_branch_cost): Likewise.
17331         (aarch64_rtx_costs): Likewise.
17332         (aarch64_register_move_cost): Likewise.
17333         (aarch64_memory_move_cost): Likewise.
17334         (aarch64_sched_issue_rate): Likewise.
17335         (aarch64_builtin_vectorization_cost): Likewise.
17336         (aarch64_override_options): Take a copy of the selected tuning
17337         struct in to aarch64_tune_params, rather than just setting
17338         a pointer, change dereferences of aarch64_tune_params to member
17339         accesses.
17340         (aarch64_override_options_after_change): Change dereferences of
17341         aarch64_tune_params to member access.
17342         (aarch64_macro_fusion_p): Likewise.
17343         (aarch_macro_fusion_pair_p): Likewise.
17344         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17345
17346 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17347
17348         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17349         (aarch64_tune_flags): Likewise.
17350         (AARCH64_TUNE_FMA_STEERING): Likewise.
17351         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17352         to AARCH64_FL_USE_FMA_STEERING_PASS.
17353         (cortex-a57.cortex-a53): Likewise.
17354         (cortex-a72): Use cortexa72_tunings.
17355         (cortex-a72.cortex-a53): Likewise.
17356         (exynos-m1): Likewise.
17357         * config/aarch64/aarch64-protos.h (tune_params): Add
17358         a field: extra_tuning_flags.
17359         * config/aarch64/aarch64-tuning-flags.def: New.
17360         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17361         (aarch64_extra_tuning_flags): Likewise.
17362         (aarch64_tune_params): Declare here.
17363         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17364         (cortexa53_tunings): Likewise.
17365         (cortexa57_tunings): Likewise.
17366         (thunderx_tunings): Likewise.
17367         (xgene1_tunings): Likewise.
17368         (cortexa72_tunings): New.
17369         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17370          (gate): Check against aarch64_tune_params.
17371         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17372         aarch64-protos.h.
17373
17374 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17375
17376         * config/aarch64/aarch64-fusion-pairs.def: New.
17377         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17378         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17379         aarch64_fusion_pairs.
17380         (AARCH64_FUSE_MOV_MOVK): Likewise.
17381         (AARCH64_FUSE_ADRP_ADD): Likewise.
17382         (AARCH64_FUSE_MOVK_MOVK): Likewise.
17383         (AARCH64_FUSE_ADRP_LDR): Likewise.
17384         (AARCH64_FUSE_CMP_BRANCH): Likewise.
17385
17386 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
17387
17388         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17389         SYMBOL_SMALL_GOT_28K.
17390         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17391         relocation modifiers.
17392         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17393         (ldr_got_small_28k_<mode>): New.
17394         (ldr_got_small_28k_sidi): New.
17395         * config/aarch64/iterators.md (got_modifier): New mode iterator.
17396         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17397         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17398         SYMBOL_SMALL_GOT_28K.
17399         (aarch64_rtx_costs): Add costs for new instruction sequences.
17400         (initialize_aarch64_code_model): Initialize new model.
17401         (aarch64_classify_symbol): Recognize new model and new symbol classification.
17402         (aarch64_asm_preferred_eh_data_format): Support new model.
17403         (aarch64_load_symref_appropriately): Generate new instruction
17404         sequences for -fpic.
17405         (TARGET_USE_PSEUDO_PIC_REG): New definition.
17406         (aarch64_use_pseudo_pic_reg): New function.
17407
17408 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
17409
17410         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17411         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17412         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17413         (aarch64_expand_mov_immediate): Ditto.
17414         (aarch64_print_operand): Ditto.
17415         (aarch64_classify_symbol): Ditto.
17416
17417 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
17418
17419         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17420
17421 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
17422
17423         PR bootstrap/66638
17424         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17425         assertion failed.  Remove assertion itself.
17426
17427 2015-06-26  Richard Biener  <rguenther@suse.de>
17428
17429         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17430         and -A CMP CST -> A CMP -CST which is redundant with a pattern
17431         in match.pd.
17432         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17433         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17434         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17435         * match.pd: ... patterns here.
17436
17437 2015-06-26  Marek Polacek  <polacek@redhat.com>
17438
17439         * match.pd ((x | y) & ~(x & y) -> x ^ y,
17440         (x | y) & (~x ^ y) -> x & y): New patterns.
17441
17442 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
17443
17444         * rtl.h (emit): Add an optional boolean parameter to control
17445         whether barriers are emitted.
17446         * emit-rtl.c (emit): Likewise.
17447         * gensupport.c (get_emit_function): Return null rather than "emit".
17448         * genemit.c (gen_emit_seq): Handle the null return value.
17449         Don't emit barriers after the final instruction in the sequence.
17450         * gentarget-def.c (main): Don't emit barriers after the instruction.
17451
17452 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17453
17454         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17455         TARGET_UNIFIED_ASM.
17456
17457 2015-06-26  Richard Biener  <rguenther@suse.de>
17458
17459         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17460
17461 2015-06-26  Richard Biener  <rguenther@suse.de>
17462
17463         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17464         irrespective on whether the inner operation has a single use
17465         of both off are constant.
17466
17467 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
17468             Segher Boessenkool  <segher@kernel.crashing.org>
17469
17470         PR target/66412
17471         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17472         before doing PUT_MODE or PUT_CODE on operands to avoid
17473         in-place RTX modification.
17474
17475 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17476
17477         * gentarget-def.c (def_target_insn): Cast return of strtol to
17478         unsigned int.
17479
17480 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17481
17482         * gimple.h (gimple_call_set_fn): Move inline function.
17483         * gimple.c (gimple_call_set_fn): Relocate here.
17484
17485 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
17486
17487         PR target/65979
17488         PR target/66611
17489         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17490         the replacement insn will work.
17491
17492 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17493
17494         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17495         by default.
17496
17497 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17498
17499         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17500         * cgraph.h: Include ipa-ref.h and plugin-api.h.
17501         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17502         (symtab_node::address_can_be_compared_p): Move function.
17503         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17504         definition here.
17505         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17506         * auto-profile.c: Likewise.
17507         * bb-reorder.c: Likewise.
17508         * builtins.c: Likewise.
17509         * calls.c: Likewise.
17510         * cfgexpand.c: Likewise.
17511         * cgraphbuild.c: Likewise.
17512         * cgraphclones.c: Likewise.
17513         * cgraphunit.c: Likewise.
17514         * combine.c: Likewise.
17515         * coverage.c: Likewise.
17516         * data-streamer-in.c: Likewise.
17517         * data-streamer-out.c: Likewise.
17518         * data-streamer.c: Likewise.
17519         * dbxout.c: Likewise.
17520         * dwarf2out.c: Likewise.
17521         * except.c: Likewise.
17522         * expr.c: Likewise.
17523         * final.c: Likewise.
17524         * fold-const.c: Likewise.
17525         * ggc-page.c: Likewise.
17526         * gimple-fold.c: Likewise.
17527         * gimple-iterator.c: Likewise.
17528         * gimple-pretty-print.c: Likewise.
17529         * gimple-streamer-in.c: Likewise.
17530         * gimple-streamer-out.c: Likewise.
17531         * gimple.c: Likewise.
17532         * gimplify.c: Likewise.
17533         * ipa-chkp.c: Likewise.
17534         * ipa-comdats.c: Likewise.
17535         * ipa-cp.c: Likewise.
17536         * ipa-devirt.c: Likewise.
17537         * ipa-icf-gimple.c: Likewise.
17538         * ipa-icf.c: Likewise.
17539         * ipa-inline-analysis.c: Likewise.
17540         * ipa-inline-transform.c: Likewise.
17541         * ipa-inline.c: Likewise.
17542         * ipa-polymorphic-call.c: Likewise.
17543         * ipa-profile.c: Likewise.
17544         * ipa-prop.c: Likewise.
17545         * ipa-pure-const.c: Likewise.
17546         * ipa-ref.c: Likewise.
17547         * ipa-reference.c: Likewise.
17548         * ipa-split.c: Likewise.
17549         * ipa-utils.c: Likewise.
17550         * ipa-visibility.c: Likewise.
17551         * ipa.c: Likewise.
17552         * langhooks.c: Likewise.
17553         * lto-cgraph.c: Likewise.
17554         * lto-compress.c: Likewise.
17555         * lto-opts.c: Likewise.
17556         * lto-section-in.c: Likewise.
17557         * lto-section-out.c: Likewise.
17558         * lto-streamer-in.c: Likewise.
17559         * lto-streamer-out.c: Likewise.
17560         * lto-streamer.c: Likewise.
17561         * omp-low.c: Likewise.
17562         * opts-global.c: Likewise.
17563         * passes.c: Likewise.
17564         * predict.c: Likewise.
17565         * print-tree.c: Likewise.
17566         * profile.c: Likewise.
17567         * ree.c: Likewise.
17568         * sanopt.c: Likewise.
17569         * stor-layout.c: Likewise.
17570         * symtab.c: Likewise.
17571         * toplev.c: Likewise.
17572         * trans-mem.c: Likewise.
17573         * tree-cfg.c: Likewise.
17574         * tree-chkp.c: Likewise.
17575         * tree-eh.c: Likewise.
17576         * tree-emutls.c: Likewise.
17577         * tree-inline.c: Likewise.
17578         * tree-nested.c: Likewise.
17579         * tree-parloops.c: Likewise.
17580         * tree-pretty-print.c: Likewise.
17581         * tree-profile.c: Likewise.
17582         * tree-sra.c: Likewise.
17583         * tree-ssa-alias.c: Likewise.
17584         * tree-ssa-live.c: Likewise.
17585         * tree-ssa-loop-ivcanon.c: Likewise.
17586         * tree-ssa-loop-ivopts.c: Likewise.
17587         * tree-ssa-pre.c: Likewise.
17588         * tree-ssa-sccvn.c: Likewise.
17589         * tree-ssa-strlen.c: Likewise.
17590         * tree-ssa-structalias.c: Likewise.
17591         * tree-streamer-in.c: Likewise.
17592         * tree-streamer-out.c: Likewise.
17593         * tree-streamer.c: Likewise.
17594         * tree-switch-conversion.c: Likewise.
17595         * tree-tailcall.c: Likewise.
17596         * tree-vect-data-refs.c: Likewise.
17597         * tree-vect-stmts.c: Likewise.
17598         * tree-vectorizer.c: Likewise.
17599         * tree.c: Likewise.
17600         * tsan.c: Likewise.
17601         * ubsan.c: Likewise.
17602         * value-prof.c: Likewise.
17603         * varasm.c: Likewise.
17604         * varpool.c: Likewise.
17605         * config/arm/arm.c: Likewise.
17606         * config/bfin/bfin.c: Likewise.
17607         * config/c6x/c6x.c: Likewise.
17608         * config/cris/cris.c: Likewise.
17609         * config/darwin-c.c: Likewise.
17610         * config/darwin.c: Likewise.
17611         * config/i386/i386.c: Likewise.
17612         * config/i386/winnt.c: Likewise.
17613         * config/microblaze/microblaze.c: Likewise.
17614         * config/mips/mips.c: Likewise.
17615         * config/rs6000/rs6000.c: Likewise.
17616         * config/rx/rx.c: Likewise.
17617         * config/s390/s390.c: Likewise.
17618         * config/tilegx/mul-tables.c: Likewise.
17619
17620 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17621
17622         * config/aarch64/aarch64.c, config/alpha/alpha.c,
17623         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17624         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17625         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17626         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17627         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17628         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17629         config/microblaze/microblaze.c, config/mips/mips.c,
17630         config/mmix/mmix.c, config/mn10300/mn10300.c,
17631         config/moxie/moxie.c, config/msp430/msp430.c,
17632         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17633         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17634         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17635         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17636         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17637         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17638         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17639         target-def.h include.
17640         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
17641
17642 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17643
17644         * Makefile.in (TARGET_DEF): Add target-insns.def.
17645         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17646         (build/gentarget-def.o): New rule.
17647         (genprogrtl): Add target-def.
17648         * target-insns.def, gentarget-def.c: New files.
17649         * target.def: Add targetm.have_* and targetm.gen_* hooks,
17650         based on the contents of target-insns.def.
17651         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17652         (HAVE_return, gen_return): Delete.
17653         * target-def.h: Include insn-target-def.h.
17654         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17655         instead of direct calls.  Rely on them to do the appropriate assertions.
17656         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
17657         (convert_jumps_to_returns): Use targetm interface instead of
17658         direct calls.
17659         (thread_prologue_and_epilogue_insns): Likewise.
17660         * reorg.c (find_end_label, dbr_schedule): Likewise.
17661         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17662         * shrink-wrap.c (convert_to_simple_return): Likewise.
17663         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17664
17665 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17666
17667         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17668         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17669         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17670         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17671         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17672         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17673         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17674         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17675         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17676         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17677         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17678         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17679         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17680         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17681         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17682         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17683         includes to end.
17684
17685 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17686
17687         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17688         (unbounded_int_hashmap_traits::key_type): Likewise.
17689         * hash-map.h (hash_map): Get the key type from the traits.
17690         * hash-traits.h (default_hash_traits): By default, inherit from the
17691         template parameter.
17692         * alias.c (alias_set_traits): Delete.
17693         (alias_set_entry_d::children): Use alias_set_hash as the first
17694         template parameter.
17695         (record_alias_subset): Update accordingly.
17696         * except.c (tree_hash_traits): Delete.
17697         (type_to_runtime_map): Use tree_hash as the first template parameter.
17698         (init_eh): Update accordingly.
17699         * genmatch.c (capture_id_map_hasher): Delete.
17700         (cid_map_t): Use nofree_string_hash as first template parameter.
17701         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17702         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17703         Use symbol_compare_hash as the first template parameter in
17704         subdivide_hash_map.
17705         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17706         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17707         template parameter.
17708         * passes.c (pass_registry_hasher): Delete.
17709         (name_to_pass_map): Use nofree_string_hash as the first template
17710         parameter.
17711         (register_pass_name): Update accordingly.
17712         * sanopt.c (sanopt_tree_map_traits): Delete.
17713         (sanopt_tree_triplet_map_traits): Delete.
17714         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17715         template parameter.
17716         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17717         the first template parameter.
17718         * sese.c (rename_map_hasher): Delete.
17719         (rename_map_type): Use tree_ssa_name_hash as the first template
17720         parameter.
17721         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17722         (function_summary::m_map): Use map_hash as the first template
17723         parameter.
17724         (function_summary::release): Update accordingly.
17725         * tree-if-conv.c (phi_args_hash_traits): Delete.
17726         (predicate_scalar_phi): Use tree_operand_hash as the first template
17727         parameter to phi_arg_map.
17728         * tree-inline.h (dependence_hasher): Delete.
17729         (copy_body_data::dependence_map): Use dependence_hash as the first
17730         template parameter.
17731         * tree-inline.c (remap_dependence_clique): Update accordingly.
17732         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17733         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17734         parameter.
17735         (addr_stridxptr): Update accordingly.
17736         * value-prof.c (profile_id_traits): Delete.
17737         (cgraph_node_map): Use profile_id_hash as the first template
17738         parameter.
17739         (init_node_map): Update accordingly.
17740         * config/alpha/alpha.c (string_traits): Delete.
17741         (machine_function::links): Use nofree_string_hash as the first
17742         template parameter.
17743         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17744         * config/m32c/m32c.c (pragma_traits): Delete.
17745         (pragma_htab): Use nofree_string_hash as the first template parameter.
17746         (m32c_note_pragma_address): Update accordingly.
17747         * config/mep/mep.c (pragma_traits): Delete.
17748         (pragma_htab): Use nofree_string_hash as the first template parameter.
17749         (mep_note_pragma_flag): Update accordingly.
17750         * config/mips/mips.c (mips16_flip_traits): Delete.
17751         (mflip_mips16_htab): Use nofree_string_hash as the first template
17752         parameter.
17753         (mflip_mips16_use_mips16_p): Update accordingly.
17754         (local_alias_traits): Delete.
17755         (mips16_local_aliases): Use nofree_string_hash as the first template
17756         parameter.
17757         (mips16_local_alias): Update accordingly.
17758
17759 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17760
17761         * hash-map-traits.h (default_hashmap_traits): Delete.
17762
17763 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17764
17765         * hash-map-traits.h (unbounded_hashmap_traits): New class.
17766         (unbounded_int_hashmap_traits): Likewise.
17767         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17768
17769 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17770
17771         * ipa-icf.h (symbol_compare_hash): New class.
17772         (symbol_compare_hashmap_traits): Use it.
17773         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17774         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17775         (mem_alloc_description::reverse_mem_map_t): Remove redundant
17776         default_hashmap_traits.
17777         * sanopt.c (sanopt_tree_triplet_hash): New class.
17778         (sanopt_tree_triplet_map_traits): Use it.
17779
17780 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17781
17782         * gengtype-parse.c (require_template_declaration): Allow '+' in
17783         template parameters.  Consolidate cases.
17784         * hash-traits.h (int_hash): New class.
17785         * alias.c (alias_set_hash): New structure.
17786         (alias_set_traits): Use it.
17787         * symbol-summary.h (function_summary::map_hash): New class.
17788         (function_summary::summary_hashmap_traits): Use it.
17789         * tree-inline.h (dependence_hash): New class.
17790         (dependence_hasher): Use it.
17791         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17792         * value-prof.c (profile_id_hash): New class.
17793         (profile_id_traits): Use it.
17794
17795 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17796
17797         * config/mips/mips.c (mips16_flip_traits): Use it.
17798         (local_alias_traits, mips16_local_aliases): Convert from a map of
17799         rtxes to a map of symbol names.
17800         (mips16_local_alias): Update accordingly.
17801
17802 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17803
17804         * hash-traits.h (string_hash, nofree_string_hash): New classes.
17805         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17806         * passes.c (pass_registry_hasher): Likewise.
17807         * config/alpha/alpha.c (string_traits): Likewise.
17808         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17809         * config/m32c/m32c.c (pragma_traits): Likewise.
17810         * config/mep/mep.c (pragma_traits): Likewise.
17811
17812 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17813
17814         * tree-hash-traits.h (tree_hash): New class.
17815         * except.c: Include tree-hash-traits.h.
17816         (tree_hash_traits): Use tree_hash.
17817
17818 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17819
17820         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17821         * sese.c: Include tree-hash-traits.h.
17822         (rename_map_hasher): Use tree_ssa_name_hasher.
17823
17824 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17825
17826         * tree-hash-traits.h (tree_decl_hash): New class.
17827         * tree-ssa-strlen.c: Include tree-hash-traits.h.
17828         (stridxlist_hash_traits): Use tree_decl_hash.
17829
17830 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17831
17832         * tree-hash-traits.h: New file.
17833         (tree_operand_hash): New class.
17834         * sanopt.c: Include tree-hash-traits.h.
17835         (sanopt_tree_map_traits): Use tree_operand_hash.
17836         * tree-if-conv.c: Include tree-hash-traits.h.
17837         (phi_args_hash_traits): Use tree_operand_hash.
17838         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17839         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17840
17841 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17842
17843         * hash-map-traits.h: Include hash-traits.h.
17844         (simple_hashmap_traits): New class.
17845         * mem-stats.h (hash_map): Change the default traits to
17846         simple_hashmap_traits<default_hash_traits<Key> >.
17847
17848 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17849
17850         * hash-table.h: Update comments.
17851
17852 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17853
17854         * hash-traits.h (default_hash_traits): New structure.
17855         * hash-set.h (default_hashset_traits): Delete.
17856         (hash_set): Use default_hash_traits<Key> instead of
17857         default_hashset_traits.  Delete hash_entry type and use Key directly.
17858         * ipa-devirt.c (pair_traits): Delete.
17859         (default_hash_traits <type_pair>): Override.
17860         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17861         (odr_types_equivalent_p, add_type_duplicate): Likewise.
17862
17863 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17864
17865         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17866
17867 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17868
17869         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17870         (has_is_empty, is_empty_helper): Delete.
17871         (has_mark_deleted, mark_deleted_helper): Delete.
17872         (has_mark_empty, mark_empty_helper): Delete.
17873         (hash_table::is_deleted): Call the Descriptor unconditionally.
17874         (hash_table::is_empty): Likewise.
17875         (hash_table::mark_deleted): Likewise.
17876         (hash_table::mark_empty): Likewise.
17877
17878 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17879
17880         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
17881         redundant typedefs and members.
17882         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
17883         redundant typedefs.
17884         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17885         * ipa-devirt.c (odr_name_hasher): Likewise.
17886         (polymorphic_call_target_hasher): Likewise.
17887         * ira-costs.c (cost_classes_hasher): Likewise.
17888         * statistics.c (stats_counter_hasher): Likewise.
17889         * trans-mem.c (log_entry_hasher): Likewise.
17890         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17891         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17892         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17893         * var-tracking.c (variable_hasher): Likewise.
17894         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17895         Remove redundant typedefs and members.
17896
17897 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17898
17899         * hash-traits.h (ggc_cache_hasher): Rename to...
17900         (ggc_cache_remove): ...this and remove typedefs.
17901         (ggc_cache_ptr_hash): New class.
17902         * hash-table.h: Update commentary.
17903         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17904         rather than ggc_cache_hasher.
17905         (const_wide_int_hasher, reg_attr_hasher): Likewise.
17906         (const_double_hasher, const_fixed_hasher): Likewise.
17907         * function.c (insn_cache_hasher): Likewise.
17908         * trans-mem.c (tm_wrapper_hasher): Likewise.
17909         * tree.h (tree_decl_map_cache_hasher): Likewise.
17910         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17911         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17912         * ubsan.c (tree_type_map_cache_hasher): Likewise.
17913         * varasm.c (tm_clone_hasher): Likewise.
17914         * config/i386/i386.c (dllimport_hasher): Likewise.
17915         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17916         (tree_hasher): Likewise.
17917
17918 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17919
17920         * hash-traits.h (ggc_hasher): Rename to...
17921         (ggc_remover): ...this and remove typedefs.
17922         (ggc_cache_hasher): Update accordingly.  Add typedefs.
17923         (ggc_ptr_hash): New class.
17924         * hash-table.h: Update comment.
17925         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17926         ggc_hasher.
17927         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17928         (tree_descriptor_hasher): Likewise.
17929         * cgraph.c (function_version_hasher): Likewise.
17930         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17931         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17932         (dw_loc_list_hasher, addr_hasher): Likewise.
17933         * function.h (used_type_hasher): Likewise.
17934         * function.c (temp_address_hasher): Likewise.
17935         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17936         * libfuncs.h (libfunc_hasher): Likewise.
17937         * lto-streamer.h (decl_state_hasher): Likewise.
17938         * optabs.c (libfunc_decl_hasher): Likewise.
17939         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17940         * varasm.c (section_hasher, object_block_hasher): Likewise.
17941         (const_rtx_desc_hasher): Likewise.
17942         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17943         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17944
17945 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17946
17947         * hash-traits.h (free_ptr_hash): New class.
17948         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17949         rather than typed_free_remove.  Remove redudant typedefs.
17950         (external_ref_hasher): Likewise.
17951         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17952         (ehspec_hasher): Likewise.
17953         * ggc-common.c (saving_hasher): Likewise.
17954         * gimplify.c (gimplify_hasher): Likewise.
17955         * haifa-sched.c (delay_i2_hasher): Likewise.
17956         * loop-invariant.c (invariant_expr_hasher): Likewise.
17957         * loop-iv.c (biv_entry_hasher): Likewise.
17958         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17959         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17960         * tree-cfg.c (locus_discrim_hasher): Likewise.
17961         * tree-eh.c (finally_tree_hasher): Likewise.
17962         * tree-into-ssa.c (var_info_hasher): Likewise.
17963         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17964         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17965         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17966         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17967         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17968         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17969         (shared_bitmap_hasher): Likewise.
17970         * tree-ssa-threadupdate.c (redirection_data): Likewise.
17971         * tree-vectorizer.h (peel_info_hasher): Likewise.
17972         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17973         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17974
17975 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17976
17977         * hash-table.h: Update comments.
17978         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17979         (nofree_ptr_hash): New class.
17980         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17981         than typed_noop_remove.  Remove redudant typedefs.
17982         * attribs.c (attribute_hasher): Likewise.
17983         * cfg.c (bb_copy_hasher): Likewise.
17984         * cselib.c (cselib_hasher): Likewise.
17985         * dse.c (invariant_group_base_hasher): Likewise.
17986         * dwarf2cfi.c (trace_info_hasher): Likewise.
17987         * dwarf2out.c (macinfo_entry_hasher): Likewise.
17988         (comdat_type_hasher, loc_list_hasher): Likewise.
17989         * gcse.c (pre_ldst_expr_hasher): Likewise.
17990         * genmatch.c (id_base): Likewise.
17991         * genrecog.c (test_pattern_hasher): Likewise.
17992         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17993         * haifa-sched.c (delay_i1_hasher): Likewise.
17994         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17995         * ipa-icf.h (congruence_class_group_hash): Likewise.
17996         * ipa-profile.c (histogram_hash): Likewise.
17997         * ira-color.c (allocno_hard_regs_hasher): Likewise.
17998         * lto-streamer.h (string_slot_hasher): Likewise.
17999         * lto-streamer.c (tree_entry_hasher): Likewise.
18000         * plugin.c (event_hasher): Likewise.
18001         * postreload-gcse.c (expr_hasher): Likewise.
18002         * store-motion.c (st_expr_hasher): Likewise.
18003         * tree-sra.c (uid_decl_hasher): Likewise.
18004         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
18005         (ssa_name_var_hash): Likewise.
18006         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
18007         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
18008         * tree-ssa-pre.c (pre_expr_d): Likewise.
18009         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
18010         * vtable-verify.h (registration_hasher): Likewise.
18011         * vtable-verify.c (vtbl_map_hasher): Likewise.
18012         * config/arm/arm.c (libcall_hasher): Likewise.
18013         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
18014         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
18015         * config/sol2.c (comdat_entry_hasher): Likewise.
18016         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
18017         (print_fold_checksum, fold_checksum_tree): Likewise.
18018         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
18019         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
18020         (fold_build_call_array_loc): Likewise.
18021         * tree-ssa-ccp.c (gimple_htab): Likewise.
18022         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
18023         rather than pointer_type.
18024
18025 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18026
18027         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
18028         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
18029
18030 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18031
18032         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
18033         (ggc_hasher::ggc_mx): Likewise.
18034         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
18035         that duplicate ggc_hasher ones.
18036
18037 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18038
18039         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
18040         (gt_cleare_cache): Check here for deleted and empty entries.
18041         Replace handle_cache_entry with a call to keep_cache_entry.
18042         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
18043         (ggc_cache_hasher::keep_cache_entry): New function.
18044         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
18045         (tm_wrapper_hasher::keep_cache_entry): New function.
18046         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
18047         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18048         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
18049         (type_cache_hasher::keep_cache_entry): New function.
18050         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
18051         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18052         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
18053         (tree_type_map_cache_hasher::keep_cache_entry): New function.
18054         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
18055         (tm_clone_hasher::keep_cache_entry): New function.
18056         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
18057         (dllimport_hasher::keep_cache_entry): New function.
18058
18059 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18060
18061         * hash-table.h: Include hash-traits.h.
18062         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
18063         (ggc_cache_hasher): Move to...
18064         * hash-traits.h: ...this new file.
18065
18066 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18067
18068         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
18069         struct cl_optimization.
18070         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
18071         * tree.c (make_node_stat): Allocate cl_optimization struct.
18072         (copy_node_stat): Allocate and copy cl_optimization struct.
18073
18074 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18075
18076         * function.h (struct incoming_args): Move struct.
18077         (pass_by_reference, reference_callee_copied): Remove prototypes.
18078         * emit-rtl.h (struct incoming_args): Relocate struct here.
18079         * calls.h (pass_by_reference, reference_callee_copied): Relocate
18080         prototypes here.
18081         * function.c (pass_by_reference, reference_callee_copied): Move.
18082         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
18083         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
18084         * ipa-chkp.c: Include calls.h.
18085
18086 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
18087
18088         * alias.h (alias_set_type): Move typedef.
18089         * coretypes.h (alias_set_type): Relocate typedef here.
18090         * rtl.h: Don't include alias.h.
18091
18092 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
18093
18094         * cgraph.h (cgraph_rtl_info): Move to rtl.h
18095         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
18096         and instance.
18097         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
18098         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
18099         doesn't exist.
18100         * calls.c: Include hard-reg-set.h before rtl.h.
18101         * ira.c: Likewise.
18102
18103 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18104             Vladimir Makarov  <vmakarov@redhat.com>
18105
18106         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
18107         Add assert.
18108
18109 2015-06-25  Richard Biener  <rguenther@suse.de>
18110
18111         * fold-const.c (fold_binary_loc): Move simplification of
18112         (X <<>> C1) & C2 ...
18113         * match.pd: ... here.
18114
18115 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
18116
18117         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
18118
18119 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
18120
18121         * match.pd: Add patterns for vec_conds between 1 and 0.
18122
18123 2015-06-25  Richard Biener  <rguenther@suse.de>
18124
18125         * tree-vect-stmts.c (vectorizable_conversion): Do not set
18126         STMT_VINFO_VEC_STMT for SLP.
18127         (vectorizable_store): Likewise.
18128         (vectorizable_load): Likewise.
18129         (vect_transform_stmt): Catch SLP vectorization clobbering
18130         STMT_VINFO_VEC_STMT.
18131
18132 2015-06-25  Richard Biener  <rguenther@suse.de>
18133
18134         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18135         dumping.
18136         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18137         cleanup resulting dead code and parameters.
18138         (vect_transform_slp_perm_load): Adjust.
18139
18140 2015-06-25  Nick Clifton  <nickc@redhat.com>
18141
18142         * config/bfin/bfin.c (bfin_expand_prologue): Set
18143         current_function_static_stack_size if flag_stack_usage_info is set.
18144         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18145         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18146         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18147         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18148
18149 2015-06-25  Tom de Vries  <tom@codesourcery.com>
18150
18151         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18152         comment that the generated IV is unsigned.
18153
18154 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18155
18156         PR target/29693
18157         * config/arm/arm.c (arm_dbx_register_number): Return
18158         DWARF_FRAME_REGISTERS by default.
18159
18160 2015-06-25  Tom de Vries  <tom@codesourcery.com>
18161
18162         * dominance.c (calculate_dominance_info): Fix verify_dominators call
18163         argument.  Call verify_dominator when reusing dominator info.
18164
18165 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
18166
18167         PR target/66563
18168         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18169         an additional element of the unspec vector.  Modify indices
18170         of operands.
18171         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18172         * config/sh/sh.c (prepare_move_operands): Pass incremented
18173         const_int to gen_GOTaddr2picreg.
18174         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18175
18176 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
18177
18178         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18179         Condition on TARGET_FLOAT.
18180
18181 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
18182
18183         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18184         and (no)crypto.
18185
18186 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
18187
18188         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18189
18190         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18191         aarch64_err_no_fpadvsimd.
18192
18193         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18194         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18195         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18196         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18197         Turn error into assert, test TARGET_FLOAT.
18198         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18199         TARGET_FLOAT.
18200
18201 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
18202
18203         PR debug/66482
18204         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18205
18206 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
18207
18208         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18209
18210 2015-06-24  Renlin Li <renlin.li@arm.com>
18211
18212         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18213         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18214
18215 2015-06-24  Richard Biener  <rguenther@suse.de>
18216
18217         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18218         (main): Likewise.
18219         (lower_opt_convert): Support lowering of conditional view_convert.
18220         (parser::parse_operation): Likewise.
18221         (parser::parse_for): Likewise.
18222
18223 2015-06-24  Renlin Li  <renlin.li@arm.com>
18224
18225         * varasm.c (emit_local): Use unsigned int for align variable.
18226
18227 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18228
18229         PR target/63408
18230         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18231         for negative numbers.
18232
18233 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18234
18235         PR rtl-optimization/66306
18236         * reload.c (find_reloads): Swap the match_dup info for
18237         commutative operands.
18238
18239 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18240
18241         * config/s390/vx-builtins.md
18242         ("vec_scatter_element<mode>_<non_vec_int>")
18243         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18244         attribute with bhfgq.
18245
18246 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18247
18248         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18249
18250 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18251
18252         * config/s390/s390-builtin-types.def: Add flag to indicate the
18253         options under which the function type is needed.
18254         * config/s390/s390-builtins.def: Add flag to indicate the options
18255         under which the builtin is enabled.
18256         * config/s390/s390-builtins.h: Add flags parameter to macro
18257         definitions.
18258         (bflags_for_builtin): New function.
18259         (flags_for_builtin): Renamed to ...
18260         (opflags_for_builtin): ... this.
18261         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18262         flags_for_builtin to bflags_for_builtin and
18263         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18264         * config/s390/s390.c: Add initialization of bflags_builtin and
18265         opflags_builtin arrays.
18266         Remove code for flags_builtin.
18267         (s390_init_builtins): Only create builtin function types if one of
18268         their flags is active.
18269         Only create builtins if all of their flags are active.
18270         (s390_expand_builtin): Rename flags_for_builtin to
18271         opflags_for_builtin.
18272
18273 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18274
18275         * config/s390/vecintrin.h: Remove internal builtins.
18276
18277 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18278
18279         * config/s390/s390.c (s390_secondary_reload): Fix check for
18280         GENERAL_REGS register class.
18281
18282 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18283
18284         * config/s390/s390.c (s390_support_vector_misalignment): Call
18285         default implementation for !TARGET_VX.
18286
18287 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18288
18289         * config/s390/s390.c (s390_legitimate_constant_p): Add
18290         TARGET_VX check.
18291
18292 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18293
18294         * config/s390/s390.c (s390_vector_abi): New variable definition.
18295         (s390_check_type_for_vector_abi): New function.
18296         (TARGET_ASM_FILE_END): New macro definition.
18297         (s390_asm_file_end): New function.
18298         (s390_function_arg): Call s390_check_type_for_vector_abi.
18299         (s390_gimplify_va_arg): Likewise.
18300         * configure: Regenerate.
18301         * configure.ac: Check for .gnu_attribute Binutils feature.
18302
18303 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
18304
18305         PR target/65803
18306         * config/bfin/bfin.c (hwloop_optimize): Initialize
18307         JUMP_LABEL for newly created jump.
18308
18309 2015-06-23  Tristan Gingold  <gingold@adacore.com>
18310
18311         * collect-utils.c (collect_wait): Unlink the response file here
18312         instead of...
18313         (do_wait): ...here.
18314         (utils_cleanup): ...and here.
18315
18316 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
18317
18318         * df-scan.c: Don't include target-def.h.
18319         * targhooks.c: Likewise.
18320         * config/arm/arm-c.c: Likewise.
18321         * config/i386/i386-c.c: Likewise.
18322         * config/nds32/nds32-cost.c: Likewise.
18323         * config/nds32/nds32-fp-as-gp.c: Likewise.
18324         * config/nds32/nds32-intrinsic.c: Likewise.
18325         * config/nds32/nds32-isr.c: Likewise.
18326         * config/nds32/nds32-md-auxiliary.c: Likewise.
18327         * config/nds32/nds32-memory-manipulation.c: Likewise.
18328         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18329         * config/nds32/nds32-predicates.c: Likewise.
18330
18331 2015-06-23  Richard Biener  <rguenther@suse.de>
18332
18333         PR tree-optimization/66636
18334         * tree-vect-stmts.c (vectorizable_store): Properly compute the
18335         def type for further defs for strided stores.
18336
18337 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
18338
18339         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18340         conditional selects.
18341         (setcc_int<mode>, setcc_float<mode>): Reformat.
18342
18343 2015-06-23  Marek Polacek  <polacek@redhat.com>
18344
18345         * match.pd ((x + y) - (x | y) -> x & y,
18346         (x + y) - (x & y) -> x | y): New patterns.
18347
18348 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
18349
18350         PR 65711
18351         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18352         '-dynamic-linker' within %{!shared: ...}.
18353
18354 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
18355
18356         PR target/66560
18357         * config/i386/predicates.md (addsub_vm_operator): New predicate.
18358         (addsub_vs_operator): Ditto.
18359         (addsub_vs_parallel): Ditto.
18360         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18361         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18362         Put minus RTX before plus and adjust vec_merge selector.
18363         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18364         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18365         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18366         (addsub vec_merge splitters): New combiner splitters.
18367         (addsub vec_select/vec_concat splitters): Ditto.
18368
18369 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
18370
18371         PR tree-optimization/66449
18372         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18373         POINTER_PLUS_EXPR for pointers.
18374
18375 2015-06-23  Alan Modra  <amodra@gmail.com>
18376
18377         * rtlanal.c (commutative_operand_precedence): Correct comments.
18378         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18379         declaration.  Return an int.  Distinguish REG,REG return from
18380         others.
18381         (struct simplify_plus_minus_op_data): Make local to function.
18382         (simplify_plus_minus): Don't set canonicalized if merely sorting
18383         registers.  Avoid packing ops if nothing changes.  White space fixes.
18384
18385 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
18386
18387         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18388         -fdump-ada-spec is passed but not if -fsyntax-only is.
18389
18390 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
18391
18392         PR bootstrap/63740
18393         * lra-lives.c (process_bb_lives): Check insn copying the same
18394         reload pseudo and don't create a copy for it.
18395
18396 2015-06-22  Tom de Vries  <tom@codesourcery.com>
18397
18398         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18399         for cond_stmt.
18400
18401 2015-06-22  Tom de Vries  <tom@codesourcery.com>
18402
18403         * builtins.def (DEF_GOMP_BUILTIN): Test
18404         'flag_tree_parallelize_loops > 1' instead of
18405         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
18406
18407 2015-06-22  Tom de Vries  <tom@codesourcery.com>
18408
18409         * dominance.c (calculate_dominance_info): Verify dominators if
18410         early-out.
18411
18412 2015-06-22  Marek Polacek  <polacek@redhat.com>
18413
18414         * match.pd ((x ^ y) ^ (x | y) -> x & y,
18415         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18416         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18417         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18418
18419 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
18420
18421         PR target/65871
18422         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18423         cost of embedded comparison.
18424
18425 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18426
18427         PR target/65914
18428         * config/rs6000/predicates.md (altivec_register_operand): Permit
18429         virtual stack registers.
18430         (vsx_register_operand): Likewise.
18431         (vfloat_operand): Likewise.
18432         (vint_operand): Likewise.
18433         (vlogical_operand): Likewise.
18434
18435 2015-06-22  Richard Biener  <rguenther@suse.de>
18436
18437         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18438         and single_scalar_iteration_cost members.
18439         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18440         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18441         (vect_get_single_scalar_iteration_cost): Remove.
18442         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18443         Use LOOP_VINFO_SCALAR_ITERATION_COST.
18444         * tree-vect-loop.c (destroy_loop_vec_info): Free
18445         scalar_cost_vec.
18446         (vect_get_single_scalar_iteration_cost): Compute result into
18447         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18448         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
18449         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18450         (vect_estimate_min_profitable_iters): Use them.
18451
18452 2015-06-22  Christian Bruel  <christian.bruel@st.com>
18453
18454         PR target/52144
18455         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18456         (TARGET_INSERT_ATTRIBUTES): Define.
18457         (thumb_flipper): New var.
18458         * config/arm/arm.opt (-mflip-thumb): New switch.
18459
18460 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
18461             Martin Liska  <mliska@suse.cz>
18462
18463         PR ipa/65908
18464         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18465         construction of arg_types.
18466         (sem_function::sem_function): Likewise.
18467         (sem_function::~sem_function): Remove destruction of arg_types.
18468         (sem_function::compatible_parm_types_p): New function.
18469         (sem_function::equals_wpa): Reorg matching of return values
18470         and parameter types.
18471         (sem_function::equals_private): Reorg mathcing of argument types.
18472         (sem_function::parse_tree_args): Remove.
18473         * ipa-icf.h (init_wpa): Do not call it.
18474         (parse_tree_args): Remove.
18475         (compatible_parm_types_p): Declare.
18476         (result_type): Remove.
18477         (arg_types): Remove.
18478
18479 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
18480
18481         PR ipa/66351
18482         * ipa-polymorphic-call.c
18483         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18484         initializing alias oracle; fix formating; set base_alias_set if it
18485         is known.
18486
18487 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
18488
18489         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18490         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18491         (find_inc): Likewise.
18492         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18493         swapping.
18494         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18495         * df-scan.c (df_swap_refs): Remove.
18496         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18497         * dominance.c (link_roots): Use std::swap instead of manually swapping.
18498         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18499         * fold-const.c (fold_relational_const): Likewise.
18500         * genattrtab.c (simplify_test_exp): Likewise.
18501         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18502         gimple_simplify): Likewise.
18503         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18504         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18505         * ipa-devirt.c (add_type_duplicate): Likewise.
18506         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18507         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18508         * lra.c (lra_create_copy): Likewise.
18509         * lto-streamer-out.c (DFS::DFS): Likewise.
18510         * modulo-sched.c (get_sched_window): Likewise.
18511         * omega.c (omega_pretty_print_problem): Likewise.
18512         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18513         * reload1.c (reloads_unique_chain_p): Likewise.
18514         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18515         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18516         use std::swap.
18517         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18518         manually swapping.
18519         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18520         predicate_mem_writes): Likewise.
18521         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18522         * tree-predcom.c (combine_chains): Likewise.
18523         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18524         refs_may_alias_p_1): Likewise.
18525         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18526         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18527         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18528         number_of_iterations_cond): Likewise.
18529         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18530         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18531         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18532         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18533         * tree-vrp.c (extract_range_from_binary_expr_1,
18534         extract_range_from_unary_expr_1): Likewise.
18535
18536 2015-06-20  Marek Polacek  <polacek@redhat.com>
18537
18538         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18539
18540 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
18541
18542         PR target/66591
18543         * config/sh/sh.c (prepare_move_operands): Replace subreg
18544         index term with R0 for base and index addressing.
18545
18546 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
18547
18548         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18549         op1 is an fp zero.
18550         (movsf_aarch64): Change condition from register_operand to
18551         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
18552         load1.  Change type for alternative 7 to store1.
18553         (movdf_aarch64): Likewise.
18554
18555 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
18556
18557         * config/vax/vax.md: Adjust sign/zero extend patterns to
18558         handle SUBREGs in operands[1].
18559
18560 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18561
18562         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18563         of manually swapping.
18564         (expand_vec_perm_interleave2): Likewise.
18565
18566 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
18567
18568         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18569         reuse bounds created for abnormal ssa names.
18570
18571 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
18572
18573         * config/nvptx/nvptx.md (allocate_stack): Rename to...
18574         (allocate_stack_<mode>): ... this, and add :P on both
18575         match_operand and unspec.
18576         (allocate_stack): New expander.
18577
18578 2015-06-19  Christian Bruel  <christian.bruel@st.com>
18579
18580         PR target/66541
18581         PR target/52144
18582         * config/arm/arm.c (arm_set_current_function): Handle
18583         explicit default options.
18584
18585 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
18586
18587         * config/i386/i386.md (*movsicc_noc_zext): New insn.
18588         (zero-extended cmove with mem peephole2): New pattern.
18589         (cmove with mem peephole2): Merge patterns.
18590
18591 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
18592
18593         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18594
18595 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
18596
18597         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18598         * config/mips/mips.md (*madd4<mode>): Ditto.
18599         (*nmadd3<mode>) Ditto.
18600         (*nmadd4<mode>_fastmath): Ditto.
18601         (*nmadd3<mode>_fastmath): Ditto.
18602         (*nmsub4<mode>): Ditto.
18603         (*nmsub3<mode>): Ditto.
18604         (*nmsub4<mode>_fastmath): Ditto.
18605         (*nmsub3<mode>_fastmath): Ditto.
18606
18607 2015-06-18  Michael Matz  <matz@suse.de>
18608
18609         PR middle-end/66253
18610         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18611         grouped strided stores.
18612         (vectorizable_load): Don't use the DR from first_stmt in
18613         the non-SLP grouped strided case.
18614
18615 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18616
18617         PR target/66569
18618         * function.c (assign_bounds): Add arguments assign_regs,
18619         assign_special, assign_bt.
18620         (assign_parms): For vararg functions handle bounds in BT
18621         and special slots after incoming vararg bounds.
18622
18623 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18624
18625         PR middle-end/66568
18626         * cfgexpand.c (expand_return): Handle missing bounds.
18627         (expand_gimple_stmt_1): Likewise.
18628         * tree-chkp.c (chkp_expand_zero_bounds): New.
18629         * tree-chkp.h (chkp_expand_zero_bounds): New.
18630
18631 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18632
18633         PR middle-end/66567
18634         * ipa-chkp.c (chkp_maybe_create_clone): Require
18635         functions to be instrumentable.
18636         * tree-chkp.c (chkp_replace_function_pointer): Use
18637         chkp_instrumentable_p instead of attribute check.
18638
18639 2015-06-18  Richard Biener  <rguenther@suse.de>
18640
18641         PR tree-optimization/66510
18642         * tree-vect-stmts.c (vectorizable_load): Properly compute the
18643         number of vector loads for SLP permuted loads.
18644         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18645         check the stride for loop vectorization.
18646         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18647         vectorization factor.
18648         (vect_analyze_group_access): If the group size is not a power
18649         of two require a epilogue loop.
18650         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18651         compute and optimizing and alias test pruning after final
18652         vectorization factor computation.
18653         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18654         vector alignment.
18655         (vect_transform_slp_perm_load): Properly compute the original
18656         number of vector load stmts.
18657
18658 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
18659
18660         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18661         "unlikely character , in @var" warning.
18662
18663 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
18664
18665         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18666         (ix86_function_arg_advance): Ditto.
18667         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
18668
18669 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
18670
18671         * function.h (struct rtl_data): Remove struct and accessor macros.
18672         * emit-rtl.h (struct rtl_data): Relocate to here.
18673         * Makefile.in (GTFILES): Add emit-rtl.h.
18674         * df-core.c: Include emit-rtl.h.
18675         * genattrtab.c: Likewise.
18676         * genconditions.c: Likewise.
18677         * genpreds.c: Likewise.
18678         * genrecog.c: Likewise.
18679         * regcprop.c: Likewise.
18680         * resource.c: Likewise.
18681         * sched-rgn.c: Likewise.
18682         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18683         * config/i386/winnt.c: Likewise.
18684
18685 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
18686
18687         PR middle-end/66429
18688         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18689         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
18690         and has_force_vectorize_loops flags from cfun into
18691         child_cfun.
18692         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18693         if simduid is non-NULL.
18694         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18695         * passes.def (pass_simduid_cleanup): Add new pass after loop
18696         passes.
18697         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18698         indirection from htab argument's type.
18699         (shrink_simd_arrays): New function.
18700         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
18701         Don't call adjust_simduid_builtins if there are no loops.
18702         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18703         (pass_simduid_cleanup::execute): New method.
18704         (make_pass_simduid_cleanup): New function.
18705
18706 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
18707
18708         * tree-core.h (tree_target_option): Make opts field a pointer to a
18709         cl_target_option instead of an instance of the struct.
18710         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18711         the structure.
18712         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18713         TARGET_OPTION_NODE.
18714         (copy_node_stat): Allocate and copy struct cl_target_option.
18715
18716 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
18717
18718         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18719         Remove conditional exposure of prototypes.
18720         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18721         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
18722         definitions in tree.h with functions.
18723         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18724         anon_aggrname_p.
18725         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18726
18727 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
18728
18729         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18730         (*cmp<mode>_signed): ... this.
18731         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18732         (*cmp<mode>_unsigned): ... this.  Remove %b.
18733
18734 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
18735
18736         * coretypes.h: Include input.h and as-a.h.
18737         * rtl.h: Include input.h and as-a.h for generator files.
18738         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18739         * vec.c: Don't include diagnostic-core.h.
18740         * alias.c: Do not include input.h, line-map.h or is-a.h.
18741         * asan.c: Likewise.
18742         * attribs.c: Likewise.
18743         * auto-inc-dec.c: Likewise.
18744         * auto-profile.c: Likewise.
18745         * bb-reorder.c: Likewise.
18746         * bt-load.c: Likewise.
18747         * builtins.c: Likewise.
18748         * caller-save.c: Likewise.
18749         * calls.c: Likewise.
18750         * ccmp.c: Likewise.
18751         * cfg.c: Likewise.
18752         * cfganal.c: Likewise.
18753         * cfgbuild.c: Likewise.
18754         * cfgcleanup.c: Likewise.
18755         * cfgexpand.c: Likewise.
18756         * cfghooks.c: Likewise.
18757         * cfgloop.c: Likewise.
18758         * cfgloop.h: Likewise.
18759         * cfgloopanal.c: Likewise.
18760         * cfgloopmanip.c: Likewise.
18761         * cfgrtl.c: Likewise.
18762         * cgraph.c: Likewise.
18763         * cgraphbuild.c: Likewise.
18764         * cgraphclones.c: Likewise.
18765         * cgraphunit.c: Likewise.
18766         * cilk-common.c: Likewise.
18767         * combine-stack-adj.c: Likewise.
18768         * combine.c: Likewise.
18769         * compare-elim.c: Likewise.
18770         * convert.c: Likewise.
18771         * coverage.c: Likewise.
18772         * cppbuiltin.c: Likewise.
18773         * cprop.c: Likewise.
18774         * cse.c: Likewise.
18775         * cselib.c: Likewise.
18776         * data-streamer-in.c: Likewise.
18777         * data-streamer-out.c: Likewise.
18778         * data-streamer.c: Likewise.
18779         * dbxout.c: Likewise.
18780         * dce.c: Likewise.
18781         * ddg.c: Likewise.
18782         * debug.c: Likewise.
18783         * df-core.c: Likewise.
18784         * df-problems.c: Likewise.
18785         * df-scan.c: Likewise.
18786         * df.h: Likewise.
18787         * dfp.c: Likewise.
18788         * diagnostic-core.h: Likewise.
18789         * diagnostic.c: Likewise.
18790         * dojump.c: Likewise.
18791         * dominance.c: Likewise.
18792         * domwalk.c: Likewise.
18793         * double-int.c: Likewise.
18794         * dse.c: Likewise.
18795         * dumpfile.c: Likewise.
18796         * dumpfile.h: Likewise.
18797         * dwarf2asm.c: Likewise.
18798         * dwarf2cfi.c: Likewise.
18799         * dwarf2out.c: Likewise.
18800         * emit-rtl.c: Likewise.
18801         * et-forest.c: Likewise.
18802         * except.c: Likewise.
18803         * explow.c: Likewise.
18804         * expmed.c: Likewise.
18805         * expr.c: Likewise.
18806         * final.c: Likewise.
18807         * fixed-value.c: Likewise.
18808         * fold-const.c: Likewise.
18809         * function.c: Likewise.
18810         * fwprop.c: Likewise.
18811         * gcc-plugin.h: Likewise.
18812         * gcse.c: Likewise.
18813         * generic-match-head.c: Likewise.
18814         * ggc-page.c: Likewise.
18815         * gimple-builder.c: Likewise.
18816         * gimple-expr.c: Likewise.
18817         * gimple-fold.c: Likewise.
18818         * gimple-iterator.c: Likewise.
18819         * gimple-low.c: Likewise.
18820         * gimple-match-head.c: Likewise.
18821         * gimple-pretty-print.c: Likewise.
18822         * gimple-ssa-isolate-paths.c: Likewise.
18823         * gimple-ssa-strength-reduction.c: Likewise.
18824         * gimple-streamer-in.c: Likewise.
18825         * gimple-streamer-out.c: Likewise.
18826         * gimple-streamer.h: Likewise.
18827         * gimple-walk.c: Likewise.
18828         * gimple.c: Likewise.
18829         * gimplify-me.c: Likewise.
18830         * gimplify.c: Likewise.
18831         * godump.c: Likewise.
18832         * graph.c: Likewise.
18833         * graphite-blocking.c: Likewise.
18834         * graphite-dependences.c: Likewise.
18835         * graphite-interchange.c: Likewise.
18836         * graphite-isl-ast-to-gimple.c: Likewise.
18837         * graphite-optimize-isl.c: Likewise.
18838         * graphite-poly.c: Likewise.
18839         * graphite-scop-detection.c: Likewise.
18840         * graphite-sese-to-poly.c: Likewise.
18841         * graphite.c: Likewise.
18842         * haifa-sched.c: Likewise.
18843         * hw-doloop.c: Likewise.
18844         * ifcvt.c: Likewise.
18845         * init-regs.c: Likewise.
18846         * input.c: Likewise.
18847         * internal-fn.c: Likewise.
18848         * ipa-chkp.c: Likewise.
18849         * ipa-comdats.c: Likewise.
18850         * ipa-cp.c: Likewise.
18851         * ipa-devirt.c: Likewise.
18852         * ipa-icf-gimple.c: Likewise.
18853         * ipa-icf.c: Likewise.
18854         * ipa-inline-analysis.c: Likewise.
18855         * ipa-inline-transform.c: Likewise.
18856         * ipa-inline.c: Likewise.
18857         * ipa-polymorphic-call.c: Likewise.
18858         * ipa-profile.c: Likewise.
18859         * ipa-prop.c: Likewise.
18860         * ipa-pure-const.c: Likewise.
18861         * ipa-ref.c: Likewise.
18862         * ipa-reference.c: Likewise.
18863         * ipa-split.c: Likewise.
18864         * ipa-utils.c: Likewise.
18865         * ipa-visibility.c: Likewise.
18866         * ipa.c: Likewise.
18867         * ira-build.c: Likewise.
18868         * ira-color.c: Likewise.
18869         * ira-conflicts.c: Likewise.
18870         * ira-costs.c: Likewise.
18871         * ira-emit.c: Likewise.
18872         * ira-lives.c: Likewise.
18873         * ira.c: Likewise.
18874         * jump.c: Likewise.
18875         * langhooks.c: Likewise.
18876         * lcm.c: Likewise.
18877         * loop-doloop.c: Likewise.
18878         * loop-init.c: Likewise.
18879         * loop-invariant.c: Likewise.
18880         * loop-iv.c: Likewise.
18881         * loop-unroll.c: Likewise.
18882         * lower-subreg.c: Likewise.
18883         * lra-assigns.c: Likewise.
18884         * lra-coalesce.c: Likewise.
18885         * lra-constraints.c: Likewise.
18886         * lra-eliminations.c: Likewise.
18887         * lra-lives.c: Likewise.
18888         * lra-remat.c: Likewise.
18889         * lra-spills.c: Likewise.
18890         * lra.c: Likewise.
18891         * lto-cgraph.c: Likewise.
18892         * lto-compress.c: Likewise.
18893         * lto-opts.c: Likewise.
18894         * lto-section-in.c: Likewise.
18895         * lto-section-out.c: Likewise.
18896         * lto-streamer-in.c: Likewise.
18897         * lto-streamer-out.c: Likewise.
18898         * lto-streamer.c: Likewise.
18899         * mcf.c: Likewise.
18900         * mode-switching.c: Likewise.
18901         * modulo-sched.c: Likewise.
18902         * omega.c: Likewise.
18903         * omp-low.c: Likewise.
18904         * optabs.c: Likewise.
18905         * opts-global.c: Likewise.
18906         * opts.h: Likewise.
18907         * passes.c: Likewise.
18908         * plugin.c: Likewise.
18909         * postreload-gcse.c: Likewise.
18910         * postreload.c: Likewise.
18911         * predict.c: Likewise.
18912         * pretty-print.h: Likewise.
18913         * print-rtl.c: Likewise.
18914         * print-tree.c: Likewise.
18915         * profile.c: Likewise.
18916         * real.c: Likewise.
18917         * realmpfr.c: Likewise.
18918         * recog.c: Likewise.
18919         * ree.c: Likewise.
18920         * reg-stack.c: Likewise.
18921         * regcprop.c: Likewise.
18922         * reginfo.c: Likewise.
18923         * regrename.c: Likewise.
18924         * regstat.c: Likewise.
18925         * reload.c: Likewise.
18926         * reload1.c: Likewise.
18927         * reorg.c: Likewise.
18928         * resource.c: Likewise.
18929         * rtl-chkp.c: Likewise.
18930         * rtl-error.c: Likewise.
18931         * rtlanal.c: Likewise.
18932         * rtlhooks.c: Likewise.
18933         * sanopt.c: Likewise.
18934         * sched-deps.c: Likewise.
18935         * sched-ebb.c: Likewise.
18936         * sched-rgn.c: Likewise.
18937         * sched-vis.c: Likewise.
18938         * sdbout.c: Likewise.
18939         * sel-sched-dump.c: Likewise.
18940         * sel-sched-ir.c: Likewise.
18941         * sel-sched.c: Likewise.
18942         * sese.c: Likewise.
18943         * shrink-wrap.c: Likewise.
18944         * simplify-rtx.c: Likewise.
18945         * stack-ptr-mod.c: Likewise.
18946         * statistics.c: Likewise.
18947         * stmt.c: Likewise.
18948         * stor-layout.c: Likewise.
18949         * store-motion.c: Likewise.
18950         * streamer-hooks.c: Likewise.
18951         * stringpool.c: Likewise.
18952         * symtab.c: Likewise.
18953         * target-globals.c: Likewise.
18954         * targhooks.c: Likewise.
18955         * toplev.c: Likewise.
18956         * tracer.c: Likewise.
18957         * trans-mem.c: Likewise.
18958         * tree-affine.c: Likewise.
18959         * tree-browser.c: Likewise.
18960         * tree-call-cdce.c: Likewise.
18961         * tree-cfg.c: Likewise.
18962         * tree-cfgcleanup.c: Likewise.
18963         * tree-chkp-opt.c: Likewise.
18964         * tree-chkp.c: Likewise.
18965         * tree-chrec.c: Likewise.
18966         * tree-complex.c: Likewise.
18967         * tree-data-ref.c: Likewise.
18968         * tree-dfa.c: Likewise.
18969         * tree-diagnostic.c: Likewise.
18970         * tree-dump.c: Likewise.
18971         * tree-eh.c: Likewise.
18972         * tree-emutls.c: Likewise.
18973         * tree-if-conv.c: Likewise.
18974         * tree-inline.c: Likewise.
18975         * tree-into-ssa.c: Likewise.
18976         * tree-iterator.c: Likewise.
18977         * tree-loop-distribution.c: Likewise.
18978         * tree-nested.c: Likewise.
18979         * tree-nrv.c: Likewise.
18980         * tree-object-size.c: Likewise.
18981         * tree-outof-ssa.c: Likewise.
18982         * tree-parloops.c: Likewise.
18983         * tree-phinodes.c: Likewise.
18984         * tree-predcom.c: Likewise.
18985         * tree-pretty-print.c: Likewise.
18986         * tree-profile.c: Likewise.
18987         * tree-scalar-evolution.c: Likewise.
18988         * tree-sra.c: Likewise.
18989         * tree-ssa-address.c: Likewise.
18990         * tree-ssa-alias.c: Likewise.
18991         * tree-ssa-ccp.c: Likewise.
18992         * tree-ssa-coalesce.c: Likewise.
18993         * tree-ssa-copy.c: Likewise.
18994         * tree-ssa-copyrename.c: Likewise.
18995         * tree-ssa-dce.c: Likewise.
18996         * tree-ssa-dom.c: Likewise.
18997         * tree-ssa-dse.c: Likewise.
18998         * tree-ssa-forwprop.c: Likewise.
18999         * tree-ssa-ifcombine.c: Likewise.
19000         * tree-ssa-live.c: Likewise.
19001         * tree-ssa-loop-ch.c: Likewise.
19002         * tree-ssa-loop-im.c: Likewise.
19003         * tree-ssa-loop-ivcanon.c: Likewise.
19004         * tree-ssa-loop-ivopts.c: Likewise.
19005         * tree-ssa-loop-manip.c: Likewise.
19006         * tree-ssa-loop-niter.c: Likewise.
19007         * tree-ssa-loop-prefetch.c: Likewise.
19008         * tree-ssa-loop-unswitch.c: Likewise.
19009         * tree-ssa-loop.c: Likewise.
19010         * tree-ssa-math-opts.c: Likewise.
19011         * tree-ssa-operands.c: Likewise.
19012         * tree-ssa-phiopt.c: Likewise.
19013         * tree-ssa-phiprop.c: Likewise.
19014         * tree-ssa-pre.c: Likewise.
19015         * tree-ssa-propagate.c: Likewise.
19016         * tree-ssa-reassoc.c: Likewise.
19017         * tree-ssa-sccvn.c: Likewise.
19018         * tree-ssa-scopedtables.c: Likewise.
19019         * tree-ssa-sink.c: Likewise.
19020         * tree-ssa-strlen.c: Likewise.
19021         * tree-ssa-structalias.c: Likewise.
19022         * tree-ssa-tail-merge.c: Likewise.
19023         * tree-ssa-ter.c: Likewise.
19024         * tree-ssa-threadedge.c: Likewise.
19025         * tree-ssa-threadupdate.c: Likewise.
19026         * tree-ssa-uncprop.c: Likewise.
19027         * tree-ssa-uninit.c: Likewise.
19028         * tree-ssa.c: Likewise.
19029         * tree-ssanames.c: Likewise.
19030         * tree-stdarg.c: Likewise.
19031         * tree-streamer-in.c: Likewise.
19032         * tree-streamer-out.c: Likewise.
19033         * tree-streamer.c: Likewise.
19034         * tree-switch-conversion.c: Likewise.
19035         * tree-tailcall.c: Likewise.
19036         * tree-vect-data-refs.c: Likewise.
19037         * tree-vect-generic.c: Likewise.
19038         * tree-vect-loop-manip.c: Likewise.
19039         * tree-vect-loop.c: Likewise.
19040         * tree-vect-patterns.c: Likewise.
19041         * tree-vect-slp.c: Likewise.
19042         * tree-vect-stmts.c: Likewise.
19043         * tree-vectorizer.c: Likewise.
19044         * tree-vrp.c: Likewise.
19045         * tree.c: Likewise.
19046         * tsan.c: Likewise.
19047         * ubsan.c: Likewise.
19048         * valtrack.c: Likewise.
19049         * value-prof.c: Likewise.
19050         * var-tracking.c: Likewise.
19051         * varasm.c: Likewise.
19052         * varpool.c: Likewise.
19053         * vmsdbgout.c: Likewise.
19054         * vtable-verify.c: Likewise.
19055         * web.c: Likewise.
19056         * wide-int.cc: Likewise.
19057         * xcoffout.c: Likewise.
19058         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
19059         * common/common-targhooks.c: Likewise.
19060         * config/aarch64/aarch64-builtins.c: Likewise.
19061         * config/aarch64/aarch64.c: Likewise.
19062         * config/alpha/alpha.c: Likewise.
19063         * config/arc/arc.c: Likewise.
19064         * config/arm/aarch-common.c: Likewise.
19065         * config/arm/arm-builtins.c: Likewise.
19066         * config/arm/arm-c.c: Likewise.
19067         * config/arm/arm.c: Likewise.
19068         * config/avr/avr-c.c: Likewise.
19069         * config/avr/avr-log.c: Likewise.
19070         * config/avr/avr.c: Likewise.
19071         * config/bfin/bfin.c: Likewise.
19072         * config/c6x/c6x.c: Likewise.
19073         * config/cr16/cr16.c: Likewise.
19074         * config/cris/cris.c: Likewise.
19075         * config/darwin-c.c: Likewise.
19076         * config/darwin.c: Likewise.
19077         * config/default-c.c: Likewise.
19078         * config/epiphany/epiphany.c: Likewise.
19079         * config/epiphany/mode-switch-use.c: Likewise.
19080         * config/epiphany/resolve-sw-modes.c: Likewise.
19081         * config/fr30/fr30.c: Likewise.
19082         * config/frv/frv.c: Likewise.
19083         * config/ft32/ft32.c: Likewise.
19084         * config/glibc-c.c: Likewise.
19085         * config/h8300/h8300.c: Likewise.
19086         * config/i386/i386-c.c: Likewise.
19087         * config/i386/i386.c: Likewise.
19088         * config/i386/msformat-c.c: Likewise.
19089         * config/i386/winnt-cxx.c: Likewise.
19090         * config/i386/winnt-stubs.c: Likewise.
19091         * config/i386/winnt.c: Likewise.
19092         * config/ia64/ia64-c.c: Likewise.
19093         * config/ia64/ia64.c: Likewise.
19094         * config/iq2000/iq2000.c: Likewise.
19095         * config/lm32/lm32.c: Likewise.
19096         * config/m32c/m32c-pragma.c: Likewise.
19097         * config/m32c/m32c.c: Likewise.
19098         * config/m32r/m32r.c: Likewise.
19099         * config/m68k/m68k.c: Likewise.
19100         * config/mcore/mcore.c: Likewise.
19101         * config/mep/mep-pragma.c: Likewise.
19102         * config/mep/mep.c: Likewise.
19103         * config/microblaze/microblaze-c.c: Likewise.
19104         * config/microblaze/microblaze.c: Likewise.
19105         * config/mips/mips.c: Likewise.
19106         * config/mmix/mmix.c: Likewise.
19107         * config/mn10300/mn10300.c: Likewise.
19108         * config/moxie/moxie.c: Likewise.
19109         * config/msp430/msp430-c.c: Likewise.
19110         * config/msp430/msp430.c: Likewise.
19111         * config/nds32/nds32-cost.c: Likewise.
19112         * config/nds32/nds32-fp-as-gp.c: Likewise.
19113         * config/nds32/nds32-intrinsic.c: Likewise.
19114         * config/nds32/nds32-isr.c: Likewise.
19115         * config/nds32/nds32-md-auxiliary.c: Likewise.
19116         * config/nds32/nds32-memory-manipulation.c: Likewise.
19117         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19118         * config/nds32/nds32-predicates.c: Likewise.
19119         * config/nds32/nds32.c: Likewise.
19120         * config/nios2/nios2.c: Likewise.
19121         * config/nvptx/nvptx.c: Likewise.
19122         * config/pa/pa.c: Likewise.
19123         * config/pdp11/pdp11.c: Likewise.
19124         * config/rl78/rl78-c.c: Likewise.
19125         * config/rl78/rl78.c: Likewise.
19126         * config/rs6000/rs6000-c.c: Likewise.
19127         * config/rs6000/rs6000.c: Likewise.
19128         * config/rx/rx.c: Likewise.
19129         * config/s390/s390-c.c: Likewise.
19130         * config/s390/s390.c: Likewise.
19131         * config/sh/sh-c.c: Likewise.
19132         * config/sh/sh-mem.cc: Likewise.
19133         * config/sh/sh.c: Likewise.
19134         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19135         * config/sh/sh_treg_combine.cc: Likewise.
19136         * config/sol2-c.c: Likewise.
19137         * config/sol2-cxx.c: Likewise.
19138         * config/sol2-stubs.c: Likewise.
19139         * config/sol2.c: Likewise.
19140         * config/sparc/sparc-c.c: Likewise.
19141         * config/sparc/sparc.c: Likewise.
19142         * config/spu/spu-c.c: Likewise.
19143         * config/spu/spu.c: Likewise.
19144         * config/stormy16/stormy16.c: Likewise.
19145         * config/tilegx/mul-tables.c: Likewise.
19146         * config/tilegx/tilegx-c.c: Likewise.
19147         * config/tilegx/tilegx.c: Likewise.
19148         * config/tilepro/mul-tables.c: Likewise.
19149         * config/tilepro/tilepro-c.c: Likewise.
19150         * config/tilepro/tilepro.c: Likewise.
19151         * config/v850/v850-c.c: Likewise.
19152         * config/v850/v850.c: Likewise.
19153         * config/vax/vax.c: Likewise.
19154         * config/visium/visium.c: Likewise.
19155         * config/vms/vms-c.c: Likewise.
19156         * config/vms/vms.c: Likewise.
19157         * config/vxworks.c: Likewise.
19158         * config/winnt-c.c: Likewise.
19159         * config/xtensa/xtensa.c: Likewise.
19160
19161 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
19162
19163         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19164         function.
19165         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19166
19167 2015-06-17  Richard Biener  <rguenther@suse.de>
19168
19169         PR tree-optimization/66251
19170         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19171         stmts for SLP strided stores.
19172
19173         Revert
19174         2015-05-22  Richard Biener  <rguenther@suse.de>
19175
19176         PR tree-optimization/66251
19177         * tree-vect-stmts.c (vectorizable_conversion): Properly
19178         set STMT_VINFO_VEC_STMT even for the SLP case.
19179
19180         2015-05-26  Michael Matz  <matz@suse.de>
19181
19182         PR middle-end/66251
19183         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19184         STMT_VINFO_VEC_STMT, also with SLP.
19185
19186 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
19187
19188         PR target/56766
19189         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19190         (*avx_addsubv4df3_1s): Ditto.
19191         (*sse3_addsubv2df3_1): Ditto.
19192         (*sse3_addsubv2df3_1s): Ditto.
19193         (*avx_addsubv8sf3_1): Ditto.
19194         (*avx_addsubv8sf3_1s): Ditto.
19195         (*sse3_addsubv4sf3_1): Ditto.
19196         (*sse3_addsubv4sf3_1s): Ditto.
19197
19198 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
19199
19200         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19201         (SYSROOT_SUFFIX_SPEC): Update.
19202         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19203         (STARTFILE_PREFIX_SPEC): Update.
19204         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19205         (MULTILIB_REQUIRED): New.
19206         (MULTILIB_OSDIRNAMES): New.
19207         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19208         (MULTILIB_REQUIRED): New.
19209         (MULTILIB_OSDIRNAMES): New.
19210
19211 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
19212
19213         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19214         * config/aarch64/aarch64-options-extensions.def: Update "fP",
19215         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
19216         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19217         (AARCH64_FL_PAN): New.
19218         (AARCH64_FL_LOR): New.
19219         (AARCH64_FL_RDMA): New.
19220         (AARCH64_FL_FOR_ARCH8_1): New.
19221         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19222         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19223
19224 2015-06-16  Martin Liska  <mliska@suse.cz>
19225
19226         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19227         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19228         guard.
19229
19230 2015-06-16  Richard Biener  <rguenther@suse.de>
19231
19232         * tree-vect-stmts.c (vectorizable_store): Adjust.
19233         (vectorizable_load): Likewise.
19234         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19235         Simplify.
19236         (vect_create_data_ref_ptr): Likewise.
19237         (bump_vector_ptr): Adjust.
19238
19239 2015-06-16  Richard Biener  <rguenther@suse.de>
19240
19241         * tree-vect-stmts.c (vectorizable_load): Properly start loads
19242         with the first element if this is grouped loads.
19243
19244 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
19245
19246         * config/arm/arm-protos.h (struct tune_params): Rename
19247         log_op_non_sc to log_op_non_short_circuit, and rename enum
19248         values to expand SC to SHORT_CIRCUIT.
19249         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19250         to LOG_OP_NON_SHORT_CIRCUIT.
19251         (arm_fastmul_tune):Likewise
19252         (arm_strongarm_tune): Likewise.
19253         (arm_xscale_tune): Likewise.
19254         (arm_9e_tune): Likewise.
19255         (arm_marvell_pj4_tune): Likewise.
19256         (arm_v6t2_tune): Likewise.
19257         (arm_cortex_tune): Likewise.
19258         (arm_cortex_a8_tune): Likewise.
19259         (arm_cortex_a7_tune): Likewise.
19260         (arm_cortex_a15_tune): Likewise.
19261         (arm_cortex_a53_tune): Likewise.
19262         (arm_cortex_a57_tune): Likewise.
19263         (arm_xgene1_tune): Likewise.
19264         (arm_cortex_a5_tune): Likewise.
19265         (arm_cortex_a9_tune): Likewise.
19266         (arm_cortex_a12_tune): Likewise.
19267         (arm_v7m_tune): Likewise.
19268         (arm_cortex_m7_tune): Likewise.
19269         (arm_v6m_tune): Likewise.
19270         (arm_fa726te_tune): Likewise.
19271
19272 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
19273
19274         * altivec.md: Delete UNSPEC_VMLADDUHM.
19275         (mulv4si3_p8): New pattern.
19276         (mulv4si3): Use it for POWER8.
19277         (mulv8hi3): Use vmladduhm with zero addend.
19278         (altivec_vmladduhm): Descriptive RTL.
19279
19280 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
19281
19282         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19283         to use neon_move instead of mov_imm.
19284         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19285         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19286
19287         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19288         aarch64_float_const_zero_rtx_p check before TFmode check.
19289         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19290         an fp zero.
19291         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
19292         code and attributes to match.  Change condition from register_operand
19293         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
19294         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
19295         to store2.
19296
19297 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
19298
19299         PR debug/66535
19300         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19301         there is no parent.
19302
19303 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
19304
19305         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19306         HOST_WIDE_INT parameter.
19307
19308 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
19309
19310         PR ipa/66181
19311         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19312         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19313         TYPE_NO_FORCE_BLK.
19314         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19315
19316 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
19317
19318         * rtl.h (classify_insn): Declare.
19319         * emit-rtl.c (classify_insn): Move to...
19320         * rtl.c: ...here and add generator support.
19321         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19322         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19323         * genemit.c (gen_emit_seq): New function.
19324         (gen_expand, gen_split): Use it.
19325
19326 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
19327
19328         * tree.c (make_vector_stat): Fix comment to state that the
19329         function returns a VECTOR_CST.
19330
19331 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
19332
19333         * gensupport.h (add_implicit_parallel): Declare.
19334         * genrecog.c (add_implicit_parallel): Move to...
19335         * gensupport.c (add_implicit_parallel): ...here.
19336         (process_one_cond_exec): Use it.
19337         * genemit.c (gen_insn): Likewise.
19338
19339 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
19340
19341         PR bootstrap/66448
19342         * passes.c (rest_of_decl_compilation): Do not register globals for
19343         early debug if they are declared in built-ins.
19344
19345 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
19346
19347         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19348
19349 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19350
19351         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19352         manually swapping.
19353         (noce_try_cmove_arith): Likewise.
19354         (noce_get_alt_condition): Likewise.
19355
19356 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19357
19358         * common/config/i386/i386-common.c
19359         (OPTION_MASK_ISA_MWAITX_SET): New.
19360         (ix86_handle_option): Handle mwaitx.
19361         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19362         (x86_64-*-*): Likewise.
19363         * config/i386/mwaitxintrin.h: New header.
19364         * config/i386/cpuid.h (bit_MWAITX):  Define.
19365         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19366         MWAITX support.
19367         * config/i386/i386.opt (mwaitx): New.
19368         * config/i386/i386-builtin-types.def
19369         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19370         * config/i386/i386-c.c: Define __MWAITX__ if needed.
19371         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19372         (PTA_MWAITX): New.
19373         (ix86_option_override_internal): Handle new option.
19374         (processor_alias_table): Added PTA_MWAITX.
19375         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19376         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19377         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19378         IX86_BUILTIN_MONITORX  built-ins.
19379         * config/i386/i386.h (TARGET_MWAITX): New.
19380         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19381         UNSPEC_MONITORX.
19382         (mwaitx):  New pattern.
19383         (monitorx_<mode>): New pattern.
19384         * config/i386/x86intrin.h: Include mwaitxintrin.h.
19385         * doc/extend.texi: Document monitorx and mwaitx builtins.
19386         * doc/invoke.texi: Document -mmwaitx option.
19387
19388 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
19389
19390         * emit-rtl.c (need_atomic_barrier_p): Mask model with
19391         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
19392
19393 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
19394
19395         * dbxout.c (xcoff_debug_hooks): Provide a function for
19396         register_main_translation_unit hook.
19397
19398 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
19399
19400         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19401         variants cases from switch.
19402         (rs6000_post_atomic_barrier): Same.
19403         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19404         (rs6000_expand_atomic_exchange): Same.
19405         (rs6000_expand_atomic_op): Same.
19406         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19407         SYNC variants cases from switch.
19408         (atomic_load): Same.
19409         (atomic_store): Same.
19410
19411 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
19412
19413         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19414         CONST_INT for goto.
19415
19416 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
19417
19418         PR bootstrap/66448
19419         * dwarf2out.c (check_die): Check for common duplicate attributes.
19420         (add_location_or_const_value_attribute): Do not add duplicate
19421         attributes.
19422         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19423         time around.
19424         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19425         (gen_type_die_with_usage): Call check_die.
19426         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19427
19428 2015-06-11  Jason Merrill  <jason@redhat.com>
19429
19430         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19431         dies.
19432
19433 2015-06-11  Marek Polacek  <polacek@redhat.com>
19434
19435         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19436
19437 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
19438
19439         PR bootstrap/66252
19440         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19441         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19442         (*addx_extend_sp32): Fix pasto.
19443         (*subx_extend): Rename into...
19444         (*subx_extend_sp32): ...this.
19445         (*adddi3_extend_sp32): Add earlyclobber.
19446         (*subdi3_insn_sp32): Likewise.
19447         (*subdi3_extend_sp32): Likewise.
19448         (*and_not_di_sp32): Likewise.
19449         (*or_not_di_sp32): Likewise.
19450         (*xor_not_di_sp32): Likewise.
19451         (*negdi2_sp32): Likewise.
19452         (*one_cmpldi2_sp32): Likewise.
19453
19454 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
19455
19456         * debug.h (struct gcc_debug_hooks): Add a
19457         register_main_translation_unit hook.
19458         * debug.c (do_nothing_debug_hooks): Provide a function for this
19459         new hook.
19460         * dbxout.c (dbx_debug_hooks): Likewise.
19461         * sdbout.c (sdb_debug_hooks): Likewise.
19462         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19463         * dwarf2out.c (main_translation_unit): New global variable.
19464         (dwarf2out_register_main_translation_unit): New function
19465         implementing the new hook.
19466         (dwarf2_debug_hooks): Assign
19467         dwarf2out_register_main_translation_unit to this new hook.
19468         (dwarf2out_init): Associate any main translation unit to
19469         comp_unit_die ().
19470
19471 2015-06-11  Marek Polacek  <polacek@redhat.com>
19472
19473         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19474
19475 2015-06-11  Marek Polacek  <polacek@redhat.com>
19476
19477         * match.pd: Use single_use throughout.
19478
19479 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19480
19481         * config/arm/arm.c (arm_option_params_internal): When optimising
19482         for speed set max_insns_skipped when arm_restrict_it.
19483
19484 2015-06-11  Christian Bruel  <christian.bruel@st.com>
19485
19486         PR target/52144
19487         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19488          macros in ...
19489         (arm_cpu_builtins): New function.
19490         (arm_pragma_target_parse): Call arm_cpu_builtins.
19491         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19492         (arm_register_target_pragmas): Likewise.
19493         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19494          Call arm_register_target_pragmas.
19495         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19496         (arm_pragma_target_parse): Likewise.
19497
19498 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19499
19500         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19501         of the second operand.
19502
19503 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
19504
19505         PR target/66473
19506         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19507         to prepare mask operand for AVX512 modes.
19508
19509 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
19510
19511         PR target/66474
19512         * doc/md.texi (Machine Constraints): Document that on the PowerPC
19513         if you use a constraint that targets a VSX register, you must use
19514         %x<n> in the template.
19515
19516 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
19517
19518         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19519         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19520         (define_insn "trap"): New definition.
19521
19522 2015-06-10  Richard Biener  <rguenther@suse.de>
19523
19524         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19525         out from ...
19526         (vect_supported_load_permutation_p): ... here.  Handle
19527         supportable permutations in reductions.
19528         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19529         for vectorizing strided group loads.
19530
19531 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
19532
19533         PR target/66470
19534         * config/i386/i386.c (ix86_split_long_move): For collisions
19535         involving direct tls segment refs, move the UNSPEC_TP possibly
19536         wrapped in ZERO_EXTEND out of the address for lea, to each of
19537         the memory loads.
19538
19539 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19540
19541         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19542         dmb sy. Adjust tabs.
19543
19544 2015-06-10  Tom de Vries  <tom@codesourcery.com>
19545
19546         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19547
19548 2015-06-10  Martin Liska  <mliska@suse.cz>
19549
19550         PR bootstrap/66471
19551         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19552         all enum values in mem_alloc_origin.
19553         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19554         name.
19555         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19556         * bitmap.c (bitmap_register): Likewise.
19557         (dump_bitmap_statistics): Likewise.
19558         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19559         (ggc_record_overhead): Likewise.
19560         * hash-map.h: Likewise.
19561         * hash-set.h: Likewise.
19562         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19563         * hash-table.h: Likewise.
19564         * vec.c (vec_prefix::register_overhead): Likewise.
19565         (vec_prefix::release_overhead): Likewise.
19566         (dump_vec_loc_statistics): Likewise.
19567
19568 2015-06-09  Christian Bruel  <christian.bruel@st.com>
19569
19570         PR target/52144
19571         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19572         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19573         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19574         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19575         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19576         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19577         (arm_valid_target_attribute_p): Likewise.
19578         (arm_set_current_function, arm_can_inline_p): Likewise.
19579         (arm_valid_target_attribute_rec): Likewise.
19580         (arm_previous_fndecl): New variable.
19581         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19582         (TARGET_CAN_INLINE_P): Define.
19583         (arm_asm_trampoline_template): Emit mode.
19584         (arm_file_start): Don't set unified syntax.
19585         (arm_declare_function_name): Set unified syntax and mode.
19586         (arm_option_override): Init target_option_default_node.
19587         and target_option_current_node.
19588         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19589         (*call_symbol): Likewise.
19590         * doc/extend.texi: Document ARM/Thumb target attribute.
19591         * doc/invoke.texi: Likewise.
19592
19593 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19594
19595         Revert:
19596         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19597         PR rtl-optimization/64164
19598         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19599         * tree-ssa-copyrename.c: Removed.
19600         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19601         -ftree-coalesce-vars.
19602         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19603         * common.opt (ftree-copyrename): Ignore.
19604         (ftree-coalesce-inlined-vars): Likewise.
19605         * doc/invoke.texi: Remove the ignored options above.
19606         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19607         * tree-ssa-coalesce.h: ... here.
19608         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19609         headers required by it.
19610         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19611         across variables when flag_tree_coalesce_vars.  Check register
19612         use and promoted modes to allow coalescing.  Moved to
19613         tree-ssa-coalesce.c.
19614         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19615         with its member functions to tree-ssa-coalesce.c.
19616         (var_map_base_init): Likewise.  Renamed to
19617         compute_samebase_partition_bases.
19618         (partition_view_normal): Drop want_bases parameter.
19619         (partition_view_bitmap): Likewise.
19620         * tree-ssa-live.h: Adjust declarations.
19621         * tree-ssa-coalesce.c: Include explow.h.
19622         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19623         default defs at the entry point.
19624         (dump_part_var_map): New.
19625         (compute_optimized_partition_bases): New, called by...
19626         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19627         of compute_samebase_partition_bases.  Adjust.
19628         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19629         * cfgexpand.c (leader_merge): New.
19630         (get_rtl_for_parm_ssa_default_def): New.
19631         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19632         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19633         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19634         redundant MEM attr setting.
19635         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19636         from...
19637         (expand_one_stack_var): ... this.  New wrapper to check and
19638         skip already expanded SSA partitions.
19639         (record_alignment_for_reg_var): New, factored out of...
19640         (expand_one_var): ... this.
19641         (expand_one_ssa_partition): New.
19642         (adjust_one_expanded_partition_var): New.
19643         (expand_one_register_var): Check and skip already expanded SSA
19644         partitions.
19645         (expand_used_vars): Don't create DECLs for anonymous SSA
19646         names.  Expand all SSA partitions, then adjust all SSA names.
19647         (pass::execute): Replace the loops that set
19648         SA.partition_to_pseudo from partition leaders and cleared
19649         DECL_RTL for multi-location variables, and that which used to
19650         rename vars and set attrs, with one that clears DECL_RTL and
19651         checks that PARMs and RESULTs default_defs match DECL_RTL.
19652         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19653         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19654         * explow.c (promote_ssa_mode): New.
19655         * explow.h (promote_ssa_mode): Declare.
19656         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19657         * function.c: Include cfgexpand.h.
19658         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19659         (use_register_for_parm_decl): Wrapper for the above to
19660         special-case the result_ptr.
19661         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19662         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19663         multiple locations.
19664         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19665         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19666         (assign_parm_setup_block): Prefer SSA-assigned location.
19667         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19668         if stack_parm is NULL.
19669         (assign_parm_setup_stack): Prefer SSA-assigned location.
19670         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19671         rtl before testing for pointer bounds.  Special-case result_ptr.
19672         (expand_function_start): Maybe reset DECL_RTL of result.
19673         Prefer SSA-assigned location for result and static chain.
19674         Factor out DECL_RESULT and SET_DECL_RTL.
19675         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19676         anonymous SSA names.  Use promote_ssa_mode.
19677         (get_temp_reg): Likewise.
19678         (remove_ssa_form): Adjust.
19679         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19680         and get its reg_usage for reg invalidation.
19681         (compute_bb_dataflow): Pass it insn.
19682         (emit_notes_in_bb): Likewise.
19683         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19684         fail assert on conversion between unsigned types.
19685
19686 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19687
19688         PR tree-optimization/65460
19689         * omp-low.c (expand_omp_target): Set parallelized_function on
19690         cgraph_node for child_fn.
19691
19692 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19693
19694         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19695         parallelized_function before add_new_function.
19696
19697 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
19698
19699         * gcc-plugin.h: Move decls to plugin.h and include it.
19700         * plugin.h: Relocate decls from gcc-plugin.h
19701         * ggc-page.c: Include required header files.
19702         * passes.c: Likewise.
19703         * cgraphunit.c: Likewise.
19704
19705 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19706
19707         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19708
19709 2015-06-09  Jason Merrill  <jason@redhat.com>
19710
19711         PR bootstrap/66448
19712         * toplev.c (check_global_declaration): Don't warn about a clone.
19713
19714 2015-06-09  Marek Polacek  <polacek@redhat.com>
19715
19716         PR tree-optimization/66299
19717         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19718         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19719         patterns.
19720
19721 2015-06-09  Richard Biener  <rguenther@suse.de>
19722
19723         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19724         (vect_analyze_slp_instance): Instead do not falsely drop
19725         load permutations.
19726
19727 2015-06-09  Richard Biener  <rguenther@suse.de>
19728
19729         PR middle-end/66423
19730         * match.pd: Handle A % (unsigned)(1 << B).
19731
19732 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
19733
19734         * varasm.c (output_object_block_htab): Remove.
19735         (output_object_block_compare): New.
19736         (output_object_blocks): Sort named object_blocks before outputting
19737         them.
19738
19739 2015-06-09  Richard Biener  <rguenther@suse.de>
19740
19741         PR tree-optimization/66419
19742         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19743         consider GROUP_GAP when detecting a perfect subchain.
19744
19745 2015-06-09  Nick Clifton  <nickc@redhat.com>
19746
19747         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19748         place read only data in the .frodata section.
19749
19750 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
19751
19752         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19753         (atomic_store<mode>): Likewise.
19754
19755 2015-06-09  Richard Biener  <rguenther@suse.de>
19756
19757         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19758
19759 2015-06-09  Richard Biener  <rguenther@suse.de>
19760
19761         PR middle-end/66413
19762         * tree-inline.c (insert_init_debug_bind): Unshare value.
19763
19764 2015-06-09  Richard Biener  <rguenther@suse.de>
19765
19766         PR tree-optimization/66396
19767         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19768         Rename virtual operands.
19769
19770 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19771
19772         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19773         always return false.
19774
19775 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19776
19777         PR rtl-optimization/64164
19778         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19779         * tree-ssa-copyrename.c: Removed.
19780         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19781         -ftree-coalesce-vars.
19782         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19783         * common.opt (ftree-copyrename): Ignore.
19784         (ftree-coalesce-inlined-vars): Likewise.
19785         * doc/invoke.texi: Remove the ignored options above.
19786         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19787         * tree-ssa-coalesce.h: ... here.
19788         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19789         headers required by it.
19790         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19791         across variables when flag_tree_coalesce_vars.  Check register
19792         use and promoted modes to allow coalescing.  Moved to
19793         tree-ssa-coalesce.c.
19794         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19795         with its member functions to tree-ssa-coalesce.c.
19796         (var_map_base_init): Likewise.  Renamed to
19797         compute_samebase_partition_bases.
19798         (partition_view_normal): Drop want_bases parameter.
19799         (partition_view_bitmap): Likewise.
19800         * tree-ssa-live.h: Adjust declarations.
19801         * tree-ssa-coalesce.c: Include explow.h.
19802         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19803         default defs at the entry point.
19804         (dump_part_var_map): New.
19805         (compute_optimized_partition_bases): New, called by...
19806         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19807         of compute_samebase_partition_bases.  Adjust.
19808         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19809         * cfgexpand.c (leader_merge): New.
19810         (get_rtl_for_parm_ssa_default_def): New.
19811         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19812         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19813         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19814         redundant MEM attr setting.
19815         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19816         from...
19817         (expand_one_stack_var): ... this.  New wrapper to check and
19818         skip already expanded SSA partitions.
19819         (record_alignment_for_reg_var): New, factored out of...
19820         (expand_one_var): ... this.
19821         (expand_one_ssa_partition): New.
19822         (adjust_one_expanded_partition_var): New.
19823         (expand_one_register_var): Check and skip already expanded SSA
19824         partitions.
19825         (expand_used_vars): Don't create DECLs for anonymous SSA
19826         names.  Expand all SSA partitions, then adjust all SSA names.
19827         (pass::execute): Replace the loops that set
19828         SA.partition_to_pseudo from partition leaders and cleared
19829         DECL_RTL for multi-location variables, and that which used to
19830         rename vars and set attrs, with one that clears DECL_RTL and
19831         checks that PARMs and RESULTs default_defs match DECL_RTL.
19832         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19833         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19834         * explow.c (promote_ssa_mode): New.
19835         * explow.h (promote_ssa_mode): Declare.
19836         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19837         * function.c: Include cfgexpand.h.
19838         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19839         (use_register_for_parm_decl): Wrapper for the above to
19840         special-case the result_ptr.
19841         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19842         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19843         multiple locations.
19844         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19845         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19846         (assign_parm_setup_block): Prefer SSA-assigned location.
19847         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19848         if stack_parm is NULL.
19849         (assign_parm_setup_stack): Prefer SSA-assigned location.
19850         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19851         rtl before testing for pointer bounds.  Special-case result_ptr.
19852         (expand_function_start): Maybe reset DECL_RTL of result.
19853         Prefer SSA-assigned location for result and static chain.
19854         Factor out DECL_RESULT and SET_DECL_RTL.
19855         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19856         anonymous SSA names.  Use promote_ssa_mode.
19857         (get_temp_reg): Likewise.
19858         (remove_ssa_form): Adjust.
19859         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19860         and get its reg_usage for reg invalidation.
19861         (compute_bb_dataflow): Pass it insn.
19862         (emit_notes_in_bb): Likewise.
19863         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19864         fail assert on conversion between unsigned types.
19865
19866 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19867
19868         PR debug/58315
19869         * tree-inline.c (reset_debug_binding): New.
19870         (reset_debug_bindings): Likewise.
19871         (expand_call_inline): Call it.
19872
19873 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
19874
19875         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19876         TYPE_STRING_FLAG.
19877
19878 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
19879
19880         * lto-streamer-out.c (lto_output_location): Stream
19881         reserved locations correctly.
19882         * lto-streamer-in.c (lto_output_location): Likewise.
19883
19884 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
19885
19886         * coretypes.h: Include hash-table.h and hash-set.h for host files.
19887         * ggc.h: Don't include statistics.h>
19888         * hash-map.h: Remove all includes.
19889         * hash-set.h: Likewise.
19890         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19891         the include list. Remove <new>.
19892         * inchash.h: Remove all includes.
19893         * mem-stats.h: Likewise.
19894         * vec.h: No special processing for generators or ggc.
19895         * alias.c : Adjust include files.
19896         * alloc-pool.c : Likewise.
19897         * alloc-pool.h : Likewise.
19898         * asan.c : Likewise.
19899         * attribs.c : Likewise.
19900         * auto-inc-dec.c : Likewise.
19901         * auto-profile.c : Likewise.
19902         * bb-reorder.c : Likewise.
19903         * bitmap.c : Likewise.
19904         * bitmap.h : Likewise.
19905         * bt-load.c : Likewise.
19906         * builtins.c : Likewise.
19907         * caller-save.c : Likewise.
19908         * calls.c : Likewise.
19909         * ccmp.c : Likewise.
19910         * cfg.c : Likewise.
19911         * cfganal.c : Likewise.
19912         * cfgbuild.c : Likewise.
19913         * cfgcleanup.c : Likewise.
19914         * cfgexpand.c : Likewise.
19915         * cfghooks.c : Likewise.
19916         * cfgloop.c : Likewise.
19917         * cfgloop.h : Likewise.
19918         * cfgloopanal.c : Likewise.
19919         * cfgloopmanip.c : Likewise.
19920         * cfgrtl.c : Likewise.
19921         * cgraph.c : Likewise.
19922         * cgraphbuild.c : Likewise.
19923         * cgraphclones.c : Likewise.
19924         * cgraphunit.c : Likewise.
19925         * cilk-common.c : Likewise.
19926         * combine-stack-adj.c : Likewise.
19927         * combine.c : Likewise.
19928         * compare-elim.c : Likewise.
19929         * context.c : Likewise.
19930         * convert.c : Likewise.
19931         * coverage.c : Likewise.
19932         * cppbuiltin.c : Likewise.
19933         * cprop.c : Likewise.
19934         * cse.c : Likewise.
19935         * cselib.c : Likewise.
19936         * data-streamer-in.c : Likewise.
19937         * data-streamer-out.c : Likewise.
19938         * data-streamer.c : Likewise.
19939         * data-streamer.h : Likewise.
19940         * dbxout.c : Likewise.
19941         * dce.c : Likewise.
19942         * ddg.c : Likewise.
19943         * debug.c : Likewise.
19944         * df-core.c : Likewise.
19945         * df-problems.c : Likewise.
19946         * df-scan.c : Likewise.
19947         * df.h : Likewise.
19948         * dfp.c : Likewise.
19949         * dojump.c : Likewise.
19950         * dominance.c : Likewise.
19951         * domwalk.c : Likewise.
19952         * double-int.c : Likewise.
19953         * dse.c : Likewise.
19954         * dumpfile.c : Likewise.
19955         * dwarf2asm.c : Likewise.
19956         * dwarf2cfi.c : Likewise.
19957         * dwarf2out.c : Likewise.
19958         * emit-rtl.c : Likewise.
19959         * et-forest.c : Likewise.
19960         * except.c : Likewise.
19961         * except.h : Likewise.
19962         * explow.c : Likewise.
19963         * expmed.c : Likewise.
19964         * expr.c : Likewise.
19965         * final.c : Likewise.
19966         * fixed-value.c : Likewise.
19967         * fold-const.c : Likewise.
19968         * function.c : Likewise.
19969         * fwprop.c : Likewise.
19970         * gcc-plugin.h : Likewise.
19971         * gcc.c : Likewise.
19972         * gcse-common.c : Likewise.
19973         * gcse.c : Likewise.
19974         * genattrtab.c : Likewise.
19975         * genautomata.c : Likewise.
19976         * genconditions.c : Likewise.
19977         * genemit.c : Likewise.
19978         * generic-match-head.c : Likewise.
19979         * genextract.c : Likewise.
19980         * gengtype-state.c : Likewise.
19981         * gengtype.c : Likewise.
19982         * genhooks.c : Likewise.
19983         * genmatch.c : Likewise.
19984         * genmodes.c : Likewise.
19985         * genrecog.c : Likewise.
19986         * gensupport.c : Likewise.
19987         * ggc-common.c : Likewise.
19988         * ggc-internal.h : Likewise.
19989         * ggc-none.c : Likewise.
19990         * ggc-page.c : Likewise.
19991         * gimple-builder.c : Likewise.
19992         * gimple-expr.c : Likewise.
19993         * gimple-fold.c : Likewise.
19994         * gimple-iterator.c : Likewise.
19995         * gimple-low.c : Likewise.
19996         * gimple-match-head.c : Likewise.
19997         * gimple-pretty-print.c : Likewise.
19998         * gimple-ssa-isolate-paths.c : Likewise.
19999         * gimple-ssa-strength-reduction.c : Likewise.
20000         * gimple-ssa.h : Likewise.
20001         * gimple-streamer-in.c : Likewise.
20002         * gimple-streamer-out.c : Likewise.
20003         * gimple-streamer.h : Likewise.
20004         * gimple-walk.c : Likewise.
20005         * gimple.c : Likewise.
20006         * gimplify-me.c : Likewise.
20007         * gimplify.c : Likewise.
20008         * godump.c : Likewise.
20009         * graph.c : Likewise.
20010         * graphds.c : Likewise.
20011         * graphite-blocking.c : Likewise.
20012         * graphite-dependences.c : Likewise.
20013         * graphite-interchange.c : Likewise.
20014         * graphite-isl-ast-to-gimple.c : Likewise.
20015         * graphite-optimize-isl.c : Likewise.
20016         * graphite-poly.c : Likewise.
20017         * graphite-scop-detection.c : Likewise.
20018         * graphite-sese-to-poly.c : Likewise.
20019         * graphite.c : Likewise.
20020         * haifa-sched.c : Likewise.
20021         * hard-reg-set.h : Likewise.
20022         * hw-doloop.c : Likewise.
20023         * ifcvt.c : Likewise.
20024         * inchash.c : Likewise.
20025         * incpath.c : Likewise.
20026         * init-regs.c : Likewise.
20027         * input.c : Likewise.
20028         * internal-fn.c : Likewise.
20029         * ipa-chkp.c : Likewise.
20030         * ipa-comdats.c : Likewise.
20031         * ipa-cp.c : Likewise.
20032         * ipa-devirt.c : Likewise.
20033         * ipa-icf-gimple.c : Likewise.
20034         * ipa-icf.c : Likewise.
20035         * ipa-inline-analysis.c : Likewise.
20036         * ipa-inline-transform.c : Likewise.
20037         * ipa-inline.c : Likewise.
20038         * ipa-polymorphic-call.c : Likewise.
20039         * ipa-profile.c : Likewise.
20040         * ipa-prop.c : Likewise.
20041         * ipa-pure-const.c : Likewise.
20042         * ipa-ref.c : Likewise.
20043         * ipa-reference.c : Likewise.
20044         * ipa-split.c : Likewise.
20045         * ipa-utils.c : Likewise.
20046         * ipa-visibility.c : Likewise.
20047         * ipa.c : Likewise.
20048         * ira-build.c : Likewise.
20049         * ira-color.c : Likewise.
20050         * ira-conflicts.c : Likewise.
20051         * ira-costs.c : Likewise.
20052         * ira-emit.c : Likewise.
20053         * ira-lives.c : Likewise.
20054         * ira.c : Likewise.
20055         * jump.c : Likewise.
20056         * langhooks.c : Likewise.
20057         * lcm.c : Likewise.
20058         * libfuncs.h : Likewise.
20059         * lists.c : Likewise.
20060         * loop-doloop.c : Likewise.
20061         * loop-init.c : Likewise.
20062         * loop-invariant.c : Likewise.
20063         * loop-iv.c : Likewise.
20064         * loop-unroll.c : Likewise.
20065         * lower-subreg.c : Likewise.
20066         * lra-assigns.c : Likewise.
20067         * lra-coalesce.c : Likewise.
20068         * lra-constraints.c : Likewise.
20069         * lra-eliminations.c : Likewise.
20070         * lra-lives.c : Likewise.
20071         * lra-remat.c : Likewise.
20072         * lra-spills.c : Likewise.
20073         * lra.c : Likewise.
20074         * lto-cgraph.c : Likewise.
20075         * lto-compress.c : Likewise.
20076         * lto-opts.c : Likewise.
20077         * lto-section-in.c : Likewise.
20078         * lto-section-out.c : Likewise.
20079         * lto-streamer-in.c : Likewise.
20080         * lto-streamer-out.c : Likewise.
20081         * lto-streamer.c : Likewise.
20082         * lto-streamer.h : Likewise.
20083         * mcf.c : Likewise.
20084         * mode-switching.c : Likewise.
20085         * modulo-sched.c : Likewise.
20086         * omega.c : Likewise.
20087         * omp-low.c : Likewise.
20088         * optabs.c : Likewise.
20089         * opts-global.c : Likewise.
20090         * opts.h : Likewise.
20091         * passes.c : Likewise.
20092         * plugin.c : Likewise.
20093         * postreload-gcse.c : Likewise.
20094         * postreload.c : Likewise.
20095         * predict.c : Likewise.
20096         * print-rtl.c : Likewise.
20097         * print-tree.c : Likewise.
20098         * profile.c : Likewise.
20099         * read-md.c : Likewise.
20100         * read-md.h : Likewise.
20101         * read-rtl.c : Likewise.
20102         * real.c : Likewise.
20103         * realmpfr.c : Likewise.
20104         * recog.c : Likewise.
20105         * ree.c : Likewise.
20106         * reg-stack.c : Likewise.
20107         * regcprop.c : Likewise.
20108         * reginfo.c : Likewise.
20109         * regrename.c : Likewise.
20110         * regstat.c : Likewise.
20111         * reload.c : Likewise.
20112         * reload1.c : Likewise.
20113         * reorg.c : Likewise.
20114         * resource.c : Likewise.
20115         * rtl-chkp.c : Likewise.
20116         * rtl.c : Likewise.
20117         * rtl.h : Likewise.
20118         * rtlanal.c : Likewise.
20119         * rtlhash.c : Likewise.
20120         * rtlhash.h : Likewise.
20121         * rtlhooks.c : Likewise.
20122         * sanopt.c : Likewise.
20123         * sched-deps.c : Likewise.
20124         * sched-ebb.c : Likewise.
20125         * sched-rgn.c : Likewise.
20126         * sched-vis.c : Likewise.
20127         * sdbout.c : Likewise.
20128         * sel-sched-dump.c : Likewise.
20129         * sel-sched-ir.c : Likewise.
20130         * sel-sched-ir.h : Likewise.
20131         * sel-sched.c : Likewise.
20132         * sese.c : Likewise.
20133         * shrink-wrap.c : Likewise.
20134         * shrink-wrap.h : Likewise.
20135         * simplify-rtx.c : Likewise.
20136         * stack-ptr-mod.c : Likewise.
20137         * statistics.c : Likewise.
20138         * stmt.c : Likewise.
20139         * stor-layout.c : Likewise.
20140         * store-motion.c : Likewise.
20141         * stringpool.c : Likewise.
20142         * symtab.c : Likewise.
20143         * target-globals.c : Likewise.
20144         * targhooks.c : Likewise.
20145         * tlink.c : Likewise.
20146         * toplev.c : Likewise.
20147         * tracer.c : Likewise.
20148         * trans-mem.c : Likewise.
20149         * tree-affine.c : Likewise.
20150         * tree-affine.h : Likewise.
20151         * tree-browser.c : Likewise.
20152         * tree-call-cdce.c : Likewise.
20153         * tree-cfg.c : Likewise.
20154         * tree-cfgcleanup.c : Likewise.
20155         * tree-chkp-opt.c : Likewise.
20156         * tree-chkp.c : Likewise.
20157         * tree-chrec.c : Likewise.
20158         * tree-complex.c : Likewise.
20159         * tree-data-ref.c : Likewise.
20160         * tree-dfa.c : Likewise.
20161         * tree-diagnostic.c : Likewise.
20162         * tree-dump.c : Likewise.
20163         * tree-eh.c : Likewise.
20164         * tree-eh.h : Likewise.
20165         * tree-emutls.c : Likewise.
20166         * tree-hasher.h : Likewise.
20167         * tree-if-conv.c : Likewise.
20168         * tree-inline.c : Likewise.
20169         * tree-inline.h : Likewise.
20170         * tree-into-ssa.c : Likewise.
20171         * tree-iterator.c : Likewise.
20172         * tree-loop-distribution.c : Likewise.
20173         * tree-nested.c : Likewise.
20174         * tree-nrv.c : Likewise.
20175         * tree-object-size.c : Likewise.
20176         * tree-outof-ssa.c : Likewise.
20177         * tree-parloops.c : Likewise.
20178         * tree-phinodes.c : Likewise.
20179         * tree-predcom.c : Likewise.
20180         * tree-pretty-print.c : Likewise.
20181         * tree-profile.c : Likewise.
20182         * tree-scalar-evolution.c : Likewise.
20183         * tree-sra.c : Likewise.
20184         * tree-ssa-address.c : Likewise.
20185         * tree-ssa-alias.c : Likewise.
20186         * tree-ssa-ccp.c : Likewise.
20187         * tree-ssa-coalesce.c : Likewise.
20188         * tree-ssa-copy.c : Likewise.
20189         * tree-ssa-copyrename.c : Likewise.
20190         * tree-ssa-dce.c : Likewise.
20191         * tree-ssa-dom.c : Likewise.
20192         * tree-ssa-dse.c : Likewise.
20193         * tree-ssa-forwprop.c : Likewise.
20194         * tree-ssa-ifcombine.c : Likewise.
20195         * tree-ssa-live.c : Likewise.
20196         * tree-ssa-loop-ch.c : Likewise.
20197         * tree-ssa-loop-im.c : Likewise.
20198         * tree-ssa-loop-ivcanon.c : Likewise.
20199         * tree-ssa-loop-ivopts.c : Likewise.
20200         * tree-ssa-loop-manip.c : Likewise.
20201         * tree-ssa-loop-niter.c : Likewise.
20202         * tree-ssa-loop-prefetch.c : Likewise.
20203         * tree-ssa-loop-unswitch.c : Likewise.
20204         * tree-ssa-loop.c : Likewise.
20205         * tree-ssa-math-opts.c : Likewise.
20206         * tree-ssa-operands.c : Likewise.
20207         * tree-ssa-phiopt.c : Likewise.
20208         * tree-ssa-phiprop.c : Likewise.
20209         * tree-ssa-pre.c : Likewise.
20210         * tree-ssa-propagate.c : Likewise.
20211         * tree-ssa-reassoc.c : Likewise.
20212         * tree-ssa-sccvn.c : Likewise.
20213         * tree-ssa-scopedtables.c : Likewise.
20214         * tree-ssa-sink.c : Likewise.
20215         * tree-ssa-strlen.c : Likewise.
20216         * tree-ssa-structalias.c : Likewise.
20217         * tree-ssa-tail-merge.c : Likewise.
20218         * tree-ssa-ter.c : Likewise.
20219         * tree-ssa-threadedge.c : Likewise.
20220         * tree-ssa-threadupdate.c : Likewise.
20221         * tree-ssa-uncprop.c : Likewise.
20222         * tree-ssa-uninit.c : Likewise.
20223         * tree-ssa.c : Likewise.
20224         * tree-ssanames.c : Likewise.
20225         * tree-stdarg.c : Likewise.
20226         * tree-streamer-in.c : Likewise.
20227         * tree-streamer-out.c : Likewise.
20228         * tree-streamer.c : Likewise.
20229         * tree-streamer.h : Likewise.
20230         * tree-switch-conversion.c : Likewise.
20231         * tree-tailcall.c : Likewise.
20232         * tree-vect-data-refs.c : Likewise.
20233         * tree-vect-generic.c : Likewise.
20234         * tree-vect-loop-manip.c : Likewise.
20235         * tree-vect-loop.c : Likewise.
20236         * tree-vect-patterns.c : Likewise.
20237         * tree-vect-slp.c : Likewise.
20238         * tree-vect-stmts.c : Likewise.
20239         * tree-vectorizer.c : Likewise.
20240         * tree-vectorizer.h : Likewise.
20241         * tree-vrp.c : Likewise.
20242         * tree.c : Likewise.
20243         * tsan.c : Likewise.
20244         * ubsan.c : Likewise.
20245         * valtrack.c : Likewise.
20246         * valtrack.h : Likewise.
20247         * value-prof.c : Likewise.
20248         * var-tracking.c : Likewise.
20249         * varasm.c : Likewise.
20250         * varpool.c : Likewise.
20251         * vec.c: Likewise.
20252         * vmsdbgout.c : Likewise.
20253         * vtable-verify.c : Likewise.
20254         * vtable-verify.h : Likewise.
20255         * web.c : Likewise.
20256         * wide-int.cc : Likewise.
20257         * xcoffout.c : Likewise.
20258         * config/aarch64/aarch64-builtins.c : Likewise.
20259         * config/aarch64/aarch64.c : Likewise.
20260         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20261         * config/alpha/alpha.c : Likewise.
20262         * config/arc/arc.c : Likewise.
20263         * config/arm/aarch-common.c : Likewise.
20264         * config/arm/arm-builtins.c : Likewise.
20265         * config/arm/arm-c.c : Likewise.
20266         * config/arm/arm.c : Likewise.
20267         * config/avr/avr-c.c : Likewise.
20268         * config/avr/avr-log.c : Likewise.
20269         * config/avr/avr.c : Likewise.
20270         * config/bfin/bfin.c : Likewise.
20271         * config/c6x/c6x.c : Likewise.
20272         * config/cr16/cr16.c : Likewise.
20273         * config/cris/cris.c : Likewise.
20274         * config/darwin-c.c : Likewise.
20275         * config/darwin.c : Likewise.
20276         * config/default-c.c : Likewise.
20277         * config/epiphany/epiphany.c : Likewise.
20278         * config/epiphany/mode-switch-use.c : Likewise.
20279         * config/epiphany/resolve-sw-modes.c : Likewise.
20280         * config/fr30/fr30.c : Likewise.
20281         * config/frv/frv.c : Likewise.
20282         * config/ft32/ft32.c : Likewise.
20283         * config/glibc-c.c : Likewise.
20284         * config/h8300/h8300.c : Likewise.
20285         * config/i386/i386-c.c : Likewise.
20286         * config/i386/i386.c : Likewise.
20287         * config/i386/msformat-c.c : Likewise.
20288         * config/i386/winnt-cxx.c : Likewise.
20289         * config/i386/winnt-stubs.c : Likewise.
20290         * config/i386/winnt.c : Likewise.
20291         * config/ia64/ia64-c.c : Likewise.
20292         * config/ia64/ia64.c : Likewise.
20293         * config/iq2000/iq2000.c : Likewise.
20294         * config/lm32/lm32.c : Likewise.
20295         * config/m32c/m32c-pragma.c : Likewise.
20296         * config/m32c/m32c.c : Likewise.
20297         * config/m32r/m32r.c : Likewise.
20298         * config/m68k/m68k.c : Likewise.
20299         * config/mcore/mcore.c : Likewise.
20300         * config/mep/mep-pragma.c : Likewise.
20301         * config/mep/mep.c : Likewise.
20302         * config/microblaze/microblaze-c.c : Likewise.
20303         * config/microblaze/microblaze.c : Likewise.
20304         * config/mips/mips.c : Likewise.
20305         * config/mmix/mmix.c : Likewise.
20306         * config/mn10300/mn10300.c : Likewise.
20307         * config/moxie/moxie.c : Likewise.
20308         * config/msp430/msp430-c.c : Likewise.
20309         * config/msp430/msp430.c : Likewise.
20310         * config/nds32/nds32-cost.c : Likewise.
20311         * config/nds32/nds32-fp-as-gp.c : Likewise.
20312         * config/nds32/nds32-intrinsic.c : Likewise.
20313         * config/nds32/nds32-isr.c : Likewise.
20314         * config/nds32/nds32-md-auxiliary.c : Likewise.
20315         * config/nds32/nds32-memory-manipulation.c : Likewise.
20316         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20317         * config/nds32/nds32-predicates.c : Likewise.
20318         * config/nds32/nds32.c : Likewise.
20319         * config/nios2/nios2.c : Likewise.
20320         * config/nvptx/nvptx.c : Likewise.
20321         * config/pa/pa.c : Likewise.
20322         * config/pdp11/pdp11.c : Likewise.
20323         * config/rl78/rl78-c.c : Likewise.
20324         * config/rl78/rl78.c : Likewise.
20325         * config/rs6000/rs6000-c.c : Likewise.
20326         * config/rs6000/rs6000.c : Likewise.
20327         * config/rx/rx.c : Likewise.
20328         * config/s390/s390-c.c : Likewise.
20329         * config/s390/s390.c : Likewise.
20330         * config/sh/sh-c.c : Likewise.
20331         * config/sh/sh-mem.cc : Likewise.
20332         * config/sh/sh.c : Likewise.
20333         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20334         * config/sh/sh_treg_combine.cc : Likewise.
20335         * config/sol2-c.c : Likewise.
20336         * config/sol2-cxx.c : Likewise.
20337         * config/sol2-stubs.c : Likewise.
20338         * config/sol2.c : Likewise.
20339         * config/sparc/sparc-c.c : Likewise.
20340         * config/sparc/sparc.c : Likewise.
20341         * config/spu/spu-c.c : Likewise.
20342         * config/spu/spu.c : Likewise.
20343         * config/stormy16/stormy16.c : Likewise.
20344         * config/tilegx/mul-tables.c : Likewise.
20345         * config/tilegx/tilegx-c.c : Likewise.
20346         * config/tilegx/tilegx.c : Likewise.
20347         * config/tilepro/mul-tables.c : Likewise.
20348         * config/tilepro/tilepro-c.c : Likewise.
20349         * config/tilepro/tilepro.c : Likewise.
20350         * config/v850/v850-c.c : Likewise.
20351         * config/v850/v850.c : Likewise.
20352         * config/vax/vax.c : Likewise.
20353         * config/visium/visium.c : Likewise.
20354         * config/vms/vms-c.c : Likewise.
20355         * config/vms/vms.c : Likewise.
20356         * config/vxworks.c : Likewise.
20357         * config/winnt-c.c : Likewise.
20358         * config/xtensa/xtensa.c : Likewise.
20359
20360 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
20361
20362         PR lto/65378
20363         * ipa-utils.h (warn_types_mismatch): Update prototype.
20364         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20365         parameters.
20366         (type_mismatch_p): New function.
20367         (warn_types_mismatch): Reorg to work better on non-C++ types.
20368         (odr_types_equivalent_p): Add loc1/loc2 parameters.
20369         (add_type_duplicate): Update.
20370
20371 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20372
20373         PR rtl-optimization/66444
20374         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20375         call_used_regs.
20376
20377 2015-06-08  Richard Biener  <rguenther@suse.de>
20378
20379         PR tree-optimization/66422
20380         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20381         block after inserted gcc_unreachable.
20382
20383 2015-06-08  Nick Clifton  <nickc@redhat.com>
20384
20385         * config/rx/rx.c (rx_function_value): Do not promote vector types.
20386         (rx_promote_function_mode): Likewise.
20387         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20388
20389 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
20390
20391         * genattrtab.c (insn_alternatives): Change type from int *
20392         to uint64_t *.
20393         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20394         (get_attr_value): Change type of num_alt to uint64_t.
20395         (compute_alternative_mask): Change return type from
20396         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20397         (make_alternative_compare, mk_attr_alt): Change argument type
20398         from int to uint64_t.
20399         (simplify_test_exp): Change type of i from int to uint64_t.
20400         Shift ((uint64_t) 1) instead of 1 up.
20401         (main): Adjust oballocvec first argument from int to uint64_t.
20402         Shift ((uint64_t) 1) instead of 1 up.
20403
20404 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
20405
20406         PR other/65366
20407         * gdbhooks.py: Import sys.
20408         (intptr): New function.  Replace int(...) by intptr(...).
20409
20410 2015-06-08  Richard Biener  <rguenther@suse.de>
20411
20412         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20413         adjustment for gaps at the end of a SLP load group properly.
20414         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20415         all permutations we can generate.
20416         (vect_transform_slp_perm_load): Use the correct group-size.
20417
20418 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
20419
20420         * genmatch.c (expr::gen_transform): For conditions, guess the type
20421         from the second operand.
20422
20423 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20424
20425         PR tree-optimization/66442
20426         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20427         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20428         if the loop latch is not a singleton.  Use
20429         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20430
20431 2015-06-08  Marek Polacek  <polacek@redhat.com>
20432
20433         PR sanitizer/66452
20434         * toplev.c (check_global_declaration): Don't warn about artificial
20435         decls.
20436
20437 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20438
20439         PR tree-optimization/66436
20440         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20441         dump file.
20442         * gimplify.c: Add tree-dump.h include.
20443         (gimplify_function_tree): Dump function to gimple dump file.
20444         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20445         dump file.
20446
20447 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20448
20449         PR tree-optimization/66435
20450         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20451         function.
20452
20453 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
20454
20455         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20456         of ptr_type_node to not be ptr_to_node.
20457         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20458         TREE_TYPE of pointers.
20459         * gimple-expr.c (useless_type_conversion): Reorder the check for
20460         function pointers and TYPE_CANONICAL.
20461
20462 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
20463
20464         PR bootstrap/66319
20465         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20466         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20467         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20468         later.
20469         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20470         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20471         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20472         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20473         and non iso if unix2003.
20474
20475 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
20476
20477         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20478
20479 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
20480
20481         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20482         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20483         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20484         except.c, final.c, function.c, gcse-common.c, genemit.c,
20485         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20486         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20487         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20488         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20489         more derived ones.
20490
20491 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
20492
20493         * combine.c (combine_split_insns): Remove cast.
20494         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20495         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20496         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20497         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20498         * genemit.c (gen_split): Change return type of generated functions to
20499         rtx_insn.
20500         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20501         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20502         gen_peephole2_* functions.
20503         (print_subroutine, main): Likewise.
20504         * recog.c (peephole2_optimize): Remove cast.
20505         (peep2_next_insn): Promote return type to rtx_insn.
20506         * recog.h (peep2_next_insn): Fix prototype.
20507         * rtl.h (try_split, split_insns): Likewise.
20508
20509 2015-06-06  DJ Delorie  <dj@redhat.com>
20510
20511         * config/msp430/msp430.c (msp430_asm_integer): Support addition
20512         and subtraction too.
20513
20514 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
20515
20516         PR target/66410
20517         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20518         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20519         instead of Snd.  Disparage Sid/z alternative with '^'.
20520
20521 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
20522
20523         * dwarf2out.c: Remove deferred_locations*.
20524         (dwarf2_debug_hooks): Add early_finish hook.
20525         Remove global_decl hook.
20526         Add early_global_decl and late_global_decl hook.
20527         New global early_dwarf.
20528         New structure set_early_dwarf.
20529         (output_die): Indicate whether a DIE was generated early
20530         when generating assembly with -dA.
20531         (struct limbo_die_struct): Document created_for field.
20532         Remove file_table_last_lookup.
20533         (remove_AT): Return TRUE if successful.
20534         (remove_child_TAG): Clear die_parent.
20535         (reparent_child): New function abstracted from...
20536         (splice_child_die): ...here.
20537         (new_die): ICE if a DIE ends up in limbo too late.
20538         (check_die): New.
20539         (defer_location): Remove.
20540         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20541         (fill_variable_array_bounds): New.
20542         (decl_start_label): Call fill_variable_array_bounds.
20543         (gen_formal_parameter_die): Rewrite to reuse previously generated
20544         DIEs.
20545         (gen_subprogram_die): Same.
20546         (gen_variable_die): Same.
20547         (gen_const_die): Same.
20548         (gen_label_die): Same.
20549         (gen_lexical_block_die): Same.
20550         (decl_will_get_specification_p): New.
20551         (local_function_static): New.
20552         (gen_struct_or_union_type_die): Fill in variable-length fields.
20553         (gen_typedef_die): Fill in variable-length typedefs.
20554         (gen_tagged_type_die): Gracefully return on error_mark_node.
20555         Handle re-entrancy.
20556         (gen_type_die_with_usage): Handle variable-length types.
20557         Remove duplicate code for ARRAY_TYPE case.
20558         (process_scope_var): Only process imported modules during early
20559         dwarf.
20560         (dwarf2out_early_global_decl): New.
20561         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20562         (dwarf2out_type_decl): Set early_dwarf while calling
20563         dwarf2out_decl.
20564         (dwarf2out_decl): Verify that we did not recreate a previously
20565         generated DIE.
20566         Do not return on DECL_EXTERNALs in VAR_DECLs.
20567         Abstract some code to local_function_static.
20568         (lookup_filename): Remove use of file_table_last_lookup.
20569         Gracefully exit on missing file_name.
20570         (dwarf2out_finish): Verify limbo list.
20571         Remove deferred_locations_list use.
20572         Move deferred_asm_name and limbo flushing to...
20573         (dwarf2out_early_finish): ...here.  New.
20574         (dwarf2out_c_finalize): Remove set of deferred_location_list,
20575         deferred_asm_name, and file_table_last_lookup.
20576         * cgraph.h (referred_to_p): Add default argument.
20577         * cgraphunit.c (referred_to_p): Add and handle include_self
20578         argument.
20579         (analyze_functions): Add first_time argument.
20580         Call check_global_declaration for all symbols.
20581         Call late_global_decl for nodes for moribund nodes.
20582         (finalize_compilation_unit): Add new argument to
20583         analyze_functions.
20584         Call early_global_decl for functions.
20585         Call early_finish debug hook.
20586         * dbxout.c (dbxout_early_global_decl): New.
20587         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
20588         (dbx_debug_hooks): Add new hooks.
20589         (xcoff_debug_hooks): Same.
20590         * debug.c (do_nothing_debug_hooks): Add early_finish field.
20591         Add early and late debug hooks.
20592         Remove global_decl hook.
20593         * debug.h (struct gcc_debug_hooks): Add early_finish,
20594         early_global_decl, and late_global_decl fields.
20595         Remove global_decl field.
20596         Document gcc_debug_hooks.
20597         * gengtype.c (output_typename): Remove.
20598         * godump.c (go_early_global_decl): New.
20599         (go_late_global_decl): New.
20600         (go_global_decl): Remove.
20601         (dump_go_spec_init): Remove global_decl.  Add
20602         {early,late}_global_decl.
20603         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20604         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20605         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20606         (write_global_declarations): Remove.
20607         (global_decl_processing): New.
20608         * langhooks.h (struct lang_hooks_for_decls): Remove
20609         final_write_globals field.
20610         Add post_compilation_parsing_cleanups field.
20611         * passes.c (rest_of_decl_compilation): Call early_global_decl.
20612         * sdbout.c: Add early and late_global_decl hooks.  Remove
20613         sdbout_global_decl hook.
20614         Add early_finish field for sdb_debug_hooks.
20615         (sdbout_global_decl): Remove.
20616         (sdbout_early_global_decl): New.
20617         (sdbout_late_global_decl): New.
20618         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20619         * toplev.c (check_global_declaration): Rename from
20620         check_global_declaration_1.
20621         Adapt to use symtab infrastructure.
20622         (check_global_declarations): Remove.
20623         (emit_debug_global_declarations): Remove.
20624         (compile_file): Remove call to final_write_globals langhook.
20625         Run the actual compilation process.
20626         Perform any post compilation parser cleanups.
20627         Generate late debug info.
20628         * toplev.h (check_global_declaration): New.
20629         (check_global_declaration_1): Remove.
20630         (check_global_declarations): Remove.
20631         (write_global_declarations): Remove.
20632         (emit_debug_global_declarations): Remove.
20633         (global_decl_processing): New.
20634         * tree-core.h (struct tree_block): Add DIE field.
20635         * tree.h (BLOCK_DIE): New.
20636         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20637         throughout.
20638         (vmsdbgout_early_global_decl): New.
20639         (vmsdbgout_late_global_decl): New.
20640         Add early_finish debug hook field to vmsdbg_debug_hooks.
20641         Remove vmsdbgout_decl to vmsdbgout_function_decl.
20642         Add early and late_global_decl debug hooks.
20643
20644 2015-06-05  Julian Brown  <julian@codesourcery.com>
20645             Sandra Loosemore  <sandra@codesourcery.com>
20646
20647         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20648         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20649         to print-sysroot-suffix.sh script.
20650
20651 2015-06-05  Tom de Vries  <tom@codesourcery.com>
20652
20653         merge from gomp4 branch:
20654         2015-05-28  Tom de Vries  <tom@codesourcery.com>
20655
20656         PR tree-optimization/65443
20657         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20658         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20659         (try_transform_to_exit_first_loop_alt): New function.
20660         (transform_to_exit_first_loop): Use
20661         try_transform_to_exit_first_loop_alt.
20662
20663 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
20664
20665         * builtins.c (expand_builtin_atomic_compare_exchange): Call
20666         emit_cmp_and_jump_insns with the mode of target.
20667
20668 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20669
20670         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20671
20672 2015-06-04  DJ Delorie  <dj@redhat.com>
20673
20674         * config/msp430/msp430.md (movsi_s): New.  Special case for
20675         storing a 20-bit symbol into a 32-bit register.
20676         * config/msp430/msp430.c (msp430_subreg): Add support for it.
20677         * config/msp430/predicates.md (msp430_symbol_operand): New.
20678
20679 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
20680
20681         * c-family/c-common.c (noplt): New attribute.
20682         (handle_noplt_attribute): New handler.
20683         * calls.c (prepare_call_address): Check for noplt
20684         attribute.
20685         * config/i386/i386.c (ix86_expand_call): Check
20686         for noplt attribute.
20687         (ix86_nopic_noplt_attribute_p): New function.
20688         (ix86_output_call_insn): Output indirect call for non-pic
20689         no plt calls.
20690         * doc/extend.texi (noplt): Document new attribute.
20691         * doc/invoke.texi: Document new attribute.
20692
20693 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
20694
20695         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20696         real.h, and fixed-value.h when included in host source files.
20697         * double-int.h: Remove redundant #includes listed above.
20698         * fixed-value.h: Likewise.
20699         * real.h: Likewise.
20700         * wide-int.h: Likewise.
20701         * inchash.h: Likewise.
20702         * rtl.h: Add some include files When included from a generator file.
20703         * target.h: Remove wide-int.h and insn-modes.h from the include list.
20704         * internal-fn.h: Don't include coretypes.h.
20705         * alias.c: Adjust includes for restructured coretypes.h.
20706         * asan.c: Likewise.
20707         * attribs.c: Likewise.
20708         * auto-inc-dec.c: Likewise.
20709         * auto-profile.c: Likewise.
20710         * bb-reorder.c: Likewise.
20711         * bt-load.c: Likewise.
20712         * builtins.c: Likewise.
20713         * caller-save.c: Likewise.
20714         * calls.c: Likewise.
20715         * ccmp.c: Likewise.
20716         * cfg.c: Likewise.
20717         * cfganal.c: Likewise.
20718         * cfgbuild.c: Likewise.
20719         * cfgcleanup.c: Likewise.
20720         * cfgexpand.c: Likewise.
20721         * cfghooks.c: Likewise.
20722         * cfgloop.c: Likewise.
20723         * cfgloop.h: Likewise.
20724         * cfgloopanal.c: Likewise.
20725         * cfgloopmanip.c: Likewise.
20726         * cfgrtl.c: Likewise.
20727         * cgraph.c: Likewise.
20728         * cgraphbuild.c: Likewise.
20729         * cgraphclones.c: Likewise.
20730         * cgraphunit.c: Likewise.
20731         * cilk-common.c: Likewise.
20732         * combine-stack-adj.c: Likewise.
20733         * combine.c: Likewise.
20734         * compare-elim.c: Likewise.
20735         * convert.c: Likewise.
20736         * coverage.c: Likewise.
20737         * cppbuiltin.c: Likewise.
20738         * cprop.c: Likewise.
20739         * cse.c: Likewise.
20740         * cselib.c: Likewise.
20741         * data-streamer-in.c: Likewise.
20742         * data-streamer-out.c: Likewise.
20743         * data-streamer.c: Likewise.
20744         * dbxout.c: Likewise.
20745         * dce.c: Likewise.
20746         * ddg.c: Likewise.
20747         * debug.c: Likewise.
20748         * df-core.c: Likewise.
20749         * df-problems.c: Likewise.
20750         * df-scan.c: Likewise.
20751         * df.h: Likewise.
20752         * dfp.c: Likewise.
20753         * dojump.c: Likewise.
20754         * dominance.c: Likewise.
20755         * domwalk.c: Likewise.
20756         * double-int.c: Likewise.
20757         * dse.c: Likewise.
20758         * dumpfile.c: Likewise.
20759         * dwarf2asm.c: Likewise.
20760         * dwarf2cfi.c: Likewise.
20761         * dwarf2out.c: Likewise.
20762         * dwarf2out.h: Likewise.
20763         * emit-rtl.c: Likewise.
20764         * et-forest.c: Likewise.
20765         * except.c: Likewise.
20766         * explow.c: Likewise.
20767         * expmed.c: Likewise.
20768         * expr.c: Likewise.
20769         * final.c: Likewise.
20770         * fixed-value.c: Likewise.
20771         * fold-const.c: Likewise.
20772         * function.c: Likewise.
20773         * fwprop.c: Likewise.
20774         * gcc-plugin.h: Likewise.
20775         * gcse.c: Likewise.
20776         * generic-match-head.c: Likewise.
20777         * ggc-page.c: Likewise.
20778         * gimple-builder.c: Likewise.
20779         * gimple-expr.c: Likewise.
20780         * gimple-fold.c: Likewise.
20781         * gimple-iterator.c: Likewise.
20782         * gimple-low.c: Likewise.
20783         * gimple-match-head.c: Likewise.
20784         * gimple-pretty-print.c: Likewise.
20785         * gimple-ssa-isolate-paths.c: Likewise.
20786         * gimple-ssa-strength-reduction.c: Likewise.
20787         * gimple-streamer-in.c: Likewise.
20788         * gimple-streamer-out.c: Likewise.
20789         * gimple-streamer.h: Likewise.
20790         * gimple-walk.c: Likewise.
20791         * gimple.c: Likewise.
20792         * gimplify-me.c: Likewise.
20793         * gimplify.c: Likewise.
20794         * godump.c: Likewise.
20795         * graph.c: Likewise.
20796         * graphite-blocking.c: Likewise.
20797         * graphite-dependences.c: Likewise.
20798         * graphite-interchange.c: Likewise.
20799         * graphite-isl-ast-to-gimple.c: Likewise.
20800         * graphite-optimize-isl.c: Likewise.
20801         * graphite-poly.c: Likewise.
20802         * graphite-scop-detection.c: Likewise.
20803         * graphite-sese-to-poly.c: Likewise.
20804         * graphite.c: Likewise.
20805         * haifa-sched.c: Likewise.
20806         * hooks.h: Likewise.
20807         * hw-doloop.c: Likewise.
20808         * ifcvt.c: Likewise.
20809         * incpath.c: Likewise.
20810         * init-regs.c: Likewise.
20811         * internal-fn.c: Likewise.
20812         * ipa-chkp.c: Likewise.
20813         * ipa-comdats.c: Likewise.
20814         * ipa-cp.c: Likewise.
20815         * ipa-devirt.c: Likewise.
20816         * ipa-icf-gimple.c: Likewise.
20817         * ipa-icf.c: Likewise.
20818         * ipa-inline-analysis.c: Likewise.
20819         * ipa-inline-transform.c: Likewise.
20820         * ipa-inline.c: Likewise.
20821         * ipa-polymorphic-call.c: Likewise.
20822         * ipa-profile.c: Likewise.
20823         * ipa-prop.c: Likewise.
20824         * ipa-pure-const.c: Likewise.
20825         * ipa-ref.c: Likewise.
20826         * ipa-reference.c: Likewise.
20827         * ipa-split.c: Likewise.
20828         * ipa-utils.c: Likewise.
20829         * ipa-visibility.c: Likewise.
20830         * ipa.c: Likewise.
20831         * ira-build.c: Likewise.
20832         * ira-color.c: Likewise.
20833         * ira-conflicts.c: Likewise.
20834         * ira-costs.c: Likewise.
20835         * ira-emit.c: Likewise.
20836         * ira-lives.c: Likewise.
20837         * ira.c: Likewise.
20838         * jump.c: Likewise.
20839         * langhooks.c: Likewise.
20840         * lcm.c: Likewise.
20841         * loop-doloop.c: Likewise.
20842         * loop-init.c: Likewise.
20843         * loop-invariant.c: Likewise.
20844         * loop-iv.c: Likewise.
20845         * loop-unroll.c: Likewise.
20846         * lower-subreg.c: Likewise.
20847         * lra-assigns.c: Likewise.
20848         * lra-coalesce.c: Likewise.
20849         * lra-constraints.c: Likewise.
20850         * lra-eliminations.c: Likewise.
20851         * lra-lives.c: Likewise.
20852         * lra-remat.c: Likewise.
20853         * lra-spills.c: Likewise.
20854         * lra.c: Likewise.
20855         * lto-cgraph.c: Likewise.
20856         * lto-compress.c: Likewise.
20857         * lto-opts.c: Likewise.
20858         * lto-section-in.c: Likewise.
20859         * lto-section-out.c: Likewise.
20860         * lto-streamer-in.c: Likewise.
20861         * lto-streamer-out.c: Likewise.
20862         * lto-streamer.c: Likewise.
20863         * mcf.c: Likewise.
20864         * mode-switching.c: Likewise.
20865         * modulo-sched.c: Likewise.
20866         * omega.c: Likewise.
20867         * omp-low.c: Likewise.
20868         * optabs.c: Likewise.
20869         * opts-global.c: Likewise.
20870         * passes.c: Likewise.
20871         * plugin.c: Likewise.
20872         * postreload-gcse.c: Likewise.
20873         * postreload.c: Likewise.
20874         * predict.c: Likewise.
20875         * print-rtl.c: Likewise.
20876         * print-tree.c: Likewise.
20877         * profile.c: Likewise.
20878         * real.c: Likewise.
20879         * realmpfr.c: Likewise.
20880         * realmpfr.h: Likewise.
20881         * recog.c: Likewise.
20882         * ree.c: Likewise.
20883         * reg-stack.c: Likewise.
20884         * regcprop.c: Likewise.
20885         * reginfo.c: Likewise.
20886         * regrename.c: Likewise.
20887         * regs.h: Likewise.
20888         * regstat.c: Likewise.
20889         * reload.c: Likewise.
20890         * reload1.c: Likewise.
20891         * reorg.c: Likewise.
20892         * resource.c: Likewise.
20893         * rtl-chkp.c: Likewise.
20894         * rtlanal.c: Likewise.
20895         * rtlhooks.c: Likewise.
20896         * sanopt.c: Likewise.
20897         * sched-deps.c: Likewise.
20898         * sched-ebb.c: Likewise.
20899         * sched-rgn.c: Likewise.
20900         * sched-vis.c: Likewise.
20901         * sdbout.c: Likewise.
20902         * sel-sched-dump.c: Likewise.
20903         * sel-sched-ir.c: Likewise.
20904         * sel-sched.c: Likewise.
20905         * sese.c: Likewise.
20906         * shrink-wrap.c: Likewise.
20907         * shrink-wrap.h: Likewise.
20908         * simplify-rtx.c: Likewise.
20909         * stack-ptr-mod.c: Likewise.
20910         * statistics.c: Likewise.
20911         * stmt.c: Likewise.
20912         * stor-layout.c: Likewise.
20913         * store-motion.c: Likewise.
20914         * stringpool.c: Likewise.
20915         * symtab.c: Likewise.
20916         * target-globals.c: Likewise.
20917         * targhooks.c: Likewise.
20918         * toplev.c: Likewise.
20919         * tracer.c: Likewise.
20920         * trans-mem.c: Likewise.
20921         * tree-affine.c: Likewise.
20922         * tree-affine.h: Likewise.
20923         * tree-browser.c: Likewise.
20924         * tree-call-cdce.c: Likewise.
20925         * tree-cfg.c: Likewise.
20926         * tree-cfgcleanup.c: Likewise.
20927         * tree-chkp-opt.c: Likewise.
20928         * tree-chkp.c: Likewise.
20929         * tree-chrec.c: Likewise.
20930         * tree-complex.c: Likewise.
20931         * tree-data-ref.c: Likewise.
20932         * tree-dfa.c: Likewise.
20933         * tree-diagnostic.c: Likewise.
20934         * tree-dump.c: Likewise.
20935         * tree-eh.c: Likewise.
20936         * tree-emutls.c: Likewise.
20937         * tree-if-conv.c: Likewise.
20938         * tree-inline.c: Likewise.
20939         * tree-into-ssa.c: Likewise.
20940         * tree-iterator.c: Likewise.
20941         * tree-loop-distribution.c: Likewise.
20942         * tree-nested.c: Likewise.
20943         * tree-nrv.c: Likewise.
20944         * tree-object-size.c: Likewise.
20945         * tree-outof-ssa.c: Likewise.
20946         * tree-parloops.c: Likewise.
20947         * tree-phinodes.c: Likewise.
20948         * tree-predcom.c: Likewise.
20949         * tree-pretty-print.c: Likewise.
20950         * tree-pretty-print.h: Likewise.
20951         * tree-profile.c: Likewise.
20952         * tree-scalar-evolution.c: Likewise.
20953         * tree-sra.c: Likewise.
20954         * tree-ssa-address.c: Likewise.
20955         * tree-ssa-alias.c: Likewise.
20956         * tree-ssa-ccp.c: Likewise.
20957         * tree-ssa-coalesce.c: Likewise.
20958         * tree-ssa-copy.c: Likewise.
20959         * tree-ssa-copyrename.c: Likewise.
20960         * tree-ssa-dce.c: Likewise.
20961         * tree-ssa-dom.c: Likewise.
20962         * tree-ssa-dse.c: Likewise.
20963         * tree-ssa-forwprop.c: Likewise.
20964         * tree-ssa-ifcombine.c: Likewise.
20965         * tree-ssa-live.c: Likewise.
20966         * tree-ssa-loop-ch.c: Likewise.
20967         * tree-ssa-loop-im.c: Likewise.
20968         * tree-ssa-loop-ivcanon.c: Likewise.
20969         * tree-ssa-loop-ivopts.c: Likewise.
20970         * tree-ssa-loop-manip.c: Likewise.
20971         * tree-ssa-loop-niter.c: Likewise.
20972         * tree-ssa-loop-prefetch.c: Likewise.
20973         * tree-ssa-loop-unswitch.c: Likewise.
20974         * tree-ssa-loop.c: Likewise.
20975         * tree-ssa-loop.h: Likewise.
20976         * tree-ssa-math-opts.c: Likewise.
20977         * tree-ssa-operands.c: Likewise.
20978         * tree-ssa-phiopt.c: Likewise.
20979         * tree-ssa-phiprop.c: Likewise.
20980         * tree-ssa-pre.c: Likewise.
20981         * tree-ssa-propagate.c: Likewise.
20982         * tree-ssa-reassoc.c: Likewise.
20983         * tree-ssa-sccvn.c: Likewise.
20984         * tree-ssa-scopedtables.c: Likewise.
20985         * tree-ssa-sink.c: Likewise.
20986         * tree-ssa-strlen.c: Likewise.
20987         * tree-ssa-structalias.c: Likewise.
20988         * tree-ssa-tail-merge.c: Likewise.
20989         * tree-ssa-ter.c: Likewise.
20990         * tree-ssa-threadedge.c: Likewise.
20991         * tree-ssa-threadupdate.c: Likewise.
20992         * tree-ssa-uncprop.c: Likewise.
20993         * tree-ssa-uninit.c: Likewise.
20994         * tree-ssa.c: Likewise.
20995         * tree-ssanames.c: Likewise.
20996         * tree-stdarg.c: Likewise.
20997         * tree-streamer-in.c: Likewise.
20998         * tree-streamer-out.c: Likewise.
20999         * tree-streamer.c: Likewise.
21000         * tree-switch-conversion.c: Likewise.
21001         * tree-tailcall.c: Likewise.
21002         * tree-vect-data-refs.c: Likewise.
21003         * tree-vect-generic.c: Likewise.
21004         * tree-vect-loop-manip.c: Likewise.
21005         * tree-vect-loop.c: Likewise.
21006         * tree-vect-patterns.c: Likewise.
21007         * tree-vect-slp.c: Likewise.
21008         * tree-vect-stmts.c: Likewise.
21009         * tree-vectorizer.c: Likewise.
21010         * tree-vrp.c: Likewise.
21011         * tree.c: Likewise.
21012         * tsan.c: Likewise.
21013         * ubsan.c: Likewise.
21014         * valtrack.c: Likewise.
21015         * value-prof.c: Likewise.
21016         * var-tracking.c: Likewise.
21017         * varasm.c: Likewise.
21018         * varpool.c: Likewise.
21019         * vmsdbgout.c: Likewise.
21020         * vtable-verify.c: Likewise.
21021         * web.c: Likewise.
21022         * wide-int-print.cc: Likewise.
21023         * wide-int-print.h: Likewise.
21024         * wide-int.cc: Likewise.
21025         * xcoffout.c: Likewise.
21026         * config/aarch64/aarch64-builtins.c: Likewise.
21027         * config/aarch64/aarch64.c: Likewise.
21028         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21029         * config/alpha/alpha.c: Likewise.
21030         * config/arc/arc.c: Likewise.
21031         * config/arm/aarch-common.c: Likewise.
21032         * config/arm/arm-builtins.c: Likewise.
21033         * config/arm/arm-c.c: Likewise.
21034         * config/arm/arm.c: Likewise.
21035         * config/avr/avr-c.c: Likewise.
21036         * config/avr/avr-log.c: Likewise.
21037         * config/avr/avr.c: Likewise.
21038         * config/bfin/bfin.c: Likewise.
21039         * config/c6x/c6x.c: Likewise.
21040         * config/cr16/cr16.c: Likewise.
21041         * config/cris/cris.c: Likewise.
21042         * config/darwin-c.c: Likewise.
21043         * config/darwin.c: Likewise.
21044         * config/default-c.c: Likewise.
21045         * config/epiphany/epiphany.c: Likewise.
21046         * config/epiphany/mode-switch-use.c: Likewise.
21047         * config/epiphany/resolve-sw-modes.c: Likewise.
21048         * config/fr30/fr30.c: Likewise.
21049         * config/frv/frv.c: Likewise.
21050         * config/ft32/ft32.c: Likewise.
21051         * config/glibc-c.c: Likewise.
21052         * config/h8300/h8300.c: Likewise.
21053         * config/i386/i386-c.c: Likewise.
21054         * config/i386/i386.c: Likewise.
21055         * config/i386/msformat-c.c: Likewise.
21056         * config/i386/winnt-cxx.c: Likewise.
21057         * config/i386/winnt-stubs.c: Likewise.
21058         * config/i386/winnt.c: Likewise.
21059         * config/ia64/ia64-c.c: Likewise.
21060         * config/ia64/ia64.c: Likewise.
21061         * config/iq2000/iq2000.c: Likewise.
21062         * config/lm32/lm32.c: Likewise.
21063         * config/m32c/m32c-pragma.c: Likewise.
21064         * config/m32c/m32c.c: Likewise.
21065         * config/m32r/m32r.c: Likewise.
21066         * config/m68k/m68k.c: Likewise.
21067         * config/mcore/mcore.c: Likewise.
21068         * config/mep/mep-pragma.c: Likewise.
21069         * config/mep/mep.c: Likewise.
21070         * config/microblaze/microblaze-c.c: Likewise.
21071         * config/microblaze/microblaze.c: Likewise.
21072         * config/mips/mips.c: Likewise.
21073         * config/mmix/mmix.c: Likewise.
21074         * config/mn10300/mn10300.c: Likewise.
21075         * config/moxie/moxie.c: Likewise.
21076         * config/msp430/msp430-c.c: Likewise.
21077         * config/msp430/msp430.c: Likewise.
21078         * config/nds32/nds32-cost.c: Likewise.
21079         * config/nds32/nds32-fp-as-gp.c: Likewise.
21080         * config/nds32/nds32-intrinsic.c: Likewise.
21081         * config/nds32/nds32-isr.c: Likewise.
21082         * config/nds32/nds32-md-auxiliary.c: Likewise.
21083         * config/nds32/nds32-memory-manipulation.c: Likewise.
21084         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21085         * config/nds32/nds32-predicates.c: Likewise.
21086         * config/nds32/nds32.c: Likewise.
21087         * config/nios2/nios2.c: Likewise.
21088         * config/nvptx/nvptx.c: Likewise.
21089         * config/pa/pa.c: Likewise.
21090         * config/pdp11/pdp11.c: Likewise.
21091         * config/rl78/rl78-c.c: Likewise.
21092         * config/rl78/rl78.c: Likewise.
21093         * config/rs6000/rs6000-c.c: Likewise.
21094         * config/rs6000/rs6000.c: Likewise.
21095         * config/rx/rx.c: Likewise.
21096         * config/s390/s390-c.c: Likewise.
21097         * config/s390/s390.c: Likewise.
21098         * config/sh/sh-c.c: Likewise.
21099         * config/sh/sh-mem.cc: Likewise.
21100         * config/sh/sh.c: Likewise.
21101         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21102         * config/sh/sh_treg_combine.cc: Likewise.
21103         * config/sol2-c.c: Likewise.
21104         * config/sol2-cxx.c: Likewise.
21105         * config/sol2-stubs.c: Likewise.
21106         * config/sol2.c: Likewise.
21107         * config/sparc/sparc-c.c: Likewise.
21108         * config/sparc/sparc.c: Likewise.
21109         * config/spu/spu-c.c: Likewise.
21110         * config/spu/spu.c: Likewise.
21111         * config/stormy16/stormy16.c: Likewise.
21112         * config/tilegx/mul-tables.c: Likewise.
21113         * config/tilegx/tilegx-c.c: Likewise.
21114         * config/tilegx/tilegx.c: Likewise.
21115         * config/tilepro/mul-tables.c: Likewise.
21116         * config/tilepro/tilepro-c.c: Likewise.
21117         * config/tilepro/tilepro.c: Likewise.
21118         * config/v850/v850-c.c: Likewise.
21119         * config/v850/v850.c: Likewise.
21120         * config/vax/vax.c: Likewise.
21121         * config/visium/visium.c: Likewise.
21122         * config/vms/vms-c.c: Likewise.
21123         * config/vms/vms.c: Likewise.
21124         * config/vxworks.c: Likewise.
21125         * config/winnt-c.c: Likewise.
21126         * config/xtensa/xtensa.c: Likewise.
21127         * common/config/bfin/bfin-common.c: Likewise.
21128
21129 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
21130
21131         * tree.h (tree_code_for_canonical_type_merging): New function.
21132         * tree.c (gimple_canonical_types_compatible_p): Use
21133         tree_code_for_canonical_type_merging..
21134
21135 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21136
21137         PR c++/66192
21138         PR target/66200
21139         * doc/tm.texi: Regenerate.
21140         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21141         * target.def (TARGET_RELAXED_ORDERING): Likewise.
21142         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21143         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21144         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21145         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21146         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21147         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21148         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21149
21150 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21151
21152         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21153         register fma steering pass.
21154         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21155         AARCH64_TUNE_FMA_STEERING.
21156
21157 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
21158
21159         * tree.c (verify_type_variant): Verify that type and variant is
21160         compatible.
21161         (gimple_canonical_types_compatible_p): Look for main variants.
21162
21163 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21164
21165         * config.gcc (powerpc*-*-*): Add support for a new configure
21166         option --with-advance-toolchain=<xxx> which overrides using the
21167         default header files, libraries and dynamic linker.
21168
21169         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21170         specs to support the configure --with-advance-toolchain=<xxx>
21171         option.
21172         (INCLUDE_EXTRA_SPEC): Likewise.
21173         (LINK_OS_EXTRA_SPEC32): Likewise.
21174         (LINK_OK_EXTRA_SPEC64): Likewise.
21175         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21176         (DYNAMIC_LINKER_PREFIX): Likewise.
21177         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21178         toolchain support.
21179         (GLIBC_DYNAMIC_LINKER32): Likewise.
21180         (GLIBC_DYNAMIC_LINKER64): Likewise.
21181         (LINK_OS_LINUX_SPEC32): Likewise.
21182         (LINK_OS_LINUX_SPEC64): Likewise.
21183
21184         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21185         configuration option.
21186
21187 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
21188
21189         PR target/66275
21190         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21191         to determine current function ABI.
21192         (ix86_function_value_regno_p): Ditto.
21193
21194 2015-06-03  Martin Liska  <mliska@suse.cz>
21195
21196         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21197         * bitmap.h (struct bitmap_usage): Likewise.
21198         * ggc-common.c (struct ggc_usage): Likewise.
21199         * mem-stats.h (struct mem_location): Likewise.
21200         (struct mem_usage): Likewise.
21201         * vec.c (struct vec_usage): Likewise.
21202
21203 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
21204
21205         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21206         -Bsymbolic.
21207
21208 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
21209
21210         * doc/plugins.texi (enum plugin_event): New event.
21211         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21212         and PLUGIN_FINISH_FUNCTION.
21213         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21214         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21215
21216 2015-06-03  Richard Biener  <rguenther@suse.de>
21217
21218         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21219         compute GROUP_GAP for the first element.
21220         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21221         on in-group gaps.
21222
21223 2015-06-03  Nick Clifton  <nickc@redhat.com>
21224
21225         * config/rl78/rl78-real.md: Add peepholes to avoid a register
21226         copy when calling a function.
21227         * config/rl78/rl78.c (need_to_save): Do not push the frame
21228         pointer in an interrupt handler prologue if it is never used.
21229
21230 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21231
21232         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21233
21234 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
21235
21236         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21237         reference when cloning alias node.
21238
21239 2015-06-03  Martin Liska  <mliska@suse.cz>
21240
21241         * alloc-pool.h (struct pool_usage): Correct space padding.
21242         * ggc-page.c (ggc_print_statistics): Align columns in a report.
21243         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21244         * tree.c (dump_tree_statistics): Align columns in a report.
21245
21246 2015-06-03  Martin Liska  <mliska@suse.cz>
21247
21248         * alloc-pool.c (allocate_pool_descriptor): Remove.
21249         (struct pool_output_info): Likewise.
21250         (print_alloc_pool_statistics): Likewise.
21251         (dump_alloc_pool_statistics): Likewise.
21252         * alloc-pool.h (struct pool_usage): New struct.
21253         (pool_allocator::initialize): Change usage of memory statistics
21254         to a new interface.
21255         (pool_allocator::release): Likewise.
21256         (pool_allocator::allocate): Likewise.
21257         (pool_allocator::remove): Likewise.
21258         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21259         for a pool allocator.
21260         * mem-stats.h (struct mem_location): Add new ctor.
21261         (struct mem_usage): Add counter for number of
21262         instances.
21263         (mem_alloc_description::register_descriptor): New overload of
21264         * mem-stats.h (mem_location::to_string): New function.
21265         * bitmap.h (struct bitmap_usage): Use this new function.
21266         * ggc-common.c (struct ggc_usage): Likewise.
21267         the function.
21268
21269 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
21270
21271         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21272         of GCC_INSN_FLAGS_H block.
21273
21274 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
21275
21276         * explow.c (plus_constant): Update check after force_const_mem call
21277         to see if the value returned is not a NULL_RTX.
21278
21279 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
21280
21281         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21282         remove instumentation thunks calling reachable functions.
21283         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21284         * lto/lto-partition.c (privatize_symbol_name_1): New.
21285         (privatize_symbol_name): Privatize both decl and orig_decl
21286         names for instrumented functions.
21287         * cgraph.c (cgraph_node::verify_node): Add transparent
21288         alias chain check for instrumented node.
21289
21290 2015-06-03  Marek Polacek  <polacek@redhat.com>
21291
21292         PR c/64223
21293         PR c/29358
21294         * tree.c (attribute_value_equal): Handle attribute format.
21295         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21296
21297 2015-06-03  Richard Biener  <rguenther@suse.de>
21298
21299         PR tree-optimization/63916
21300         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21301         Forward-propagate non-invariant addresses by splicing their
21302         reference ops if the result isn't going to be used by PRE.
21303         (vn_reference_lookup_3): Remove pointless assert.
21304
21305 2015-06-03  Richard Biener  <rguenther@suse.de>
21306
21307         PR tree-optimization/66375
21308         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21309         add to the evolution before following SSA edges.
21310
21311 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
21312
21313         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21314         (dump_use, dump_cand, find_induction_variables): Pass new argument
21315         to dump_iv.
21316         (record_use): Preserve the ssa name information in IV.
21317
21318 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
21319
21320         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21321         NO_MODE_TEST.
21322         (add_mode_tests): Don't add mode tests if the predicate only
21323         accepts scalar constant integers.  Otherwise, allow the mode
21324         of "op" to be VOIDmode if the predicate does accept such integers.
21325
21326 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
21327
21328         PR target/66258
21329         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21330         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21331         (aarch64_secondary_reload): Likewise
21332         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21333         to !TARGET_FLOAT.
21334         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21335         Likewise.
21336
21337 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
21338             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21339
21340         PR target/65768
21341         * cprop.c (try_replace_reg): Check cost of constants before propagating.
21342
21343 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21344
21345         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21346         provide access to the IBM extended double floating point mode if
21347         long double is IEEE 128-bit floating point.
21348         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21349         point if long double is the IBM extended double type.
21350
21351         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21352         enable adding IEEE 128-bit floating point support.
21353         (-mfloat128-software): Likewise.
21354         (-mfloat128-sw): Likewise.
21355
21356         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21357         128-bit floating point types to occupy any register if
21358         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
21359         -mfloat128-software is enabled.
21360         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21361         support.
21362         (rs6000_option_override_internal): Add -mfloat128-* support.
21363         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21364
21365         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21366         and float128 type nodes.
21367         (ieee128_float_type_node): Likewise.
21368         (ibm128_float_type_node): Likewise.
21369
21370 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21371
21372         PR target/66136
21373         * config/aarch64/geniterators.sh: Rewrite in awk.
21374
21375 2015-06-02  Martin Liska  <mliska@suse.cz>
21376
21377         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21378         values to avoid -Wmaybe-uninitialized errors.
21379
21380 2015-06-02  Richard Biener  <rguenther@suse.de>
21381
21382         PR debug/65549
21383         * dwarf2out.c (lookup_context_die): New function.
21384         (resolve_addr): Avoid forcing a full DIE for the
21385         target of a DW_TAG_GNU_call_site during late compilation.
21386         Instead create a stub DIE without a type if we have a
21387         context DIE present.
21388
21389 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
21390
21391         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21392
21393 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
21394
21395         PR tree-optimization/48052
21396         * cfgloop.h (struct control_iv): New.
21397         (struct loop): New field control_ivs.
21398         * tree-ssa-loop-niter.c : Include "stor-layout.h".
21399         (number_of_iterations_lt): Set no_overflow information.
21400         (number_of_iterations_exit): Init control iv in niter struct.
21401         (record_control_iv): New.
21402         (estimate_numbers_of_iterations_loop): Call record_control_iv.
21403         (loop_exits_before_overflow): New.  Interface factored out of
21404         scev_probably_wraps_p.
21405         (scev_probably_wraps_p): Factor loop niter related code into
21406         loop_exits_before_overflow.
21407         (free_numbers_of_iterations_estimates_loop): Free control ivs.
21408         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21409
21410 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
21411
21412         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21413         the target doesn't belong to the current function.
21414
21415 2015-06-02  Marek Polacek  <polacek@redhat.com>
21416
21417         PR middle-end/66345
21418         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21419         get_maxval_strlen does not produce an INTEGER_CST.
21420
21421 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
21422
21423         * config/arc/constraints.md: Use lower-case names in match_code.
21424         * config/mmix/constraints.md: Likewise.
21425
21426 2015-06-02  Richard Biener  <rguenther@suse.de>
21427
21428         PR tree-optimization/65961
21429         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21430         check and clarify dump message.
21431         (vect_build_slp_tree): If all children are built up from scalars
21432         build up the parent from scalars instead.
21433         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21434
21435 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
21436
21437         PR other/65366
21438         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
21439         instead of print ... .
21440
21441 2015-06-02  Alan Modra  <amodra@gmail.com>
21442
21443         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21444         2014-08-11 change.
21445
21446 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
21447
21448         PR tree-optimization/52563
21449         PR tree-optimization/62173
21450         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
21451         (alloc_iv, set_iv): New parameter.
21452         (determine_biv_step): Delete.
21453         (find_bivs): Inline original determine_biv_step.  Pass new
21454         argument to set_iv.
21455         (idx_find_step): Use no_overflow information for conversion.
21456         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21457         resolve_mixers handle folded_casts.
21458         (instantiate_scev_name): Change bool parameter to bool pointer.
21459         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21460         (instantiate_array_ref, instantiate_scev_not): Ditto.
21461         (instantiate_scev_3, instantiate_scev_2): Ditto.
21462         (instantiate_scev_1, instantiate_scev_r): Ditto.
21463         (instantiate_scev_convert, ): Change parameter.  Pass argument
21464         to chrec_convert_aggressive.
21465         (instantiate_scev): Change argument.
21466         (resolve_mixers): New parameter and set it.
21467         (scev_const_prop): New argument.
21468         * tree-scalar-evolution.h (resolve_mixers): New parameter.
21469         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21470         of chrec_conert_1.
21471         (chrec_convert): New parameter.  Move definition below.
21472         (chrec_convert_aggressive): New parameter and set it.  Call
21473         convert_affine_scev.
21474         * tree-chrec.h (chrec_convert): New parameter.
21475         (chrec_convert_aggressive): Ditto.
21476
21477 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
21478
21479         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21480         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21481         the LHS of a no-return call if its type has variable size.
21482         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21483         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21484
21485 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
21486
21487         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21488         * config.in: Regenerate.
21489
21490 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
21491
21492         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21493         consecutive accesses within outer-loop with force_vectorize
21494         for references with zero step in inner-loop.
21495
21496 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
21497
21498         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21499         rather than from gcc/build directory.
21500
21501 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
21502
21503         PR target/65697
21504         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21505         for __sync memory models, emit initial loads and final barriers as
21506         appropriate.
21507
21508 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
21509
21510         PR target/65697
21511         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21512         (aarch64_split_atomic_op): Check for __sync memory models, emit
21513         appropriate initial loads and final barriers.
21514
21515 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
21516
21517         * Makefile.in: Fix gcov dependencies that should
21518         not point to a build folder.
21519
21520 2015-06-01  Richard Biener  <rguenther@suse.de>
21521
21522         Revert
21523         2015-05-29  Richard Biener  <rguenther@suse.de>
21524
21525         PR tree-optimization/66314
21526         * tree-ssa-threadupdate.c (create_block_for_threading): Add
21527         parameter that says which loop the new block belongs to.
21528         (ssa_create_duplicates): Blocks duplicated for the threaded
21529         path belong to the loop of the thread destination.
21530
21531 2015-06-01  Martin Liska  <mliska@suse.cz>
21532
21533         * sched-deps.c: Include pool-alloc.h before
21534         cselib.h header file is included.
21535
21536 2015-06-01  Richard Biener  <rguenther@suse.de>
21537
21538         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21539         functions.
21540
21541 2015-06-01  Martin Liska  <mliska@suse.cz>
21542
21543         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21544         a function local variable.
21545
21546 2015-06-01  Martin Liska  <mliska@suse.cz>
21547
21548         * alloc-pool.c (create_alloc_pool): Remove.
21549         (empty_alloc_pool): Likewise.
21550         (free_alloc_pool): Likewise.
21551         (free_alloc_pool_if_empty): Likewise.
21552         (pool_alloc): Likewise.
21553         (pool_free): Likewise.
21554         * alloc-pool.h: Remove old declarations.
21555
21556 2015-06-01  Martin Liska  <mliska@suse.cz>
21557
21558         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21559         (ira_create_object): Likewise.
21560         (ira_create_allocno): Likewise.
21561         (ira_create_live_range): Likewise.
21562         (copy_live_range): Likewise.
21563         (ira_finish_live_range): Likewise.
21564         (ira_free_allocno_costs): Likewise.
21565         (finish_allocno): Likewise.
21566         (finish_allocnos): Likewise.
21567         (initiate_prefs): Likewise.
21568         (ira_create_pref): Likewise.
21569         (finish_pref): Likewise.
21570         (finish_prefs): Likewise.
21571         (initiate_copies): Likewise.
21572         (ira_create_copy): Likewise.
21573         (finish_copy): Likewise.
21574         (finish_copies): Likewise.
21575         (finish_prefs): Likewise.
21576
21577 2015-06-01  Martin Liska  <mliska@suse.cz>
21578
21579         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21580         (allocate_and_init_ipcp_value): Likewise.
21581         (ipcp_lattice::add_value): Likewise.
21582         (merge_agg_lats_step): Likewise.
21583         (ipcp_driver): Likewise.
21584         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21585         (ipa_free_all_structures_after_iinln): Likewise.
21586         * ipa-prop.h: Likewise.
21587
21588 2015-06-01  Martin Liska  <mliska@suse.cz>
21589
21590         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21591         pool allocator.
21592         (set_hint_predicate): Likewise.
21593         (inline_summary_alloc): Likewise.
21594         (reset_inline_edge_summary): Likewise.
21595         (reset_inline_summary): Likewise.
21596         (set_cond_stmt_execution_predicate): Likewise.
21597         (set_switch_stmt_execution_predicate): Likewise.
21598         (compute_bb_predicates): Likewise.
21599         (estimate_function_body_sizes): Likewise.
21600         (inline_free_summary): Likewise.
21601
21602 2015-06-01  Martin Liska  <mliska@suse.cz>
21603
21604         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21605         (ipa_edge_duplication_hook): Likewise.
21606         (ipa_free_all_structures_after_ipa_cp): Likewise.
21607         (ipa_free_all_structures_after_iinln): Likewise.
21608
21609 2015-06-01  Martin Liska  <mliska@suse.cz>
21610
21611         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21612         (ipa_profile_generate_summary): Likewise.
21613         (ipa_profile_read_summary): Likewise.
21614         (ipa_profile): Likewise.
21615
21616 2015-06-01  Martin Liska  <mliska@suse.cz>
21617
21618         * tree-ssa-structalias.c (new_var_info): Use new type-based
21619         pool allocator.
21620         (new_constraint): Likewise.
21621         (init_alias_vars): Likewise.
21622         (delete_points_to_sets): Likewise.
21623
21624 2015-06-01  Martin Liska  <mliska@suse.cz>
21625
21626         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21627         (free_strinfo): Likewise.
21628         (pass_strlen::execute): Likewise.
21629
21630 2015-06-01  Martin Liska  <mliska@suse.cz>
21631
21632         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21633         pool allocator.
21634         (vn_reference_insert_pieces): Likewise.
21635         (vn_phi_insert): Likewise.
21636         (visit_reference_op_call): Likewise.
21637         (copy_phi): Likewise.
21638         (copy_reference): Likewise.
21639         (process_scc): Likewise.
21640         (allocate_vn_table): Likewise.
21641         (free_vn_table): Likewise.
21642
21643 2015-06-01  Martin Liska  <mliska@suse.cz>
21644
21645         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21646         pool allocator.
21647         (add_repeat_to_ops_vec): Likewise.
21648         (get_ops): Likewise.
21649         (maybe_optimize_range_tests): Likewise.
21650         (init_reassoc): Likewise.
21651         (fini_reassoc): Likewise.
21652
21653 2015-06-01  Martin Liska  <mliska@suse.cz>
21654
21655         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21656         pool allocator.
21657         (bitmap_set_new): Likewise.
21658         (get_or_alloc_expr_for_constant): Likewise.
21659         (get_or_alloc_expr_for): Likewise.
21660         (phi_translate_1): Likewise.
21661         (compute_avail): Likewise.
21662         (init_pre): Likewise.
21663         (fini_pre): Likewise.
21664
21665 2015-06-01  Martin Liska  <mliska@suse.cz>
21666
21667         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21668         (delete_dep_node): Likewise.
21669         (create_deps_list): Likewise.
21670         (free_deps_list): Likewise.
21671         (sched_deps_init): Likewise.
21672         (sched_deps_finish): Likewise.
21673
21674 2015-06-01  Martin Liska  <mliska@suse.cz>
21675
21676         * regcprop.c (free_debug_insn_changes): Use new type-based
21677         pool allocator.
21678         (replace_oldest_value_reg): Likewise.
21679         (pass_cprop_hardreg::execute): Likewise.
21680
21681 2015-06-01  Martin Liska  <mliska@suse.cz>
21682
21683         * ira-build.c (initiate_cost_vectors): Use new type-based
21684         pool allocator.
21685         (ira_allocate_cost_vector): Likewise.
21686         (ira_free_cost_vector): Likewise.
21687         (finish_cost_vectors): Likewise.
21688
21689 2015-06-01  Martin Liska  <mliska@suse.cz>
21690
21691         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21692         pool allocator.
21693         (free_sched_pools): Likewise.
21694         * sel-sched-ir.h (_list_alloc): Likewise.
21695         (_list_remove): Likewise.
21696
21697 2015-06-01  Martin Liska  <mliska@suse.cz>
21698
21699         * stmt.c (add_case_node): Use new type-based pool allocator.
21700         (expand_case): Likewise.
21701         (expand_sjlj_dispatch_table): Likewise.
21702
21703 2015-06-01  Martin Liska  <mliska@suse.cz>
21704
21705         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21706         (free_bb): Likewise.
21707         (pass_cse_reciprocals::execute): Likewise.
21708
21709 2015-06-01  Martin Liska  <mliska@suse.cz>
21710
21711         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21712         (sra_deinitialize) Likewise.
21713         (create_access_1) Likewise.
21714         (build_accesses_from_assign) Likewise.
21715         (create_artificial_child_access) Likewise.
21716
21717 2015-06-01  Martin Liska  <mliska@suse.cz>
21718
21719         * dse.c (get_group_info):Use new type-based pool allocator.
21720         (dse_step0) Likewise.
21721         (free_store_info) Likewise.
21722         (delete_dead_store_insn) Likewise.
21723         (free_read_records) Likewise.
21724         (record_store) Likewise.
21725         (replace_read) Likewise.
21726         (check_mem_read_rtx) Likewise.
21727         (scan_insn) Likewise.
21728         (dse_step1) Likewise.
21729         (dse_step7) Likewise.
21730
21731 2015-06-01  Martin Liska  <mliska@suse.cz>
21732
21733         * df-scan.c (struct df_scan_problem_data):Use new type-based
21734         pool allocator.
21735         (df_scan_free_internal) Likewise.
21736         (df_scan_alloc) Likewise.
21737         (df_grow_reg_info) Likewise.
21738         (df_free_ref) Likewise.
21739         (df_insn_create_insn_record) Likewise.
21740         (df_mw_hardreg_chain_delete) Likewise.
21741         (df_insn_info_delete) Likewise.
21742         (df_free_collection_rec) Likewise.
21743         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21744         (df_sort_and_compress_mws) Likewise.
21745         (df_ref_create_structure) Likewise.
21746         (df_ref_record) Likewise.
21747
21748 2015-06-01  Martin Liska  <mliska@suse.cz>
21749
21750         * df-problems.c (df_chain_create):Use new type-based pool allocator.
21751         (df_chain_unlink_1) Likewise.
21752         (df_chain_unlink) Likewise.
21753         (df_chain_remove_problem) Likewise.
21754         (df_chain_alloc) Likewise.
21755         (df_chain_free) Likewise.
21756         * df.h (struct dataflow) Likewise.
21757
21758 2015-06-01  Martin Liska  <mliska@suse.cz>
21759
21760         * cselib.c (new_elt_list):Use new type-based pool allocator.
21761         (new_elt_loc_list) Likewise.
21762         (unchain_one_elt_list) Likewise.
21763         (unchain_one_elt_loc_list) Likewise.
21764         (unchain_one_value) Likewise.
21765         (new_cselib_val) Likewise.
21766         (cselib_init) Likewise.
21767         (cselib_finish) Likewise.
21768
21769 2015-06-01  Martin Liska  <mliska@suse.cz>
21770
21771         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21772         (sh_reorg) Likewise.
21773
21774 2015-06-01  Martin Liska  <mliska@suse.cz>
21775
21776         * cfg.c (initialize_original_copy_tables):Use new type-based
21777         pool allocator.
21778         (free_original_copy_tables) Likewise.
21779         (copy_original_table_clear) Likewise.
21780         (copy_original_table_set) Likewise.
21781
21782 2015-06-01  Martin Liska  <mliska@suse.cz>
21783
21784         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21785         pool allocator.
21786         (asan_mem_ref_new) Likewise.
21787         (free_mem_ref_resources) Likewise.
21788
21789 2015-06-01  Martin Liska  <mliska@suse.cz>
21790
21791         * var-tracking.c (variable_htab_free):Use new type-based
21792         pool allocator.
21793         (attrs_list_clear) Likewise.
21794         (attrs_list_insert) Likewise.
21795         (attrs_list_copy) Likewise.
21796         (shared_hash_unshare) Likewise.
21797         (shared_hash_destroy) Likewise.
21798         (unshare_variable) Likewise.
21799         (var_reg_delete_and_set) Likewise.
21800         (var_reg_delete) Likewise.
21801         (var_regno_delete) Likewise.
21802         (drop_overlapping_mem_locs) Likewise.
21803         (variable_union) Likewise.
21804         (insert_into_intersection) Likewise.
21805         (canonicalize_values_star) Likewise.
21806         (variable_merge_over_cur) Likewise.
21807         (dataflow_set_merge) Likewise.
21808         (remove_duplicate_values) Likewise.
21809         (variable_post_merge_new_vals) Likewise.
21810         (dataflow_set_preserve_mem_locs) Likewise.
21811         (dataflow_set_remove_mem_locs) Likewise.
21812         (variable_from_dropped) Likewise.
21813         (variable_was_changed) Likewise.
21814         (set_slot_part) Likewise.
21815         (clobber_slot_part) Likewise.
21816         (delete_slot_part) Likewise.
21817         (loc_exp_insert_dep) Likewise.
21818         (notify_dependents_of_changed_value) Likewise.
21819         (emit_notes_for_differences_1) Likewise.
21820         (vt_emit_notes) Likewise.
21821         (vt_initialize) Likewise.
21822         (vt_finalize) Likewise.
21823
21824 2015-06-01  Martin Liska  <mliska@suse.cz>
21825
21826         * ira-color.c (init_update_cost_records):Use new type-based
21827         pool allocator.
21828         (get_update_cost_record) Likewise.
21829         (free_update_cost_record_list) Likewise.
21830         (finish_update_cost_records) Likewise.
21831         (initiate_cost_update) Likewise.
21832
21833 2015-06-01  Martin Liska  <mliska@suse.cz>
21834
21835         * lra.c (init_insn_regs): Use new type-based pool allocator.
21836         (new_insn_reg) Likewise.
21837         (free_insn_reg) Likewise.
21838         (free_insn_regs) Likewise.
21839         (finish_insn_regs) Likewise.
21840         (init_insn_recog_data) Likewise.
21841         (init_reg_info) Likewise.
21842         (finish_reg_info) Likewise.
21843         (lra_free_copies) Likewise.
21844         (lra_create_copy) Likewise.
21845         (invalidate_insn_data_regno_info) Likewise.
21846
21847 2015-06-01  Martin Liska  <mliska@suse.cz>
21848
21849         * lra-lives.c (free_live_range): Use new type-based pool allocator.
21850         (free_live_range_list) Likewise.
21851         (create_live_range) Likewise.
21852         (copy_live_range) Likewise.
21853         (lra_merge_live_ranges) Likewise.
21854         (remove_some_program_points_and_update_live_ranges) Likewise.
21855         (lra_live_ranges_init) Likewise.
21856         (lra_live_ranges_finish) Likewise.
21857
21858 2015-06-01  Martin Liska  <mliska@suse.cz>
21859
21860         * et-forest.c (et_new_occ): Use new type-based pool allocator.
21861         (et_new_tree): Likewise.
21862         (et_free_tree): Likewise.
21863         (et_free_tree_force): Likewise.
21864         (et_free_pools): Likewise.
21865         (et_split): Likewise.
21866
21867 2015-06-01  Martin Liska  <mliska@suse.cz>
21868
21869         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21870         to header file.
21871         * alloc-pool.h (pool_allocator::pool_allocator): New function.
21872         (pool_allocator::release): Likewise.
21873         (inline pool_allocator::release_if_empty): Likewise.
21874         (inline pool_allocator::~pool_allocator): Likewise.
21875         (pool_allocator::allocate): Likewise.
21876         (pool_allocator::remove): Likewise.
21877
21878 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
21879
21880         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21881         in comment.
21882
21883 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
21884
21885         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21886         to fusible_ops.
21887         * config/arm/arm.c (arm_print_tune_info): Likewise.
21888         (arm_macro_fusion_p): Likewise.
21889         (arm_macro_fusion_pair_p): Likewise.
21890
21891 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
21892
21893         * config/aarch64/aarch64-protos.h (tune_params): Rename
21894         fuseable_ops to fusible_ops.
21895         * config/aarch64/aarch64.c (generic_tunings): Rename
21896         fuseable_ops to fusible_ops.
21897         (cortexa53_tunings): Likewise.
21898         (cortexa57_tunings): Likewise.
21899         (thunderx_tunings): Likewise.
21900         (xgene1_tunings): Likewise.
21901         (aarch64_macro_fusion_p): Likewise.
21902         (aarch64_macro_fusion_pair_p): Likewise.
21903
21904 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21905
21906         * config/s390/driver-native.c: New file.
21907         * config/s390/x-native: New file.
21908         * config.host: Add new files for s390.
21909         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21910         and -march=native
21911         * config.gcc: Likewise.
21912         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21913         * config/s390/s390-opts.h (enum processor_type): Ditto.
21914         * config/s390/s390.c (s390_option_override): Catch unhandled
21915         PROCESSOR_NATIVE
21916
21917 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
21918
21919         PR target/65527
21920         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21921         redirection for instrumented calls.
21922         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21923         (append_compiler_options): Append -fcheck-pointer-bounds.
21924         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21925         (chkp_redirect_edge): New.
21926         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21927         (chkp_redirect_edge): New.
21928
21929 2015-06-01  Richard Biener  <rguenther@suse.de>
21930
21931         PR tree-optimization/66280
21932         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21933         def-use walking.
21934
21935 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21936
21937         * config/aarch64/aarch64.md
21938         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21939         logic_shift_imm.
21940
21941 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
21942
21943         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21944         Remove obsolete kludge.
21945
21946 2015-06-01  Richard Biener  <rguenther@suse.de>
21947
21948         * tree-ssa-reassoc.c (get_rank): Simplify.
21949
21950 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21951
21952         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21953         * configure: Regenerated.
21954
21955 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
21956
21957         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21958         issue (add space between string literal and macro).
21959         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21960
21961 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
21962
21963         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21964         implict or explicit -fPIE or -fpie.
21965
21966 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
21967
21968         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21969
21970 2015-05-28  DJ Delorie  <dj@redhat.com>
21971
21972         * expmed.c (extract_bit_field_1): Avoid clobbering a
21973         yet-to-be-used base/index register.
21974
21975 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
21976
21977         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21978         (alias_stats): Add num_universal.
21979         (alias_set_subset_of): Special case pointers; be ready for NULL
21980         children.
21981         (alias_sets_conflict_p): Special case pointers; be ready for NULL
21982         children.
21983         (init_alias_set_entry): Break out from ...
21984         (record_alias_subset): ... here; propagate new fields;
21985         allocate children only when really needed.
21986         (get_alias_set): Do less generous pointer globbing.
21987         (dump_alias_stats_in_alias_c): Update statistics.
21988
21989 2015-05-30  Alan Modra  <amodra@gmail.com>
21990
21991         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21992         correct block for use of r12.
21993         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21994
21995 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21996
21997         PR target/66215
21998         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21999         with -mhotpatch=.
22000
22001 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
22002
22003         PR tree-optimization/66142
22004         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
22005         virtual phis that feed themselves.
22006
22007 2015-05-29  Richard Biener  <rguenther@suse.de>
22008
22009         PR tree-optimization/66314
22010         * tree-ssa-threadupdate.c (create_block_for_threading): Add
22011         parameter that says which loop the new block belongs to.
22012         (ssa_create_duplicates): Blocks duplicated for the threaded
22013         path belong to the loop of the thread destination.
22014
22015 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22016
22017         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
22018         to cleanup-saved-temps.
22019         * doc/sourcebuild.texi (Clean up generated test files): Expand
22020         introduction.
22021         (dg-keep-saved-temps): Document new proc.
22022         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
22023         cleanup-saved-temps): Remove.
22024
22025 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
22026
22027         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
22028         gcc_AC_CHECK_DECLS.
22029         * configure: Regenerate.
22030
22031 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
22032
22033         * config/nios2/linux.h (CPP_SPEC): Define.
22034
22035 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
22036
22037         * config/microblaze/linux.h (CPP_SPEC): Define.
22038
22039 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
22040
22041         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
22042         -pthread is specified.
22043
22044 2015-05-28  Richard Biener  <rguenther@suse.de>
22045
22046         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
22047         (vect_fixup_scalar_cycles_with_patterns): Likewise.
22048         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
22049         after pattern recog.
22050         (vect_create_epilog_for_reduction): Properly handle reductions
22051         with patterns.
22052         (vectorizable_reduction): Likewise.
22053         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
22054         reduction chains.
22055         (vect_get_constant_vectors): Create the correct number of
22056         initial values for reductions.
22057         (vect_schedule_slp_instance): Handle reduction chains that are
22058         type changing properly.
22059         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
22060
22061 2015-05-28  Richard Biener  <rguenther@suse.de>
22062
22063         PR tree-optimization/66142
22064         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
22065         values better in memcpy destination handling.  Handle non-aliasing
22066         we discover here.
22067
22068 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
22069
22070         PR target/63810
22071         * config/darwin-c.c (version_components): New global enum.
22072         (parse_version, version_as_legacy_macro)
22073         (version_as_modern_macro, macosx_version_as_macro): New functions.
22074         (version_as_macro): Remove.
22075         (darwin_cpp_builtins): Use new function.
22076
22077 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
22078
22079         * builtins.c (expand_builtin_acc_on_device): Mark parameters
22080         with ATTRIBUTE_UNUSED.
22081
22082 2015-05-28  Julian Brown  <julian@codesourcery.com>
22083
22084         PR libgomp/65742
22085
22086         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
22087         sequence for !ACCEL_COMPILER.
22088
22089 2015-05-28  Nick Clifton  <nickc@redhat.com>
22090
22091         * config/rx/rx.c (push_regs): New function.  Extracts code from...
22092         (rx_expand_prologue): ... here.  Use push_regs to push even small
22093         spans of registers.
22094         (pop_regs): New function.
22095         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
22096         registers.
22097
22098 2015-05-28  Richard Biener  <rguenther@suse.de>
22099
22100         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
22101         member.
22102         (SLP_INSTANCE_BODY_COST_VEC): Remove.
22103         (vect_update_slp_costs_according_to_vf): Likewise.
22104         (vect_slp_analyze_operations): Update prototype.
22105         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
22106         vect_update_slp_costs_according_to_vf, adjust.
22107         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
22108         (vect_analyze_slp_cost_1): Likewise.
22109         (vect_analyze_slp_cost): Likewise.  Properly deal with
22110         widening reduction ops.  Commit body costs.
22111         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
22112         cost for loops from here.
22113         (vect_slp_analyze_operations): But do it from here when
22114         the vectorization factor is known and stmts are analyzed.
22115         (vect_bb_vectorization_profitable_p): Simplify.
22116         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
22117         (vect_update_slp_costs_according_to_vf): Remove.
22118
22119 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
22120             H.J. Lu  <hongjiu.lu@intel.com>
22121
22122         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
22123         (BUILD_CFLAGS): Likewise.
22124         (BUILD_CXXFLAGS): Likewise.
22125         (LINKER): Add @NO_PIE_FLAG@.
22126         (BUILD_LDFLAGS): Likewise.
22127         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22128         --enable-default-pie.
22129         * common.opt (fPIE): Initialize to -1.
22130         (fpie): Likewise.
22131         (no-pie): New option.
22132         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22133         * configure.ac: Add --enable-default-pie.
22134         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
22135         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
22136         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
22137         * gcc.c (NO_PIE_SPEC): New.
22138         (PIE_SPEC): Likewise.
22139         (NO_FPIE1_SPEC): Likewise.
22140         (FPIE1_SPEC): Likewise.
22141         (NO_FPIE2_SPEC): Likewise.
22142         (FPIE2_SPEC): Likewise.
22143         (NO_FPIE2_SPEC): Likewise.
22144         (FPIE_SPEC): Likewise.
22145         (NO_FPIE_SPEC): Likewise.
22146         (NO_FPIC1_SPEC): Likewise.
22147         (FPIC1_SPEC): Likewise.
22148         (NO_FPIC2_SPEC): Likewise.
22149         (FPIC2_SPEC): Likewise.
22150         (NO_FPIC2_SPEC): Likewise.
22151         (FPIC_SPEC): Likewise.
22152         (NO_FPIC_SPEC): Likewise.
22153         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22154         (FPIE1_OR_FPIC1_SPEC): Likewise.
22155         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22156         (FPIE2_OR_FPIC2_SPEC): Likewise.
22157         (NO_FPIE_AND_FPIC_SPEC): Likewise.
22158         (FPIE_OR_FPIC_SPEC): Likewise.
22159         (LD_PIE_SPEC): Likewise.
22160         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
22161         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22162         * config/darwin.h (PIE_SPEC): Renamed to ...
22163         (DARWIN_PIE_SPEC): This.
22164         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22165         * config/darwin9.h (PIE_SPEC): Renamed to ...
22166         (DARWIN_PIE_SPEC): This.
22167         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22168         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22169         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22170         FPIE2_OR_FPIC2_SPEC.
22171         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22172         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22173         * config/sol2.h (ASM_PIC_SPEC): Likewise.
22174         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22175         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22176         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22177         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22178         * config/m32r/m32r.h (ASM_SPEC): Likewise.
22179         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22180         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22181         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22182         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22183         * config/sparc/linux.h (ASM_SPEC): Likewise.
22184         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22185         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22186         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22187         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22188         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22189         * config/sparc/sparc.h (ASM_SPEC): Likewise.
22190         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22191         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22192         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22193         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22194         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22195         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22196         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22197         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22198         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22199         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22200         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22201         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22202         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22203         * config/vax/linux.h (ASM_SPEC): Likewise.
22204         * doc/install.texi: Document --enable-default-pie.
22205         * doc/invoke.texi: Document -no-pie.
22206         * config.in: Regenerated.
22207         * configure: Likewise.
22208
22209 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22210
22211         PR rtl-optimization/66168
22212         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22213         can_move_invariant_reg.
22214
22215 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
22216
22217         PR target/66148
22218         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22219         REG_EQUAL note when doing insert.
22220
22221         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22222         instead of "%d" for 'o' operand.
22223
22224 2015-05-27  Nathan Sidwell  <nathan@acm.org>
22225
22226         PR c++/66270
22227         * tree.c (build_pointer_type_for_mode): Canonical type does not
22228         inherit can_alias_all.
22229         (build_reference_type_for_mode): Likewise.
22230
22231 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22232
22233         * expr.h (array_at_struct_end_p): Move to...
22234         (array_ref_element_size): Likewise.
22235         (component_ref_field_offset): Likewise.
22236         * tree.h (array_ref_element_size): ...here.
22237         (array_at_struct_end_p): Likewise.
22238         (component_ref_field_offset): Likewise.
22239         * expr.c (array_ref_element_size): Move to...
22240         (array_ref_low_bound): Likewise.
22241         (array_at_struct_end_p): Likewise.
22242         (array_ref_up_bound): Likewise.
22243         (component_ref_field_offset): Likewise.
22244         * tree.c (array_ref_element_size): ...here.
22245         (array_ref_low_bound): Likewise.
22246         (array_ref_up_bound): Likewise.
22247         (array_at_struct_end_p): Likewise.
22248         (component_ref_field_offset): Likewise.
22249
22250 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
22251             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22252
22253         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22254
22255 2015-05-27  Jason Merrill  <jason@redhat.com>
22256
22257         PR bootstrap/66304
22258         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22259         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22260         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22261
22262 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
22263
22264         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22265         is true.
22266
22267         * statistics.c (statistics_fini_pass): Print pass name.
22268
22269 2015-05-27  Richard Biener  <rguenther@suse.de>
22270
22271         PR tree-optimization/66272
22272         Revert parts of
22273         2014-08-15  Richard Biener  <rguenther@suse.de>
22274
22275         PR tree-optimization/62031
22276         * tree-data-ref.c (dr_analyze_indices): Do not set
22277         DR_UNCONSTRAINED_BASE.
22278         (dr_may_alias_p): All indirect accesses have to go the
22279         formerly DR_UNCONSTRAINED_BASE path.
22280         * tree-data-ref.h (struct indices): Remove
22281         unconstrained_base member.
22282         (DR_UNCONSTRAINED_BASE): Remove.
22283
22284 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
22285
22286         * dwarf2out.c: Remove block_map.
22287         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22288         (gen_lexical_block_die): Same.
22289         (dwarf2out_function_decl): Remove block_map use.
22290         (dwarf2out_c_finalize): Same.
22291         * tree-core.h (struct tree_block): Add die field.
22292         * tree.h (BLOCK_DIE): New.
22293
22294 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22295
22296         PR target/65358
22297         * expr.c (memory_load_overlap): New function.
22298         (emit_push_insn): When pushing partial args to the stack would
22299         clobber the register part load the overlapping part into a pseudo
22300         and put it into the hard reg after pushing.  Change return type
22301         to bool.  Add bool argument.
22302         * expr.h (emit_push_insn): Change return type to bool.
22303         Add bool argument.
22304         * calls.c (expand_call): Cancel sibcall optimization when encountering
22305         partial argument on targets with ARGS_GROW_DOWNWARD and
22306         !STACK_GROWS_DOWNWARD.
22307         (emit_library_call_value_1): Update callsite of emit_push_insn.
22308         (store_one_arg): Likewise.
22309
22310 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
22311
22312         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22313
22314 2015-05-27  Martin Liska  <mliska@suse.cz>
22315
22316         * Makefile.in: Add additional dependencies related to memory report
22317         enhancement.
22318         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22319         * bitmap.c (struct bitmap_descriptor_d): Remove.
22320         (struct loc): Likewise.
22321         (struct bitmap_desc_hasher): Likewise.
22322         (bitmap_desc_hasher::hash): Likewise.
22323         (bitmap_desc_hasher::equal): Likewise.
22324         (get_bitmap_descriptor): Likewise.
22325         (bitmap_register): User new memory descriptor API.
22326         (register_overhead): Likewise.
22327         (bitmap_find_bit): Register nsearches and search_iter statistics.
22328         (struct bitmap_output_info): Remove.
22329         (print_statistics): Likewise.
22330         (dump_bitmap_statistics): Use new memory descriptor.
22331         * bitmap.h (struct bitmap_usage): New class.
22332         * genmatch.c: Extend header file inclusion.
22333         * genpreds.c: Likewise.
22334         * ggc-common.c (struct ggc_usage): New class.
22335         (struct ggc_loc_desc_hasher): Remove.
22336         (ggc_loc_desc_hasher::hash): Likewise.
22337         (ggc_loc_desc_hasher::equal): Likewise.
22338         (struct ggc_ptr_hash_entry): Likewise.
22339         (struct ptr_hash_hasher): Likewise.
22340         (ptr_hash_hasher::hash): Likewise.
22341         (ptr_hash_hasher::equal): Likewise.
22342         (make_loc_descriptor): Likewise.
22343         (ggc_prune_ptr): Likewise.
22344         (dump_ggc_loc_statistics): Use new memory descriptor.
22345         (ggc_record_overhead): Likewise.
22346         (ggc_free_overhead): Likewise.
22347         (final_cmp_statistic): Remove.
22348         (cmp_statistic): Likewise.
22349         (ggc_add_statistics): Liekwise.
22350         (ggc_prune_overhead_list): Likewise.
22351         * hash-map-traits.h: New file.
22352         * hash-map.h (struct default_hashmap_traits): Move the traits to a
22353         separate header file.
22354         * hash-set.h: Pass memory statistics info to ctor.
22355         * hash-table.c (void dump_hash_table_loc_statistics): New function.
22356         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22357         (hash_table::~hash_table): Register memory release operation.
22358         (hash_table::alloc_entries): Handle memory allocation operation.
22359         (hash_table::expand): Likewise.
22360         * inchash.c (iterative_hash_hashval_t): Move implementation to header
22361         file.
22362         (iterative_hash_host_wide_int): Likewise.
22363         * inchash.h (class hash): Likewise.
22364         * mem-stats-traits.h: New file.
22365         * mem-stats.h: New file.
22366         (mem_location): Add new class.
22367         (mem_usage): Likewise.
22368         (mem_alloc_description): Likewise.
22369         * sese.c: Add new header file inclusision.
22370         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22371         and hash_set.
22372         * tree-sra.c: Add new header file inclusision.
22373         * vec.c (struct vec_descriptor): Remove.
22374         (hash_descriptor): Likewise.
22375         (struct vec_usage): Likewise.
22376         (struct ptr_hash_entry): Likewise.
22377         (hash_ptr): Likewise.
22378         (eq_ptr): Likewise.
22379         (vec_prefix::register_overhead): Use new memory descriptor API.
22380         (vec_prefix::release_overhead): Likewise.
22381         (add_statistics): Remove.
22382         (dump_vec_loc_statistics): Use new memory descriptor API.
22383         * vec.h (struct vec_prefix): Likewise.
22384         (va_heap::reserve): Likewise.
22385         (va_heap::release): Likewise.
22386         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22387
22388 2015-05-27  Richard Biener  <rguenther@suse.de>
22389
22390         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22391         earlier and remove ??? comment.
22392         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22393         and got called from loop analysis bail out.  Always pass the SLP
22394         node to the vectorizable_* functions.
22395         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22396         the premature SLP check here.
22397         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22398         detected SLP stmts.
22399         (vect_detect_hybrid_slp_1): Likewise.
22400
22401 2015-05-26  Jeff Law  <law@redhat.com>
22402
22403         * combine.c (find_split_point): Verify that the shift count is a
22404         constant when choosing (plus (ashift ...)) as a split point.
22405
22406         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22407         No functional changes.
22408
22409 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
22410
22411         * ipa-polymorphic-call.c
22412         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22413         case when call target is already known.
22414
22415 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
22416
22417         PR target/65979
22418         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22419         take into account the case that operands[1] and operands[2]
22420         are the same register.
22421
22422 2015-05-26  Michael Matz  <matz@suse.de>
22423
22424         PR middle-end/66251
22425
22426         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22427         stores.
22428         (vect_create_vectorized_demotion_stmts): Always set
22429         STMT_VINFO_VEC_STMT, also with SLP.
22430         (vectorizable_store): Handle strided group stores.
22431
22432 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22433
22434         PR target/66049
22435         * config/aarch64/aarch64.md
22436         (*adds_shift_imm_<mode>):  New pattern.
22437         (*subs_shift_imm_<mode>):  Likewise.
22438         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
22439         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22440         (*add_uxt<mode>_shift2): Likewise.
22441         (*add_uxtsi_shift2_uxtw): Likewise.
22442         (*sub_uxt<mode>_shift2): Likewise.
22443         (*sub_uxtsi_shift2_uxtw): Likewise.
22444
22445 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
22446
22447         * config/rs6000/constraints.md (Y, U): Use match_test.
22448
22449 2015-05-26  Christian Bruel  <christian.bruel@st.com>
22450
22451         PR target/52144
22452         * config/arm/arm.c (arm_option_check_internal)
22453         (arm_option_params_internal): Check opts->target_flags to set macros.
22454         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22455         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22456         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22457         (builtin_define): Replaced with def_or_undef_macro.
22458         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22459         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22460         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22461         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22462         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22463         (TARGET_ARM_FEATURE_LDREX_P)
22464         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22465         * config/arm/arm-c.c (def_or_undef_macro): New function.
22466         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22467
22468 2015-05-26  Christian Bruel  <christian.bruel@st.com>
22469
22470         * c-common.h (builtin_define_with_int_value)
22471         (builtin_define_type_sizeof): Declare.
22472         * c-cppbuiltin.c (builtin_define_with_int_value)
22473         (builtin_define_type_sizeof): Externalize.
22474         (builtin_define_std): Cleanup declaration.
22475         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22476         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22477         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22478         (builtin_define, builtin_assert): New macros.
22479
22480 2015-05-26  Richard Biener  <rguenther@suse.de>
22481
22482         PR tree-optimization/66142
22483         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22484         MEM_REFs for the same base address.
22485
22486 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22487
22488         PR ipa/66181
22489         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22490
22491 2015-05-26  Jason Merrill  <jason@redhat.com>
22492
22493         * configure.ac: Set CXXFLAGS for ISL test.
22494         * configure: Regenerate.
22495
22496         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
22497         strstr and basename.
22498         * configure: Regenerate.
22499
22500 2015-05-26  Richard Biener  <rguenther@suse.de>
22501
22502         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22503         X % C -> X & (C - 1) for C being a power-of two to ...
22504         * match.pd: ... patterns.
22505
22506 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
22507
22508         * match.pd (swapped_tcc_comparison): New operator list.
22509         (-A CMP -B): New simplification.
22510         * fold-const.c (fold_comparison): Remove corresponding code.
22511
22512 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
22513
22514         * caller-save.c (init_caller_save): Base temporary register numbers
22515         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22516         * cfgloopanal.c (init_set_costs): Likewise.
22517         * dojump.c (prefer_and_bit_test): Likewise.
22518         * expr.c (init_expr_target): Likewise.
22519         * ira.c (setup_prohibited_mode_move_regs): Likewise.
22520         * lower-subreg.c (init_lower_subreg): Likewise.
22521         * postreload.c (reload_cse_regs_1): Likewise.
22522
22523 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
22524
22525         * gensupport.h (compute_test_codes): Declare.
22526         * gensupport.c (compute_predicate_codes): Rename to...
22527         (compute_test_codes): ...this.  Generalize error message.
22528         (process_define_predicate): Update accordingly.
22529         * genpreds.c (compute_maybe_allows): Delete.
22530         (add_constraint): Use compute_test_codes to determine whether
22531         something can accept a SUBREG, REG or MEM.
22532
22533 2015-05-26  Torvald Riegel  <triegel@redhat.com>
22534
22535         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22536         'memory model' to align with C++11; fix description of memory orders;
22537         fix a few typos.
22538
22539 2015-05-26  Richard Biener  <rguenther@suse.de>
22540
22541         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22542         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
22543         detect whether we apply SLP.  Remove call to
22544         vect_update_slp_costs_according_to_vf.
22545         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22546         vect_update_slp_costs_according_to_vf from here.  Dispatch
22547         to vect_slp_analyze_operations to analyze SLP stmts.
22548         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22549         unused bb_vec_info parameter, adjust assert.
22550         (vect_slp_analyze_operations): Pass in the slp instance tree
22551         instead of bb_vec_info.
22552         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22553         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22554
22555 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
22556
22557         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22558         Q_REGS.  Expand comment.
22559         (REG_CLASS_NAMES): Ditto.
22560         (REG_CLASS_CONTENTS): Ditto.
22561
22562 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
22563
22564         PR target/66274
22565         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22566         when LEGACY_INT_REGNO_P is processed.
22567
22568 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
22569
22570         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22571
22572 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22573
22574         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22575         register if not marked dead/unused, before return.
22576
22577 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
22578
22579         PR lto/66180
22580         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22581         is set; check for assembler name at LTO time.
22582         (type_in_anonymous_namespace): Remove hacks, check that all
22583         anonymous types are called "<anon>"
22584         (odr_type_p): Simplify; add check for "<anon>"
22585         (odr_subtypes_equivalent): Add odr_type_p check.
22586         * tree.c (need_assembler_name_p): Even anonymous namespace needs
22587         assembler name.
22588
22589 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
22590
22591         * ipa-utils.h (method_class_type): Remove.
22592         * cgraphunit.c (walk_polymorphic_call_targets): Use
22593         TYPE_METHOD_BASETYPE.
22594         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22595         on main variants only.
22596         (method_class_type): Remove.
22597         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22598         (build_type_inheritance_graph): Likewise.
22599         * ipa-icf.c (sem_function::equals_wpa): Likewise.
22600         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22601         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22602
22603 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
22604
22605         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22606         is_typedef_decl, typedef_variant_p): Constify.
22607         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22608         is_typedef_decl, typedef_variant_p): Constify.
22609
22610 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22611
22612         * defaults.h (gen_tablejump): New function.
22613         (HAVE_tablejump): Add default value.
22614         * expr.c: Adjust.
22615         * stmt.c: Likewise.
22616
22617 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22618
22619         * defaults.h (gen_store_multiple): New function.
22620         (HAVE_store_multiple): Add default value.
22621         * expr.c (move_block_from_reg): Adjust.
22622
22623 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22624
22625         * defaults.h (gen_load_multiple): New function.
22626         (HAVE_load_multiple): Add default value.
22627         * expr.c (move_block_to_reg): Adjust.
22628
22629 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22630
22631         * defaults.h (gen_mem_signal_fence): New function.
22632         (HAVE_mem_signal_fence): Add default value.
22633         * optabs.c: Adjust.
22634
22635 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22636
22637         * defaults.h (gen_memory_barrier): New function.
22638         (HAVE_memory_barrier): Add default value.
22639         * optabs.c: Adjust.
22640
22641 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22642
22643         * defaults.h (gen_mem_thread_fence): New function.
22644         (HAVE_mem_thread_fence): Add default definition.
22645         * optabs.c: Adjust.
22646
22647 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22648
22649         * combine.c (find_split_point): Check the value of HAVE_lo_sum
22650         instead of if it is defined.
22651         (combine_simplify_rtx): Likewise.
22652         * lra-constraints.c (process_address_1): Likewise.
22653         * config/darwin.c: Adjust.
22654         * genconfig.c (main): Always define HAVE_lo_sum.
22655
22656 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22657
22658         * genmatch.c (parser::parse_operation): Reject expanding
22659         operator-list inside 'for'.
22660
22661 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22662
22663         * genmatch.c (parser::parse_for): Reject iterator if used as
22664         operator-list.
22665
22666 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22667
22668         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22669         after end of id-list.
22670
22671 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
22672
22673         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22674         we do not try to compute canonical type for type that does not need
22675         alias set.
22676         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22677         FUNCITON_TYPE.
22678         * tree.h (type_with_alias_set_p): New.
22679
22680 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
22681
22682         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
22683         function attributes.
22684         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22685
22686 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
22687
22688         * Makefile.in (check_gcc_parallelize): Delete.
22689         (lang_checks_parallelized): Update comment.
22690
22691 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
22692
22693         PR rtl-optimization/66237
22694         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22695         location of an "as_a" cast.
22696
22697 2015-05-22  Jeff Law  <law@redhat.com>
22698
22699         * config/pa/pa.md (non-canonical shift-add insns): Remove.
22700         (peepholes with non-canonical RTL sources): Remove.
22701         (peepholes for indexed stores of FP regs in integer modes): Match and
22702         generate canonical RTL.
22703
22704 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
22705
22706         PR tree-optimization/63387
22707         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22708         ((x ord x) & (y ord y) -> (x ord y),
22709         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22710         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22711         vectors like scalars.
22712
22713 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
22714
22715         * convert.c (convert_to_integer, convert_to_vector): Include the
22716         types in the error message.
22717
22718 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
22719
22720         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22721         simplifications.
22722
22723 2015-05-22  Jeff Law  <law@redhat.com>
22724
22725         * config/pa/pa.md (integer_indexed_store splitters): Use
22726         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
22727         insns -- adjusting the constant 2nd operand accordingly.
22728
22729         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22730         (plus (ashift X log2) Y) if it is a split point.
22731
22732         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22733         out of hppa_legitimize_address to handle both forms of a multiply
22734         by 2, 4 or 8.
22735         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22736         Always generate the ASHIFT variant as the result is not directly
22737         used in a MEM.  Update comments and refactor slightly to improve
22738         readability.
22739
22740 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22741
22742         PR target/65491
22743         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22744         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
22745         (aarch64_composite_type_p): Return false if given type and mode are
22746         for a short vector.
22747
22748 2015-05-22  Richard Biener  <rguenther@suse.de>
22749
22750         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22751         member.
22752         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22753         patterns when determining whether SLP is pure.
22754         (vect_is_slp_reduction): Remove check for pattern stmts.
22755         (vect_is_simple_reduction_1): Remove dead code.
22756         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22757         (vect_get_and_check_slp_defs): Pass in the stmt number.
22758         Allow the first def in a reduction to be not a pattern stmt when
22759         the rest of the stmts def are patterns.
22760         (vect_build_slp_tree_1): Allow tcc_expression codes like
22761         SAD_EXPR and DOT_PROD_EXPR.
22762         (vect_build_slp_tree): Adjust.
22763         (vect_analyze_slp): Refactor and move BB vect error message ...
22764         (vect_slp_analyze_bb_1): ... here.
22765
22766 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
22767
22768         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22769         for CSWTCH temporary.
22770
22771 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22772
22773         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22774         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
22775         unknown unspecs.
22776
22777 2015-05-22  Richard Biener  <rguenther@suse.de>
22778
22779         PR tree-optimization/66251
22780         * tree-vect-stmts.c (vectorizable_conversion): Properly
22781         set STMT_VINFO_VEC_STMT even for the SLP case.
22782
22783 2015-05-22  Marek Polacek  <polacek@redhat.com>
22784
22785         * doc/extend.texi: Use @pxref instead of @xref.
22786
22787 2015-05-22  hiraditya  <hiraditya@msn.com>
22788
22789         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22790         redundant if.
22791
22792 2015-05-22  Richard Biener  <rguenther@suse.de>
22793
22794         PR tree-optimization/65701
22795         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22796         Move peeling cost models into one place.  Peel for alignment
22797         for single loads only if an aligned load is cheaper than
22798         an unaligned load.
22799
22800 2015-05-22  Marek Polacek  <polacek@redhat.com>
22801
22802         PR c/47043
22803         * doc/extend.texi (Enumerator Attributes): New section.
22804         Document syntax of enumerator attributes.
22805
22806 2015-05-22  Richard Biener  <rguenther@suse.de>
22807
22808         * tree-vect-loop.c (get_reduction_op): New function.
22809         (vect_model_reduction_cost): Use it, add reduc_index parameter.
22810         Make ready for BB reductions.
22811         (vect_create_epilog_for_reduction): Use get_reduction_op.
22812         (vectorizable_reduction): Init reduc_index to a valid value.
22813         Adjust vect_model_reduction_cost call.
22814         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22815         operand for reduction defaults.  Add SAD_EXPR support.
22816         Assert we have a neutral op for SLP reductions.
22817         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22818         walking pattern stmt ops only recurse to SSA names.
22819
22820 2015-05-22  Richard Biener  <rguenther@suse.de>
22821
22822         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22823         assert with guard, remove check on detected reduction.
22824         (vect_recog_sad_pattern): Likewise.
22825         (vect_recog_widen_sum_pattern): Likewise.
22826
22827 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22828
22829         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22830         __always_inline__ attribute.
22831         (vaesdq_u8): Likewise.
22832         (vaesmcq_u8): Likewise.
22833         (vaesimcq_u8): Likewise.
22834         (vsha1cq_u32): Likewise.
22835         (vsha1mq_u32): Likewise.
22836         (vsha1pq_u32): Likewise.
22837         (vsha1h_u32): Likewise.
22838         (vsha1su0q_u32): Likewise.
22839         (vsha1su1q_u32): Likewise.
22840         (vsha256hq_u32): Likewise.
22841         (vsha256h2q_u32): Likewise.
22842         (vsha256su0q_u32): Likewise.
22843         (vsha256su1q_u32): Likewise.
22844         (vmull_p64): Likewise.
22845         (vmull_high_p64): Likewise.
22846
22847 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22848
22849         * final.c (final_scan_insn): Don't check HAVE_peephole with the
22850         preprocessor.
22851         * output.h: Likewise.
22852         * genconfig.c (main): Alwways define HAVE_peephole.
22853         * genpeep.c: Don't emit checks of HAVE_peephole.
22854
22855 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22856
22857         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22858         check HAVE_conditional_move with the preprocessor.
22859
22860 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22861
22862         * genconfig.c (main): Always define HAVE_conditional_move.
22863         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22864         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22865         is defined.
22866
22867 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22868
22869         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22870         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22871         and FRAME_POINTER_REGNUM with the preprocessor.
22872
22873 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22874
22875         * defaults.h: Add default for STACK_PUSH_CODE.
22876         * expr.c: Don't redefine STACK_PUSH_CODE.
22877         * recog.c: Likewise.
22878
22879 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22880
22881         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22882         sched-deps.c: Use if instead of preprocessor checks with
22883         STACK_GROWS_DOWNWARD.
22884
22885 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22886
22887         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22888         is defined.
22889         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22890         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22891         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22892         * doc/tm.texi: Regenerate.
22893
22894 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22895
22896         PR target/66232
22897         * config/i386/constraints.md (Bg): New constraint for GOT memory
22898         operand.
22899         * config/i386/i386.md (*call_got_x32): New pattern.
22900         (*call_value_got_x32): Likewise.
22901         * config/i386/predicates.md (GOT_memory_operand): New predicate.
22902
22903 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
22904
22905         PR tree-optimization/66233
22906         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22907         Simplify.
22908
22909 2015-05-21  Jeff Law  <law@redhat.com>
22910
22911         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22912         than MULT for shadd sequences.
22913
22914 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
22915
22916         * alias.c (alias_stats): New static var.
22917         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22918         (dump_alias_stats_in_alias_c): New function.
22919         * alias.h (dump_alias_stats_in_alias_c): Declare.
22920         * tree-ssa-alias.c (dump_alias_stats): Call it.
22921
22922 2015-05-08  Michael Matz  <matz@suse.de>
22923
22924         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22925         to strided_p.
22926         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22927         (STMT_VINFO_STRIDED_P): ... this.
22928         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22929         (vect_verify_datarefs_alignment): Likewise.
22930         (vect_enhance_data_refs_alignment): Likewise.
22931         (vect_analyze_data_ref_access): Likewise.
22932         (vect_analyze_data_refs): Accept strided stores.
22933         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22934         (vect_model_load_cost): Adjust for macro rename.
22935         (vectorizable_mask_load_store): Likewise.
22936         (vectorizable_load): Likewise.
22937         (vectorizable_store): Open code strided stores.
22938
22939 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22940
22941         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22942         Document sqrt_insn.
22943
22944 2015-05-21  Richard Biener  <rguenther@suse.de>
22945
22946         PR c++/66211
22947         * match.pd: Guard pattern optimzing (int)(float)int
22948         conversions to apply only on GIMPLE.
22949
22950 2015-05-21  Jeff Law  <law@redhat.com>
22951
22952         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22953         multiply-accumulate/shift-add insn generation.
22954
22955 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
22956
22957         PR target/54236
22958         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22959         operands[1] are the same.
22960
22961 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
22962
22963         PR middle-end/66221
22964         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22965         build_distinct_type_copy to copy bounds.
22966
22967 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22968
22969         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22970         Change to unsigned int.
22971
22972 2015-05-20  Jeff Law  <law@redhat.com>
22973
22974         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22975         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22976         (pa_shadd_constant_p): Allow constants for shadd insns rather
22977         than valid scaling constants for memory addresses.
22978         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22979         * config/pa/predicates.md (mem_shadd_operand): New predicate.
22980         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22981         (shift-add insns using ASHIFT): New patterns.
22982
22983 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
22984
22985         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22986         feasible.
22987         (fix_up_fall_thru_edges): Likewise.
22988         (fix_crossing_conditional_branches): Likewise. Promote jump targets
22989         from to rtx_insn to rtx_code_label where feasible.
22990         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22991         gen_move_insn (returned type changed to rtx_insn).
22992         * builtins.c (expand_errno_check): Fix arguments of
22993         do_compare_rtx_and_jump (now expects rtx_code_label).
22994         (expand_builtin_acc_on_device): Likewise.
22995         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22996         invert_jump (now exprects rtx_jump_insn).
22997         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22998         (construct_init_block): Use rtx_code_label.
22999         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
23000         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
23001         calling redirect_jump.
23002         (patch_jump_insn): Likewise.
23003         (redirect_branch_edge): Likewise.
23004         (force_nonfallthru_and_redirect): Likewise.
23005         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
23006         when suitable.
23007         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
23008         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
23009         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
23010         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
23011         to store the value retured by gen_label_rtx.
23012         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
23013         rtx_jump_insn.
23014         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
23015         (split_branches): Fix calls of redirect_jump.
23016         * dojump.c (jumpifnot): Promote argument type from rtx to
23017         rtx_code_label.
23018         (jumpifnot_1): Likewise.
23019         (jumpif): Likewise.
23020         (jumpif_1): Likewise.
23021         (do_jump_1): Likewise.
23022         (do_jump): Likewise. Use rtx_code_label when feasible.
23023         (do_jump_by_parts_greater_rtx): Likewise.
23024         (do_jump_by_parts_zero_rtx): Likewise.
23025         (do_jump_by_parts_equality_rtx): Likewise.
23026         (do_compare_rtx_and_jump): Likewise.
23027         * dojump.h: Update function prototypes.
23028         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
23029         returns rtx_insn).
23030         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
23031         rtx_jump_insn.
23032         (emit_label_before): Likewise.
23033         (emit_jump_insn_after_noloc): Likewise.
23034         (emit_jump_insn_after_setloc): Likewise.
23035         (emit_jump_insn_after): Likewise
23036         (emit_jump_insn_before_setloc): Likewise.
23037         (emit_jump_insn_before): Likewise.
23038         (emit_label_before): Promote return type to rtx_code_label.
23039         (emit_label): Likewise.
23040         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
23041         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
23042         gen_move_insn.
23043         (emit_stack_restore): Likewise.
23044         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
23045         (do_cmp_and_jump): Likewise.
23046         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
23047         from rtx to rtx_code_label.
23048         (gen_move_insn_uncast): New function.
23049         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
23050         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
23051         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
23052         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
23053         invert_jump_1 and redirect_jump_1.
23054         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
23055         do_compare_rtx_and_jump.
23056         (expand_addsub_overflow): Likewise.
23057         (expand_neg_overflow): Likewise.
23058         (expand_mul_overflow): Likewise.
23059         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
23060         return value of gen_move_insn.
23061         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
23062         * loop-doloop.c (add_test): Use rtx_code_label.
23063         (doloop_modify): Likewise.
23064         (doloop_optimize): Likewise.
23065         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
23066         * lra-constraints.c (emit_spill_move): Remove cast of value returned
23067         by gen_move_insn.
23068         (inherit_reload_reg): Add cast when calling dump_insn_slim.
23069         (split_reg): Likewise.
23070         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
23071         gen_move_insn.
23072         * optabs.c (expand_binop_directly): Remove casts of values returned by
23073         maybe_gen_insn.
23074         (expand_unop_direct): Likewise.
23075         (expand_abs): Likewise.
23076         (maybe_emit_unop_insn): Likewise.
23077         (maybe_gen_insn): Promote return type to rtx_insn.
23078         * optabs.h: Update prototype of maybe_gen_insn.
23079         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
23080         redundant cast.
23081         * recog.c (struct peep2_insn_data): Promote type of insn field to
23082         rtx_insn.
23083         (peep2_reinit_state): Use NULL instead of NULL_RTX.
23084         (peep2_attempt): Remove casts of insn in peep2_insn_data.
23085         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
23086         * recog.h (struct insn_gen_fn): Promote return types of function
23087         pointers and operator ().from rtx to rtx_insn.
23088         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
23089         (fill_eager_delay_slots): Likewise.
23090         (relax_delay_slots): Likewise.
23091         (make_return_insns): Likewise.
23092         (dbr_schedule): Likewise.
23093         (optimize_skips): Likewise.
23094         (reorg_redirect_jump): Likewise.
23095         (fill_slots_from_thread): Likewise.
23096         * reorg.h: Update prototypes.
23097         * resource.c (find_dead_or_set_registers): Use dyn_cast to
23098         rtx_jump_insn instead of check.  Use it's jump_target method.
23099         * rtl.h (rtx_jump_insn::jump_label): Define new method.
23100         (rtx_jump_insn::jump_target): Define new method.
23101         (rtx_jump_insn::set_jump_target): Define new method.
23102         * rtlanal.c (tablejump_p): Promote type of one local variable.
23103         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
23104         (sched_analyze_insn): Likewise.
23105         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
23106         (print_insn): Likewise.
23107         * stmt.c (label_rtx): Promote return type to rtx_insn.
23108         (force_label_rtx): Likewise.
23109         (jump_target_rtx): Define new function.
23110         (expand_label): Use it, get rid of one cast.
23111         (expand_naked_return): Promote rtx to rtx_code_label.
23112         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
23113         (expand_case): Use rtx_code_label instread of rtx where feasible.
23114         (expand_sjlj_dispatch_table): Likewise.
23115         (emit_case_nodes): Likewise.
23116         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
23117         * store-motion.c (insert_store): Make use of new return type of
23118         gen_move_insn and remove a cast.
23119         (replace_store_insn): Likewise.
23120
23121 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
23122
23123         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
23124         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23125
23126 2015-05-20  Jeff Law  <law@redhat.com>
23127
23128         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23129         dispose of the jump thread path when the jump threading
23130         opportunity is cancelled.
23131
23132 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23133
23134         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23135         when printing the caret character.
23136
23137 2015-05-20  Marek Polacek  <polacek@redhat.com>
23138
23139         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23140
23141 2015-05-20  Marek Polacek  <polacek@redhat.com>
23142
23143         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23144         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23145         * gimple-fold.c (canonicalize_bool): Likewise.
23146         (same_bool_result_p): Likewise.
23147         * tree-if-conv.c (parse_predicate): Likewise.
23148
23149 2015-05-20  Marek Polacek  <polacek@redhat.com>
23150
23151         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23152         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23153
23154 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23155
23156         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23157         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23158         values.
23159
23160 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
23161
23162         * config/mips/mips.h (micromips_globals): Declare.
23163
23164 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
23165
23166         * timevar.def (TV_INITIALIZE_RTL): New.
23167         * toplev.c (initialize_rtl): Use an auto_timevar to account this
23168         function's time to TV_INITIALIZE_RTL.
23169
23170 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
23171
23172         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23173         gimple_build_nop calls.
23174         (chkp_find_bounds_for_elem): Likewise.
23175         (chkp_get_zero_bounds): Likewise.
23176         (chkp_get_none_bounds): Likewise.
23177         (chkp_get_bounds_by_definition): Likewise.
23178         (chkp_generate_extern_var_bounds): Likewise.
23179         (chkp_get_bounds_for_decl_addr): Likewise.
23180         (chkp_get_bounds_for_string_cst): Likewise.
23181
23182 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
23183
23184         PR tree-optimization/65447
23185         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23186         (dump_use, dump_uses): Support to dump sub use.
23187         (record_use): New parameters to support sub use.  Remove call to
23188         dump_use.
23189         (record_sub_use, record_group_use): New functions.
23190         (compute_max_addr_offset, split_all_small_groups): New functions.
23191         (group_address_uses, rewrite_use_address): New functions.
23192         (strip_offset): New declaration.
23193         (find_interesting_uses_address): Call record_group_use.
23194         (add_candidate): New assertion.
23195         (infinite_cost_p): Move definition forward.
23196         (add_costs): Check INFTY cost and return immediately.
23197         (get_computation_cost_at): Clear setup cost and dependent bitmap
23198         for sub uses.
23199         (determine_use_iv_cost_address): Compute cost for sub uses.
23200         (rewrite_use_address_1): Rename from old rewrite_use_address.
23201         (free_loop_data): Free sub uses.
23202         (tree_ssa_iv_optimize_loop): Call group_address_uses.
23203
23204 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23205             Jim Wilson  <jim.wilson@linaro.org>
23206
23207         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23208         new  fields loadv and storev.
23209         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23210         Initialize loadv and storev.
23211         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23212         (cortexa53_extra_costs): Likewise.
23213         (cortexa57_extra_costs): Likewise.
23214         (xgene1_extra_costs): Likewise.
23215         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23216         rtx_costs.
23217
23218 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23219
23220         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23221          storev.
23222         (cortexa8_extra_costs): Likewise.
23223         (cortexa5_extra_costs): Likewise.
23224         (cortexa7_extra_costs): Likewise.
23225         (cortexa12_extra_costs): Likewise.
23226         (cortexa15_extra_costs): Likewise.
23227         (v7m_extra_costs): Likewise.
23228
23229 2015-05-20  Jeff Law  <law@redhat.com>
23230
23231         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23232         instead of open-coded version.  Also delete the jump thread created
23233         within this function.
23234
23235 2015-05-20  Alan Modra  <amodra@gmail.com>
23236
23237         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23238         stack adjusting insn.  Formatting.
23239         (rs6000_emit_prologue): Track stack adjusting insn, and use of
23240         r12.  If possible, emit first -fsplit-stack arg pointer insn
23241         before stack adjust.  Don't use r12 to save cr if split-stack.
23242
23243 2015-05-20  Alan Modra  <amodra@gmail.com>
23244
23245         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23246         Define.
23247         (rs6000_supports_split_stack): New function.
23248         * config/rs6000/rs6000.c (machine_function): Add
23249         split_stack_arg_pointer.
23250         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23251         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23252         rather than virtual_incoming_args_rtx.
23253         (rs6000_va_start): Likewise.
23254         (split_stack_arg_pointer_used_p): New function.
23255         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23256         (morestack_ref): New var.
23257         (gen_add3_const, rs6000_expand_split_stack_prologue,
23258         rs6000_internal_arg_pointer, rs6000_live_on_entry,
23259         rs6000_split_stack_space_check): New functions.
23260         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23261         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23262         (UNSPECV_SPLIT_STACK_RETURN): Define.
23263         (split_stack_prologue, load_split_stack_limit,
23264         load_split_stack_limit_di, load_split_stack_limit_si,
23265         split_stack_return, split_stack_space_check): New expands and insns.
23266         * config/rs6000/rs6000-protos.h
23267         (rs6000_expand_split_stack_prologue): Declare.
23268         (rs6000_split_stack_space_check): Declare.
23269
23270 2015-05-20  Alan Modra  <amodra@gmail.com>
23271
23272         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23273         (direct_return): Test vrsave_size rather than vrsave_mask.
23274         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
23275         (rs6000_emit_epilogue): Likewise.
23276
23277 2015-05-20  Alan Modra  <amodra@gmail.com>
23278
23279         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23280         when not saving registers.
23281         (debug_stack_info): Adjust to omit printing unused offsets,
23282         as before.
23283         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23284         expression.
23285
23286 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23287
23288         PR c++/65835
23289         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23290         value_type to const char *.
23291
23292 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
23293
23294         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23295         to build a biarch toolchain again.
23296
23297 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
23298
23299         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23300         or implicit declarations.
23301         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23302         into it.
23303         (get_odr_type): Check type has linkage before adding bases.
23304         (register_odr_type): Check that type has linkage before adding it.
23305         (type_known_to_have_no_deriavations_p): Rename to ..
23306         (type_known_to_have_no_derivations_p): This one.
23307         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23308         (type_known_to_have_no_derivations_p): This one.
23309         * ipa-polymorphic-call.c
23310         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23311         type has linkage.
23312
23313 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
23314
23315         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23316         (layout_type): Use RECORD_OR_UNION_TYPE_P.
23317
23318 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23319
23320         * config/s390/s390.c (s390_vector_bool_type_p): New function.
23321         (s390_invalid_binary_op): New function.
23322         (TARGET_INVALID_BINARY_OP): Define macro.
23323
23324 2015-05-19  David Sherwood  <david.sherwood@arm.com>
23325
23326         * loop-invariant.c (create_new_invariant): Don't calculate address cost
23327         if mode is not a scalar integer.
23328         (get_inv_cost): Increase computational cost for unused invariants.
23329
23330 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23331
23332         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
23333         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
23334         * config/s390/s390-builtin-types.def: New file.
23335         * config/s390/s390-builtins.def: New file.
23336         * config/s390/s390-builtins.h: New file.
23337         * config/s390/s390-c.c: New file.
23338         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23339         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23340         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23341         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23342         prototypes.
23343         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23344         Include.
23345         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23346         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23347         variable definitions.
23348         (s390_const_operand_ok): New function.
23349         (s390_expand_builtin): Rewrite.
23350         (s390_init_builtins): New function.
23351         (s390_handle_vectorbool_attribute): New function.
23352         (s390_attribute_table): Add s390_vector_bool attribute.
23353         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23354         (s390_branch_condition_mask): Generate masks for new modes.
23355         (s390_expand_vec_compare_cc): New function.
23356         (s390_mangle_type): Add mangling for vector bool types.
23357         (enum s390_builtin): Remove.
23358         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23359         efpc builtins.
23360         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23361         s390_cpu_cpp_builtins.
23362         (REGISTER_TARGET_PRAGMAS): New macro.
23363         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23364         (insn_cmp mode attribute): Add new CC modes.
23365         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23366         (lcbb): New pattern definition.
23367         * config/s390/s390intrin.h: Include vecintrin.h.
23368         * config/s390/t-s390: New file.
23369         * config/s390/vecintrin.h: New file.
23370         * config/s390/vector.md: Include vx-builtins.md.
23371         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23372         support.
23373
23374 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23375
23376         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23377         CCVFHE.
23378         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23379         (s390_select_ccmode): Likewise.
23380         (s390_canonicalize_comparison): Swap operands if necessary.
23381         (s390_expand_vec_compare_scalar): Expand DFmode compare using
23382         single element vector instructions.
23383         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23384         (s390_branch_condition_mask): Generate CC masks for the new modes.
23385         * config/s390/s390.md (v0, vf, vd): New mode attributes.
23386         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23387         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23388         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23389         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23390         (*extend<DSF:mode><BFP:mode>2): New insn definition.
23391         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23392         (extend<DSF:mode><BFP:mode>2): Turn into expander.
23393         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23394         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23395         (sqrt<mode>2): Add vector instruction.
23396
23397 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23398
23399         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23400         constraints.
23401         * config/s390/predicates.md (const0_operand, constm1_operand)
23402         (constable_operand): Accept vector operands.
23403         * config/s390/s390-modes.def: Add supported vector modes.
23404         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23405         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23406         (s390_bytemask_vector_p, s390_expand_vec_strlen)
23407         (s390_expand_vec_compare, s390_expand_vcond)
23408         (s390_expand_vec_init): Add prototypes.
23409         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23410         (s390_vector_mode_supported_p): New function.
23411         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23412         (s390_contiguous_bitmask_vector_p): New function.
23413         (s390_bytemask_vector_p): New function.
23414         (s390_split_ok_p): Vector regs don't work either.
23415         (regclass_map): Add VEC_REGS.
23416         (s390_legitimate_constant_p): Handle vector constants.
23417         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23418         (legitimate_reload_vector_constant_p): New function.
23419         (s390_preferred_reload_class): Handle CONST_VECTOR.
23420         (s390_reload_symref_address):  Likewise.
23421         (s390_secondary_reload): Vector memory instructions only support
23422         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
23423         (s390_emit_ccraw_jump): New function.
23424         (s390_expand_vec_strlen): New function.
23425         (s390_expand_vec_compare): New function.
23426         (s390_expand_vcond): New function.
23427         (s390_expand_vec_init): New function.
23428         (s390_dwarf_frame_reg_mode): New function.
23429         (print_operand): Handle addresses with 'O' and 'R' constraints.
23430         (NR_C_MODES, constant_modes): Add vector modes.
23431         (s390_output_pool_entry): Handle vector constants.
23432         (s390_hard_regno_mode_ok): Handle vector registers.
23433         (s390_class_max_nregs): Likewise.
23434         (s390_cannot_change_mode_class): New function.
23435         (s390_invalid_arg_for_unprototyped_fn): New function.
23436         (s390_function_arg_vector): New function.
23437         (s390_function_arg_float): Remove size variable.
23438         (s390_pass_by_reference): Handle vector arguments.
23439         (s390_function_arg_advance): Likewise.
23440         (s390_function_arg): Likewise.
23441         (s390_return_in_memory): Vector values are returned in a VR if
23442         possible.
23443         (s390_function_and_libcall_value): Handle vector arguments.
23444         (s390_gimplify_va_arg): Likewise.
23445         (s390_call_saved_register_used): Consider the arguments named.
23446         (s390_conditional_register_usage): Disable v16-v31 for non-vec
23447         targets.
23448         (s390_preferred_simd_mode): New function.
23449         (s390_support_vector_misalignment): New function.
23450         (s390_vector_alignment): New function.
23451         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23452         (TARGET_VECTOR_MODE_SUPPORTED_P)
23453         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23454         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23455         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23456         (TARGET_VECTOR_ALIGNMENT): Define target macro.
23457         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23458         (FIRST_PSEUDO_REGISTER): Increase value.
23459         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23460         (VECTOR_REG_P): Define macros.
23461         (FIXED_REGISTERS, CALL_USED_REGISTERS)
23462         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23463         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23464         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23465         Add vector registers.
23466         (CANNOT_CHANGE_MODE_CLASS): Call C function.
23467         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23468         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23469         memory.
23470         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23471         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23472         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23473         (VR*_REGNUM): New constants.
23474         (ALL): New mode iterator.
23475         (INTALL): Remove mode iterator.
23476         Include vector.md.
23477         (movti): Implement TImode moves for VRs.
23478         Disable TImode splitter for VR targets.
23479         Implement splitting TImode GPR<->VR moves.
23480         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23481         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23482         reload<mode>_la_in, reload<mode>_la_out.
23483         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23484         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23485         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23486         (mov<mode> SF SD): Prefer lder, lde for loading.
23487         Add lrl and strl instructions.
23488         Add vector instructions.
23489         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23490         Call s390_expand_vec_strlen on z13.
23491         (*cc_to_int): Change predicate to nonimmediate_operand.
23492         (addti3): Rename to *addti3.  New expander.
23493         (subti3): Rename to *subti3.  New expander.
23494         * config/s390/vector.md: New file.
23495
23496 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23497
23498         * common/config/s390/s390-common.c (processor_flags_table): Add
23499         z13.
23500         * config.gcc: Add z13.
23501         * config/s390/s390-opts.h (enum processor_type): Add
23502         PROCESSOR_2964_Z13.
23503         * config/s390/s390.c (s390_adjust_priority): Check for
23504         PROCESSOR_2964_Z13.
23505         (s390_reorg): Likewise.
23506         (s390_sched_reorder): Likewise.
23507         (s390_sched_variable_issue): Likewise.
23508         (s390_loop_unroll_adjust): Likewise.
23509         (s390_option_override): Likewise. Default to -mvx when available.
23510         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23511         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23512         (TARGET_VX_ABI): Define macros.
23513         macros.
23514         (TARGET_DEFAULT): Add MASK_OPT_VX.
23515         * config/s390/s390.md ("cpu" attribute): Add z13.
23516         ("cpu_facility" attribute): Add vec.
23517         * config/s390/s390.opt (processor_type): Add z13.
23518         (mvx): New options.
23519         * doc/invoke.texi: Add z13 option for -march.
23520
23521 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23522
23523         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23524         mode check to make sure that only scalar integer values are
23525         accepted.
23526
23527 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
23528
23529         * tree.c (verify_type_variant): Fix #undef.
23530         (gimple_canonical_types_compatible_p): Move here from lto.c
23531         (verify_type): Verify TYPE_CANONICAL compatibility.
23532         * tree.h (gimple_canonical_types_compatible_p): Declare.
23533
23534 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
23535
23536         PR middle-end/66199
23537         * tree.h (OMP_TEAMS_COMBINED): Define.
23538         * gimplify.c (enum gimplify_omp_var_data): Add
23539         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23540         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23541         (omp_notice_variable): Accept both ORT_TEAMS
23542         and ORT_COMBINED_TEAMS.  Don't recurse if
23543         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23544         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23545         GOVD_FIRSTPRIVATE.
23546         (omp_no_lastprivate): New function.
23547         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23548         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23549         notice_outer and set appropriate bits, otherwise make
23550         sure default(none) combined constructs won't complain.
23551         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23552         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23553         omp_no_lastprivate either remove the clause or turn it
23554         into OMP_CLAUSE_PRIVATE.
23555         (gimplify_omp_for): Fix up handling of implicit
23556         lastprivate or linear iterators.
23557         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23558         ORT_COMBINED_TEAMS.
23559         * omp-low.c (lower_omp_for_lastprivate): For combined
23560         for simd use fd.loop.n2 from the for rather than simd.
23561
23562 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23563
23564         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23565         instead of gen_rtx_raw_REG.
23566         (cris_expand_epilogue): Likewise.
23567         * config/microblaze/microblaze.c (microblaze_classify_address):
23568         Likewise.
23569         * config/sparc/sparc.md: Likewise.
23570
23571 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
23572
23573         * config/alpha/alpha.c (alpha_legitimize_reload_address)
23574         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23575         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23576         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23577         Use CASE_CONST_SCALAR_INT.
23578         (print_operand) <case 'M'>: Use mode_width_operand to check the
23579         value of the constant.
23580         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23581         * config/alpha/predicates.md (input_operand): Use general_operand
23582         instead of match_code as operand check.
23583         (symbolic_operand): Use match_code with subexpression digits.
23584         * config/alpha/constraints.md (Q): Ditto.
23585
23586 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23587
23588         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23589
23590 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23591
23592         * config/s390/s390.c (s390_secondary_reload): Fix check for
23593         load/store relative.
23594
23595 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23596
23597         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
23598         alternative_mask to uint64_t.
23599
23600 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
23601
23602         PR tree-optimization/66187
23603         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23604         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
23605         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23606
23607 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
23608
23609         * diagnostic.c (diagnostic_report_current_module): Strengthen
23610         local "new_map" from const line_map * to
23611         const line_map_ordinary *.
23612         * genmatch.c (error_cb): Likewise for local "map".
23613         (output_line_directive): Likewise for local "map".
23614         * input.c (expand_location_1): Likewise for local "map".
23615         Pass NULL rather than &map to
23616         linemap_unwind_to_first_non_reserved_loc, since the value is never
23617         read from there, and the value written back not read from here.
23618         (is_location_from_builtin_token): Strengthen local "map" from
23619         const line_map * to const line_map_ordinary *.
23620         (dump_location_info): Strengthen locals "map" from
23621         line_map *, one to const line_map_ordinary *, the other
23622         to const line_map_macro *.
23623         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23624         const line_map * to const line_map_macro *.
23625         (maybe_unwind_expanded_macro_loc): Add a call to
23626         linemap_check_macro when writing to the "map" field of the
23627         loc_map_pair.
23628         Introduce local const line_map_ordinary * "ord_map", using it in
23629         place of "map" in the part of the function where we know we have
23630         an ordinary map.  Strengthen local "m" from const line_map * to
23631         const line_map_ordinary *.
23632
23633 2015-05-19  Nick Clifton  <nickc@redhat.com>
23634
23635         PR target/66156
23636         * config/msp430/msp430.md (zero_extendhisi2): Add support for
23637         separate source and destination registers.
23638
23639 2015-05-19  Richard Biener  <rguenther@suse.de>
23640
23641         PR tree-optimization/66165
23642         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23643         for no load permutation.
23644
23645         PR tree-optimization/66185
23646         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23647         when building the SLP node from scalars.
23648
23649 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
23650             Tristan Gingold  <gingold@adacore.com>
23651
23652         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23653         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23654         (expand_stack_restore): Call record_new_stack_level.
23655         (expand_stack_save): Do not call do_pending_stack_adjust.
23656         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23657         * calls.c (expand_call): Call record_new_stack_level for alloca.
23658         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23659         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23660         (update_sjlj_context): New global function.
23661         * except.h (update_sjlj_context): Declare.
23662         * explow.c (record_new_stack_level): New global function.
23663         (allocate_dynamic_stack_space): Call record_new_stack_level.
23664         * explow.h (record_new_stack_level): Declare.
23665         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23666         * cfgrtl.c (duplicate_insn_chain): Likewise.
23667
23668 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23669
23670         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23671         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23672         STACK_GROWS_DOWNWARD as normal if.
23673         (expand_call): Likewise.
23674
23675 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
23676
23677         PR target/54236
23678         * config/sh/sh.md (*round_int_even): New insn_and_split and
23679         accompanying new unnamed split.
23680
23681 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23682
23683         * bitmap.c (bitmap_set_range): Handle count==1 specially.
23684         (bitmap_clear_range): Likewise.
23685         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23686         bitmap_set_range unconditionally.
23687         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23688         * df-scan.c (df_mark_reg): Likewise.
23689         * haifa-sched.c (setup_ref_regs): Likewise.
23690         * sched-rgn.c (update_live_1): Likewise.
23691
23692 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23693
23694         * regs.h (END_HARD_REGNO): Delete.
23695         (END_REGNO): Move to...
23696         * rtl.h: ...here.
23697         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23698         * caller-save.c (mark_set_regs): Likewise.
23699         * combine.c (move_deaths, distribute_notes): Likewise.
23700         * cse.c (invalidate, invalidate_for_call): Likewise.
23701         * df-scan.c (df_ref_record): Likewise.
23702         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23703         (record_last_reg_set_info): Likewise.
23704         * reg-stack.c (convert_regs_exit): Likewise.
23705         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23706         * resource.c (update_live_status): Likewise.
23707         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23708
23709 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23710
23711         * rtl.h (reg_info): Add an nregs field.
23712         (REG_NREGS): Use it.
23713         (SET_REGNO_RAW): Delete.
23714         (set_regno_raw): New function.
23715         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23716         (END_REGNO): Redefine in terms of REG_NREGS.
23717         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23718         SET_REGNO_RAW.
23719         * emit-rtl.c (set_mode_and_regno): Likewise.
23720         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23721         instead of SET_REGNO_RAW.
23722
23723 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23724
23725         * rtl.h (PUT_MODE_RAW): New macro.
23726         (PUT_REG_NOTE_KIND): Use it.
23727         (set_mode_and_regno): Declare.
23728         (gen_raw_REG): Change regno to "unsigned int".
23729         (gen_rtx_REG): Change "unsigned" to "unsigned int".
23730         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23731         use set_mode_and_regno to change the mode of registers.
23732         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23733         * emit-rtl.c (set_mode_and_regno): New function.
23734         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
23735         * caller-save.c (reg_save_code): Use set_mode_and_regno.
23736         * expr.c (init_expr_target): Likewise.
23737         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23738         * postreload.c (reload_cse_simplify_operands): Likewise.
23739
23740 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23741
23742         * caller-save.c (init_caller_save): Use word_mode and
23743         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23744         * expr.c (init_expr_target): Likewise.
23745         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23746         * postreload.c (reload_cse_regs_1): Likewise.
23747
23748 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23749
23750         * rtl.def (REG): Change format to "r".
23751         * rtl.h (rtunion): Remove rt_reg.
23752         (reg_info): New structure.
23753         (rtx_def): Add reg field to main union.
23754         (X0REGATTR): Delete.
23755         (REG_CHECK): New macro.
23756         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23757         * rtl.c (rtx_format): Document "r".
23758         (rtx_code_size): Handle REG specially.
23759         * gengenrtl.c (special_format): Return true for formats
23760         that include 'r'.
23761         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23762         Deal with REG_ATTRS after the field loop.
23763         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23764         * expmed.c (init_expmed): Call gen_raw_REG instead of
23765         gen_rtx_raw_REG.
23766         * expr.c (init_expr_target): Likewise.
23767         * regcprop.c (maybe_mode_change): Likewise.
23768         * varasm.c (make_decl_rtl): Likewise.
23769         * final.c (leaf_renumber_regs_insn): Return early after
23770         handling REGs.
23771         * genemit.c (gen_exp): Handle 'r' fields.
23772         * genpeep.c (match_rtx): Likewise.
23773         * gensupport.c (subst_pattern_match): Likewise.
23774         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23775         (alter_constraints, subst_dup): Likewise.
23776         * read-rtl.c (read_rtx_code): Likewise.
23777         * print-rtl.c (print_rtx): Likewise.
23778         * genrecog.c (find_operand, find_matching_operand): Likewise.
23779         (validate_pattern, match_pattern_2): Likewise.
23780         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23781         (rtx_test::regno_field): New function.
23782         (operator ==, safe_to_hoist_p, transition_parameter_type)
23783         (parameter_type_string, print_parameter_value)
23784         (print_nonbool_test, print_test): Handle new enum values.
23785         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23786         * lra-constraints.c (operands_match_p): Likewise.
23787
23788 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23789
23790         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23791         Change type of new_regno to unsigned int.
23792         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23793         new_regno to unsigned int.
23794         (df_ref_change_reg_with_loc): Remove old_regno parameter.
23795         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
23796         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23797         (SET_REGNO_RAW): Add space after ",".
23798
23799 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23800
23801         * rtl.h (REG_NREGS): New macro
23802         * alias.c (record_set): Use it.
23803         * cfgcleanup.c (mark_effect): Likewise.
23804         * combine.c (likely_spilled_retval_1): Likewise.
23805         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23806         (move_deaths, distribute_notes): Likewise.
23807         * cselib.c (cselib_record_set): Likewise.
23808         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23809         * df-scan.c (df_mark_reg): Likewise.
23810         * dse.c (look_for_hardregs): Likewise.
23811         * dwarf2out.c (reg_loc_descriptor): Likewise.
23812         (multiple_reg_loc_descriptor): Likewise.
23813         * expr.c (write_complex_part, read_complex_part): Likewise.
23814         (emit_move_complex): Likewise.
23815         * haifa-sched.c (setup_ref_regs): Likewise.
23816         * ira-lives.c (mark_hard_reg_live): Likewise.
23817         * lra.c (lra_set_insn_recog_data): Likewise.
23818         * mode-switching.c (create_pre_exit): Likewise.
23819         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23820         (reload_combine_recognize_pattern): Likewise.
23821         (reload_combine_note_use, move2add_record_mode): Likewise.
23822         (reload_cse_move2add): Likewise.
23823         * reg-stack.c (subst_stack_regs_pat): Likewise.
23824         * regcprop.c (kill_value, copy_value): Likewise.
23825         (copyprop_hardreg_forward_1): Likewise.
23826         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23827         (build_def_use): Likewise.
23828         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23829         (deps_analyze_insn): Likewise.
23830         * sched-rgn.c (check_live_1, update_live_1): Likewise.
23831         * sel-sched.c (count_occurrences_equiv): Likewise.
23832         * valtrack.c (dead_debug_insert_temp): Likewise.
23833
23834 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23835
23836         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23837         * dse.c (note_add_store): Likewise.
23838         * ira-lives.c (mark_hard_reg_dead): Likewise.
23839         * loop-invariant.c (mark_reg_store): Likewise.
23840         (mark_reg_death): Likewise.
23841         * postreload.c (reload_combine): Likewise.
23842         (reload_combine_note_store): Likewise.
23843         (reload_combine_note_use): Likewise.
23844         * recog.c (peep2_reg_dead_p): Likewise.
23845
23846 2015-05-19  Alan Modra  <amodra@gmail.com>
23847
23848         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23849         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23850         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23851         unused predicates.
23852         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23853         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
23854         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23855         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23856
23857 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
23858
23859         * config/mips/mips.md (JOIN_MODE): New mode iterator.
23860         (join2_load_Store<JOIN_MODE:mode>): New pattern.
23861         (join2_loadhi): Likewise.
23862         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23863         load-load and store-stores.
23864         * config/mips/mips.opt (mload-store-pairs): New option.
23865         (TARGET_LOAD_STORE_PAIRS): New macro.
23866         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23867         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23868         * config/mips/mips.c (mips_load_store_bonding_p): New function.
23869
23870 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
23871
23872         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23873         explicit swaps.
23874         * dojump.c (do_compare_rtx_and_jump): Likewise.
23875         * expmed.c (emit_store_flag_1): Likewise.
23876         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23877         * final.c (sprint_ul): Use std::reverse for reversing a string.
23878         * fold-const.c (extract_muldiv_1): Use std::swap.
23879         * genmodes.c (emit_mode_int_n): Likewise.
23880         * ifcvt.c (dead_or_predicable): Likewise.
23881         * ira-build.c (ira_merge_live_ranges): Likewise.
23882         (swap_allocno_copy_ends_if_necessary): Likewise.
23883         * ira.c (ira_setup_alts): Likewise.
23884         * loop-iv.c (iv_analyze_expr): Likewise.
23885         (implies_p): Likewise.
23886         (canon_condition): Likewise.
23887         * lra-constraints.c (swap_operands): Likewise.
23888         * lra-lives.c (lra_merge_live_ranges): Likewise.
23889         * omega.c (swap): Remove.
23890         (bswap): Remove.
23891         (omega_unprotect_1): Use std::swap.
23892         (omega_solve_geq): Likewise.
23893         * optabs.c (expand_binop_directly): Likewise.
23894         (expand_binop): Likewise.
23895         (emit_conditional_move): Likewise.
23896         (emit_conditional_add): Likewise.
23897         * postreload.c (reload_cse_simplify_operands): Likewise.
23898         * reg-stack.c (emit_swap_insn): Likewise.
23899         (swap_to_top): Likewise.
23900         (compare_for_stack_reg): Likewise.
23901         (subst_asm_stack_regs): Likewise.
23902         * reload.c (find_reloads): Likewise.
23903         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23904         * sel-sched.c (invoke_reorder_hooks): Likewise.
23905         (create_block_for_bookkeeping): Likewise.
23906         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23907         (lambda_matrix_right_hermite): Use std::swap.
23908         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23909         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23910         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23911         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23912         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23913         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23914         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23915         * tree-vrp.c (compare_ranges): Likewise.
23916         * var-tracking.c (add_with_sets): Likewise.
23917         (vt_find_locations): Likewise.
23918
23919 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
23920
23921         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23922         pie executables.
23923         (FBSD_ENDFILE_SPEC): Likewise.
23924         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23925         config/freebsd-spec.h.
23926         (ENDFILE_SPEC): Likewise.
23927
23928 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
23929             Richard Henderson  <rth@redhat.com>
23930
23931         PR target/57032
23932         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23933         Check for a memory location that is not a reference (using an AND)
23934         to an unaligned location here.
23935         * config/alpha/predicates.md (normal_memory_operand): Remove.
23936
23937 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
23938
23939         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23940         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23941
23942 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
23943
23944         * config/mips/mips.c (micromips_globals): New variable.
23945         (mips_set_compression_mode): Save and reinitialize target-dependent
23946         state for microMIPS.
23947
23948 2015-05-18  Martin Liska  <mliska@suse.cz>
23949
23950         * dbgcnt.def: Add new counter.
23951         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23952
23953 2015-05-18  Martin Liska  <mliska@suse.cz>
23954
23955         * dbgcnt.def: Sort counters.
23956         * opts.c (common_handle_option): Do not compile if
23957         -fdbg-cnt-list is enabled.
23958
23959 2015-05-18  Tom de Vries  <tom@codesourcery.com>
23960
23961         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23962         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
23963         address operator to va_list operand.
23964         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23965         unconditionally.
23966         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23967         operand.
23968         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23969         * config/s390/s390.c (s390_gimplify_va_arg): Same.
23970         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23971
23972 2015-05-18  Tom de Vries  <tom@codesourcery.com>
23973
23974         * tree-ssa-tail-merge.c: Fix whitespace.
23975
23976 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
23977
23978         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23979         cortex-a17, and cortex-a17.cortex-a7.
23980
23981 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
23982
23983         PR target/54236
23984         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23985
23986 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
23987
23988         PR target/66174
23989         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23990         QImode inner modes for TARGET_AVX512BW.  Force mask operand
23991         to a register for AVX512F modes.
23992
23993 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
23994
23995         * toplev.c (emit_debug_global_declarations): Do not output debug info
23996         when doing slim LTO objects.
23997
23998 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
23999
24000         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
24001         odr_types_equivalent_p): Declare.
24002         (odr_type_p): Use gcc_checking_assert.
24003         (type_in_anonymous_namespace_p) Declare.
24004         (type_with_linkage_p): Declare.
24005         * common.opt (Wlto-type-mismatch): New warning.
24006         * ipa-devirt.c (compound_type_base): New function.
24007         (odr_or_derived_type_p): New function.
24008         (odr_types_equivalent_p): New function.
24009         (add_type_duplicate): Simplify.
24010         (type_with_linkage_p): Add hack to prevent false positives on C types
24011         (type_in_anonymous_namespace_p): Likewise.
24012         * tree.c (need_assembler_name_p): Use type_with_linkage.
24013         * tree.h (type_in_anonymous_namespace_p): Remove.
24014         * doc/invoke.texi (-Wlto-type-mismatch): Document
24015
24016 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
24017
24018         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
24019         (verify_type): Verify STRING_FLAG.
24020
24021 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24022
24023         PR fortran/44054
24024         * tree-pretty-print.c (percent_K_format): Replace locus pointer
24025         with accessor function.
24026         * tree-diagnostic.c (diagnostic_report_current_function): Use
24027         diagnostic_location function.
24028         (maybe_unwind_expanded_macro_loc): Likewise.
24029         (virt_loc_aware_diagnostic_finalizer): Likewise.
24030         (default_tree_printer): Replace locus pointer with accessor function.
24031         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
24032         (diagnostic_set_info_translated): Initialize second location.
24033         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
24034         (diagnostic_show_locus): Handle two locations. Call
24035         diagnostic_print_caret_line.
24036         (diagnostic_print_caret_line): New.
24037         (default_diagnostic_starter): Use diagnostic_location function.
24038         (diagnostic_report_diagnostic): Use diagnostic_location function.
24039         (verbatim): Do not set text.locus.
24040         * diagnostic.h (struct diagnostic_info): Remove location field.
24041         (struct diagnostic_context): Make caret_chars an array of two.
24042         (diagnostic_location): New inline.
24043         (diagnostic_expand_location): Handle two locations.
24044         (diagnostic_same_line): New inline.
24045         (diagnostic_print_caret_line): Declare.
24046         (CARET_LINE_MARGIN): New constant.
24047         * pretty-print.c (pp_printf): Do not set text.locus.
24048         (pp_verbatim): Do not set text.locus.
24049         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
24050         (struct text_info): Replace locus pointer with locations
24051         array. Add accessor functions.
24052
24053 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
24054             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24055
24056         PR target/65768
24057         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
24058         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
24059          large constants in register instead of splitting them.
24060
24061 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
24062
24063         PR target/66140
24064         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
24065         replacements in memory addresses.
24066         (get_unaligned_address): Ditto.
24067
24068 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
24069
24070         * config/ft32/*: New files for FT32 port.
24071         * doc/install.texi: Add FT32 information.
24072         * doc/invoke.texi: Add FT32 information.
24073         * doc/md.texi: Add FT32 information.
24074         * doc/contrib.texi: Self added.
24075
24076 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
24077
24078         PR tree-optimization/64454
24079         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
24080         (-1 - A -> ~A): Remove unnecessary condition.
24081
24082 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
24083
24084         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
24085         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
24086         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
24087
24088 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
24089
24090         * ipa-chkp.h (chkp_wrap_function): New.
24091         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
24092         (chkp_wrap_function_name): New.
24093         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
24094         to get wrapper name.
24095         * lto-cgraph.c: Include ipa-chkp.h.
24096         (input_cgraph_1): Avoid alias chain for wrappers.
24097
24098 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24099
24100         PR middle-end/66134
24101         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
24102         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
24103
24104 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24105
24106         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
24107         (AARCH64_FL_SLOWMUL): Delete.
24108         (AARCH64_FL_CRC): Redefine to 1<<3.
24109         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
24110
24111 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24112
24113         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
24114         casting.
24115
24116 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
24117
24118         * config/alpha/alpha.md (extendqidi2): Use general_operand
24119         instead of some_operand for operand[1] predicate.
24120         (extendhidi2): Ditto.
24121         (cbranchdi4): Use general_operand instead of some_operand
24122         for operand[1] and operands[2] predicates.
24123         (cstoredi4): Ditto.
24124         * config/alpha/predicates.md (some_operand): Remove unused predicate.
24125         (some_ni_operand): Ditto.
24126
24127 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
24128
24129         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24130         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
24131         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24132         low part of the constant using alpha_emit_set_const_1.
24133         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24134
24135 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
24136
24137         * varasm.c (output_constant_pool_1): Pass down alignment from
24138         constant pool entry's descriptor to output_constant_pool_2.
24139         (output_object_block): Add comment prior to call to
24140         output_constant_pool_1.
24141
24142 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
24143
24144         PR rtl-optimization/65862
24145         * target.def (ira_change_pseudo_allocno_class): New hook.
24146         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24147         value of the hook.
24148         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24149         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24150         hook.
24151         * ira-costs.c (find_costs_and_classes): Call the hook and change
24152         classes when it is necessary.
24153         * doc/tm.texi: Update.
24154
24155 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
24156
24157         * config/i386/i386.md (sibcall_memory): Check that register with
24158         callee address is not also used as one of the arguments, instead
24159         of checking that it is not live after the sibcall.
24160         (sibcall_pop_memory): Ditto.
24161         (sibcall_value_memory): Ditto.
24162         (sibcall_value_pop_memory): Ditto.
24163
24164 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
24165
24166         * generic-match-head.c (types_match): Handle non-types.
24167         * gimple-match-head.c (types_match): Likewise.
24168         * match.pd: Remove unnecessary TREE_TYPE for types_match.
24169
24170 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
24171
24172         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24173         (csneg3<mode>_insn): Enable expansion of pattern.
24174
24175 2015-05-14  Nick Clifton  <nickc@redhat.com>
24176
24177         * config/rl78/rl78.c (rl78_select_section): Select the correct
24178         default section based upon the category of the decl.
24179
24180 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
24181
24182         PR rtl-optimization/30967
24183         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24184         destination mode for the cost of scc patterns.
24185
24186 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
24187
24188         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24189         using SWIM248 mode iterator.
24190         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24191         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
24192         for operand[2] constraint.
24193         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24194
24195 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
24196
24197         PR middle-end/66133
24198         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24199         make sure it is never noreturn, even when the task body does not
24200         return.
24201         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24202         right before GIMPLE_OMP_RETURN.
24203         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24204         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
24205         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24206
24207 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24208
24209         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24210         * tree-ssa-math-opts.c: Include params.h
24211         (pow_synth_sqrt_info): New struct.
24212         (representable_as_half_series_p): New function.
24213         (get_fn_chain): Likewise.
24214         (print_nested_fn): Likewise.
24215         (dump_fractional_sqrt_sequence): Likewise.
24216         (dump_integer_part): Likewise.
24217         (expand_pow_as_sqrts): Likewise.
24218         (gimple_expand_builtin_pow): Use above to attempt to expand
24219         pow as series of square roots.  Removed now unused variables.
24220
24221 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
24222
24223         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24224         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24225         Remove *p0 and *p1 arguments.  Rewrite function.
24226         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24227         (alpha_split_const_mov): Update calls to alpha_extract_integer and
24228         alpha_emit_set_long_const.
24229         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24230         (alpha_output_mi_thunk_osf): Ditto.
24231         * config/alpha/alpha.md (movti): Do not check operands[1]
24232         for CONST_DOUBLE.
24233
24234 2015-05-13  Richard Biener  <rguenther@suse.de>
24235
24236         PR tree-optimization/66129
24237         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24238         commutative.
24239         (vect_schedule_slp_instance): Fix typo.
24240
24241 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
24242
24243         * common.opt (fdump-internal-locations): New option.
24244         * input.c: Include diagnostic-core.h.
24245         (get_end_location): New function.
24246         (write_digit): New function.
24247         (write_digit_row): New function.
24248         (dump_location_range): New function.
24249         (dump_labelled_location_range): New function.
24250         (dump_location_info): New function.
24251         * input.h (dump_location_info): New prototype.
24252         * toplev.c (compile_file): Handle flag_dump_locations.
24253
24254 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
24255
24256         * gimple-expr.h (is_gimple_constant): Reorder.
24257         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24258
24259 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
24260
24261         * combine.c (simplify_set): When generating a CC set, if the
24262         source already is in the correct mode, do not wrap it in a
24263         compare.  Simplify the rest of that code.
24264
24265 2015-05-13  Richard Biener  <rguenther@suse.de>
24266
24267         PR tree-optimization/66123
24268         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24269         a taken edge.
24270
24271 2015-05-13  Richard Biener  <rguenther@suse.de>
24272
24273         PR middle-end/66110
24274         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24275         specially.
24276         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24277
24278 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
24279
24280         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24281         * aclocal.m4: Regenerated with automake-1.11.6.
24282
24283 2015-05-13  Tom de Vries  <tom@codesourcery.com>
24284
24285         PR tree-optimization/66010
24286         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24287         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24288         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
24289         and rval based on do_deref.
24290
24291 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24292
24293         PR target/65103
24294         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24295         link time constants into adress expressions and therefore set
24296         their cost to 0.
24297
24298 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
24299
24300         PR target/66112
24301         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24302         Use SWI248 iterator instead of SWI.
24303         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
24304         Use eq_attr "alternative" "0" instead of match_test in
24305         length_immediate attribute computation.
24306         (*mulvhi4, *mulvhi4_1): New define_insns.
24307
24308         PR target/66112
24309         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24310         SIGNED to get precision of non-negative value.
24311
24312 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24313
24314         PR target/66048
24315         * function.c (diddle_return_value_1): Process bounds first.
24316         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24317         register.
24318
24319 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24320
24321         PR rtl-optimization/64616
24322         * loop-invariant.c (can_move_invariant_reg): New.
24323         (move_invariant_reg): Call above new function to decide whether
24324         instruction can just be moved, skipping creation of temporary
24325         register.
24326
24327 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
24328
24329         PR target/pr66047.c
24330         * i386.c (ix86_function_sseregparm): Only return -1 if local function
24331         with implied regparm is called from -mno-sse function.
24332         (init_cumulative_args): Output error if ix86_function_sseregparm
24333         return -1 and SSE register would be needed.
24334         (function_arg_advance_32): Likewise.
24335         (function_arg_32): Likewise.
24336         * i386.h (ix86_args): Add decl field.
24337
24338 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
24339
24340         PR ipa/65873
24341         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24342         inlines across optimization boundary.
24343
24344 2015-05-12  Jason Merrill  <jason@redhat.com>
24345
24346         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24347         string literal and macro name.
24348
24349 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
24350
24351         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24352         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24353         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24354
24355 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
24356
24357         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24358         (-Wmisleading-indentation): New option.
24359         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24360
24361 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
24362
24363         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24364         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24365         (alpha_extract_integer): Ditto.
24366         (alpha_legitimate_constant_p): Ditto.
24367         (alpha_split_tmode_pair): Ditto.
24368         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24369         (alpha_expand_mov): Ditto.
24370         (print_operand): Remove handling of 'H' modifier.
24371         <case 'm'>: Remove CONST_DOUBLE handling.
24372         (summarize_insn): Handle CONST_WIDE_INT.
24373         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24374         (anddi3): Ditto.
24375         (movti): Handle CONST_WIDE_INT.
24376         * config/alpha/constraints.md ('H'): Remove constraint definition.
24377         ('G'): Do not match MODE_FLOAT class.
24378         * config/alpha/predicates.md (const0_operand): Also match
24379         const_wide_int.
24380         (non_add_const_operand): Ditto.
24381         (non_zero_const_operand): Ditto.
24382         (some_operand): Ditto.
24383         (input_operand): Ditto.  Handle CONST_WIDE_INT.
24384         (and_operand): Do not match const_double.
24385         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24386
24387 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
24388
24389         PR target/65697
24390         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24391         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24392         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24393         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24394         is_mm_seq_cst, is_mm_sync): New accessor functions.
24395         * builtins.c (expand_builtin_sync_operation,
24396         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24397         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24398         (get_memmodel,  expand_builtin_atomic_compare_exchange,
24399         expand_builtin_atomic_load, expand_builtin_atomic_store,
24400         expand_builtin_atomic_clear): Use new accessor routines.
24401         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24402         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24403         (maybe_emit_sync_lock_test_and_set): Use new accessors and
24404         MEMMODEL_SYNC_ACQUIRE.
24405         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24406         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24407         expand_atomic_store): Use new accessors.
24408         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24409         * tsan.c (instrument_builtin_call): Update check for memory model beyond
24410         final enum to use MEMMODEL_LAST.
24411         * c-family/c-common.c: Use new accessor for memmodel_base.
24412         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24413         accessors.
24414         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24415         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24416         mem_thread_fence, *dmb): Likewise.
24417         * config/alpha/alpha.c (alpha_split_compare_and_swap,
24418         alpha_split_compare_and_swap_12): Likewise.
24419         * config/arm/arm.c (arm_expand_compare_and_swap,
24420         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24421         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24422         atomic_loaddi): Likewise.
24423         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24424         Likewise.
24425         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24426         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24427         use new accessors.
24428         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24429         atomic_store<mode>, atomic_compare_and_swap<mode>,
24430         atomic_exchange<mode>): Use new accessors.
24431         * config/mips/mips.c (mips_process_sync_loop): Likewise.
24432         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24433         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24434         rs6000_post_atomic_barrier): Add new cases.
24435         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24436         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24437         (atomic_load<mode>): Add new cases and use new accessors.
24438         (store_quadpti): Add new cases.
24439         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24440         accessors.
24441         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24442         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24443         model, not 8.
24444
24445 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
24446
24447         * ipa-devirt.c (type_with_linkage_p): New function.
24448         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24449         type has linkage.
24450         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24451         (can_be_name_hashed_p): Simplify.
24452         (hash_odr_name): Check that type has linkage before checking if it is
24453         anonymous.
24454         (types_same_for_odr): Likewise.
24455         (odr_name_hasher::equal): Likewise.
24456         (odr_subtypes_equivalent_p): Likewise.
24457         (warn_types_mismatch): Likewise.
24458         (get_odr_type): Likewise.
24459         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24460         * ipa-utils.h (odr_type_p): Move offline.
24461         * tree.c (need_assembler_name_p): Fix handling of types
24462         without linkages.
24463         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24464
24465 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
24466
24467         * timevar.c (timevar_enable): Delete in favor of...
24468         (g_timer): New global.
24469         (struct timevar_def): Move to timevar.h inside class timer.
24470         (struct timevar_stack_def): Likewise.
24471         (timevars): Delete global in favor of field "m_timevars" within
24472         class timer in timevar.h
24473         (stack): Likewise, in favor of field "m_stack".
24474         (unused_stack_instances): Likewise, in favor of field
24475         "m_unused_stack_instances".
24476         (start_time): Likewise, in favor of field "m_start_time".
24477         (get_time): Eliminate check for timevar_enable.
24478         (timer::timer): New function, built from part of timevar_init.
24479         (timevar_init): Rewrite idempotency test from using
24480         "timevar_enable" bool to using dynamic allocation of "g_timer".
24481         Move rest of implementation into timer's constructor.
24482         (timevar_push_1): Rename to...
24483         (timer::push): ...this, adding "m_" prefixes to variables that
24484         are now fields of timer.
24485         (timevar_pop_1): Likewise, rename to...
24486         (timer::pop): ...this, and add "m_" prefixes.
24487         (timevar_start): Replace test for "timevar_enable" with one for
24488         "g_timer", and move bulk of implementation to...
24489         (timer::start): ...here, adding "m_" prefixes.
24490         (timevar_stop): Likewise, from here...
24491         (timer::stop): ...to here.
24492         (timevar_cond_start): Likewise, from here...
24493         (timer::cond_start): ...to here.
24494         (timevar_cond_stop): Likewise, from here...
24495         (timer::cond_stop): ...to here.
24496         (validate_phases): Rename to...
24497         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
24498         locals "total" and "tv" const.
24499         (timevar_print): Rename to...
24500         (timer::print): ...this, and add "m_" prefixes.  Make locals
24501         "total" and "tv" const.  Eliminate test for timevar_enable.
24502         * timevar.h (timevar_enable): Eliminate.
24503         (g_timer): New declaration.
24504         (timevar_push_1): Eliminate.
24505         (timevar_pop_1): Eliminate.
24506         (timevar_print): Eliminate.
24507         (class timer): New class.
24508         (timevar_push): Rewrite to use g_timer.
24509         (timevar_pop): Likewise.
24510         * toplev.c (toplev::~toplev): Likewise.
24511
24512 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
24513
24514         * arm-protos.h (arm_sched_autopref): Delete.
24515         (tune_params): Re-organize, use enums for flag values.
24516         (FUSE_OPS): New macro.
24517         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24518         (ARM_PREFETCH_BENEFICIAL): Likewise.
24519         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24520         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24521         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24522         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24523         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24524         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
24525         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24526         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24527         format.
24528         (arm_option_override, thumb2_reorg, arm_print_tune_info)
24529         (aarch_macro_fusion_pair_p): Update uses of current_tune.
24530         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24531
24532 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
24533
24534         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24535         "break".
24536
24537 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
24538             Sandra Loosemore <sandra@codesourcery.com>
24539
24540         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24541         value.
24542         (REG_CLASS_NAMES): Add "IJMP_REGS".
24543         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24544         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24545         use new "c" register constraint.
24546         * config/nios2/constraint.md (c): New register constraint
24547         corresponding to IJMP_REGS.
24548
24549 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24550
24551         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24552         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24553         define_splits): Delete, revamp, transmogrify into ...
24554         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24555         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24556         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24557         New.
24558
24559 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24560
24561         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24562         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24563
24564 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24565
24566         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24567         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24568         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24569         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24570         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24571         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24572         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24573         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24574         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24575         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24576         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24577         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24578         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24579         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24580         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24581         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24582         and 30 corresponding splitters): Delete.
24583
24584 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24585
24586         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24587         zero_extract.
24588
24589 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24590
24591         * combine.c (recog_for_combine_1): New function, factored out
24592         from recog_for_combine.
24593         (change_zero_ext): New function.
24594         (recog_for_combine): If recog fails, try again with the pattern
24595         modified by change_zero_ext; if that still fails, restore the
24596         pattern.
24597
24598 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24599
24600         * combine.c (get_undo_marker): New function.
24601         (undo_to_marker): New function, largely factored out from ...
24602         (undo_all): ... this.  Adjust.
24603
24604 2015-05-12  Richard Biener  <rguenther@suse.de>
24605
24606         PR tree-optimization/66101
24607         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24608         fixup if we turn a loop exit edge to a fallthru edge.
24609
24610 2015-05-12  Richard Biener  <rguenther@suse.de>
24611
24612         PR tree-optimization/37021
24613         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24614         (SLP_TREE_TWO_OPERATORS): New define.
24615         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24616         SLP_TREE_TWO_OPERATORS.
24617         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24618         SLP node.
24619         (vect_build_slp_tree): Adjust.
24620         (vect_analyze_slp_cost_1): Likewise.
24621         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24622         emitting two vector stmts and mixing the results.
24623
24624 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24625
24626         * call.c (print_z_candidates): Remove dead code.
24627
24628 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24629
24630         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24631         and zEC12_simple_fp.
24632         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24633         to 1.
24634
24635 2015-05-12  Tom de Vries  <tom@codesourcery.com>
24636
24637         PR tree-optimization/66010
24638         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24639         ifn_va_arg.
24640         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24641         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
24642         va_lists are passed, and remove corresponding handling.
24643         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
24644         do_deref argument to ifn_va_arg.
24645         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24646         ifn_va_arg.
24647
24648 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24649
24650         PR target/65955
24651         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24652         REG before taking its REGNO.
24653
24654 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24655
24656         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24657         rsp->sign_bit_copies and rsp->nonzero_bits into ...
24658         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
24659         present to get more accurate information about the number of sign bit
24660         copies and non zero bits.
24661
24662 2015-05-12  Richard Biener  <rguenther@suse.de>
24663
24664         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24665         do not allow unrolling.
24666
24667 2015-05-11  Richard Henderson  <rth@redhat.com>
24668
24669         * config/i386/i386-modes.def (CCP): New.
24670         * config/i386/i386.c (put_condition_code): Handle it.
24671         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24672
24673 2015-05-11  Richard Henderson  <rth@redhat.com>
24674
24675         * target.def (md_asm_clobbers): Replace with...
24676         (md_asm_adjust): this.
24677         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24678         (TARGET_MD_ASM_ADJUST): New.
24679         * tm.texi: Rebuild.
24680         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24681         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24682         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24683
24684         * cfgexpand.c (check_operand_nalternatives): Accept vector of
24685         constraints instead of lists of outputs and inputs.
24686         (expand_asm_stmt): Save and restore input_location around the
24687         body of the function.  Move asm data into vectors instead of
24688         building tree lists.  Generate cleanup sequences as needed,
24689         rather than waiting til the end.  Use new md_asm_adjust hook.
24690
24691         * config/vxworks.c: Include vec.h before target.h.
24692         * gimple.c: Likewise.
24693         * incpath.c: Likewise.
24694         * mode-switching.c: Likewise.
24695
24696         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24697         (cris_md_asm_adjust): this.
24698         (TARGET_MD_ASM_CLOBBERS): Remove.
24699         (TARGET_MD_ASM_ADJUST): New.
24700         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24701         (ix86_md_asm_adjust): this.
24702         (TARGET_MD_ASM_CLOBBERS): Remove.
24703         (TARGET_MD_ASM_ADJUST): New.
24704         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24705         (mn10300_md_asm_adjust): this.
24706         (TARGET_MD_ASM_CLOBBERS): Remove.
24707         (TARGET_MD_ASM_ADJUST): New.
24708         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24709         (rs6000_md_asm_adjust): this.
24710         (TARGET_MD_ASM_CLOBBERS): Remove.
24711         (TARGET_MD_ASM_ADJUST): New.
24712         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24713         (visium_md_asm_adjust): this.
24714         (TARGET_MD_ASM_CLOBBERS): Remove.
24715         (TARGET_MD_ASM_ADJUST): New.
24716
24717 2015-05-11  Richard Henderson  <rth@redhat.com>
24718
24719         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24720         if noutputs is zero.
24721         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24722
24723         * cfgexpand.c (expand_asm_operands): Merge into...
24724         (expand_asm_stmt): ... here.
24725
24726         * cfgexpand.c (expand_asm_operands): Don't call
24727         resolve_asm_operand_names.
24728         * stmt.c (resolve_asm_operand_names): Clarify block comment.
24729
24730 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
24731
24732         * dwarf2out.c (gen_member_die): Sanity check that we access
24733         TYPE_MAIN_VARIANT for TYPE_METHODS.
24734         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24735         checking TYPE_METHODS.
24736         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24737         if non-null.
24738         (build_distinct_type_copy): Clear TYPE_METHODS.
24739         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24740         (verify_type): Allow TYPE_METHODS to be error_mark_node.
24741         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24742
24743 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
24744
24745         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24746         (emit_pattern_before_setloc): Likewise.
24747
24748 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
24749
24750         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24751         for define_peephole2s.
24752         (get_peephole2_pattern): New function.
24753         (main): Use it.  Call validate_pattern.
24754
24755 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
24756
24757         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24758         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24759         (Last callee saved reg is different for AVR_TINY architecture)
24760
24761 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
24762
24763         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24764         when looking for memory references.
24765
24766 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
24767
24768         PR target/65753
24769         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24770         via function pointers.
24771
24772 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
24773
24774         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24775         indirect call by forcing address into a pseudo with -fno-plt.
24776         * common.opt (flag_plt): New option.
24777         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24778         ([-fno-plt]): Document.
24779
24780 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
24781
24782         PR bootstrap/66105
24783         * config/rs6000/option-defaults.h: Add space between string literal
24784         and macro name.
24785
24786 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24787
24788         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24789         accross ARM targets.
24790
24791 2015-05-11  Christian Bruel  <christian.bruel@st.com>
24792
24793         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24794         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24795
24796 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
24797
24798         PR rtl-optimization/66076
24799         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24800         Don't grow the heap array if it is already big enough from a
24801         previous iteration.
24802
24803 2015-05-11  Christian Bruel  <christian.bruel@st.com>
24804
24805         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24806         (is_called_in_ARM_mode): Remove.
24807         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24808         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24809         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24810          arm_declare_function_name.
24811
24812 2015-05-11  Christian Bruel  <christian.bruel@st.com>
24813
24814         * config/arm/arm.c (arm_option_override): Reoganized and split into :
24815         (arm_option_params_internal); New function.
24816         (arm_option_check_internal): New function.
24817         (arm_option_override_internal): New function.
24818         (thumb_code, thumb1_code): Remove.
24819         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24820         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24821         (thumb_code, thumb1_code): Remove.
24822         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24823
24824 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
24825
24826         * config/alpha/alpha.c (alpha_emit_set_const_1)
24827         (alpha_emit_set_long_const, alpha_extract_integer)
24828         (alpha_legitimate_constant_p, alpha_split_const_mov)
24829         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24830         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24831         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24832         HOST_WIDE_INT_1U.
24833         * config/alpha/predicates.md (mode_mask_operand): Do not match
24834         const_double RTX.
24835         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24836         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24837         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24838         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24839         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24840
24841 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
24842
24843         PR target/65780
24844         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24845         default_binds_local_p_2.
24846         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24847         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24848
24849 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24850
24851         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24852
24853 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24854
24855         Patch by Richard Biener
24856         * coverage.c (coverage_obj_init): Delay building of type variant
24857         until the type is finished.
24858
24859 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24860
24861         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24862         mismatch between C and C++ type; compoare correctly ARG_TYPES
24863         for non-prototypes and output correctly parameter index for METHOD_TYPE.
24864         (odr_types_equivalent_p): Fix wording of warning about attributes;
24865         it is OK to match prototype and non-prototype.
24866
24867 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24868
24869         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24870         TYPE_ARG_TYPES list.
24871         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24872         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24873
24874 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24875
24876         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24877         * tree.h (is_lang_specific): Constify.
24878
24879 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
24880
24881         PR tree-optimization/64454
24882         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24883         Rewrite.
24884
24885 2015-05-08  Jason Merrill  <jason@redhat.com>
24886
24887         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24888         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24889         config/darwin.h, config/darwin9.h, config/elfos.h,
24890         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24891         config/microblaze/microblaze.h, config/mips/mips.h,
24892         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24893         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24894         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24895         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24896         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24897         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24898         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24899         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24900         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24901         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24902         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24903         between string literal and macro name.
24904
24905 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24906
24907         * jump.c: Change argument types to rtx_insn *.
24908         * rtl.h: Adjust.
24909
24910 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24911
24912         * lra-constraints.c: Change argument type to rtx_insn *.
24913
24914 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24915
24916         * df-problems.c: Change argument type to rtx_insn *.
24917
24918 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24919
24920         * combine.c: Change argument type to rtx_insn *.
24921
24922 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24923
24924         * rtl.h: Adjust.
24925         * rtlanal.c: Change argument type to rtx_insn *.
24926
24927 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24928
24929         * sched-deps.c: Change argument types to rtx_insn *.
24930         * sched-int.h: Adjust.
24931
24932 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24933
24934         * dwarf2cfi.c: Change argument type to rtx_insn *.
24935
24936 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24937
24938         * ira.c (decrease_live_ranges_number): Changetype of local
24939         variable to rtx_insn *.
24940         * recog.c: Change argument types to rtx_insn *.
24941         * recog.h: Adjust.
24942
24943 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24944
24945         * reorg.c: Change argument types to rtx_insn *.
24946
24947 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24948
24949         * ira-color.c: Change argument types to rtx_insn *.
24950         * lra-eliminations.c: Likewise.
24951         * ira.h: Adjust.
24952
24953 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24954
24955         * gcse.c: Change argument types to rtx_insn *.
24956
24957 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24958
24959         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24960
24961 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24962
24963         * emit-rtl.c (emit_debug_insn_before): Change argument type to
24964         rtx_insn *.
24965         * rtl.h: Adjust.
24966
24967 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24968
24969         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24970         * rtl.h: Adjust.
24971
24972 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24973
24974         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24975         * rtl.h: Adjust.
24976
24977 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24978
24979         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24980         * rtl.h: Adjust.
24981
24982 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24983
24984         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24985         * rtl.h: Adjust.
24986
24987 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24988
24989         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24990         to rtx_insn *.
24991         * rtl.h: Adjust.
24992
24993 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24994
24995         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24996         to rtx_insn *.
24997         * rtl.h: Likewise.
24998
24999 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25000
25001         * except.c (can_nonlocal_goto): Change type of argument to
25002         rtx_insn *.
25003         * rtl.h: Adjust.
25004
25005 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25006
25007         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
25008         * rtl.h: Adjust.
25009
25010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25011
25012         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
25013         * cfgrtl.c (can_delete_label_p): Adjust.
25014         * rtl.h: likewise.
25015
25016 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25017
25018         * reorg.c (stop_search_p): Change argument to rtx_insn *.
25019
25020 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25021
25022         * except.c (make_reg_eh_region_note): Change argument to
25023         rtx_insn *.
25024         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
25025         * except.h: Adjust.
25026
25027 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25028
25029         * mode-switching.c (commit_mode_sets): Change type of local
25030         variable from rtx to rtx_insn *.
25031
25032 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
25033
25034         * doc/install.texi (--enable-languages): Add missing jit and lto info.
25035         Add ^ to grep command.
25036         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
25037         arg to last gimple_simplify declaration.  Add missing gimple_build
25038         declaration for built-in function case with four tree args.
25039
25040 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
25041             Szabolcs Nagy  <szabolcs.nagy@arm.com>
25042
25043         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
25044         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
25045         (GNU_USER_DYNAMIC_LINKERN32): Update.
25046
25047 2015-05-08  Richard Biener  <rguenther@suse.de>
25048
25049         PR tree-optimization/66036
25050         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25051         Handle strided group loads.
25052         (vect_verify_datarefs_alignment): Likewise.
25053         (vect_enhance_data_refs_alignment): Likewise.
25054         (vect_analyze_group_access): Likewise.
25055         (vect_analyze_data_ref_access): Likewise.
25056         (vect_analyze_data_ref_accesses): Likewise.
25057         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
25058         (vectorizable_load): Likewise.
25059
25060 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
25061
25062         * config/rs6000/rs6000.md: Require operand inequality in one
25063         of the peepholes.
25064
25065 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
25066             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
25067
25068         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
25069         from (set ...).
25070         * config/rx/rx.md (movdi, movdf): Likewise.
25071         Likewise for define_peephole2s.
25072
25073 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
25074
25075         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
25076         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
25077         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
25078         vtst_u64): Rewrite using gcc vector extensions.
25079
25080 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
25081
25082         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
25083         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
25084
25085 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
25086
25087         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
25088
25089 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25090
25091         * config/glibc-stdint.h (OPTION_MUSL): Define.
25092         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
25093         Change the definition based on OPTION_MUSL for 64 bit targets.
25094         * config/linux.h (OPTION_MUSL): Redefine.
25095         * config/alpha/linux.h (OPTION_MUSL): Redefine.
25096         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
25097         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
25098
25099 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
25100             Szabolcs Nagy  <szabolcs.nagy@arm.com>
25101
25102         * config.gcc (LIBC_MUSL): New tm_defines macro.
25103         * config/linux.h (OPTION_MUSL): Define.
25104         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
25105         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
25106         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25107         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25108         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25109         * config/linux.opt (mmusl): New option.
25110         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
25111         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25112         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25113         * configure: Regenerate.
25114
25115 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25116             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25117
25118         PR target/48904
25119         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
25120         * config/i386/knetbsd-gnu64.h: New file.
25121
25122 2015-05-08  Marek Polacek  <polacek@redhat.com>
25123
25124         PR c/64918
25125         * doc/invoke.texi: Document -Woverride-init-side-effects.
25126
25127 2015-05-07  Marek Polacek  <polacek@redhat.com>
25128
25129         PR c/65179
25130         * doc/invoke.texi: Document -Wshift-negative-value.
25131
25132 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
25133
25134         * gcov-tool.c (do_merge): Refactore to remove int ret.
25135         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25136         !type == FUNC to type != FUNC.
25137         * reload.h (struct target_reload): Changee to type of
25138         x_spill_indirect_levels from bool to unsigned char.
25139
25140 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
25141
25142         * rtl.h (always_void_p): New function.
25143         * gengenrtl.c (always_void_p): Likewise.
25144         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25145         with code foo are always VOIDmode.
25146         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25147         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25148         compare-elim.c, config/aarch64/aarch64.c,
25149         config/aarch64/aarch64.md, config/alpha/alpha.c,
25150         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25151         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25152         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25153         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25154         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25155         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25156         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25157         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25158         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25159         config/ia64/vect.md, config/iq2000/iq2000.c,
25160         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25161         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25162         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25163         config/mep/mep.c, config/microblaze/microblaze.c,
25164         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25165         config/mn10300/mn10300.c, config/msp430/msp430.c,
25166         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25167         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25168         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25169         config/rs6000/altivec.md, config/rs6000/rs6000.c,
25170         config/rs6000/rs6000.md, config/rs6000/vector.md,
25171         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25172         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25173         config/sh/sh.md, config/sh/sh_treg_combine.cc,
25174         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25175         config/spu/spu.md, config/stormy16/stormy16.c,
25176         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25177         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25178         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25179         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25180         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25181         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25182         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25183         var-tracking.c: Update calls accordingly.
25184
25185 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
25186
25187         PR middle-end/192
25188         PR middle-end/54303
25189         * varasm.c (function_mergeable_rodata_prefix): New function.
25190         (mergeable_string_section): Use it.
25191         (mergeable_constant_section): Use it.
25192
25193 2015-05-07  Jeff Law  <law@redhat.com>
25194
25195         PR target/39726
25196         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25197         simplifier to narrow arithmetic.
25198         * generic-match-head.c: (types_match, single_use): New functions.
25199         * gimple-match-head.c: (types_match, single_use): New functions.
25200
25201 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25202
25203         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25204         rtx type.
25205
25206 2015-05-07  Richard Biener  <rguenther@suse.de>
25207
25208         PR tree-optimization/66002
25209         * passes.def: Schedule another pass_merge_phi after ifcombine, right
25210         before phiopt.
25211
25212 2015-05-07  Marek Polacek  <polacek@redhat.com>
25213             Martin Uecker  <uecker@eecs.berkeley.edu>
25214
25215         * doc/invoke.texi: Document -fsanitize=bounds-strict.
25216         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25217         into SANITIZE_NONDEFAULT.
25218         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25219
25220 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
25221
25222         PR target/66015
25223         * config/alpha/alpha.c (alpha_override_options_after_change): New.
25224         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25225         (alpha_override_options): Move align_loops, align_jumps and
25226         align_functions handling into alpha_override_options_after_change.
25227
25228 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
25229             Chris Jones  <chrisj@nvidia.com>
25230             Joshua Conner  <jconner@nvidia.com>
25231
25232         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25233         linking of crtfastmath.o.
25234         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25235
25236 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
25237
25238         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25239         (cstore<mode>4_unsigned_imm): New expander.
25240         (cstore<mode>4): Remove empty constraint strings.  Use the new
25241         expanders.
25242
25243 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
25244
25245         PR target/64208
25246         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25247         alternatives.
25248
25249 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25250
25251         * config/aarch64/geniterators.sh: Use standard BRE in sed.
25252
25253 2015-05-06  Alan Modra  <amodra@gmail.com>
25254
25255         PR target/66033
25256         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25257         (UNSPEC_NOP): Define.
25258         (reload_vsx_from_gpr<mode>): Add missing DONE.
25259         (reload_gpr_from_vsx<mode>): Likewise.
25260         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25261         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25262
25263 2015-05-06  Christian Bruel  <christian.bruel@st.com>
25264
25265         PR target/66015
25266         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25267         align_jumps, align_functions into aarch64_override_options_after_change.
25268
25269 2015-05-06  Richard Biener  <rguenther@suse.de>
25270
25271         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25272         vect_transform_slp_perm_load to check if we support a permutation
25273         for basic-block vectorization.
25274
25275 2015-05-06  Nick Clifton  <nickc@redhat.com>
25276
25277         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25278         used, even if it is not being used as a frame pointer.
25279
25280 2015-05-05  Jason Merrill  <jason@redhat.com>
25281
25282         * dwarf2out.c (gen_member_die): Don't emit anything for an
25283         anonymous class constructor.
25284
25285 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
25286
25287         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25288         that it reflects the block structure.
25289         (afdo_propagate_edge): Likewise.
25290         (afdo_calculate_branch_prob): Likewise.
25291         (afdo_annotate_cfg): Likewise.
25292         * cfgcleanup.c (equal_different_set_p): Likewise.
25293         (try_crossjump_to_edge): Likewise.
25294         * cgraph.c (cgraph_node::verify_node): Likewise.
25295         * cgraphunit.c (expand_all_functions): Likewise.
25296         * config/i386/i386.c (ix86_expand_copysign): Likewise.
25297         (exact_dependency_1): Likewise.
25298         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25299         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25300         * gensupport.c (process_define_subst): Likewise.
25301         * lto-wrapper.c (merge_and_complain): Likewise.
25302         * tree-if-conv.c (if_convertible_bb_p): Likewise.
25303         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25304         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25305         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25306         * tree-vect-loop.c (vectorizable_reduction): Likewise.
25307         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25308         * tree-vect-stmts.c (vectorizable_shift): Likewise.
25309         * tree-vrp.c (vrp_finalize): Likewise.
25310         * tree.c (variably_modified_type_p): Likewise.
25311
25312 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
25313
25314         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25315         on darwin12 and later.
25316         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25317         file to pass -rdynamic on darwin12 and later.
25318         * config/darwin.opt (rdynamic): Add.
25319
25320 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25321
25322         * doc/extend.texi (C Extensions): Update menu for moved Variable
25323         Attributes and Type Attributes sections.
25324
25325 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25326
25327         PR target/65990
25328         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25329         if rep_8byte stringop strategy was specified for 32-bit target.
25330
25331 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
25332
25333         PR target/65915
25334         * config/i386/i386.md (vector convert to float spltiter): Check for
25335         xmm16+, when splitting scalar float conversion.
25336         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25337
25338 2015-05-05  Nick Clifton  <nickc@redhat.com>
25339
25340         * config/msp430/msp430-opts.h (enum msp430_regions): New.
25341         * config/msp430/msp430.c (msp430_override_options): Complain if
25342         -mcode-region or -mdata-region is used on a non MSP430X.
25343         (msp430_section_attr): New function.  Checks lower, upper and
25344         either attributes.
25345         (msp430_attribute_table): Add lower, upper and either.
25346         (gen_prefix): New function.  Generates a prefix for a section
25347         name.
25348         (msp430_select_section): New function - handles the choice of
25349         section for an object.  Takes into account memory region
25350         attributes and options.
25351         (msp430_function_section): Use gen_prefix.
25352         (TARGET_SECTION_TYPE_FLAGS): Define.
25353         (msp430_section_type_flags): New function.
25354         (TARGET_ASM_UNIQUE_SECTION): Define.
25355         (msp430_unique_section): New function.
25356         (msp430_output_aligned_decl_common): New function.
25357         (msp430_do_not_relax_short_jumps): New function.
25358         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25359         Define.
25360         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25361         * config/msp430/msp430-protos.h
25362         (msp430_do_not_relax_short_jumps): New prototype.
25363         (msp430_output_aligned_decl_common): New prototype.
25364         * config/msp430/msp430.md (length): New attribute.
25365         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25366         then use a long code sequence for short jumps.
25367         * config/msp430/msp430.opt (mcode-region): New.
25368         (mdata-region): New.
25369         * doc/invoke.texi: Document new options.
25370         * doc/extend.texi: Document new attributes.
25371
25372 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
25373
25374         * config/aarch64-protos.h (struct cpu_branch_cost): New.
25375         (tune_params): Add field branch_costs.
25376         (aarch64_branch_cost): Declare.
25377         * config/aarch64.c (generic_branch_cost): New.
25378         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25379         (cortexa53_tunings): Likewise.
25380         (cortexa57_tunings): Likewise.
25381         (thunderx_tunings): Likewise.
25382         (xgene1_tunings): Likewise.
25383         (aarch64_branch_cost): Define.
25384         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25385
25386 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25387
25388         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25389         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25390         * config/i386/i386.md: Ditto.
25391         * config/i386/winnt.c: Ditto.
25392
25393 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
25394
25395         * doc/extend.texi (__atomic Builtins): Move implementation details
25396         to the end of the description, rewrite opening paragraphs, state
25397         difference with __sync builtins, state C11/C++11 assumptions,
25398         weaken itemized descriptions, add explanation of memory model
25399         behaviour, expand description of compare-exchange, simplify text.
25400
25401 2015-05-05  Renlin Li  <renlin.li@arm.com>
25402
25403         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25404
25405 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
25406
25407         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25408         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25409         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25410         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25411         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25412         * configure: Regenerate.
25413         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25414         * doc/install.texi (aarch64*-*-*): Document new
25415         --enable-fix-cortex-a53-843419 option.
25416         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25417         and -mno-fix-cortex-a53-843419 options.
25418
25419 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25420
25421         PR target/65871
25422         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25423
25424 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
25425
25426         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25427         fix overactive TYPE_MIN_VALUE check and add FIXME for type
25428         compatibility problems.
25429
25430 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
25431
25432         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25433         constraints.
25434         (cbranchsi4_reg): New.
25435         * config/microblaze/microblaze.c
25436         (microblaze_expand_conditional_branch_reg): New.
25437         * config/microblaze/microblaze-protos.h
25438         (microblaze_expand_conditional_branch_reg): New prototype.
25439
25440 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
25441
25442         * config/microblaze/microblaze.md (peephole2): New.
25443
25444 2015-05-04  Jeff Law  <law@redhat.com>
25445
25446         Revert:
25447         2015-05-04  Jeff Law  <law@redhat.com>
25448
25449         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25450         simplifier to narrow arithmetic.
25451         * generic-match-head.c: (types_match, single_use): New functions.
25452         * gimple-match-head.c: (types_match, single_use): New functions.
25453
25454 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
25455
25456         PR target/65987
25457         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25458         (split_branches): Likewise.
25459
25460 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
25461
25462         * common.opt (fdelete-null-pointer-checks): Init to -1.
25463         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25464         override flag_delete_null_pointer_checks default.
25465         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25466         behavior re address zero.  Better document target-specific behavior.
25467         (-fisolate-errneous-paths-dereference): Mention relationship to
25468         -fdelete-null-pointer-checks.
25469
25470 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
25471
25472         PR tree-optimization/65984
25473         * ubsan.c: Include tree-cfg.h.
25474         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25475         stmt_could_throw_p test, rename can_throw variable to ends_bb.
25476
25477 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
25478
25479         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25480         to CONST_DOUBLE_P predicate.
25481         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25482         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25483         allow only operands that satisfy standard_sse_constant_p predicate.
25484         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25485         to CONST_DOUBLE_P predicate.
25486
25487 2015-05-04  Jeff Law  <law@redhat.com>
25488
25489         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25490         simplifier to narrow arithmetic.
25491         * generic-match-head.c: (types_match, single_use): New functions.
25492         * gimple-match-head.c: (types_match, single_use): New functions.
25493
25494 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
25495
25496         * config/arm/arm.c: Restore bootstrap.
25497
25498 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
25499
25500         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25501         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25502         as CONST_WIDE_INT, not CONST_DOUBLE.
25503         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25504         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25505         (ix86_find_base_term): Do not check for CONST_DOUBLE.
25506         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25507         (ix86_build_signbit_mask): Rewrite using wide ints.
25508         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25509         (ix86_rtx_costs): Handle CONST_WIDE_INT.
25510         (find_constant): Ditto.
25511         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25512         using gen_int_mode.
25513         * config/i386/predicates.md (x86_64_immediate_operand)
25514         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25515         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25516         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25517         (const0_operand): Also match const_wide_int.
25518         (constm1_operand): Ditto.
25519         (const1_operand): Ditto.
25520
25521 2015-05-04  Richard Biener  <rguenther@suse.de>
25522
25523         PR tree-optimization/65965
25524         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25525         store groups at gaps.
25526
25527 2015-05-04  Richard Biener  <rguenther@suse.de>
25528
25529         PR tree-optimization/65935
25530         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25531         then make sure to apply that swapping to the IL.
25532
25533 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
25534
25535         * Makefile.in (PATCHLEVEL_c): New variable.
25536         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25537         expand the same way as if DEVPHASE_c was non-empty.
25538
25539 2015-05-04  Kai Tietz  <ktietz@redhat.com>
25540
25541         PR target/65559
25542         * lto-wrapper.c (run_gcc): Open filename
25543         in binary-mode.
25544
25545 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
25546
25547         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
25548         sections up in file, to immediately after the Function Attributes
25549         section.
25550
25551 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
25552
25553         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25554
25555 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25556
25557         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25558         (insert_partition_copy_on_edge): Adjust.
25559         (insert_rtx_to_part_on_edge): Likewise.
25560         (insert_part_to_rtx_on_edge): Likewise.
25561
25562 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25563
25564         * function.c (set_return_jump_label): Change type of argument to
25565         rtx_insn *.
25566         * function.h (set_return_jump_label): Adjust.
25567
25568 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25569
25570         * reload.h (struct reg_equivs_t): Change type of init to
25571         rtx_insn *.
25572         * ira.c (fix_reg_equiv_init): Adjust.
25573         * reload1.c (eliminate_regs_1): Likewise.
25574         (init_eliminable_invariants): Likewise.
25575
25576 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25577
25578         * cselib.c (fp_setter_insn): Take a rtx_insn *.
25579         * cselib.h (fp_setter_insn): Adjust.
25580
25581 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25582
25583         * recog.c (struct validate_replace_src_data): Change type of
25584         insn field to rtx_insn *.
25585         (validate_replace_src_group): Change type of argument to rtx_insn *.
25586         * recog.h (validate_replace_src_group): Adjust.
25587
25588 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25589
25590         * haifa-sched.c: Change the type of some variables to rtx_insn *.
25591         * sched-deps.c: Likewise.
25592         * sched-int.h: Likewise.
25593         * sched-rgn.c: Likewise.
25594         * sel-sched.c: Likewise.
25595
25596 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25597
25598         to rtx_insn *.
25599         * config/i386/i386.c: Change the type of some arguments to
25600         rtx_insn *.
25601         * config/arm/arm.c: Likewise.
25602
25603 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25604
25605         * lra-constraints.c: Change type of some arguments to rtx_insn *.
25606
25607 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25608
25609         * regcprop.c (kill_autoinc_value): Change type of argument to
25610         rtx_insn *.
25611
25612 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25613
25614         * genrecog.c (print_subroutine): Adjust.
25615         * recog.c (get_bool_attr_mask_uncached): Likewise.
25616         * recog.h (struct recog_data_d): Change the type of insn to
25617         rtx_insn *.
25618
25619 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25620
25621         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25622
25623 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25624
25625         * df-problems.c (df_set_note): Change type of argument to
25626         rtx_insn *.
25627
25628 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25629
25630         * builtins.c (expand_builtin_trap): Change type of local
25631         variable to rtx_insn *.
25632         (add_sched_insns_for_speculation): Likewise.
25633         (ix86_emit_save_regs): Likewise.
25634         (get_scratch_register_on_entry): Likewise.
25635         (ix86_emit_restore_reg_using_pop): Likewise.
25636         (ix86_emit_leave): Likewise.
25637         (ix86_emit_restore_regs_using_mov): Likewise.
25638         (ix86_expand_epilogue): Likewise.
25639         Likewise.
25640         (rl78_alloc_physical_registers_umul): Likewise.
25641         * cselib.c (discard_useless_locs): Likewise.
25642         (cselib_invalidate_regno): Likewise.
25643         (cselib_invalidate_mem): Likewise.
25644         * function.c (expand_function_start): Likewise.
25645         (emit_use_return_register_into_block): Likewise.
25646         * gcse.c: Likewise.
25647         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25648         * ifcvt.c (noce_get_alt_condition): Likewise.
25649         * loop-doloop.c (doloop_condition_get): Likewise.
25650         * lra-constraints.c (inherit_in_ebb): Likewise.
25651         * modulo-sched.c (sms_schedule_by_order): Likewise.
25652         * recog.c (next_insn_tests_no_inequality): Likewise.
25653         * reorg.c (emit_delay_sequence): Likewise.
25654         (update_reg_dead_notes): Likewise.
25655         (fix_reg_dead_note): Likewise.
25656         (fill_slots_from_thread): Likewise.
25657         (delete_computation): Likewise.
25658
25659 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
25660
25661         * doc/extend.texi (Variable Attributes): Add menu and proper
25662         @nodes to subsections.  Move Microsoft Windows attributes to
25663         their own subsection.
25664         (Type Attributes): Reorganize introduction to remove duplicate
25665         list of attributes.  Add menu and proper @nodes to subsections.
25666         Alphabetize the main table of common attributes.
25667
25668 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25669
25670         * match.pd: New simplification patterns.
25671         (x + (x & 1))  -> ((x + 1) & ~1)
25672         (x & ~(x & y)) -> ((x & ~y))
25673         (x | ~(x | y)) -> ((x | ~y))
25674
25675 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25676
25677         * target.def (attribute_table): Mention that struct attribute_spec
25678         is defined in tree-core.h rather than tree.h
25679         * doc/tm.texi: Regenerate.
25680
25681 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
25682
25683         * genrecog.c (test): Rename to rtx_test.  Update rest of file
25684         accordingly.
25685
25686 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25687
25688         PR translation/65959
25689         * params.h (DEFPARAM): Rename msgid to nocmsgid.
25690
25691 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
25692
25693         * config/aarch64/aarch64-protos.h (tune_params):
25694         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25695         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25696         Return value depending on target.
25697         (generic_tunings): Initialize new target settings.
25698         (cortexa53_tunings): Likewise.
25699         (cortexa57_tunings): Likewise.
25700         (thunderx_tunings): Likewise.
25701         (xgene1_tunings): Likewise.
25702
25703 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
25704
25705         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25706         Make Cortex-A53 shift costs more accurate.
25707
25708 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25709
25710         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25711         UNSIGNED_FLOAT.
25712
25713 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
25714
25715         * config/aarch64/aarch64.c (aarch64_rtx_costs):
25716         Calculate cost of op0 and op1 in PLUS and MINUS cases.
25717
25718 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25719
25720         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25721         Add cost of op0 in the compare-with-fpzero case.
25722
25723 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
25724
25725         * builtins.c (fold_builtin_1): Remove spurious second
25726         semicolon.
25727         * cgraph.h (symtab_node::get_availability): Likewise.
25728         * opts.c (common_handle_option): Remove spurious second semicolon.
25729         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25730         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25731
25732 2015-04-30  Caroline Tice  <cmtice@google.com>
25733
25734         PR gcov-profile/65929
25735         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25736         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25737         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25738         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25739         * doc/tm.texi: Regenerate.
25740         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
25741         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25742         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
25743         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25744
25745 2015-04-30  Marek Polacek  <polacek@redhat.com>
25746
25747         * varasm.c (handle_cache_entry): Fix logic.
25748
25749 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25750
25751         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25752         (*extrsi5_insn_uxtw_alt): Likewise.
25753         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25754         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25755         operations.
25756
25757 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25758
25759         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25760         fabd in ABS case.
25761
25762 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25763
25764         * config/aarch64/aarch64.md
25765         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25766         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25767         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25768         appropriately.  Handle alternative EON form.
25769
25770 2015-04-30  Renlin Li  <renlin.li@arm.com>
25771
25772         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25773         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25774
25775 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
25776
25777         PR ipa/65873
25778         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25779         -fstrict-aliasing boundaries.
25780
25781 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25782
25783         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25784         and [SU]MNEGL patterns.
25785
25786 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25787
25788         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25789         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25790         combined arithmetic-shift ops.  Properly handle all shift and extend
25791         operations that can occur in combination with PLUS/MINUS.
25792         Rename maybe_fma to compound_p.
25793         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25794         arithmetic and shift operations.
25795
25796 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25797
25798         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25799         rather than arith_shift cost when costing ADD/MINUS of an
25800         extended value.
25801
25802 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
25803
25804         PR lto/65948
25805         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25806         to itself.
25807
25808 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
25809
25810         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25811         are for the same position.
25812
25813 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
25814
25815         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
25816         vectorize_loops.
25817         (vectorize_loops): Use it.
25818
25819 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
25820
25821         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25822         for aggregate types.
25823         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25824         type to be non_ODR.
25825         * tree.c (need_assembler_name_p): Compute mangled name for
25826         non-fundamental types and integer types.
25827
25828 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
25829
25830         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25831         manual swaps.
25832         * expr.c (expand_expr_real_2): Likewise.
25833
25834 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
25835
25836         * tree.c (build_common_builtin_nodes): Do not build
25837         __builtin_alloca_with_align as equivalent of library alloca.
25838
25839 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
25840
25841         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25842         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25843         bugus variants.
25844         * tree.c: Include print-tree.h and ipa-utils.h
25845         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25846         (free_lang_data_in_cgraph): Call verify_type.
25847         (verify_type_variant): New function.
25848         (verify_type): New function.
25849         * tree.h (verify_type): Declare.
25850
25851 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
25852
25853         * config/mips/mips-cpus.def: (mips4): Change default processor
25854         from PROCESSOR_R8000 to PROCESSOR_R10000.
25855
25856 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
25857
25858         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25859         la/jalr instead of jal.
25860
25861 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
25862
25863         PR target/65871
25864         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25865         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25866         (setcc+movzbl peephole2): Check also clobbered reg.
25867         (setcc+andl peephole2): Ditto.
25868
25869 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
25870
25871         PR libgomp/65099
25872         * config/nvptx/mkoffload.c (target_ilp32): New variable.
25873         (main): Set it depending on "-foffload-abi=[...]".
25874         (compile_native, main): Use it to pass "-m32" or "-m64" to the
25875         compiler.
25876
25877 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25878
25879         PR target/65770
25880         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25881         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25882         Flip lane index back at assembly time for bigendian.
25883
25884 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
25885
25886         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25887         * gimplify.c (gimplify_omp_workshare): Use it.
25888
25889 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25890
25891         * Makefile.in (build/genrecog.o): Depend on inchash.h.
25892         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25893         build/inchash.o
25894         * genrecog.c: Rewrite most of the code except for the third page.
25895
25896 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25897
25898         * inchash.h, inchash.c: Include bconfig.h for build objects.
25899         * Makefile.in (build/inchash.o): New rule.
25900
25901 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
25902
25903         PR target/65924
25904         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25905         number in type attribute expression.
25906
25907 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25908
25909         * loop-iv.c (canon_condition): Generalize to all types of integer
25910         constant.
25911
25912 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
25913
25914         * gimple-walk.c: Prune duplicate or unneeded includes.
25915         (walk_gimple_asm): Only call parse_input_constraint or
25916         parse_output_constraint if their findings are used.
25917         Honour parse_input_constraint and parse_output_constraint
25918         result.
25919
25920 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25921
25922         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25923
25924 2015-04-29  Tom de Vries  <tom@codesourcery.com>
25925
25926         PR tree-optimization/65893
25927         * passes.def (pass_all_optimizations): Move pass_stdarg to after
25928         pass_dce.
25929
25930 2015-04-29  Richard Biener  <rguenther@suse.de>
25931
25932         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25933         compute GROUP_SIZE for basic-block SLP.
25934         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25935         take into account gaps.
25936         (vect_get_mask_element): Properly reject references to previous
25937         vectors.
25938         (vect_transform_slp_perm_load): Likewise.
25939
25940 2015-04-29  Christian Bruel  <christian.bruel@st.com>
25941
25942         PR target/64835
25943         * config/i386/i386.c (ix86_default_align): New function.
25944         (ix86_override_options_after_change): Call ix86_default_align.
25945         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25946         (ix86_override_options_after_change): New function.
25947
25948 2015-04-28  Jeff Law  <law@redhat.com>
25949
25950         * tree-ssa-dom.c (record_equality); Fix comment typos.
25951
25952 2015-04-28  Tom de Vries  <tom@codesourcery.com>
25953
25954         PR tree-optimization/65887
25955         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25956
25957 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
25958
25959         * doc/extend.texi (Declaring Attributes of Functions): Split into
25960         subsections by target.  Alphabetize the table of common attributes.
25961         Rewrite some of the introductory text to reflect the new structure.
25962         Update some cross-references to point to the new subsections.
25963         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
25964         duplicate copies in the discussion of function, label, and type
25965         attributes.
25966
25967 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
25968
25969         PR bootstrap/65910
25970         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25971
25972 2015-04-28  Jason Merrill  <jason@redhat.com>
25973
25974         PR c++/65734
25975         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25976         (finalize_type_size): Respect TYPE_USER_ALIGN.
25977         (layout_type) [ARRAY_TYPE]: Likewise.
25978
25979 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
25980
25981         * config/arm/arm.md (*arm_movt): Fix type attribute.
25982         (*cmpsi_shiftsi): Likewise.
25983         (*cmpsi_shiftsi_swp): Likewise.
25984         (*movsicc_insn): Likewise.
25985         (*cond_move): Likewise.
25986         (*if_plus_move): Likewise.
25987         (*if_move_plus): Likewise.
25988         (*if_arith_move): Likewise.
25989         (*if_move_arith): Likewise.
25990         (*if_shift_move): Likewise.
25991         (*if_move_shift): Likewise.
25992         (*arm_movtas_ze): Likewise.
25993         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25994         redundancy and type attribute.
25995         (*thumb2_movsi_insn): Fix type attribute.
25996         (*thumb2_addsi_short): Likewise.
25997         (thumb2_addsi3_compare0): Likewise.
25998         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25999         attributes accordingly.
26000
26001 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
26002
26003         PR other/65911
26004         * function.c (pad_to_arg_alignment): Add parentheses.
26005
26006 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
26007
26008         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
26009         libgcc/config/frv/elf-lib.h.
26010
26011 2015-04-28  Tom de Vries  <tom@codesourcery.com>
26012
26013         * tree-call-cdce.c: Fix example in header comment.
26014
26015 2015-04-28  Richard Biener  <rguenther@suse.de>
26016
26017         PR tree-optimization/62283
26018         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
26019         fails fatally and we are vectorizing a basic-block simply
26020         cause the child to be constructed piecewise.
26021         (vect_analyze_slp_cost_1): Adjust.
26022         (vect_detect_hybrid_slp_stmts): Likewise.
26023         (vect_bb_slp_scalar_cost): Likewise.
26024         (vect_get_constant_vectors): For piecewise constructed
26025         constants place them after the last def.
26026         (vect_get_slp_defs): Adjust.
26027         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
26028         externals for basic-block vectorization.
26029
26030 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26031
26032         PR target/63503
26033         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
26034         aarch64-*-*.
26035         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
26036         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
26037         (AARCH64_TUNE_FMA_STEERING): Likewise.
26038         * config/aarch64/aarch64-cores.def: Set
26039         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
26040         FMUL/FMADD instructions.
26041         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
26042         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
26043         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
26044         * config/aarch64/cortex-a57-fma-steering.h: New file.
26045         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26046
26047 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
26048
26049         * gensupport.c (std_preds): Add missing codes to address_operand entry.
26050
26051 2015-04-28  Richard Biener  <rguenther@suse.de>
26052
26053         PR tree-optimization/65851
26054         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
26055         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
26056         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
26057         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
26058         (ccp_visit_phi_node): Adjust.
26059         (evaluate_stmt): For simplifications to SSA names return its
26060         lattice value if that isn't VARYING.  Return immediately when
26061         simplified to a constant.
26062         (visit_assignment): Adjust.
26063         (ccp_visit_stmt): Likewise.
26064
26065 2015-04-28  Tom de Vries  <tom@codesourcery.com>
26066
26067         PR tree-optimization/65818
26068         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
26069         evaluated.
26070
26071 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26072
26073         * calls.c (save_fixed_argument_area): Don't check
26074         ARGS_GROW_DOWNWARD with the preprocessor.
26075         (restore_fixed_argument_area): Likewise.
26076         (mem_overlaps_already_clobbered_arg_p): Likewise.
26077         (check_sibcall_argument_overlap): Likewise.
26078         (expand_call): Likewise.
26079         (emit_library_call_value_1): Likewise.
26080         (store_one_arg): Likewise.
26081         * function.c (assign_parms): Likewise.
26082         (locate_and_pad_parm): Likewise.
26083         (pad_to_arg_alignment): Likewise.
26084         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26085
26086 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26087
26088         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
26089         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
26090         * calls.c (save_fixed_argument_area): Don't chekc if
26091         ARGS_GROW_DOWNWARD is defined.
26092         (restore_fixed_argument_area): Likewise.
26093         (mem_overlaps_already_clobbered_arg_p): Likewise.
26094         (check_sibcall_argument_overlap): Likewise.
26095         (expand_call): Likewise.
26096         (emit_library_call_value_1): Likewise.
26097         (store_one_arg): Likewise.
26098         * function.c (assign_parms): Likewise.
26099         (locate_and_pad_parm): Likewise.
26100         (pad_to_arg_alignment): Likewise.
26101         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26102
26103 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26104
26105         * defaults.h (gen_epilogue): New function.
26106         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
26107         defined.
26108         * cfgrtl.c (cfg_layout_finalize): Likewise.
26109         * df-scan.c: Likewise.
26110         * function.c (thread_prologue_and_epilogue_insns): Likewise.
26111         (reposition_prologue_and_epilogue_notes): Likewise.
26112         * reorg.c (find_end_label): Likewise.
26113         * toplev.c: Likewise.
26114
26115 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26116
26117         * bb-reorder.c (HAVE_return): Don't check if its undefined.
26118         * defaults.h (gen_simple_return): New function.
26119         (gen_simple_return): Likewise.
26120         (HAVE_return): Add default definition to false.
26121         (HAVE_simple_return): Likewise.
26122         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
26123         HAVE_return and HAVE_simple_return are defined.
26124         * function.c (gen_return_pattern): Likewise.
26125         (convert_jumps_to_returns): Likewise.
26126         (thread_prologue_and_epilogue_insns): Likewise.
26127         * reorg.c (find_end_label): Likewise.
26128         (dbr_schedule): Likewise.
26129         * shrink-wrap.c: Likewise.
26130         * shrink-wrap.h: Likewise.
26131
26132 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26133
26134         * defaults.h (EPILOGUE_USES): Add default definition of false.
26135         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26136         * resource.c (init_resource_info): Likewise.
26137
26138 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26139
26140         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26141         to false.
26142         * dwarf2out.c (field_byte_offset): REmove check if
26143         PCC_BITFIELD_TYPE_MATTERS is defined.
26144         * stor-layout.c (layout_decl): Likewise.
26145         (update_alignment_for_field): Likewise.
26146         (place_field): Likewise.
26147
26148 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26149
26150         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26151         true.
26152         * regrename.c (check_new_reg_p): Remove check if
26153         HARD_REGNO_RENAME_OK is defined.
26154         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26155
26156 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26157
26158         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26159         * cse.c (fold_rtx): Likewise.
26160         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26161         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26162         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26163         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26164         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26165         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26166         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26167         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26168         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26169         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26170         * Likewise.
26171         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26172         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26173         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26174         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26175         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26176         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26177         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26178         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26179         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26180         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26181         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26182         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26183         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26184         * doc/tm.texi: Regenerate.
26185         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26186         either true or false.
26187
26188 2015-04-27  Jeff Law  <law@redhat.com>
26189
26190         PR tree-optimization/65217
26191         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26192         of them has a single use, make sure it is the LHS of the implied
26193         copy.
26194
26195 2015-04-28  Alan Modra  <amodra@gmail.com>
26196
26197         PR target/65810
26198         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26199         (offsettable_ok_by_alignment): Use minimum of decl and toc
26200         pointer alignment.  Replace dead code with assertion.
26201         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
26202         case if size exceeds toc pointer alignment.
26203         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26204         (rs6000_emit_move): Likewise.
26205         * configure.ac: Add linker toc pointer alignment check.
26206         * configure: Regenerate.
26207         * config.in: Regenerate.
26208
26209 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
26210
26211         * config.gcc: Add h8300-*-linux.
26212         * config/h8300/linux.h: New.
26213         * config/h8300/t-linux: New.
26214         * config/h8300/h8300.c (h8300_option_override): Normal mode
26215         is not supported for h8300-*-linux.
26216         (h8300_file_start): Target priority change.
26217         (get_shift_alg): Likewise.
26218         (h8300_shift_need_scratch_p): Likewise.
26219         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26220         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26221
26222 2015-04-27  Caroline Tice  <cmtice@google.com>
26223
26224         * final.c (final_scan_insn):  Output cold_function_name as function
26225         type.
26226         * varasm.c (cold_function_name):  Make global.
26227         (assemble_start_function):  Re-set cold_function_name.
26228         (assemble_end_function): Output cold partition size.
26229         * varasm.h (cold_function_name):  Declare global.
26230
26231 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
26232
26233         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26234         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26235         constraint.
26236         (*movxi_internal_avx512f): Ditto.
26237         (define_split): Check for xmm16+, when splitting scalar float_extend.
26238         (*extendsfdf2_mixed): Use "v" constraint.
26239         (define_split): Check for xmm16+, when splitting scalar float_truncate.
26240         (*truncdfsf_fast_sse): Use "v" constraint.
26241         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26242         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26243         (define_peephole2): Check for xmm16+, when converting scalar
26244         float_truncate.
26245         (define_peephole2): Check for xmm16+, when converting scalar
26246         float_extend.
26247         (*fop_<mode>_comm_mixed): Use "v" constraint.
26248         (*fop_<mode>_comm_sse): Ditto.
26249         (*fop_<mode>_1_mixed): Ditto.
26250         (*sqrt<mode>2_sse): Ditto.
26251         (*ieee_s<ieee_maxmin><mode>3): Ditto.
26252
26253 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26254
26255         * combine.c (simplify_if_then_else): Use std::swap instead
26256         of manually swapping.
26257         (known_cond): Likewise.
26258         (simplify_comparison): Likewise.
26259
26260 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
26261
26262         PR target/64579
26263         * config/rs6000/htm.md: Remove all define_expands.
26264         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26265         UNSPECV_HTM_TABORTWCI): Remove.
26266         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26267         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26268         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26269         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26270         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26271         tabortwci_internal): Remove define_insns.
26272         (tabort<wd>c, tabort<wd>ci): New define_insns.
26273         (tabort): Use gpc_reg_operand.
26274         (tcheck): Remove operand.
26275         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26276         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26277         expected value.
26278         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26279         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
26280         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26281         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26282         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26283         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26284         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26285         (tcheck): Remove builtin argument.
26286         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26287         not TARGET_64BIT.
26288         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
26289         tabortdc and tabortdci builtins when not in 64-bit mode.
26290         Modify code to handle the loss of the HTM define_expands.
26291         Emit code to copy the CR register to TARGET.
26292         (htm_init_builtins): Modify code to handle the loss of the HTM
26293         define_expands.
26294         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26295         (RS6000_BTC_64BIT): Likewise.
26296         (RS6000_BTC_CR): New macro.
26297         * doc/extend.texi: Update documentation for htm builtins.
26298
26299 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26300
26301         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26302         of manually swapping.
26303         (simplify_associative_operation): Likewise.
26304         (simplify_binary_operation): Likewise.
26305         (simplify_plus_minus): Likewise.
26306         (simplify_relational_operation): Likewise.
26307         (simplify_ternary_operation): Likewise.
26308
26309 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
26310
26311         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26312         (xs_hi_nonmemory_operand): Remove error.
26313         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26314         general_operand rather than xs_hi_general_operand.
26315
26316 2015-04-27  Richard Biener  <rguenther@suse.de>
26317
26318         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26319         (record_equivalences_from_stmt): Valueize rhs.
26320         (record_equality): Canonicalize x and y order via
26321         tree_swap_operands_p.  Do not swap operands for same loop depth.
26322
26323 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
26324
26325         PR target/65296
26326         PR target/65895
26327         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26328         Add hint how to use own spec file.
26329
26330 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
26331
26332         PR tree-optimization/65875
26333         * tree-vrp.c (update_value_range): If in is_new case setting
26334         old_vr to VR_VARYING, also set new_vr to it.  Remove
26335         old_vr->type == VR_VARYING test.
26336         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26337         SSA_PROP_INTERESTING if update_value_range returned true,
26338         but new range is VR_VARYING.
26339
26340 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26341
26342         * combine.c (sign_extend_short_imm): New.
26343         (set_nonzero_bits_and_sign_copies): Use above new function for sign
26344         extension of src short immediate.
26345         (reg_nonzero_bits_for_combine): Likewise for tem.
26346
26347 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26348
26349         * stor-layout.c (self_referential_component_ref_p): New predicate.
26350         (copy_self_referential_tree_r): Use it.
26351         (self_referential_size): Punt for simple operations directly involving
26352         self-referential component references.
26353         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26354
26355 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26356
26357         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26358
26359 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
26360
26361         * vec.h (vec): Make splice arguments const.  Update definitions
26362         accordingly.
26363
26364 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
26365
26366         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26367         alternatives.
26368
26369 2015-04-26  Tom de Vries  <tom@codesourcery.com>
26370
26371         PR tree-optimization/65826
26372         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26373
26374 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
26375
26376         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26377         (*madd3<mode>): Ditto.
26378         (*msub4<mode>): Ditto.
26379         (*msub3<mode>): Ditto.
26380         (*nmadd4<mode>): Ditto.
26381         (*nmadd3<mode>): Ditto.
26382         (*nmadd4<mode>_fastmath): Ditto.
26383         (*nmadd3<mode>_fastmath): Ditto.
26384         (*nmsub4<mode>): Ditto.
26385         (*nmsub3<mode>): Ditto.
26386         (*nmsub4<mode>_fastmath): Ditto.
26387         (*nmsub3<mode>_fastmath): Ditto.
26388
26389 2015-04-24  Jason Merrill  <jason@redhat.com>
26390
26391         PR c++/50800
26392         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26393         down when building TYPE_CANONICAL.
26394         (build_pointer_type_for_mode): Likewise.
26395
26396 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
26397
26398         * genrecog.c (validate_pattern): Check matching constraint refers
26399         to a lower numbered operand.
26400
26401 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26402
26403         PR target/65849
26404         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26405         save to independent variables use the Save attribute.  This will
26406         allow these options to be modified with the #pragma/attribute
26407         target support.
26408         (-mallow-movmisalign): Likewise.
26409         (-mallow-df-permute): Likewise.
26410         (-msched-groups): Likewise.
26411         (-malways-hint): Likewise.
26412         (-malign-branch-targets): Likewise.
26413         (-mvectorize-builtins): Likewise.
26414         (-msave-toc-indirect): Likewise.
26415
26416         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26417         can be set via the #pragma/attribute target support.
26418         (rs6000_opt_vars): Likewise.
26419         (rs6000_inner_target_options): If VSX was set, also set
26420         -mno-avoid-indexed-addresses.
26421
26422 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26423
26424         * config/arm/iterators.md (shiftable_ops): Rename to...
26425         (SHIFTABLE_OPS): ... This.  Update use in comments.
26426         (ior_xor): Rename to...
26427         (IOR_XOR): ... This.
26428         (vqh_ops): Rename to...
26429         (VQH_OPS): ... This.
26430         (vqhs_ops): Rename to...
26431         (VQHS_OPS): ... This.
26432         (rshifts): Rename to...
26433         (RSHIFTS): ... This.
26434         (returns): Rename to...
26435         (RETURNS): ... This.
26436         * config/arm/arm.md: Update uses of the above.
26437         * config/arm/neon.md: Likewise.
26438
26439 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26440
26441         * config.host (case ${host}): Add aarch64*-*-linux case.
26442         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26443         fields to all the cores.
26444         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26445         Add MCPU_MTUNE_NATIVE_SPECS.
26446         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26447         field to all extensions.
26448         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26449         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26450         Adjust definition of AARCH64_OPT_EXTENSION.
26451         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26452         (MCPU_MTUNE_NATIVE_SPECS): Define.
26453         * config/aarch64/driver-aarch64.c: New file.
26454         * config/aarch64/x-arch64: New file.
26455         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26456         -mtune and -march.
26457
26458 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
26459             Wei Mi  <wmi@google.com>
26460
26461         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26462         * config/i386/i386.c (extract_base_offset_in_addr): New function.
26463         (ix86_operands_ok_for_move_multiple): Ditto.
26464         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26465         (movlpd/movhpd to movupd peephole2): Ditto.
26466
26467 2015-04-24  Marek Polacek  <polacek@redhat.com>
26468
26469         PR c/61534
26470         * input.h (from_macro_expansion_at): Define.
26471
26472         PR c/63357
26473         * doc/invoke.texi: Update description of -Wlogical-op.
26474
26475 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26476
26477         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26478         ternary operator in fprintf and harmonize spacing.
26479
26480 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
26481
26482         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26483         Mark operand1 commutative.
26484
26485 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
26486
26487         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26488         input operands in memory.
26489         (*vec_concatv2si_sse4_1): Ditto.
26490         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26491         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26492         register_operand.
26493         (vec_extract_hi_v32hi): Ditto.
26494         (vec_extract_hi_v64hi): Ditto.
26495         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26496
26497 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26498             Steven Bosscher <steven@gcc.gnu.org>
26499
26500         PR rtl-optimization/34503
26501         * cprop.c (cprop_reg_p): New.
26502         (hash_scan_set): Use above function to check if register can be
26503         propagated.
26504         (find_avail_set): Return up to two sets, one whose source is a
26505         register and one whose source is a constant.  Sets are returned in an
26506         array passed as parameter rather than as a return value.
26507         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
26508         sets returned by find_avail_set, starting with the one whose source is
26509         a constant. Use cprop_reg_p to check if register can be propagated.
26510         (do_local_cprop): Use cprop_reg_p to check if register can be
26511         propagated.
26512         (implicit_set_cond_p): Likewise.
26513
26514 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26515
26516         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26517         (sem_function::equals): IGNORED_NODES parameter is now unused;
26518         update call of equals_private.
26519         (sem_function::equals_private): Do not call equals_wpa; skip
26520         gimple body matching if there is no body.
26521         (sem_function::init): Add logic to hash tthunk info.
26522         (sem_function::parse): Also parse thunks.
26523         * ipa-icf.h (equals_private): Update declaration.
26524
26525 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26526
26527         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26528         asterisk from name so this can be generated directly.
26529         (*altivec_stvx_<mode>_internal): Likewise.
26530         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26531         that this is never called during or after reload/lra.
26532         (rs6000_frame_related): Remove split_reg
26533         argument and logic that references it.
26534         (emit_frame_save): Remove last parameter from call to
26535         rs6000_frame_related.
26536         (rs6000_emit_prologue): Remove last parameter from eight calls to
26537         rs6000_frame_related.  Force generation of stvx instruction for
26538         Altivec register saves.  Remove split_reg handling, which is no
26539         longer needed.
26540         (rs6000_emit_epilogue):  Force generation of lvx instruction for
26541         Altivec register restores.
26542
26543 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26544
26545         * config/rs6000/rs6000.opt (mcrypto): Change option description to
26546         match category changes in ISA 2.07B.
26547
26548 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26549
26550         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26551         iterators.
26552         (cmp_op, cmp_type): New code attributes.
26553         (NEON_VCMP, NEON_VACMP): New int iterators.
26554         (cmp_op_unsp): New int attribute.
26555         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26556         (neon_vceq<mode>): Delete.
26557         (neon_vc<cmp_op><mode>_insn): New pattern.
26558         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26559         (neon_vcgeu<mode>): Delete.
26560         (neon_vcle<mode>): Likewise.
26561         (neon_vclt<mode>: Likewise.
26562         (neon_vcage<mode>): Likewise.
26563         (neon_vcagt<mode>): Likewise.
26564         (neon_vca<cmp_op><mode>): New define_expand.
26565         (neon_vca<cmp_op><mode>_insn): New pattern.
26566         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26567
26568 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26569
26570         * tree.h (attribute_value_equal): Declare.
26571         * tree.c (attribute_value_equal): Export.
26572
26573 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26574
26575         * ipa-icf.c (sem_item::compare_attributes): New function.
26576         (sem_item::compare_referenced_symbol_properties): Compare variable
26577         attributes.
26578         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26579         (sem_function::param_used_p): New function.
26580         (sem_function::equals_wpa): Fix attribute comparsion; match
26581         parameter type codes; do not compare paremter flags when
26582         they are not used; compare edge flags; compare indirect calls.
26583         (sem_item::update_hash_by_addr_refs): Hash reference type.
26584         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26585         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26586         reference use type.
26587         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26588         * ipa-icf.h (compare_attributes, param_used_p): Declare.
26589
26590 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26591
26592         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26593         cleanup.
26594         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26595         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26596         (sem_item::compare_referenced_symbol_properties): New.
26597         (sem_item::hash_referenced_symbol_properties): New.
26598         (sem_item::compare_cgraph_references): Rename to ...
26599         (sem_item::compare_symbol_references): ... this one; use
26600         compare_referenced_symbol_properties.
26601         (sem_function::equals_wpa): Do not compare
26602         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26603         DECL_IS_OPERATOR_NEW; compare pointer sizes.
26604         (sem_item::update_hash_by_addr_refs): Call
26605         hash_referenced_symbol_properties.
26606         (sem_item::update_hash_by_local_refs): Cleanup.
26607         (sem_function::merge): Do not mix up symbol properties.
26608         (sem_variable::equals_wpa): Use compare_symbol_references.
26609         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26610         (sem_item::hash_referenced_symbol_properties): New.
26611         (sem_item::compare_symbol_references): New.
26612         (sem_item::compare_cgraph_references): Remove.
26613
26614 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
26615
26616         PR target/26702
26617         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26618         Emit size of local.
26619
26620 2015-04-23  Nick Clifton  <nickc@redhat.com>
26621
26622         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26623         ATTRIBUTE_UNUSED to x parameter.
26624         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26625
26626 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26627
26628         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26629         TARGET_CRYPTO to TARGET_P8_VECTOR>
26630         (crypto_vpermxor_<mode>): Likewise.
26631         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26632         (BU_CRYPTO_3A): Likewise.
26633         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26634         (BU_CRYPTO_OVERLOAD_3A): New #define.
26635         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26636         (VPMSUMH): Likewise.
26637         (VPMSUMW): Likewise.
26638         (VPMSUMD): Likewise.
26639         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26640         (VPERMXOR_V4SI): Likewise.
26641         (VPERMXOR_V8HI): Likewise.
26642         (VPERMXOR_V16QI): Likewise.
26643         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26644         BU_CRYPTO_OVERLOAD_2A.
26645         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26646         BU_CRYPTO_OVERLOAD_3A.
26647         * config/rs6000/rs6000.opt (mcrypto): Change description of
26648         option.
26649
26650 2015-04-23  Richard Biener  <rguenther@suse.de>
26651
26652         * passes.def: Remove copy propagation passes run directly after CCP.
26653         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26654         SSA names.
26655         (ccp_visit_phi_node): Rework to handle first executable edge
26656         specially.
26657
26658 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
26659
26660         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26661         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26662         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26663         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26664         (thumb_legimitimize_reload_address): Remove.
26665         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26666         Remove.
26667         (thumb_legimitimize_reload_address): Remove.
26668
26669 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26670
26671         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26672
26673 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26674
26675         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26676         MAX_LDM_STM_OPS.
26677         (store_multiple): Likewise.
26678
26679 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26680
26681         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26682         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26683         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26684         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26685         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26686         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26687         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26688         Specify issue_rate value.
26689         (arm_issue_rate): Look up issue rate from tuning structs. Remove
26690         large switch statement.
26691         (arm_marvell_pj4_tune): New struct.
26692         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26693         struct.
26694
26695 2015-04-23  Richard Biener  <rguenther@suse.de>
26696
26697         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26698         (vect_find_last_store_in_slp_instance): Rename to ...
26699         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26700         (vect_analyze_slp_cost_1): Use vector_load for constant defs
26701         and vec_construct for external defs when estimating prologue cost.
26702         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26703         Compute costs here only when vectorizing loops.
26704         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26705         have been determined.
26706         (vect_schedule_slp_instance): Simplify vectorized code placement
26707         and prepare for in-BB external defs.
26708         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26709         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26710         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26711         guard.
26712         (vect_model_load_cost): Likewise.
26713         (vectorizable_store): Instead add it here.
26714         (vectorizable_load): Likewise.
26715         (vect_is_simple_use): Dump def type textually.
26716
26717 2015-04-23  Richard Biener  <rguenther@suse.de>
26718
26719         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26720         * cfgloop.c (verify_loop_structure): Verify the root loop node.
26721         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26722         instead of get_eh_region_from_lp_number.
26723         * loop-init.c (fix_loop_structure): If we removed a loop, reset
26724         the SCEV cache.
26725
26726 2015-04-23  Anton Blanchard  <anton@samba.org>
26727
26728         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26729         need for -mprofile-kernel to save LR to stack.
26730
26731 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26732
26733         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26734         adjustments.
26735         (insn_is_swappable_p): Return 1 for a convert from double to
26736         single precision when all of its uses are splats of BE element
26737         zero.
26738
26739 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
26740
26741         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26742
26743 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26744
26745         PR target/65456
26746         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
26747         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26748         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26749         option.
26750         (rs6000_builtin_mask_for_load): Return 0 for targets with
26751         efficient unaligned VSX accesses so that the vectorizer will use
26752         direct unaligned loads.
26753         (rs6000_builtin_support_vector_misalignment): Always return true
26754         for targets with efficient unaligned VSX accesses.
26755         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26756         stores on targets with efficient unaligned VSX accesses is almost
26757         always the same as the cost of an aligned load or store, so model
26758         it that way.
26759         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26760         unaligned vectors if we have efficient unaligned VSX accesses.
26761         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26762         undocumented option.
26763
26764 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26765
26766         Revert:
26767         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
26768
26769         * config.gcc (LIBC_MUSL): New tm_defines macro.
26770         * config/linux.h (OPTION_MUSL): Define.
26771         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26772         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26773         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26774
26775         * config/linux.opt (mmusl): New option.
26776         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26777         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26778
26779         * configure: Regenerate.
26780
26781 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
26782
26783         * config.gcc (LIBC_MUSL): New tm_defines macro.
26784         * config/linux.h (OPTION_MUSL): Define.
26785         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26786         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26787         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26788
26789         * config/linux.opt (mmusl): New option.
26790         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26791         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26792
26793         * configure: Regenerate.
26794
26795 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
26796
26797         * doc/invoke.texi (-fsanitize-sections): Update description.
26798         * asan.c (set_sanitized_sections): Parse incoming arg.
26799         (section_sanitized_p): Support wildcards.
26800
26801 2015-04-22  Tom de Vries  <tom@codesourcery.com>
26802
26803         PR tree-optimization/65823
26804         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26805         equality between ap_copy and ap.
26806
26807 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26808
26809         PR target/47098
26810         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26811
26812 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26813
26814         PR target/47122
26815         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26816
26817 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26818
26819         PR target/55144
26820         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26821         remove already contained t-files.
26822
26823 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26824
26825         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26826         Remove unneeded forward declarations.
26827         (suitable_for_tail_call_opt_p): Commentary typo fix.
26828
26829 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26830
26831         * varasm.c (emit_bss): Remove redundant guard.
26832
26833 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26834
26835         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26836
26837 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26838
26839         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26840
26841 2015-04-22  Hale Wang  <hale.wang@arm.com>
26842             Terry Guo  <terry.guo@arm.com>
26843
26844         PR rtl-optimization/64818
26845         * combine.c (can_combine_p): Don't combine user-specified
26846         register if it is in an asm input.
26847
26848 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
26849
26850         PR ipa/65076
26851         * passes.def (early_optimizations): Add pass_dse.
26852
26853 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26854
26855         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26856         * reorg.c (redundant_insn): Remove ifdef
26857         INSN_REFERENCES_ARE_DELAYED.
26858         * resource.c (mark_referenced_resources): Likewise.
26859
26860 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26861
26862         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26863         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26864         * resource.c (mark_set_resources): Likewise.
26865
26866 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26867
26868         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26869         * cfgcleanup.c (flow_find_cross_jump): Likewise.
26870         (flow_find_head_matching_sequence): Likewise.
26871         (try_head_merge_bb): Likewise.
26872         * combine.c (can_combine_p): Likewise.
26873         (try_combine): Likewise.
26874         (distribute_notes): Likewise.
26875         * df-problems.c (can_move_insns_across): Likewise.
26876         * final.c (final): Likewise.
26877         * gcse.c (insert_insn_end_basic_block): Likewise.
26878         * ira.c (find_moveable_pseudos): Likewise.
26879         * reorg.c (try_merge_delay_insns): Likewise.
26880         (fill_simple_delay_slots): Likewise.
26881         (fill_slots_from_thread): Likewise.
26882         * sched-deps.c (sched_analyze_2): Likewise.
26883
26884 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26885
26886         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26887         PIC_OFFSET_TABLE_REGNUM.
26888
26889 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26890
26891         * alias.c (init_alias_target): Remove ifdef
26892         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26893         * df-scan.c (df_insn_refs_collect): Likewise.
26894         (df_get_regular_block_artificial_uses): Likewise.
26895         (df_get_eh_block_artificial_uses): Likewise.
26896         (df_get_entry_block_def_set): Likewise.
26897         (df_get_exit_block_use_set): Likewise.
26898         * emit-rtl.c (gen_rtx_REG): Likewise.
26899         * ira.c (ira_setup_eliminable_regset): Likewise.
26900         * reginfo.c (init_reg_sets_1): Likewise.
26901         * regrename.c (rename_chains): Likewise.
26902         * reload1.c (reload): Likewise.
26903         (eliminate_regs_in_insn): Likewise.
26904         * resource.c (mark_referenced_resources): Likewise.
26905         (init_resource_info): Likewise.
26906
26907 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26908
26909         * defaults.h (MASK_RETURN_ADDR): New definition.
26910         * except.c (expand_builtin_extract_return_addr): Remove ifdef
26911         MASK_RETURN_ADDR.
26912
26913 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26914
26915         * defaults.h (RETURN_ADDR_OFFSET): New definition.
26916         * except.c (expand_builtin_extract_return_addr): Remove ifdef
26917         RETURN_ADDR_OFFSET.
26918         (expand_builtin_frob_return_addr): Likewise.
26919
26920 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26921
26922         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26923         (try_redirect_by_replacing_jump): Likewise.
26924         (rtl_tidy_fallthru_edge): Likewise.
26925         * combine.c (insn_a_feeds_b): Likewise.
26926         (find_split_point): Likewise.
26927         (simplify_set): Likewise.
26928         * cprop.c (cprop_jump): Likewise.
26929         * cse.c (cse_extended_basic_block): Likewise.
26930         * df-problems.c (can_move_insns_across): Likewise.
26931         * function.c (emit_use_return_register_into_block): Likewise.
26932         * haifa-sched.c (sched_init): Likewise.
26933         * ira.c (find_moveable_pseudos): Likewise.
26934         * loop-invariant.c (find_invariant_insn): Likewise.
26935         * lra-constraints.c (curr_insn_transform): Likewise.
26936         * postreload.c (reload_combine_recognize_const_pattern):
26937         * Likewise.
26938         * reload.c (find_reloads): Likewise.
26939         * reorg.c (delete_scheduled_jump): Likewise.
26940         (steal_delay_list_from_target): Likewise.
26941         (steal_delay_list_from_fallthrough): Likewise.
26942         (redundant_insn): Likewise.
26943         (fill_simple_delay_slots): Likewise.
26944         (fill_slots_from_thread): Likewise.
26945         (delete_computation): Likewise.
26946         * sched-rgn.c (add_branch_dependences): Likewise.
26947
26948 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26949
26950         * genconfig.c (main): Always define HAVE_cc0.
26951         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26952         HAVE_cc0.
26953         * cfgcleanup.c (flow_find_cross_jump): Likewise.
26954         (flow_find_head_matching_sequence): Likewise.
26955         (try_head_merge_bb): Likewise.
26956         * cfgrtl.c (rtl_merge_blocks): Likewise.
26957         (try_redirect_by_replacing_jump): Likewise.
26958         (rtl_tidy_fallthru_edge): Likewise.
26959         * combine.c (do_SUBST_MODE): Likewise.
26960         (insn_a_feeds_b): Likewise.
26961         (combine_instructions): Likewise.
26962         (can_combine_p): Likewise.
26963         (try_combine): Likewise.
26964         (find_split_point): Likewise.
26965         (subst): Likewise.
26966         (simplify_set): Likewise.
26967         (distribute_notes): Likewise.
26968         * cprop.c (cprop_jump): Likewise.
26969         * cse.c (cse_extended_basic_block): Likewise.
26970         * df-problems.c (can_move_insns_across): Likewise.
26971         * final.c (final): Likewise.
26972         (final_scan_insn): Likewise.
26973         * function.c (emit_use_return_register_into_block): Likewise.
26974         * gcse.c (insert_insn_end_basic_block): Likewise.
26975         * haifa-sched.c (sched_init): Likewise.
26976         * ira.c (find_moveable_pseudos): Likewise.
26977         * loop-invariant.c (find_invariant_insn): Likewise.
26978         * lra-constraints.c (curr_insn_transform): Likewise.
26979         * optabs.c (prepare_cmp_insn): Likewise.
26980         * postreload.c (reload_combine_recognize_const_pattern):
26981         * Likewise.
26982         * reload.c (find_reloads): Likewise.
26983         (find_reloads_address_1): Likewise.
26984         * reorg.c (delete_scheduled_jump): Likewise.
26985         (steal_delay_list_from_target): Likewise.
26986         (steal_delay_list_from_fallthrough): Likewise.
26987         (try_merge_delay_insns): Likewise.
26988         (redundant_insn): Likewise.
26989         (fill_simple_delay_slots): Likewise.
26990         (fill_slots_from_thread): Likewise.
26991         (delete_computation): Likewise.
26992         (relax_delay_slots): Likewise.
26993         * sched-deps.c (sched_analyze_2): Likewise.
26994         * sched-rgn.c (add_branch_dependences): Likewise.
26995
26996 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26997
26998         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26999         that is trivially ded on non cc0 targets.
27000         (simplify_set): Likewise.
27001         (mark_used_regs_combine): Likewise.
27002         * cse.c (new_basic_block): Likewise.
27003         (fold_rtx): Likewise.
27004         (cse_insn): Likewise.
27005         (cse_extended_basic_block): Likewise.
27006         (set_live_p): Likewise.
27007         * rtlanal.c (canonicalize_condition): Likewise.
27008         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
27009
27010 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27011
27012         * conditions.h: Define macros even if HAVE_cc0 is undefined.
27013         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
27014         * final.c: Likewise.
27015         * jump.c: Likewise.
27016         * recog.c: Likewise.
27017         * recog.h: Declare functions even when HAVE_cc0 is undefined.
27018         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
27019
27020 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27021
27022         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
27023         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
27024         * builtins.c (expand_builtin): Remove check if
27025         EH_RETURN_DATA_REGNO is defined.
27026         * df-scan.c (df_bb_refs_collect): Likewise.
27027         (df_get_exit_block_use_set): Likewise.
27028         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
27029         * ira-lives.c (process_bb_node_lives): Likewise.
27030         * lra-lives.c (process_bb_lives): Likewise.
27031
27032 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
27033
27034         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
27035         FIRST_PSEUDO_REG): New.
27036         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
27037         (ARG_POINTER_REGNUM): Define to ARGP_REG.
27038         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
27039         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
27040         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
27041         (FIRST_INT_REG): New.
27042         (LAST_INT_REG): New.
27043         (FIRST_*_REG): Define using *_REG.
27044         (LAST_*_REG): Ditto.
27045         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
27046         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
27047         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
27048
27049 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27050
27051         * expmed.c: (synth_mult): Only assume overlapping
27052         shift with previous steps in alg_sub_t_m2 case.
27053
27054 2015-04-21  Richard Biener  <rguenther@suse.de>
27055
27056         PR tree-optimization/65650
27057         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
27058         transitions involving copies.
27059         (set_lattice_value): Adjust for copy lattice state.
27060         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
27061         if that doesn't dominate the merge point.
27062         (bit_value_unop): Adjust what we treat as varying mask.
27063         (bit_value_binop): Likewise.
27064         (bit_value_assume_aligned): Likewise.
27065         (evaluate_stmt): When we simplified to a SSA name record a copy
27066         instead of dropping to varying.
27067         (visit_assignment): Simplify.
27068
27069         * gimple-match.h (gimple_simplify): Add another callback.
27070         * gimple-fold.c (fold_stmt_1): Adjust caller.
27071         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
27072         for the 2nd callback.
27073         * gimple-match-head.c (gimple_simplify): Add a callback that is
27074         used to valueize the stmt operands and use it that way.
27075
27076 2015-04-21  Richard Biener  <rguenther@suse.de>
27077
27078         PR tree-optimization/65788
27079         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
27080
27081 2015-04-21  Richard Biener  <rguenther@suse.de>
27082
27083         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
27084         vec_construct cost by vec_stmt_cost.
27085
27086 2015-04-21  Richard Biener  <rguenther@suse.de>
27087
27088         * cfghooks.h (create_basic_block): Replace with two overloads
27089         for RTL and GIMPLE.
27090         (split_block): Likewise.
27091         * cfghooks.c (split_block): Rename to ...
27092         (split_block_1): ... this.
27093         (split_block): Add two type-safe overloads for RTL and GIMPLE.
27094         (split_block_after_labels): Call split_block_1.
27095         (create_basic_block): Rename to ...
27096         (create_basic_block_1): ... this.
27097         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
27098         (create_empty_bb): Call create_basic_block_1.
27099         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
27100         split_block_after_labels.
27101         * omp-low.c (expand_parallel_call): Likewise.
27102         (expand_omp_target): Likewise.
27103         (simd_clone_adjust): Likewise.
27104         * tree-chkp.c (chkp_get_entry_block): Likewise.
27105         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
27106         create_basic_block overload.
27107         (cgraph_node::expand_thunk): Likewise.
27108         * tree-cfg.c (make_blocks): Likewise.
27109         (handle_abnormal_edges): Likewise.
27110         * tree-inline.c (copy_bb): Likewise.
27111
27112 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27113
27114         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
27115         New pattern.
27116         (*xor_one_cmplsidi3_ze): Likewise.
27117
27118 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27119
27120         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
27121         use df_remove_problem rather than manually removing problems, leaving
27122         holes in df->problems_in_order[].
27123
27124 2015-04-21  Tom de Vries  <tom@codesourcery.com>
27125
27126         PR tree-optimization/65802
27127         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27128
27129 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27130
27131         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27132         Increase to 128.
27133         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27134         at '.'.  Assert that there's enough space for everything.
27135
27136 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
27137
27138         PR tree-optimization/64950
27139         Revert:
27140         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
27141
27142         PR target/41089
27143         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27144         as volatile.
27145
27146 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
27147
27148         PR rtl-optimization/64916
27149         * cfgcleanup.c (values_equal_p): New function.
27150         (can_replace_by): Use it.
27151
27152 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
27153
27154         PR c++/65801
27155         * doc/invoke.texi ([-Wnarrowing]): Update.
27156
27157 2015-04-20  Jeff Law  <law@redhat.com>
27158
27159         PR tree-optimization/65658
27160         * tree-ssa-threadupdate.c (redirection_block_p): Remove
27161         redundant test for GIMPLE_ASSIGN in last change.
27162
27163 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
27164
27165         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27166         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27167         (legitimize_tls_address): Ditto.
27168         (ix86_expand_move): Ditto.
27169         (ix86_expand_binary_operator): Remove reload_in_progress checks.
27170         (ix86_expand_unary_operator): Ditto.
27171         * config/i386/predicates.md (index_register_operand): Ditto.
27172
27173 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
27174
27175         * reorg.c (try_merge_delay_insns): Improve correctness checking
27176         for targets with multiple delay slots.
27177
27178 2015-04-20  Jeff Law  <law@redhat.com>
27179
27180         PR tree-optimization/65658
27181         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27182         statements too.
27183
27184 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
27185
27186         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27187         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27188         Delete.
27189
27190 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
27191
27192         PR debug/65807
27193         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27194
27195 2015-04-20  Richard Biener  <rguenther@suse.de>
27196
27197         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27198         * gimple-fold.c (gimple_build_valueize): New function.
27199         (gimple_build): Always use gimple_build_valueize as valueize hook.
27200
27201 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
27202
27203         PR target/64134
27204         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27205         and overwrite variable parts if <= 1/2 the elements are variable.
27206
27207 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27208
27209         PR rtl-optimization/65805
27210         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27211         Don't use difference of offset and previous offset if
27212         update_sp_offset is non-zero.
27213         (eliminate_regs_in_insn): Ditto.
27214         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27215         lra_eliminate_regs_1 call.
27216         * lra-constraints.c (get_equiv_with_elimination): Ditto.
27217
27218 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
27219
27220         * hash-table.h: Remove version of hash_table that stored value_type *.
27221         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27222         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27223         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27224         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27225         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27226         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27227         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27228         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27229         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27230         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27231         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27232         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27233         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27234         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27235         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27236         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27237
27238 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27239             Jakub Jelinek  <jakub@redhat.com>
27240
27241         PR target/65787
27242         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27243         subsequent SH_NONE operand does not overwrite an existing *special
27244         value.
27245         (adjust_extract): Handle case where a vec_extract operation is
27246         wrapped in a PARALLEL.
27247
27248 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
27249
27250         PR target/65780
27251         * config/i386/i386.c (ix86_binds_local_p): Define only if
27252         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27253
27254 2015-04-17  Jeff Law  <law@redhat.com>
27255
27256         PR tree-optimization/47679
27257         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27258         * tree-ssa-scopedtables.c: New file.
27259         * tree-ssa-scopedtables.h: New file.
27260         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27261         (const_and_copies): Change name/type.
27262         (record_const_or_copy): Move into tree-ssa-scopedtables.c
27263         (record_const_or_copy_1): Similarly.
27264         (restore_vars_to_original_value): Similarly.
27265         (pass_dominator::execute): Create and destroy const_and_copies table.
27266         (thread_across_edge): Update passing of const_and_copies.
27267         (record_temporary_equivalence): Use method calls rather than
27268         manipulating const_and_copies directly.
27269         (record_equality, cprop_into_successor_phis): Similarly.
27270         (dom_opt_dom_walker::before_dom_children): Similarly.
27271         (dom_opt_dom_walker::after_dom_children): Similarly.
27272         (eliminate_redundant_computations): Similarly.
27273         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27274         (record_temporary_equivalence): Likewise.
27275         (invalidate_equivalences): Likewise.
27276         (record_temporary_equivalences_from_phis): Update due to type
27277         change of const_and_copies.  Use method calls rather than
27278         manipulating the stack directly.
27279         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27280         (thread_through_normal_block, thread_across_edge): Likewise.
27281         (thread_across_edge): Likewise.
27282         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27283         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
27284         of equiv_stack.
27285         (identify_jump_threads): Update due to type change of equiv_stack.
27286         (finalize_jump_threads): Delete the equiv_stack when complete.
27287
27288 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
27289
27290         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27291         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27292         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27293
27294 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
27295
27296         PR target/65535
27297         * config.gcc: Exit with a comment when we do not have a major version
27298         number for the FreeBSD target.
27299
27300 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
27301
27302         PR target/65689
27303         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27304         maybe_allows_mem bitfields.
27305         (maybe_allows_none_start, maybe_allows_none_end,
27306         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27307         maybe_allows_mem_end): New variables.
27308         (compute_maybe_allows): New function.
27309         (add_constraint): Use it to initialize maybe_allows_reg and
27310         maybe_allows_mem fields.
27311         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27312         is_address constraints such that those that allow neither mem nor
27313         reg come first, then those that only allow reg but not mem, then
27314         those that only allow mem but not reg, then the rest.
27315         (write_allows_reg_mem_function): New function.
27316         (write_tm_preds_h): Call it.
27317         * stmt.c (parse_output_constraint, parse_input_constraint): Use
27318         the generated insn_extra_constraint_allows_reg_mem function
27319         instead of always setting *allows_reg = true; *allows_mem = true;
27320         for unknown extra constraints.
27321
27322 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
27323
27324         PR target/65780
27325         * output.h (default_binds_local_p_3): New.
27326         * varasm.c (default_binds_local_p_3): Make it public.  Take an
27327         argument to indicate if common symbol may be local.  If common
27328         symbol may be local, treat non-external variable as defined
27329         locally.
27330         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27331         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27332         * config/i386/i386.c (ix86_binds_local_p): New.
27333         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27334         ix86_binds_local_p.
27335
27336 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
27337
27338         PR debug/65771
27339         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27340         trying mem_loc_descriptor on XEXP (rtl, 0).
27341
27342 2015-04-17  Martin Liska  <mliska@suse.cz>
27343
27344         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27345         Release symbol_compare_collection.
27346         * ipa-reference.c: Add TODO that a vector should be released.
27347
27348 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27349
27350         PR target/65296
27351         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27352         to new AVR-LibC file layout (bug #44574).
27353         (*avrlibc_devicelib): Same.
27354         * config/avr/avr-mcus.def: Adjust comments.
27355         * config/avr/avr.opt (nodevicelib): Adjust help.
27356
27357 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
27358
27359         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27360
27361 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
27362
27363         PR c++/64527
27364         * gimplify.c (gimplify_init_constructor): Always emit a
27365         side-effecting constructor.
27366
27367 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27368
27369         PR tree-optimization/64950
27370         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27371         in cfun->curr_properties.
27372         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27373         if we generate an IFN_VA_ARG.
27374         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27375         function if PROP_gimple_lva is not set in src function.
27376
27377 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27378             Michael Matz  <matz@suse.de>
27379
27380         PR tree-optimization/64950
27381         * gimple-iterator.c (update_modified_stmts): Remove static.
27382         * gimple-iterator.h (update_modified_stmts): Declare.
27383         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27384         (gimplify_va_arg_internal): New function.
27385         (gimplify_va_arg_expr): Use IFN_VA_ARG.
27386         * gimplify.h (gimplify_va_arg_internal): Declare.
27387         * internal-fn.c (expand_VA_ARG): New unreachable function.
27388         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27389         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27390         (expand_ifn_va_arg): New function.
27391         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27392         (pass_stdarg::execute): Call expand_ifn_va_arg.
27393         (pass_data_lower_vaarg): New pass_data.
27394         (pass_lower_vaarg): New gimple_opt_pass.
27395         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27396         (make_pass_lower_vaarg): New function.
27397         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27398         properties_required field.
27399         * passes.def (all_passes): Add pass_lower_vaarg.
27400         * tree-pass.h (PROP_gimple_lva): Add define.
27401         (make_pass_lower_vaarg): Declare.
27402
27403 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27404
27405         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27406         * calls.c (call_expr_flags): Same.
27407
27408 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27409
27410         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27411         (pass_stdarg::execute): ... here.
27412
27413 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27414             Michael Matz  <matz@suse.de>
27415
27416         * tree-cfg.c (make_blocks_1): Factor out of ...
27417         (make_blocks): ... here.
27418         (make_edges_bb): Factor out of ...
27419         (make_edges): ... here.
27420         (gimple_find_sub_bbs): New function.
27421         * tree-cfg.h (gimple_find_sub_bbs): Declare.
27422
27423 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27424
27425         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27426
27427 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
27428
27429         * asan.c (set_sanitized_sections): New function.
27430         (section_sanitized_p): Ditto.
27431         (asan_protect_global): Optionally sanitize user-defined
27432         sections.
27433         * asan.h (set_sanitized_sections): Declare new function.
27434         * common.opt (fsanitize-sections): New option.
27435         * doc/invoke.texi (-fsanitize-sections): Document new option.
27436         * opts-global.c (handle_common_deferred_options): Handle new
27437         option.
27438
27439 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
27440
27441         PR debug/65771
27442         * dwarf2out.c (loc_list_from_tree): Return NULL
27443         for DEBUG_EXPR_DECL.
27444
27445 2015-04-17  Christian Bruel  <christian.bruel@st.com>
27446
27447         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27448         same attributes.
27449
27450 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
27451
27452         * ira-color.c (setup_left_conflict_sizes_p): Do not process
27453         node itself when computing left conflict subnode size.
27454
27455 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
27456
27457         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27458         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27459         *fop_<mode>_1_sse using enabled attribute.  Use
27460         register_mixssei387nonimm_operand operand 1 predicate. Change
27461         alternative 3 constraints from "x" to "v".
27462
27463 2015-04-16  Richard Biener  <rguenther@suse.de>
27464
27465         PR tree-optimization/65774
27466         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27467         bit-value tracking on.
27468
27469 2015-04-16  Richard Biener  <rguenther@suse.de>
27470
27471         PR tree-optimization/64277
27472         * tree-vrp.c (check_array_ref): Fix anti-range handling,
27473         simplify upper bound handling.
27474         (search_for_addr_array): Simplify.
27475         (check_array_bounds): Handle ADDR_EXPRs here.
27476         (check_all_array_refs): Simplify.
27477
27478 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
27479
27480         * config/i386/i386.c (print_reg): Rewrite function.
27481
27482 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27483
27484         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27485         Invert the condition.
27486
27487 2015-04-16  Renlin Li  <renlin.li@arm.com>
27488
27489         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27490         simplifications for UNSIGNED_FLOAT.
27491
27492 2015-04-16  Nick Clifton  <nickc@redhat.com>
27493
27494         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27495         MUL_UNINIT.
27496         (enum rl78_cpu_type): New.
27497         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27498         (umulhi3_shift_virt): Remove m constraint from operand 1.
27499         (umulqihi3_virt): Likewise.
27500         * config/rl78/rl78.c (rl78_option_override): Add code to process
27501         -mcpu and -mmul options.
27502         (rl78_alloc_physical_registers): Add code to handle divhi and
27503         divsi valloc attributes.
27504         (set_origin): Likewise.
27505         * config/rl78/rl78.h (RL78_MUL_G14): Define.
27506         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27507         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27508         __RL78_Gxx__.
27509         (ASM_SPEC): Pass -mcpu on to assembler.
27510         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27511         (mulqi3_rl78): Likewise.
27512         (mulhi3_g13): Likewise.
27513         (mulhi3): Generate the G13 or G14 versions of the insn directly.
27514         (mulsi3): Likewise.
27515         (mulhi3_g14): Add clobbers of AX and BC.
27516         (mulsi3_g14): Likewise.
27517         (mulsi3_g13): Likewise.
27518         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27519         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27520         * config/rl78/rl78.opt (mmul): Initialise value to
27521         RL78_MUL_UNINIT.
27522         (mcpu): New option.
27523         (m13, m14, mrl78): New option aliases.
27524         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27525         (MULTILIB_DIRNAMES): Add g13 and g14.
27526         * doc/invoke.texi: Document -mcpu and -mmul options.
27527
27528 2015-04-16  Richard Biener  <rguenther@suse.de>
27529
27530         * tree-ssa-ccp.c (likely_value): See if we have operands that
27531         are marked as never simulate again and return CONSTANT in this
27532         case.
27533         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27534         not have any operands that will be simulated again as
27535         not being simulated again.
27536
27537 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
27538
27539         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27540         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27541         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27542         attribute.
27543         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27544         enabled attribute.
27545         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27546         *float<SWI48:mode><MODEF:mode>2_sse.
27547         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27548         enabled attribute.
27549         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27550         enabled attribute.
27551
27552 2015-04-15  Tom de Vries  <tom@codesourcery.com>
27553
27554         PR other/65487
27555         * function.c (push_dummy_function): New function.
27556         (init_dummy_function_start): Use push_dummy_function.
27557         (pop_dummy_function): New function.  Factored out of ...
27558         (expand_dummy_function_end): ... here.
27559         * function.h (push_dummy_function, pop_dummy_function): Declare.
27560         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27561         pop_dummy_function.
27562         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27563
27564 2015-04-15  Jeff Law  <law@redhat.com>
27565
27566         PR tree-optimization/47679
27567         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27568         need for forward declaration in upcoming changes.
27569         (record_conditions, record_edge_info): Likewise.
27570
27571         PR rtl-optimization/42522
27572         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27573         SIGN_EXTRACT as a whole object rather than simplifying
27574         its operand.
27575
27576 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
27577
27578         PR ipa/65765
27579         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27580         and GIMPLE_PREDICT use break instead of return true. For
27581         GIMPLE_EH_DISPATCH, compare dispatch region.
27582
27583 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
27584
27585         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
27586         details about the implementation.  Make clear preference for
27587         __atomic builtins.  Reduce possibility of future change.
27588
27589 2015-04-15  Nick Clifton  <nickc@redhat.com>
27590
27591         * config/rx/rx.opt (mallow-string-insns): New option.
27592         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27593         builtin if string instructions are denied.
27594         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27595         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27596         appropriate.
27597         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27598         * config/rx/rx.md (movstr): Enable pattern only if string
27599         instructions are allowed.
27600         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27601         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27602         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27603         (MULTILIB_DIRNAMES): Add no-strings.
27604         * doc/invoke.texi: Document -mno-allow-string-insns.
27605
27606 2015-04-15  Alan Modra  <amodra@gmail.com>
27607
27608         PR target/65408
27609         PR target/58744
27610         PR middle-end/36043
27611         * calls.c (load_register_parameters): Don't load past end of
27612         mem unless suitably aligned.
27613
27614 2015-04-15  Nick Clifton  <nickc@redhat.com>
27615
27616         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27617         decrement instruction as being frame related.
27618         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27619         based addresses.
27620         If zero extending a function address enclose the operation in
27621         %code(...).
27622         (rl78_preferred_reload_class): New function.
27623         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27624         * config/rl78/rl78.md: Remove useless constraints in expanders.
27625         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27626         (mulhi3_rl78): Likewise.
27627         (mulhi3_g13): Likewise.
27628         (mulsi3_rl78): Likewise.
27629         (es_addr): Move to before the multiply patterns.
27630
27631 2015-04-15  Alan Modra  <amodra@gmail.com>
27632
27633         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27634         and sequence_stack.  Add seq.
27635         (seq_stack): Delete.
27636         * function.c (prepare_function_start): Don't access x_last_insn.
27637         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27638         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27639         * emit_rtl.c (start_sequence, push_topmost_sequence,
27640         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27641         sequence accessors.
27642         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27643         remove_insn): Likewise.  Simplify.
27644         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27645         and pop_topmost_sequence.
27646         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
27647         debug insns.
27648         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27649
27650 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
27651
27652         PR target/65729
27653         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27654         the assertiion.
27655
27656 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
27657
27658         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27659         (LEGACY_INT_REGNO_P): Ditto.
27660         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27661         (ANY_MASK_REG_P): Remove.
27662         (BND_REG_P): Rename from ANY_BND_REG_P.
27663         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27664         legacy integer registers.  Do not handle MMX_REG_P in a special way.
27665         Merge 64byte and 32byte SSE handling.
27666
27667 2015-04-14  Nick Clifton  <nickc@redhat.com>
27668
27669         * expr.c (expand_assignment): Force an address offset computation
27670         into a register before changing its mode.
27671         (expand_expr_real_1): Likewise.
27672
27673 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
27674
27675         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27676         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27677         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27678         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27679         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27680         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27681         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27682         and __aarch64_vget_lane_any.
27683
27684 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
27685
27686         PR rtl-optimization/65761
27687         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27688         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27689
27690 2015-04-14  Richard Biener  <rguenther@suse.de>
27691
27692         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27693         (graphite_can_represent_scev): Use POINTER_TYPE_P.
27694
27695 2015-04-14  Richard Biener  <rguenther@suse.de>
27696
27697         PR tree-optimization/65758
27698         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27699         against -1.
27700         (ccp_lattice_meet): Likewise.
27701         (bit_value_unop): Likewise.
27702         (bit_value_binop): Likewise.
27703         (bit_value_assume_aligned): Likewise.
27704
27705 2015-04-14  Christian Bruel  <christian.bruel@st.com>
27706
27707         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27708         function.
27709
27710 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
27711
27712         PR tree-optimization/63387
27713         * match.pd ((x unord x) | (y unord y) -> (x unord y),
27714         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27715
27716 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
27717
27718         * config/i386/predicates.md (any_QIreg_operand): Rename from
27719         q_regs_operand.  Do not process subregs.
27720         (QIreg_operand): Use QI_REGNO_P predicate.
27721         (ext_QIreg_operand): Ditto.
27722         (ext_register_operand): Ditto.
27723         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27724         (AND splitters): Ditto.
27725         (AND with -65536 splitter): Add SWI48 mode for operand 0.
27726         (AND with -256 splitter): Use any_QIreg_operand predicate and
27727         SWI248 mode for operand 0.
27728         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27729         mode for operand 0.
27730         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27731
27732 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
27733
27734         * doc/plugins.texi: Rewrite first introductory paragraph.
27735
27736 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27737
27738         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27739         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27740
27741 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27742
27743         * ipa-profie.c (ipa_profile): Check number of parameters
27744         and possible polymorphic call targets before
27745         devirtualizing.
27746
27747 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
27748
27749         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27750         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27751
27752 2015-04-13  Richard Biener  <rguenther@suse.de>
27753
27754         PR tree-optimization/65204
27755         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27756         takens for bit-CCP.
27757
27758 2015-04-13  Richard Biener  <rguenther@suse.de>
27759
27760         PR target/65660
27761         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27762         and cond_not_taken_branch_cost to 4 and 2.
27763         (bdver2_cost): Likewise.
27764         (bdver3_cost): Likewise.
27765         (bdver4_cost): Likewise.
27766
27767 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27768
27769         * hash-table.h (hash_table constructor): Add mem stats.
27770         (alloc_entries): Likewise.
27771
27772 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27773
27774         * ipa-cp.c (ipcp_driver): Relase prev_edge.
27775         * passes.c (execute_one_pass): Only add transform if pass has one.
27776
27777 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
27778
27779         * config/i386/i386.c (ix86_option_override_internal): Don't set
27780         -fprefetch-loop-arrays if optimizing for size.
27781
27782 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27783             Gerald Pfeifer  <gerald@pfeifer.com>
27784
27785         * doc/contrib.texi (Contributors): Add Martin Jambor and
27786         Michael Matz.
27787
27788 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
27789
27790         * BASE-VER: Set to 6.0.0.
27791
27792         PR tree-optimization/65747
27793         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27794         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27795
27796 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
27797
27798         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27799         sentence.  Improve grammar.
27800
27801 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
27802
27803         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27804
27805 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
27806
27807         PR ipa/65743
27808         * ipa-inline-transform.c (speculation_removed): Remove static var.
27809         (check_speculations): New function.
27810         (clone_inlined_nodes): Do not check spculations.
27811         (inline_call): Call check_speculations.
27812         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27813         consider non-invariants.
27814
27815 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
27816             Martin Liska  <mliska@suse.cz>
27817
27818         PR ipa/65722
27819         * ipa-icf.c (sem_item::compare_cgraph_references): function and
27820         variable can not match.
27821         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27822         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27823
27824 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
27825
27826         PR tree-optimization/65735
27827         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27828         Remove visited_phis argument, add visited_bbs, avoid recursing into the
27829         same bb rather than just into the same phi node.
27830         (thread_through_normal_block): Adjust caller.
27831
27832 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
27833
27834         * doc/contrib.texi (Contributors): Add Ira Rosen.
27835
27836 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
27837
27838         * gcov.c (find_source): Fix miswording in error message.
27839         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27840         (ix86_expand_sse_comi_round): Fix typo in error message.
27841
27842 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
27843
27844         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27845
27846 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
27847
27848         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27849
27850 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
27851
27852         PR target/65710
27853         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27854         Print bad_spills_num and insn_pseudos_num.
27855
27856 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27857
27858         PR target/65694
27859         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27860         when creating +1 values for SImode.
27861
27862 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
27863
27864         PR target/65729
27865         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27866         assert.
27867
27868 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
27869             Iain Sandoe  <iain@codesourcery.com>
27870
27871         PR target/65351
27872         * configure: Regenerate.
27873
27874 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
27875
27876         PR target/65671
27877         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27878
27879 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
27880
27881         * doc/contrib.texi (Contributors): Add John Marino.
27882
27883 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
27884
27885         PR tree-optimization/65709
27886         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27887         TREE_TYPE (TREE_TYPE (t)).
27888
27889 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
27890
27891         PR target/65710
27892         * lra-int.h (lra_bad_spill_regno_start): New.
27893         * lra.c (lra_bad_spill_regno_start): New.
27894         (lra): Set up lra_bad_spill_regno_start.  Set up
27895         lra_constraint_new_regno_start unconditionally.
27896         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27897         spill preferences.
27898
27899 2015-04-09  Marek Polacek  <polacek@redhat.com>
27900             Jakub Jelinek  <jakub@redhat.com>
27901
27902         PR middle-end/65554
27903         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27904         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27905         of STRIP_NOPS.
27906
27907 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
27908
27909         PR rtl-optimization/65693
27910         * combine.c (is_parallel_of_n_reg_sets): Move outside of
27911         #ifndef HAVE_cc0.
27912
27913 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
27914
27915         PR target/65296
27916         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27917         device specs file if "device-specs%s" didn't resolve to a path.
27918
27919 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
27920
27921         PR target/65676
27922         * config/i386/i386.c (fixup_modeless_constant): New.
27923         (ix86_expand_args_builtin): Fixup modeless constant operand.
27924         (ix86_expand_round_builtin): Ditto.
27925         (ix86_expand_special_args_builtin): Ditto.
27926         (ix86_expand_builtin): Ditto.
27927
27928 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
27929
27930         PR target/65693
27931         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27932         any pow2 integer in between 2 and 0x80000000U inclusive.
27933
27934 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
27935
27936         PR rtl-optimization/65693
27937         * combine.c (is_parallel_of_n_reg_sets): Change first argument
27938         from an rtx_insn * to an rtx.
27939         (try_combine): Adjust both callers.  Use it once more.
27940
27941 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
27942
27943         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27944         (chkp_make_static_const_bounds): Search existing
27945         symbol by assembler name.  Use make_decl_one_only.
27946         (chkp_get_zero_bounds_var): Remove node search which
27947         is now performed in chkp_make_static_const_bounds.
27948         (chkp_get_none_bounds_var): Likewise.
27949
27950 2015-04-08  Michael Witten  <mfwitten@gmail.com>
27951
27952         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27953         to an example.
27954
27955 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27956
27957         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27958
27959 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
27960
27961         * doc/extend.texi (__sync Builtins): Fix grammar.
27962
27963 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27964
27965         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27966
27967 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27968
27969         * varasm.c (emit_local): Move definition of align.
27970
27971 2015-04-08  Julian Brown  <julian@codesourcery.com>
27972
27973         * config/nvptx/mkoffload.c (process): Support variable mapping.
27974
27975 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
27976
27977         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27978         alpha_links **.
27979         (alpha_write_one_linkage): Correct typo.
27980
27981 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
27982
27983         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27984
27985 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
27986
27987         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27988
27989 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
27990
27991         * tree-chkp.h (chkp_insert_retbnd_call): New.
27992         * tree-chkp.c (chkp_insert_retbnd_call): New.
27993         * ipa-split.c (insert_bndret_call_after): Remove.
27994         (split_function): Use chkp_insert_retbnd_call.
27995         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27996         bounds for instrumented functions.
27997
27998 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
27999
28000         PR ipa/65540
28001         * calls.c (initialize_argument_information): When producing tail
28002         call also turn SSA_NAMES passed by references to original PARM_DECLs
28003
28004 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
28005
28006         PR target/65648
28007         * lra-remat.c (do_remat): Process input and non-input insn
28008         registers separately.
28009
28010 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
28011
28012         PR debug/65678
28013         * valtrack.c (debug_lowpart_subreg): New function.
28014         (dead_debug_insert_temp): Use it.
28015
28016         PR middle-end/65680
28017         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
28018         into signed HOST_WIDE_INT the same as negative bit_offset.
28019
28020 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
28021
28022         * ipa-comdats.c (ipa_comdats): Visit all thunks
28023         to set proper comdat group.
28024
28025 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28026
28027         PR target/65489
28028         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
28029         on constants for NEON VSTRUCT modes.
28030
28031 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
28032             Iain Sandoe  <iain@codesourcery.com>
28033
28034         PR target/65351
28035         * configure: Regenerate.
28036
28037 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
28038
28039         PR target/65614
28040         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
28041         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
28042         that LFD is used to load double constants instead of LFS.  Add
28043         defaults for all costs structures.  Add comments for missing
28044         initialization fields.
28045         (size32_cost): Likewise.
28046         (size64_cost): Likewise.
28047         (rs64a_cost): Likewise.
28048         (mpccore_cost): Likewise.
28049         (ppc403_cost): Likewise.
28050         (ppc405_cost): Likewise.
28051         (ppc440_cost): Likewise.
28052         (ppc476_cost): Likewise.
28053         (ppc601_cost): Likewise.
28054         (ppc603_cost): Likewise.
28055         (ppc604_cost): Likewise.
28056         (ppc604e_cost): Likewise.
28057         (ppc620_cost): Likewise.
28058         (ppc630_cost): Likewise.
28059         (ppccell_cost): Likewise.
28060         (ppc750_cost): Likewise.
28061         (ppc7450_cost): Likewise.
28062         (ppc8540_cost): Likewise.
28063         (ppce300c2c3_cost): Likewise.
28064         (ppce500mc_cost): Likewise.
28065         (ppce500mc64_cost): Likewise.
28066         (ppce5500_cost): Likewise.
28067         (ppce6500_cost): Likewise.
28068         (titan_cost): Likewise.
28069         (power4_cost): Likewise.
28070         (power6_cost): Likewise.
28071         (power7_cost): Likewise.
28072         (power8_cost): Likewise.
28073         (ppca2_cost): Likewise.
28074         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
28075
28076         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
28077         instead of XXLOR to copy SFmode to clear out dirty bits created
28078         when SFmode denormals are generated.
28079         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
28080         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
28081
28082 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
28083
28084         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
28085         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
28086         * config/aarch64/aarch64-tune.md: Regenerate.
28087
28088 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
28089
28090         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
28091         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
28092         * config/arm/arm-cores.def (exynos-m1): New core.
28093         * config/arm/arm-tune.md: Regenerate.
28094         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
28095         * config/arm/bpabi.h: Likewise.
28096
28097 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
28098
28099         * ipa-cp (set_single_call_flag): Remove too
28100         restrictive assert.
28101
28102 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
28103
28104         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
28105         GOMP_offload_unregister from the destructor.
28106
28107 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
28108
28109         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
28110         flags for instrumentation thunk.
28111         (chkp_produce_thunks): Likewise.
28112
28113 2015-04-05  Martin Liska  <mliska@suse.cz>
28114
28115         PR ipa/65665
28116         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
28117         has computed data structure.
28118         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28119
28120 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
28121
28122         * invoke.texi (inline-unit-growth): Increase growth to 20%
28123         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
28124
28125 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
28126
28127         PR target/65647
28128         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
28129         value checking.
28130         (lra_rematerialization_iter): New.
28131         * lra.c (lra): Initialize lra_rematerialization_iter.
28132         Stop updating lra_constraint_new_regno_start after switching of
28133         inheritance and rematerialization.
28134         * lra-remat.c (lra_rematerialization_iter): New.
28135         (lra_remat): Add printing pass iteration.  Do rematerialization
28136         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28137
28138 2015-04-04  Richard Biener  <rguenther@suse.de>
28139
28140         PR tree-optimization/64909
28141         PR tree-optimization/65660
28142         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28143         to take a cost vector for scalar iteration cost.
28144         (vect_get_single_scalar_iteration_cost): Likewise.
28145         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28146         Compute the scalar iteration cost into a cost vector.
28147         (vect_get_known_peeling_cost): Use the scalar cost vector to
28148         account for the cost of the peeled iterations.
28149         (vect_estimate_min_profitable_iters): Likewise.
28150         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28151         Likewise.
28152
28153 2015-04-04  Alan Modra  <amodra@gmail.com>
28154
28155         PR target/65576
28156         PR target/65240
28157         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28158         0.0 constant unless TARGET_VSX.
28159         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28160         alternative.
28161
28162 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
28163
28164         PR ipa/65654
28165         * ipa-inline-transform.c (inline_call): Skip sanity check to work
28166         around the ICE
28167
28168 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
28169
28170         PR ipa/65655
28171         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28172         speculative indirect edges to avoid ordering issue.
28173
28174 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
28175
28176         PR ipa/65076
28177         * ipa-inline.c (edge_badness): Add combined size to the denominator.
28178
28179 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
28180
28181         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28182         TYPE_ARTIFICIAL on the .omp_data* types.
28183
28184 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28185
28186         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28187         instrumentation thunks.
28188
28189 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28190
28191         * config/i386/i386.c (ix86_expand_call): Avoid nested
28192         PARALLEL in returned call value.
28193
28194 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28195
28196         * lto-cgraph.c (input_cgraph_1): Always link instrumented
28197         assembler name with original one.
28198
28199 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
28200
28201         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28202
28203 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
28204
28205         Revert parts of r216820.
28206         * config/i386/i386.md (movqi_internal): Correct type calculation
28207         for alternatives 3 and 5.
28208
28209 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
28210
28211         PR preprocessor/61977
28212         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28213         predefine __vector/__bool/__pixel macros nor context sensitive
28214         macros for CLK_ASM.
28215         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28216
28217 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
28218
28219         * config/pa/pa.c (pa_output_move_double): Directly handle register
28220         indexed memory operand.  Simplify handling of scaled register indexed
28221         memory operands.
28222
28223 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28224
28225         PR driver/65444
28226         * config/i386/linux-common.h (MPX_SPEC): New.
28227         (CHKP_SPEC): Add MPX_SPEC.
28228         * doc/invoke.texi (-fcheck-pointer-boudns): Document
28229         possible issues with '-z bndplt' support in linker.
28230
28231 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
28232
28233         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28234         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28235         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28236         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28237         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28238
28239 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
28240
28241         * config/i386/sync.md (UNSPEC_MOVA): Remove.
28242         (atomic_load<mode>): Change operand 0 predicate to
28243         nonimmediate_operand and fix up the destination when needed.
28244         Use UNSPEC_LDA.
28245         (atomic_loaddi_fpu): Use UNSPEC_LDA.
28246         (atomic_store<mode>): Change operand 1 predicate to
28247         nonimmendate_operand and move the source to register when needed.
28248         Use UNSPEC_STA.
28249         (atomic_store<mode>_1): Use UNSPEC_STA.
28250         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28251         Fix moves from memory operand.  Use UNSPEC_STA.
28252
28253 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28254
28255         * expmed.c (strict_volatile_bitfield_p): Check that the access will
28256         not cross a MODESIZE boundary.
28257         (store_bit_field, extract_bit_field): Added assertions in the
28258         strict volatile bitfields code path.
28259
28260 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28261
28262         PR target/65624
28263         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28264         Increase args array size by one to avoid buffer overflow.
28265
28266 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
28267
28268         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28269         split_part.
28270         * ipa-inline.c (edge_badness): Add wrapper penalty.
28271         (sum_callers): Move up.
28272         (inline_small_functions): Set single_caller.
28273         * ipa-inline.h (inline_summary): Add single_caller.
28274         * ipa-split.c (split_function): Set split_part.
28275         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28276         * cgraph.h (cgraph_node): Add split_part.
28277
28278 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
28279
28280         PR target/58945
28281         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28282         Do not split operands 0 and operands 2 to halfmode.
28283         (atomic_compare_and_swap<mode>): Update for
28284         atomic_compare_and_swap<dwi>_doubleword changes.
28285
28286 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
28287
28288         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28289         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28290         no caching is done.
28291
28292 2015-03-31  Martin Liska  <mliska@suse.cz>
28293
28294         PR ipa/65557
28295         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28296         has already filled up function summary.
28297         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28298
28299 2015-03-31  Richard Biener  <rguenther@suse.de>
28300
28301         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28302         of types.
28303
28304 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28305
28306         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28307         nested functions.
28308         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28309         (s390_asm_output_function_label): Adapt to new signature of
28310         s390_function_num_hotpatch_hw
28311         Optimise the code generating assembler output.
28312         Add comments to assembler file.
28313
28314 2015-03-31  Richard Biener  <rguenther@suse.de>
28315
28316         PR middle-end/65626
28317         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28318         of the noreturn call so it is last and cleanup_control_flow_bb
28319         can do the CFG part.
28320
28321 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
28322
28323         PR target/65531
28324         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28325         same_comdat_group for external symbols.
28326         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28327         infinite same_comdat_group traversal loop.
28328
28329 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
28330
28331         PR plugins/61176
28332         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28333         automatically to $headers.
28334
28335 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
28336
28337         PR ipa/65610
28338         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28339         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28340         function.
28341         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28342         Use it.
28343         * ipa-prop.c (param_type_may_change_p): Likewise.
28344         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28345         (remove_unused_scope_block_p): Add in_ctor_dtor_block
28346         argument.  Before inlining, preserve
28347         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28348         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
28349         recursive calls.
28350         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28351
28352 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28353
28354         PR ipa/65076
28355         * ipa-inline.c (edge_badness): Base denominator on callee's
28356         grwoth squared.
28357
28358 2015-03-27  Martin Jambor  <mjambor@suse.cz>
28359
28360         PR ipa/65478
28361         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28362         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28363         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28364         node_calling_single_call.
28365         * ipa-cp.c (count_callers): New function.
28366         (set_single_call_flag): Likewise.
28367         (initialize_node_lattices): Count callers and set single_flag_call if
28368         necessary.
28369         (incorporate_penalties): New function.
28370         (good_cloning_opportunity_p): Use it, dump new flags.
28371         (propagate_constants_topo): Set node_within_scc flag if appropriate.
28372         * doc/invoke.texi (ipa-cp-recursion-penalty,
28373         ipa-cp-single-call-pentalty): Document.
28374
28375 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28376
28377         PR ipa/65588
28378         * symtab.c (symtab_node::get_partitioning_class): Register vars
28379         are duplicated.
28380         * varpool.c (symbol_table::output_variables) Do not assemble unefined
28381         decls for non-symbols.
28382
28383 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28384
28385         PR target/65248
28386         * output.h (default_binds_local_p_2): New.
28387         * varasm.c (default_binds_local_p_2): Renamed to ...
28388         (default_binds_local_p_3): This.  Don't return true on protected
28389         data symbol if protected data may be external.
28390         (default_binds_local_p): Use default_binds_local_p_3.
28391         (default_binds_local_p_1): Likewise.
28392         (default_binds_local_p_2): New.
28393         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28394         default_binds_local_p_2 if TARGET_MACHO is undefined.
28395
28396 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
28397
28398         PR target/65593
28399         * config/i386/i386.c (legitimize_pic_address): If base
28400         is SYMBOL_REF or LABEL_REF using %rip addressing, force
28401         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28402
28403 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28404
28405         PR target/65531
28406         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28407         comdat groups.
28408
28409 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28410
28411         PR ipa/65600
28412         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28413         of optimized out indirect call.
28414         (redirect_to_unreachable): Always build symbol table node for
28415         BUILT_IN_UNREACHABLE
28416
28417 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
28418
28419         PR target/65407
28420         * ira-costs.c (record_reg_classes): Process all constraint string
28421         containing 0-9.
28422
28423 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
28424
28425         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28426         memory_operand.
28427
28428         PR target/65052
28429         * config/c6x/constraints.md (S3): New constraint.
28430         * config/c6x/c6x.md (real_jump): Use it.
28431
28432 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28433
28434         PR middle-end/65595
28435         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28436         do redirection if the call is not optimized out.
28437
28438 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
28439
28440         PR target/65495
28441         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28442         (fchkp-check-incomplete-type): Add LTO.
28443         (fchkp-zero-input-bounds-for-main): Likewise.
28444         (fchkp-first-field-has-own-bounds): Likewise.
28445         (fchkp-narrow-bounds): Likewise.
28446         (fchkp-narrow-to-innermost-array): Likewise.
28447         (fchkp-use-static-bounds): Likewise.
28448         (fchkp-use-static-const-bounds): Likewise.
28449         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28450
28451 2015-03-27  Marek Polacek  <polacek@redhat.com>
28452
28453         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28454
28455 2015-03-27  Marek Polacek  <polacek@redhat.com>
28456
28457         PR sanitizer/65583
28458         * ubsan.c (ubsan_create_edge): New function.
28459         (instrument_bool_enum_load): Call it.
28460         (instrument_nonnull_arg): Likewise.
28461         (instrument_nonnull_return): Likewise.
28462         (instrument_object_size): Likewise.
28463
28464 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28465
28466         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28467         auto_vec.
28468
28469 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28470
28471         PR lto/65536
28472         * lto-streamer.h (class lto_location_cache): New.
28473         (struct data_in): Add location_cache.
28474         (lto_input_location): Update prototype.
28475         (stream_input_location_now): New.
28476         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28477         pointer to location.
28478         (stream_input_location): Update.
28479         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28480         (warn_odr): Apply location cache before warning.
28481         (lto_input_location): Update prototype.
28482         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28483         Use stream_input_location_now.
28484         * lto-streamer-in.c (lto_location_cache::current_cache): New static
28485         variable.
28486         (lto_location_cache::cmp_loc): New function.
28487         (lto_location_cache::apply_location_cache): New function.
28488         (lto_location_cache::accept_location_cache): New function.
28489         (lto_location_cache::revert_location_cache): New function.
28490         (lto_location_cache::input_location): New function.
28491         (lto_input_location): Do location caching.
28492         (stream_input_location_now): New function.
28493         (input_eh_region, input_struct_function_base): Use
28494         stream_input_location_now.
28495         (lto_data_in_create): use new.
28496         (lto_data_in_delete): Use delete.
28497         * tree-streamer-in.c (unpack_ts_block_value_fields,
28498         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28499         lto_input_ts_exp_tree_pointers): Update for cached location api.
28500
28501 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28502
28503         PR ipa/65076
28504         * passes.def: Add pass_nothrow.
28505         * ipa-pure-const.c: (pass_data_nothrow): New.
28506         (pass_nothrow): New.
28507         (pass_nothrow::execute): New.
28508         (make_pass_nothrow): New.
28509         * tree-pass.h (make_pass_nothrow): Declare.
28510
28511 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28512
28513         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28514         edge to change by speculation resolution or redirection.
28515         (edge_set_predicate): Likewise.
28516         (inline_summary_t::duplicate): Likewise.
28517         (remap_edge_summaries): Likewise.
28518
28519 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28520
28521         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28522         New macros.
28523         (can_inline_edge_p): Relax option matching for always inline functions.
28524
28525 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
28526
28527         PR target/65561
28528         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28529         Check operand 4 and operand 0 for equality.
28530         (avx512f_vextract<shuffletype>32x4_1_maskm):
28531         Check operand 6 and operand 0 for equality.
28532         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28533         for equality.
28534         (vec_extract_hi_<mode>_maskm): Ditto.
28535
28536 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28537
28538         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28539         dead calls back to live.
28540         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28541         cross check to ...
28542         (cgraph_node::verify_node): ... here; verify only callee edges,
28543         not caller.
28544         * cif-code.def (CILK_SPAWN): New code.
28545
28546 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28547
28548         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28549         (edge_set_predicate): Use it to mark unreachable edges.
28550         (inline_summary_t::duplicate): Remove unnecesary code.
28551         (remap_edge_summaries): Likewise.
28552         (dump_inline_summary): Report contains_cilk_spawn.
28553         (compute_inline_parameters): Compute contains_cilk_spawn.
28554         (inline_read_section, inline_write_summary): Stream
28555         contains_cilk_spawn.
28556         * ipa-inline.c (can_inline_edge_p): Do not touch
28557         DECL_STRUCT_FUNCTION that may not be available;
28558         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28559         remove check for callee_fun->can_throw_non_call_exceptions and
28560         replace it by optimization attribute check; check for flag_exceptions.
28561         * ipa-inline-transform.c (inline_call): Maintain
28562         DECL_FUNCTION_PERSONALITY
28563         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28564
28565 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
28566
28567         PR tree-optimization/65551
28568         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28569         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28570
28571 2015-03-26  Richard Biener  <rguenther@suse.de>
28572
28573         PR middle-end/65555
28574         * tree-cfg.c (verify_gimple_call): Do not require a call to
28575         have no LHS if it wasn't recognized as control altering yet.
28576
28577 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
28578
28579         PR tree-optimization/64715
28580         * passes.def: Add another instance of pass_object_sizes before ccp1.
28581         * tree-object-size.c (pass_object_sizes::execute): In
28582         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28583         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28584         __bos result and the computed constant.  Remove redundant
28585         checks, obsoleted by gimple_call_builtin_p test.
28586
28587         * var-tracking.c (variable_tracking_main_1): Don't track
28588         variables for targetm.no_register_allocation targets.
28589
28590 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
28591
28592         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28593         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28594
28595 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
28596
28597         PR target/65569
28598         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28599         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
28600         0.0 is correctly setup.
28601         (extenddftf2_internal): Likewise.
28602
28603 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
28604
28605         PR tree-optimization/65177
28606         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28607         (bb_in_bbs): New.
28608         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
28609         edges not adjacent on the path to the original code.
28610
28611 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
28612
28613         PR bootstrap/65537
28614         * doc/install.texi (Building a native compiler): Document new
28615         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
28616         configuration assumes that the host supports the linker plugin.
28617
28618 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28619
28620         PR target/65508
28621         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28622         chain for generated call.
28623
28624 2015-03-25  Richard Biener  <rguenther@suse.de>
28625
28626         * passes.c (pass_manager::execute_early_local_passes): Guard
28627         execution of pass_chkp_instrumentation_passes with
28628         flag_check_pointer_bounds.
28629         (pass_chkp_instrumentation_passes::gate): Likewise.
28630
28631 2015-03-25  Martin Liska  <mliska@suse.cz>
28632
28633         PR tree-optimization/65538
28634         * symbol-summary.h (function_summary::~function_summary):
28635         Relese memory for allocated summaries.
28636         (function_summary::release): New function.
28637
28638 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
28639
28640         PR lto/65515
28641         * lto-streamer-out.c (DFS::worklist): New struct.
28642         (DFS::worklist_vec): New data member.
28643         (DFS::next_dfs_num): Remove.
28644         (DFS::DFS): Rewritten using worklist instead of recursion,
28645         using most of code from DFS::DFS_write_tree.
28646         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28647         pass it to DFS_write_tree calls.
28648         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28649         quick initial checks push it into worklist_vec and return.
28650
28651 2015-03-25  Richard Biener  <rguenther@suse.de>
28652
28653         PR middle-end/65519
28654         * genmatch.c (expr::gen_transform): Re-write to avoid
28655         using gimple_build.
28656
28657 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
28658
28659         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28660
28661 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
28662
28663         * config/arm/arm.opt (print_tune_info): New option.
28664         * config/arm/arm.c (arm_print_tune_info): New function.
28665         (arm_file_start): Call arm_print_tune_info.
28666         * config/arm/arm-protos.h (struct tune_params): Add comment.
28667         * doc/invoke.texi (@item -mprint-tune-info): New item.
28668         (-mtune): mention it in ARM Option Summary.
28669
28670 2015-03-25  DJ Delorie  <dj@redhat.com>
28671
28672         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28673         correct clause.
28674
28675 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
28676             Martin Liska  <mliska@suse.cz>
28677
28678         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28679         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28680         (sem_item::add_type): New function.
28681         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28682         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28683         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28684         (sem_function::equals_wpa): Fix typo.
28685         * ipa-icf.h (sem_item::add_type): New function.
28686         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28687         order.
28688
28689 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
28690
28691         PR tree-optimization/65533
28692         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28693         with swapped operands, call vect_free_slp_tree on
28694         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28695         vector.
28696
28697 2015-03-24  Richard Biener  <rguenther@suse.de>
28698
28699         PR middle-end/65517
28700         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28701         for fixup if necessary.
28702
28703 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
28704
28705         * doc/extend.texi (Function Attributes): Add @cindex entries
28706         for all attributes and regularize their format.  Delete text
28707         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
28708         information about "eightbit_data", "tiny_data", and "model"
28709         variable attributes to the Variable Attributes section.  Fix
28710         some obvious typos and copy-editing issues.
28711         (Variable Attributes, Type Attributes): Likewise add/fix
28712         @cindex entries for all attributes.
28713
28714 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
28715
28716         PR target/65523
28717         * tree-chkp.c (chkp_build_returned_bound): Ignore
28718         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28719
28720 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
28721
28722         PR target/65505
28723         * config/sh/predicates.md (simple_mem_operand,
28724         displacement_mem_operand): Add test for reg.
28725         (short_displacement_mem_operand): Test for displacement_mem_operand
28726         before invoking sh_disp_addr_displacement.
28727         * config/sh/constraints.md (Sdd, Sra): Simplify.
28728         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28729         Remove redundant displacement_mem_operand tests.
28730
28731 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
28732
28733         PR target/65296
28734         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28735         the same -mmcu=MCU more than once.
28736
28737 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
28738
28739         PR bootstrap/65522
28740         * ipa-devirt.c: Remove duplicate demangle.h include.
28741
28742         PR target/65504
28743         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28744         on the pseudo.
28745         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28746         REG_POINTER on *destptr after adjusting it for prologue size.
28747
28748         PR ipa/65521
28749         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28750         ultimate_alias_target ()->order ints instead of
28751         ultimate_alias_target () pointers.
28752
28753 2015-03-23  Richard Biener  <rguenther@suse.de>
28754
28755         PR tree-optimization/65518
28756         * tree-vect-stmts.c (vectorizable_load): Reject single-element
28757         interleaving cases we generate absymal code for.
28758
28759 2015-03-23  Richard Biener  <rguenther@suse.de>
28760
28761         PR tree-optimization/65494
28762         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28763         matches here.
28764         (vect_analyze_slp_instance): But do that here, always and once.
28765
28766 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28767
28768         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28769         adding T or multiplying by T+1 and subracting T.
28770
28771 2015-03-22  Jeff Law  <law@redhat.com>
28772
28773         PR rtl-optimization/64317
28774         * Makefile.in (OBJS): Add gcse-common.c
28775         * gcse.c: Include gcse-common.h
28776         (struct modify_pair_s): Move structure definition to gcse-common.h
28777         (compute_transp): Move function to gcse-common.c.
28778         (canon_list_insert): Similarly.
28779         (record_last_mem_set_info): Break out some code and put it into
28780         gcse-common.c.  Call into the new common code.
28781         (compute_local_properties): Pass additional arguments to compute_transp.
28782         * postreload-gcse.c: Include gcse-common.h and df.h
28783         (modify_mem_list_set, blocks_with_calls): New variables.
28784         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28785         (get_bb_avail_insn): Pass in the expression index too.
28786         (alloc_mem): Allocate memory for the new bitmaps and lists.
28787         (free_mem): Free memory for the new bitmaps and lists.
28788         (insert_expr_in_table): Record a bitmap index for each entry we
28789         add to the table.
28790         (record_last_mem_set_info): Call into common code in gcse-common.c.
28791         (get_bb_avail_insn): If no available insn was found in the requested
28792         BB.  If BB has a single predecessor, see if the expression is
28793         transparent in BB and available in that single predecessor.
28794         (compute_expr_transp): New wrapper for compute_transp.
28795         (eliminate_partially_redundant_load): Pass expression's bitmap_index
28796         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
28797         (gcse_after_reload_main): If there are elements in the hash table,
28798         then compute transparency for all the elements in the hash table.
28799         * gcse-common.h: New file.
28800         * gcse-common.c: New file.
28801
28802 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
28803
28804         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28805         as an adjective.
28806         (System Headers): Likewise.
28807         (Ifdef): Likewise.
28808         (Traditional macros): Likewise.
28809         (Invocation): Likewise.
28810         (Option Index): Likewise.
28811         * doc/cppopts.texi (-M): Likewise.
28812         (-finput-charset): Likewise.
28813         (--help): Likewise.
28814         * doc.invoke.texi (AVR Options): Likewise.
28815         (V850 Options): Likewise.
28816
28817 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
28818
28819         PR ipa/65475
28820         * ipa-devirt.c: Include demangle.h
28821         (odr_type_d): Add field rtti_broken.
28822         (odr_subtypes_equivalent_p): Do not require name to match.
28823         (compare_virtual_tables): Fix typo; if type already has ODR violation,
28824         bypass the tests; be ready for function referneces in vtables that are
28825         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28826         (warn_odr): Give up for nameless types.
28827         (warn_types_mismatch): Report mismatch in mangled names;
28828         report mismatch in anonymous namespaces; look into component types to
28829         give useful error; report when mismatch is dragged in from other ODR
28830         type.
28831         (odr_types_equivalent_p): Match types for being polymorphic; avoid
28832         duplicated diagnostics.
28833         (add_type_duplicate): Reorder checks so more informative ones come
28834         first; fix typo; do not output "the extra base is defined here" when
28835         we did not warn.
28836         (BINFO_N_BASE_BINFOS): Relax sanity check.
28837
28838 2015-03-22  Martin Liska  <mliska@suse.cz>
28839             Jakub Jelinek  <jakub@redhat.com>
28840
28841         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28842         masks that can potentially include a builtin.
28843         (ix86_add_new_builtins): Introduce fast filter for isa values
28844         that cannot trigger builtin inclusion.
28845
28846 2015-03-22  Martin Liska  <mliska@suse.cz>
28847
28848         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28849         (sem_item::update_hash_by_local_refs): Likewise.
28850         (sem_variable::get_hash): Empty line is fixed.
28851         (sem_item_optimizer::execute): Include adding of hash references.
28852         (sem_item_optimizer::update_hash_by_addr_refs): New function.
28853         (sem_item_optimizer::build_hash_based_classes): Use local hash.
28854         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28855         (sem_item::update_hash_by_local_refs): Likewise.
28856
28857 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
28858
28859         PR ipa/65502
28860         * ipa-comdats.c (enqueue_references): Walk through thunks.
28861         (ipa_comdats): Likewise.
28862         (set_comdat_group_1): New function.
28863
28864 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
28865
28866         PR ipa/65475
28867         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28868         non-polymorphic
28869
28870 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
28871             Gerald Pfeifer  <gerald@pfeifer.com>
28872
28873         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28874
28875 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
28876             Sandra Loosemore  <sandra@codesourcery.com>
28877
28878         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28879         function parameter declaration.
28880         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28881         Update arguments to nios2_adjust_call_address().
28882         (sibcall_internal): Rename from *sibcall.
28883         (sibcall_value_internal): Rename from *sibcall_value.
28884         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28885         (nios2_large_got_address): Add target temp reg parameter.
28886         (nios2_got_address): Adjust call to nios2_large_got_address, add
28887         force_reg around it.
28888         (nios2_load_pic_address): Add target temp reg parameter, replace call
28889         to nios2_got_address with corresponding code.
28890         (nios2_legitimize_constant_address): Update call to
28891         nios2_load_pic_address.
28892         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28893         to use temp reg for PIC loading purposes.
28894         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28895         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28896         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28897
28898 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
28899
28900         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28901         usage of "the @option{...}".
28902         (-Wopenmp-simd): Likewise.
28903         (-fsanitize-recover): Likewise.
28904         (-fsanitize-undefined-trap-on-error): Likewise.
28905         (-flto): Likewise.
28906         (tracer-dynamic-coverage-feedback): Likewise.
28907         (reorder-block-duplicate-feedback): Likewise.
28908         (loop-unroll-jam-size): Likewise.
28909         (-B): Likewise.
28910         (-I-): Likewise.
28911         (-mabs=legacy): Likewise.
28912         (-mupper-regs-df): Likewise.
28913         (-mupper-regs-sf): Likewise.
28914         (-mpointers-to-nested-functions): Likewise.
28915
28916 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
28917
28918         * doc/extend.texi (Cilk Plus Builtins): Add markup.
28919
28920 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
28921
28922         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28923         additional index entries and cross-references.
28924         (-fchkp-check-incomplete-type): Likewise.
28925         (-fchkp-first-field-has-own-bounds): Likewise.
28926         (-fchkp-narrow-to-innermost-array): Likewise.
28927         (-fchkp-use-fast-string-functions): Likewise.
28928         (-fchkp-use-nochk-string-functions): Likewise.
28929         (-fchkp-use-static-const-bounds): Likewise.
28930         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28931         (-fchkp-instrument-marked-only): Likewise.
28932         (-fchkp-use-wrappers): Likewise.
28933         (-static-libmpx): Likewise.
28934         (-static-libmpxwrappers): Likewise.
28935         * doc/extend.texi (bnd_legacy): Likewise.
28936         (bnd_instrument): Likewise.
28937         (bnd_variable_size): Likewise.
28938         (Pointer Bounds Checker builtins): Likewise.
28939
28940 2015-03-21  Tom de Vries  <tom@codesourcery.com>
28941
28942         PR tree-optimization/65458
28943         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28944         * cgraph.h (cgraph_node): Add parallelized_function field.
28945         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28946         (input_overwrite_node): Read parallelized_function field.
28947         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28948         parallelized_function on cgraph_node for child_fn.
28949         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28950         Remove include of gt-tree-parloops.h.
28951         (parallelized_functions): Remove static variable.
28952         (parallelized_function_p): Rewrite using parallelized_function field of
28953         cgraph_node.
28954         (create_loop_fn): Remove adding to parallelized_functions.
28955         * Makefile.in (GTFILES): Remove tree-parloops.c
28956
28957 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
28958
28959         PR rtl-optimization/64366
28960         * lra.c (lra_update_insn_regno_info): Consider regs in
28961         CALL_INSN_FUNCTION_USAGE memory.
28962
28963 2015-03-20  Richard Biener  <rguenther@suse.de>
28964
28965         PR middle-end/64715
28966         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28967         for type comparison and gcc_checking_assert.
28968         (chrec_fold_plus_poly_poly): Likewise.
28969         (chrec_fold_multiply_poly_poly): Likewise.
28970         (chrec_convert_1): Likewise.
28971         * gimplify.c (gimplify_expr): Remove premature folding of
28972         &X + CST to &MEM[&X, CST].
28973
28974 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
28975
28976         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28977         already is final.
28978         (ipa_inline): Recompute inline_failed codes.
28979         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28980         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28981         CIF_FINAL_ERROR.
28982
28983 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
28984
28985         PR rtl-optimization/60851
28986         * recog.c (constrain_operands): Accept a pseudo register before reload
28987         for LRA enabled targets.
28988
28989 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28990
28991         PR target/65240
28992         * config/rs6000/predicates.md (easy_fp_constant): Remove special
28993         -ffast-math handling that kept non-0 constants live in the RTL
28994         until reload.  Remove logic testing the number of instructions it
28995         took to create a constant in a GPR that was never used, due to a
28996         test for soft-float earlier.
28997         (memory_fp_constant): Delete, no longer used.
28998
28999         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
29000         alternatives for loading non-0 constants into GPRs for hard
29001         floating point that is no longer needed due to changes in
29002         easy_fp_constant.  Add support for loading 0.0 into GPRs.
29003         (mov<mode>_hardfloat32): Likewise.
29004         (mov<mode>_hardfloat64): Likewise.
29005         (mov<mode>_64bit_dm): Likewise.
29006         (movtd_64bit_nodm): Likewise.
29007         (pre-reload move FP constant define_split): Delete define_split,
29008         since it is no longer used.
29009         (extenddftf2_internal): Remove GHF constraints that are not valid
29010         for extenddftf2.
29011
29012 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
29013
29014         PR rtl-optimization/63491
29015         * lra-constraints.c (check_and_process_move): Use src instead of
29016         sreg.  Remove some dead code.
29017
29018 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
29019
29020         PR ipa/65380
29021         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
29022         (sem_variable::merge): Likewise.
29023
29024 2015-03-19  Martin Liska  <mliska@suse.cz>
29025
29026         PR ipa/65465
29027         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
29028         all fields of cgraph_thunk_info.
29029
29030 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
29031
29032         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
29033         clone instrumented thunks.
29034
29035 2015-03-19  Richard Biener  <rguenther@suse.de>
29036
29037         Revert
29038         2015-03-10  Richard Biener  <rguenther@suse.de>
29039
29040         PR middle-end/63155
29041         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29042         * tree-ssa-coalesce.c: Include timevar.h.
29043         (attempt_coalesce): Handle graph being NULL.
29044         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29045         Split out abnormal coalescing to ...
29046         (perform_abnormal_coalescing): ... this function.
29047         (coalesce_ssa_name): Perform abnormal coalescing without computing
29048         live/conflict.
29049         (verify_ssa_coalescing_worker): New function.
29050         (verify_ssa_coalescing): Likewise.
29051
29052 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29053             Jakub Jelinek  <jakub@redhat.com>
29054
29055         PR sanitizer/65400
29056         * tsan.c (instrument_gimple): Clear tail call flag on
29057         calls.
29058
29059 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
29060
29061         PR sanitizer/65400
29062         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
29063         call in the return bb.
29064         (find_split_points): Add RETURN_BB argument, don't call
29065         find_return_bb.
29066         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
29067         if true append TSAN_FUNC_EXIT internal call after the call to
29068         the split off function.
29069         (execute_split_functions): Call find_return_bb here.
29070         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
29071         Adjust find_split_points and split_function calls.
29072
29073 2015-03-18  DJ Delorie  <dj@redhat.com>
29074
29075         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
29076         (iorqi3_virt): Likewise.
29077
29078 2015-03-18  Tom de Vries  <tom@codesourcery.com>
29079
29080         * tree-parloops.c (parallelize_loops): Make static.
29081         * tree-parloops.h (parallelize_loops): Remove extern declaration.
29082
29083 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
29084
29085         PR middle-end/64491
29086         Revert:
29087         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
29088
29089         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
29090         condition would be removed due to undefined behaviour.
29091
29092 2015-03-18  Martin Liska  <mliska@suse.cz>
29093
29094         PR ipa/65432
29095         * cgraph.c (cgraph_node::get_create): Remove unnecessary
29096         xstrdup_for_dump wrapper.
29097         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
29098         sem_item::name.
29099         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
29100         with xstrdup_for_dump.
29101         (sem_variable::equals): Likewise.
29102         (sem_item_optimizer::read_section): Use symtab_node::name instead of
29103         sem_item::name.
29104         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
29105         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
29106         symtab_node::asm_name with xstrdup_for_dump.
29107         (congruence_class::dump): Use symtab_node::name instead of
29108         sem_item::name.
29109         * ipa-icf.h (symtab_node::name): Remove.
29110         (symtab_node::asm_name): Likewise.
29111
29112 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
29113
29114         PR tree-optimization/65450
29115         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
29116         function.
29117         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
29118         it instead of duplicate_ssa_name_ptr_info.
29119
29120         PR target/65222
29121         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
29122
29123 2015-03-18  Richard Biener  <rguenther@suse.de>
29124
29125         * tree-data-ref.h (struct access_matrix): Remove.
29126         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29127         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29128         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29129         (am_vector_index_for_loop): Likewise.
29130         (struct data_reference): Remove access_matrix member.
29131         (DR_ACCESS_MATRIX): Remove.
29132         (lambda_vector_new): Add comment.
29133         (lambda_matrix_new): Use XOBNEWVEC.
29134
29135 2015-03-18  Richard Biener  <rguenther@suse.de>
29136
29137         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29138         (pass_ch::execute): Cleanup the CFG only if we did sth.
29139         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29140
29141 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29142
29143         * expmed.c (synth_mult): Use std::swap instead of manually
29144         swapping algorithms.
29145
29146 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
29147
29148         PR target/65078
29149         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29150
29151 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
29152
29153         PR target/65296
29154         * config/avr/avr.opt (-nodevicelib): New option.
29155         * doc/invoke.texi (AVR Options): Document it.
29156         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29157         libgcc.a, libc.a, libm.a.
29158         * config/avr/specs.h: Same.
29159         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29160         which don't (directly) depend on the device.  Print more help.
29161         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29162         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29163         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29164         case of an error.
29165         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29166         for specs file name.
29167         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29168         * config/avr/avr-mcus.def: Adjust initializers and comments.
29169
29170 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
29171
29172         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29173         DECL_ONE_ONLY to check if decl is one only.
29174         * ipa-split.c (consider_split): Limit splitt of one only functions.
29175
29176 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
29177
29178         PR tree-optimization/65427
29179         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29180         functions.
29181         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29182
29183 2015-03-16  Marek Polacek  <polacek@redhat.com>
29184
29185         * cgraph.h (add_new_static_var): Remove declaration.
29186         * varpool.c (add_new_static_var): Remove function.
29187
29188 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
29189
29190         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29191         instead of vec<tree> * with vec_alloc and release for args.
29192         Adjust all users.
29193
29194         PR middle-end/65431
29195         * omp-low.c (delete_omp_context): Only splay_tree_delete
29196         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29197         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
29198
29199 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29200
29201         PR sanitizer/64820
29202         * cfgexpand.c (align_base): New function.
29203         (alloc_stack_frame_space): Call it.
29204         (expand_stack_vars): Align prev_frame to be sure
29205         data->asan_vec elements aligned properly.
29206
29207 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
29208
29209         PR middle-end/65409
29210         * expr.c (store_field): Do not do a direct block copy if the source is
29211         a PARALLEL with BLKmode.
29212
29213 2015-03-16  Tom de Vries  <tom@codesourcery.com>
29214
29215         PR middle-end/65414
29216         Revert:
29217         2015-03-12  Tom de Vries  <tom@codesourcery.com>
29218
29219         PR rtl-optimization/64895
29220         * lra-lives.c (check_pseudos_live_through_calls): Use
29221         actual_call_used_reg_set instead of call_used_reg_set, if available.
29222
29223 2015-03-16  Alan Modra  <amodra@gmail.com>
29224
29225         PR target/63150
29226         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29227         Modify Z->r bswapdi splitter to use dest in place of scratch.
29228         In r->Z and Z->r bswapdi splitter rename word_high, word_low
29229         to word1, word2 and rearrange logic to suit.
29230         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29231         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
29232         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29233         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
29234         early clobber.
29235
29236 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
29237
29238         PR tree-optimization/65369
29239         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29240         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29241         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29242
29243         PR tree-optimization/65418
29244         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29245         are casts in the first PLUS_EXPR operand, ensure tbias and
29246         *totallowp are in the inner type.
29247
29248         PR rtl-optimization/65401
29249         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29250         argument.  If true, adjust_address_nv of x with big-endian
29251         correction for the mode widening to GET_MODE (y).
29252         (make_field_assignment): Don't do MEM mode widening here.
29253         Use MEM_P instead of GET_CODE == MEM.
29254
29255 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
29256
29257         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29258         the external decls.
29259
29260 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29261
29262         PR target/64600
29263         * config/arm/arm.c (arm_gen_constant, AND case): Use
29264         ARM_SIGN_EXTEND when constructing AND mask.
29265
29266 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29267
29268         * graph.c (print_graph_cfg): Make function names visible and append
29269         parenthesis to it.  Also make groups of basic blocks belonging to the
29270         same function visible.
29271
29272 2015-03-12  Richard Biener  <rguenther@suse.de>
29273
29274         PR middle-end/44563
29275         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29276         to avoid quadratic behavior with inline expansion splitting blocks.
29277         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29278         with the successor if the predecessor will be merged with it.
29279         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29280         entry block with its successor.
29281
29282 2015-03-13  Richard Biener  <rguenther@suse.de>
29283
29284         PR middle-end/44563
29285         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29286         (cleanup_tree_cfg_1): Do not call it.
29287         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29288         (fixup_noreturn_call): Mark the stmt as control altering.
29289         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29290         here.
29291         (pass_data_fixup_cfg): Produce a dump file.
29292         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29293         (need_noreturn_fixup): New global.
29294         (pass_dominator::execute): Fixup queued noreturn calls.
29295         (optimize_stmt): Queue calls that became noreturn for fixup.
29296         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29297         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29298         (el_to_fixup): New global.
29299         (eliminate_dom_walker::before_dom_childre): Queue calls that
29300         became noreturn for fixup.
29301         (eliminate): Fixup queued noreturn calls.
29302         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29303         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29304         (substitute_and_fold_dom_walker::before_dom_children): Queue
29305         alls that became noreturn for fixup.
29306         (substitute_and_fold): Fixup queued noreturn calls.
29307
29308 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
29309
29310         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29311         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29312         are building; for methods check ODR type of class they belong to if
29313         they may lead to a polymorphic call.
29314         (sem_function::compare_polymorphic_p): Be bit smarter about testing
29315         when function may lead to a polymorphic call.
29316         (sem_function::compare_type_list): Remove.
29317         (sem_variable::equals): Update use of compatible_types_p.
29318         (sem_variable::parse_tree_refs): Remove.
29319         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29320         cdtor.
29321         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29322         matching here.
29323         (func_checker::compatible_polymorphic_types_p): Break out from ...
29324         (unc_checker::compatible_types_p): ... here.
29325         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29326         Declare.
29327         (unc_checker::compatible_types_p): Update.
29328         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29329         Remove.
29330
29331 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29332
29333         PR rtl-optimization/65235
29334         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29335         When first element of vec_concat is const_int, calculate its size
29336         using second element.
29337
29338 2015-03-12  Richard Biener  <rguenther@suse.de>
29339
29340         PR middle-end/65270
29341         * fold-const.c (operand_equal_p): Fix ordering of resetting
29342         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29343
29344 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29345
29346         * config/s390/s390.c (s390_reorg): Move code to output nops after label
29347         to s390_reorg ().
29348         (s390_asm_output_function_label): Likewise.
29349         * config/s390/s390.c (s390_asm_output_function_label):
29350         Fix function label alignment with -mhtopatch.
29351         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29352         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29353         ("nop_2_byte"): New define_insn.
29354         ("nop_4_byte"): Likewise.
29355         ("nop_6_byte"): Likewise.
29356         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29357         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29358
29359 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
29360
29361         PR target/65103
29362         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29363         register.
29364
29365 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
29366
29367         PR target/65044
29368         * toplev.c (process_options): Restrict Pointer Bounds Checker
29369         usage with Address Sanitizer.
29370
29371 2015-03-12  Richard Biener  <rguenther@suse.de>
29372
29373         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29374         to split on.
29375         * omp-low.c (expand_omp_taskreg): Split block before removing
29376         the stmt.
29377         (expand_omp_target): Likewise.
29378         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29379         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29380         stmt to split_block.
29381
29382 2015-03-12  Tom de Vries  <tom@codesourcery.com>
29383
29384         PR rtl-optimization/64895
29385         * lra-lives.c (check_pseudos_live_through_calls): Use
29386         actual_call_used_reg_set instead of call_used_reg_set, if available.
29387
29388 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
29389
29390         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29391         (cgraph_node::remove): Likewise.
29392         (cgraph_node::get_untransformed_body): Likewise.
29393         * varpool.c (varpool_node::remove): Likewise.
29394         (varpool_node::get_constructor): Add sanity check.
29395
29396 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
29397
29398         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29399         old GCC versions.
29400         (-fabi-compat-version): Likewise.
29401         (-ffriend-injection): Likewise.
29402         (-Wdeclaration-after-statement): Likewise.
29403         (-fomit-frame-pointer): Likewise.
29404         (-ftree-coalesce-inlined-vars): Likewise.
29405         (-fvisibility=): Likewise.
29406         * doc/extend.texi (Typeof): Likewise.
29407         (Zero Length): Likewise.
29408         (Escaped Newlines): Likewise.
29409         (Compound Literals): Likewise.
29410         (Function Attributes): Likewise.
29411         (Label Attributes): Likewise.
29412         (Type Attributes): Likewise.
29413         (Function Names): Likewise.
29414         (Other Builtins): Likewise.
29415         (Function Specific Option Pragmas): Likewise.
29416         (C++ Interface): Likewise.
29417
29418 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
29419
29420         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29421
29422 2015-03-11  Marek Polacek  <polacek@redhat.com>
29423
29424         PR tree-optimization/65388
29425         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29426
29427 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
29428
29429         PR target/65296
29430         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29431         * configure: Regenerate.
29432         * config.in: Regenerate.
29433         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29434         [-mn-flash]: Document it.
29435         [__AVR_ARCH__]: Document avrtiny.
29436
29437         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29438         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29439         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29440
29441 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29442
29443         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29444
29445 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
29446
29447         PR target/65242
29448         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29449         allow reloads of PLUS in floating point/VSX registers.
29450
29451 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
29452
29453         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29454         crypto_sha256_fast.
29455         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29456
29457 2015-03-11  Richard Biener  <rguenther@suse.de>
29458
29459         PR tree-optimization/65310
29460         * tree-sra.c (build_ref_for_offset): Also preserve larger
29461         alignment.
29462
29463 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
29464
29465         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29466
29467 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
29468
29469         PR target/65368
29470         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29471         new define_expand.
29472         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29473
29474 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
29475
29476         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29477         (sem_function::equals_wpa): ... here.
29478
29479 2015-03-10  Marek Polacek  <polacek@redhat.com>
29480             Jakub Jelinek  <jakub@redhat.com>
29481
29482         PR sanitizer/65367
29483         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29484         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
29485         separately.
29486
29487 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
29488
29489         PR target/65286
29490         * config/rs6000/t-linux: For powerpc64* target set
29491         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29492
29493 2015-03-10  Richard Biener  <rguenther@suse.de>
29494
29495         PR middle-end/44563
29496         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29497         for redirect_all_calls.
29498
29499 2015-03-10  Marek Polacek  <polacek@redhat.com>
29500
29501         * gdbinit.in (pcfun): Define and document.
29502
29503 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
29504
29505         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29506         of libgomp-plugin.h.
29507         (find_target_compiler): Support a case when the path to gcc is
29508         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29509         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29510         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29511         libgomp-plugin.h.
29512         (main): Use GCC_INSTALL_NAME as target_driver_name.
29513         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29514         define.
29515         (mkoffload.o): Remove obsolete include path and defines.
29516         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29517
29518 2015-03-10  Richard Biener  <rguenther@suse.de>
29519
29520         PR middle-end/63155
29521         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29522         * tree-ssa-coalesce.c: Include timevar.h.
29523         (attempt_coalesce): Handle graph being NULL.
29524         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29525         Split out abnormal coalescing to ...
29526         (perform_abnormal_coalescing): ... this function.
29527         (coalesce_ssa_name): Perform abnormal coalescing without computing
29528         live/conflict.
29529         (verify_ssa_coalescing_worker): New function.
29530         (verify_ssa_coalescing): Likewise.
29531
29532 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
29533
29534         PR target/65296
29535         * config.gcc (extra_options) [avr]: Remove.
29536         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29537         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29538         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29539
29540         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29541         (-mmcu=): Add Var and MissingArgError properties.
29542         (-march=): Remove.
29543         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29544         * config/avr/t-multilib: Regenerate.
29545         * config/avr/specs.h: New file.
29546         * config/avr/driver-avr.c: New file.
29547         * config/avr/genopt.sh: Remove file.
29548         * config/avr/avr-tables.opt: Remove file.
29549         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29550         * config/avr/avr-c.c: Same.
29551         * avr-arch.h: Same.
29552         (avr_current_device): Remove proto.
29553         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29554         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29555         (EXTRA_SPEC_FUNCTIONS): Define.
29556         (avr_devicespecs_file): New specs function proto.
29557         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29558         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29559         (avr_current_device): Remove definition and usage.
29560         (avr_set_core_architecture): New static function.
29561         (avr_option_override): Use it.
29562         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29563         (mcu_name): New static array.
29564         (comparator, avr_archs_str, avr_mcus_str): New static functions.
29565         (avr_inform_devices, avr_inform_core_architectures): New functions.
29566         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29567         (avrlibc.h) [WITH_AVRLIBC]: Include.
29568         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29569         (print_mcu): Rewrite from scratch.
29570         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29571         Forward to avr-specific specs defined in device-specs file.
29572         * config/avr/t-avr (driver-avr.o): New rule.
29573         (avr-devices.o): Depend on avr-arch.h.
29574         (avr-mcus): No more depend on avr-tables.opt.
29575         (avr-tables.opt): Remove rule.
29576         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29577
29578 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
29579
29580         * c-family/c.opt (fchkp-use-wrappers): New.
29581         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29582         (chkp_wrap_function): New.
29583         (chkp_build_instrumented_fndecl): Support wrapped
29584         functions.
29585         * doc/invoke.texi (-fcheck-pointer-bounds): New.
29586         (-fchkp-check-incomplete-type): New.
29587         (-fchkp-first-field-has-own-bounds): New.
29588         (-fchkp-narrow-bounds): New.
29589         (-fchkp-narrow-to-innermost-array): New.
29590         (-fchkp-optimize): New.
29591         (-fchkp-use-fast-string-functions): New.
29592         (-fchkp-use-nochk-string-functions): New.
29593         (-fchkp-use-static-bounds): New.
29594         (-fchkp-use-static-const-bounds): New.
29595         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29596         (-fchkp-check-read): New.
29597         (-fchkp-check-write): New.
29598         (-fchkp-store-bounds): New.
29599         (-fchkp-instrument-calls): New.
29600         (-fchkp-instrument-marked-only): New.
29601         (-fchkp-use-wrappers): New.
29602         (-static-libmpx): New.
29603         (-static-libmpxwrappers): New.
29604
29605 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
29606
29607         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29608         (CHKP_SPEC): Add wrappers library.
29609         * c-family/c.opt (static-libmpxwrappers): New.
29610
29611 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
29612
29613         * config/i386/linux-common.h (LIBMPX_LIBS): New.
29614         (LIBMPX_SPEC): New.
29615         (CHKP_SPEC): New.
29616         * gcc.c (CHKP_SPEC): New.
29617         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29618         * c-family/c.opt (static-libmpx): New.
29619
29620 2015-03-10  Richard Biener  <rguenther@suse.de>
29621
29622         PR middle-end/44563
29623         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29624         for compare_type.
29625         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29626         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29627         (cgraph_add_edge_to_call_site_hash): Likewise.
29628         (cgraph_node::get_edge): Likewise.
29629         (cgraph_edge::set_call_stmt): Likewise.
29630         (cgraph_edge::remove_caller): Likewise.
29631
29632 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29633
29634         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29635         (callee_saved_gpr_regs_size): ... this.
29636         (callee_saved_regs_first_regno): Rename to ...
29637         (callee_saved_first_gpr_regno): ... this.
29638         (callee_saved_regs_last_regno) Rename to ...
29639         (callee_saved_last_gpr_regno): ... this.
29640         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29641         variables.
29642         (nds32_initial_elimination_offset): Likewise.
29643         (nds32_expand_prologue): Likewise.
29644         (nds32_expand_epilogue): Likewise.
29645         (nds32_expand_prologue_v3push): Likewise.
29646         (nds32_expand_epilogue_v3pop): Likewise.
29647         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29648         Adjust renamed variables.
29649         (nds32_output_stack_pop): Likewise.
29650
29651 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29652
29653         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29654         code in comment.
29655
29656 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
29657
29658         PR rtl-optimization/65321
29659         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29660         than shift mode.
29661         * var-tracking.c (use_narrower_mode): Likewise.
29662
29663 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
29664
29665         PR tree-optimization/65355
29666         * varasm.c (notice_global_symbol): Do not produce RTL.
29667         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29668         anchor.
29669         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29670         check for section anchors.
29671
29672 2015-03-10  Alan Modra  <amodra@gmail.com>
29673
29674         PR target/65286
29675         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29676         to be single-arch by default.  Set cpu_is_64bit for powerpc64
29677         given --with-cpu=native.
29678         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29679         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29680         and powerpc64le.
29681         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29682         rs6000_isa_flags rather than TARGET_64BIT.
29683
29684 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
29685             Kaz Kojima  <kkojima@gcc.gnu.org>
29686
29687         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29688
29689 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
29690
29691         PR lto/65361
29692         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29693         on a TREE_BINFO, instead use BINFO_TYPE.
29694
29695 2015-03-09  Richard Biener  <rguenther@suse.de>
29696
29697         PR middle-end/65270
29698         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29699         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29700         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
29701         of that.  When comparing dereferences compare alignment.
29702         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29703
29704 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
29705
29706         * ipa-inline-analysis.c (check_callers): Check
29707         node->can_remove_if_no_direct_calls_and_refs_p.
29708         (growth_likely_positive): Reorganize to call
29709         can_remove_if_no_direct_calls_p later.
29710         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29711         will_be_removed_from_program_if_no_direct_calls_p): Add
29712         will_inline parameter.
29713         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29714         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29715         Handle inliner case correctly.
29716
29717 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29718
29719         PR tree-optimization/63743
29720         * cfgexpand.c (reorder_operands): Also reorder if only second operand
29721         had its definition forwarded by TER.
29722
29723 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
29724
29725         PR lto/65316
29726         * ipa-utils.h (types_odr_comparable): Add strict argument.
29727         * ipa-devirt.c: Fix whitespace;
29728         (odr_hasher): Remove.
29729         (odr_name_hasher, odr_vtable_hasher): New hashers.
29730         (can_be_name_hashed_p): New predicate.
29731         (hash_type_name): remove.
29732         (hash_odr_name): New.
29733         (odr_name_hasher::hash): new.
29734         (can_be_vtable_hashed_p): New.
29735         (hash_odr_vtable): New.
29736         (odr_vtable_hasher::hash): New.
29737         (types_same_for_odr): Add strict parameter.
29738         (types_odr_comparable): Likewise.
29739         (odr_name_hasher::equal): New.
29740         (odr_vtable_hasher::equal): New.
29741         (odr_name_hasher::remove): New.
29742         (odr_hash_type): Change to hash_table<odr_name_hasher>.
29743         (odr_vtable_hash_type): New.
29744         (odr_vtable_hash): New.
29745         (odr_subtypes_equivalent_p): Do strict comparsion.
29746         (add_type_duplicate): Merge type names; cleanup; avoid type
29747         duplicates.
29748         (register_odr_type): Initialize vtable hash.
29749         (build_type_inheritance_graph): Likewise
29750         (get_odr_type): Reorg to use two hashes.
29751         (dump_possible_polymorphic_call_targets): Move sanity check after debug
29752         output.
29753         (ipa_devirt): Dump type_inheritance_graph.
29754         (types_same_for_odr): Add strict mode.
29755
29756 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29757
29758         PR ipa/65334
29759         * cgraph.h (symtab_node): Add definition_alignment,
29760         can_increase_alignment_p and increase_alignment.
29761         * symtab.c (symtab_node::can_increase_alignment_p,
29762         increase_alignment_1, symtab_node::increase_alignment,
29763         symtab_node::definition_alignment): New.
29764         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29765         can_increase_alignment_p.
29766         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29767         * tree-vect-stmts.c (ensure_base_align): Likewise.
29768         * varasm.c (function_section_1): Use definition_alignment.
29769         (assemble_start_function): Likewise.
29770         (emit_local): likewise.
29771         (build_constant_desc): Likewsie.
29772         (output_constant_def_contents): Likewise.
29773         (place_block_symbol): Likewise.
29774         (output_object_block): Likewise.
29775
29776 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29777
29778         PR ipa/65316
29779         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29780         when outputting debug.
29781
29782 2015-03-07  Marek Polacek  <polacek@redhat.com>
29783             Martin Uecker  <uecker@eecs.berkeley.edu>
29784
29785         PR sanitizer/65280
29786         * doc/invoke.texi: Update description of -fsanitize=bounds.
29787
29788 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
29789
29790         * tree-ssa-phiopt.c (neg_replacement): Remove.
29791         (tree_ssa_phiopt_worker): Remove negate optimization.
29792
29793 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29794
29795         PR ipa/65302
29796         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29797
29798 2015-03-06  Richard Biener  <rguenther@suse.de>
29799
29800         PR middle-end/64928
29801         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29802         and liveout_obstack members.
29803         (calculate_live_on_exit): Remove.
29804         (calculate_live_ranges): Change declaration.
29805         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29806         (new_tree_live_info): Adjust.
29807         (calculate_live_ranges): Delete livein when not wanted.
29808         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29809         Deal with partly deleted live info.
29810         (loe_visit_block): Remove temporary bitmap by using
29811         bitmap_ior_and_compl_into.
29812         (live_worklist): Adjust accordingly.
29813         (calculate_live_on_exit): Make static.
29814         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29815         we do not need livein.
29816
29817 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
29818
29819         * real.c (real_from_string): Fix typo in assertion.
29820
29821 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
29822
29823         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29824         the patch.
29825
29826 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29827
29828         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29829
29830 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
29831
29832         PR target/64342
29833         * lra-assigns.c (find_hard_regno_for): Rename to
29834         find_hard_regno_for_1.  Add a new parameter.
29835         (find_hard_regno_for): New function using find_hard_regno_for_1.
29836
29837 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29838
29839         PR rtl-optimization/65067
29840         * expmed.c (store_bit_field, extract_bit_field): Reworked the
29841         strict volatile bitfield handling.
29842
29843 2015-03-05  Martin Liska  <mliska@suse.cz>
29844
29845         PR ipa/65318
29846         * ipa-icf.c (sem_variable::equals): Compare variables types.
29847
29848 2015-03-05  Richard Henderson  <rth@redhat.com>
29849
29850         PR target/65121
29851         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29852         correctly check weak symbol binding.
29853
29854 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
29855
29856         PR middle-end/65315
29857         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29858         needed alignment.
29859
29860 2015-03-05  Martin Liska  <mliska@suse.cz>
29861
29862         * ipa-inline.c (inline_small_functions): Set default value to
29863         prevent warning during bootstrap.
29864         * tree.h: Add pragma guard that ignores false positives during
29865         bootstrap.
29866
29867 2015-03-05  Richard Biener  <rguenther@suse.de>
29868
29869         PR tree-optimization/65310
29870         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29871         Properly preserve alignment of the base of the access.
29872
29873 2015-03-05  Richard Biener  <rguenther@suse.de>
29874
29875         PR ipa/65270
29876         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29877         Compare dependence info.
29878
29879 2015-03-05  Richard Biener  <rguenther@suse.de>
29880
29881         PR middle-end/65233
29882         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29883         tree-into-ssa.h.
29884         (walk_ssa_copies): Revert last chage.  Instead do not walk
29885         SSA names registered for SSA update.
29886
29887 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
29888
29889         PR ipa/65270
29890         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29891         vtable references for their containing type.
29892         (sem_function::equals_wpa): Compare TYPE_RESTRICT
29893         and type attributes.
29894
29895 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
29896
29897         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29898         before negating it.
29899         * stor-layout.c (finalize_record_size): Revert latest change.
29900
29901 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
29902
29903         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29904
29905 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
29906
29907         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29908         for correct comdat handling.
29909         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29910         Likewise.
29911         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29912         (used_from_object_file_p_worker): Remove.
29913         (cgraph_node::only_called_directly_or_alised): Add
29914         used_from_object_file_p.
29915         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29916         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29917         can_remove_if_no_direct_calls_and_refs_p.
29918
29919 2015-03-04  Nick Clifton  <nickc@redhat.com>
29920
29921         * config/rl78/rl78.h (enum reg_class): Remove real registers from
29922         General register class.
29923         * config/rl78/rl78-real.md: Replace general register constraints
29924         with real+virtual register constraints.
29925
29926 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29927
29928         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29929         from checking for -mhtm option.
29930
29931 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
29932
29933         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29934         (struct ipa_sra_check_caller_data): Add has_thunk field.
29935         (ipa_sra_check_caller): Check for thunk.
29936         (ipa_sra_preliminary_function_checks): Give up on function with
29937         thunks.
29938         (ipa_early_sra): Use call_for_symbol_and_aliases.
29939
29940 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
29941
29942         PR target/65249
29943         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29944         called for __stack_chk_guard symbol.
29945
29946 2015-03-03  DJ Delorie  <dj@redhat.com>
29947
29948         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29949         inc/dec.
29950         (*addhi3_real): Likewise.
29951         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29952         pattern to match incrementing memory.
29953         * config/rl78/predicates.md (rl78_1_2_operand): New.
29954         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29955         it's the same and only mem.
29956         (rl78_alloc_physical_registers_op2): If there's effectively only
29957         one MEM, transcode it into HL.
29958         (rl78_far_p): Reject addresses that aren't legitimate.
29959
29960 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
29961
29962         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29963         negating it.
29964
29965         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29966
29967 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
29968
29969         Implement call0 ABI for xtensa
29970         * config/xtensa/constraints.md ("a" constraint): Include stack
29971         pointer in case of call0 ABI.
29972         ("q" constraint): Make empty in case of call0 ABI.
29973         ("D" constraint): Include stack pointer in case of call0 ABI.
29974         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29975         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29976         prototypes.
29977         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29978         variable.
29979         (xtensa_regno_to_class): Make it a local variable in the
29980         function xtensa_regno_to_class.
29981         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29982         macro, function prototype and implementation.
29983         (reg_nonleaf_alloc_order): Make it a local variable in the
29984         function order_regs_for_local_alloc.
29985         (xtensa_conditional_register_usage): New function.
29986         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29987         (xtensa_valid_move): Allow direct moves to stack pointer
29988         register in call0 ABI.
29989         (xtensa_setup_frame_addresses): Only spill register windows in
29990         windowed ABI.
29991         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29992         call0 ABI respectively.
29993         (xtensa_function_arg_1): Only mark a7 register for copying in
29994         windowed ABI.
29995         (xtensa_call_save_reg): New function.
29996         (compute_frame_size): Add space for callee saved register
29997         storage to the frame size in call0 ABI.
29998         (xtensa_expand_prologue): Generate code to set up stack frame
29999         and save callee-saved registers in call0 ABI.
30000         (xtensa_expand_epilogue): New function.
30001         (xtensa_set_return_address): New function.
30002         (xtensa_return_addr): Calculate return address in call0 ABI.
30003         (xtensa_builtin_saveregs): Only mark a7 register for copying and
30004         emit copying code in windowed ABI.
30005         (order_regs_for_local_alloc): Add preferred register allocation
30006         order for non-leaf function in call0 ABI.
30007         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
30008         (xtensa_asm_trampoline_template): Add trampoline generation for
30009         call0 ABI.
30010         (xtensa_trampoline_init): Add trampoline initialization for
30011         call0 ABI.
30012         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
30013         functions.
30014         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
30015         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
30016         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
30017         ABI call-used registers.
30018         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
30019         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
30020         call0 ABI.
30021         (REG_CLASS_CONTENTS): Include all registers into the preferred
30022         reload registers set, adjust the set in the
30023         xtensa_conditional_register_usage.
30024         (xtensa_regno_to_class): Drop variable declaration.
30025         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
30026         function.
30027         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
30028         respectively.
30029         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
30030         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
30031         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
30032         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
30033         location in call0 ABI.
30034         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
30035         stack adjustment size when handling exception.
30036         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
30037         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
30038         definitions.
30039         ("return" pattern): Generate ret.n/ret in call0 ABI.
30040         ("epilogue" pattern): Expand epilogue.
30041         ("nonlocal_goto" pattern): Use default in call0 ABI.
30042         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
30043         emit eh_set_a0_* depending on ABI.
30044         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
30045         ("eh_set_a0_call0", "blockage"): New patterns.
30046
30047 2015-03-03  Martin Liska  <mliska@suse.cz>
30048
30049         PR ipa/65287
30050         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
30051
30052 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
30053
30054         PR 65138/target
30055         * config/rs6000/rs6000-tables.opt: Regenerate table.
30056
30057 2015-03-03  Renlin Li  <renlin.li@arm.com>
30058
30059         * doc/md.texi (@item ^): Change ? into ^.
30060
30061 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
30062
30063         * doc/tm.texi: Regenerated.
30064
30065 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
30066
30067         * builtins.c (expand_builtin_return_addr): Add
30068         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
30069         surrounding #ifdef.
30070         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
30071         definition to 1.
30072         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
30073         Likewise.
30074         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
30075         undefined.
30076         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
30077         paragraph.
30078
30079 2015-03-03  Martin Jambor  <mjambor@suse.cz>
30080             Eric Botcazou  <ebotcazou@adacore.com>
30081
30082         * tree-sra.c (ipa_sra_check_caller_data): New type.
30083         (has_caller_p): Removed.
30084         (ipa_sra_check_caller): New function.
30085         (ipa_sra_preliminary_function_checks): Use it.
30086
30087 2015-03-03  Martin Liska  <mliska@suse.cz>
30088
30089         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
30090         instead of if branch.
30091
30092 2015-03-03  Martin Liska  <mliska@suse.cz>
30093
30094         PR ipa/65282
30095         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
30096
30097 2015-03-23  Jeff Law  <law@redhat.com>
30098
30099         PR tree-optimization/65241
30100         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
30101         hash table if INSERT is true.
30102
30103 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
30104
30105         PR target/65296
30106         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
30107
30108 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
30109
30110         PR target/64331
30111         * config/avr/avr.c (context.h, tree-pass.h): Include them.
30112         (avr_pass_data_recompute_notes): New static variable.
30113         (avr_pass_recompute_notes): New class.
30114         (avr_register_passes): New static function.
30115         (avr_option_override): Call it.
30116
30117 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
30118
30119         Fix various problems with specs file generation.
30120
30121         PR target/65296
30122         * config.gcc (extra_gcc_objs) [avr]: Remove.
30123         * config/avr/driver-avr.c: Remove file.
30124         * config/avr/t-avr (driver-avr.o): Remove rule.
30125         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30126         INCLUDES to build.  Depend on TM_H.
30127         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
30128         build warnings.  Fix non-matching types and non-existing %-codes.
30129         (tm.h): Include.
30130         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30131         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30132         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30133         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30134         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30135         (LIBGCC_SPEC): Remove definitions.
30136
30137 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
30138
30139         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30140         to create a register in testing mode.
30141
30142 2015-03-03  Martin Liska  <mliska@suse.cz>
30143             Jan Hubicka  <hubicka@ucw.cz>
30144
30145         PR ipa/65263
30146         * cgraph.c (cgraph_node::has_thunk_p): New function.
30147         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30148         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30149         (sem_function::merge): Assert is changed.
30150
30151 2015-03-03  Martin Liska  <mliska@suse.cz>
30152             Martin Jambor  <mjambor@suse.cz>
30153
30154         PR ipa/65087
30155         * ipa-icf.c (sem_item_optimizer::execute): Change function
30156         return value to boolean.
30157         (sem_item_optimizer::merge_classes): Likewise.
30158         (ipa_icf_driver): Return TODO_remove_functions in case there's
30159         a merge operation processed.
30160         * ipa-icf.h: Change function return value to boolean.
30161
30162 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30163
30164         PR 65138/target
30165         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30166         processor type for 64-bit little endian PowerPC.
30167
30168         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30169         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
30170         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
30171         printing built-in mask so it does not pass NULL pointers.
30172
30173         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30174         -mcpu=powerpc64le.
30175
30176 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
30177
30178         PR target/58158
30179         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30180         !ISA_HAS_FP_CONDMOVE.
30181
30182 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
30183
30184         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30185         reload_completed.
30186
30187 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
30188
30189         * doc/invoke.texi (Options for Code Generation Conventions):
30190         Fix URL of DSO paper.
30191
30192 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
30193
30194         PR ipa/65130
30195         * ipa-inline.c (check_callers): Looks for recursion.
30196         (inline_to_all_callers): Give up on uninlinable or recursive edges.
30197         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30198         summary of inline clones.
30199         (do_estimate_growth_1): Fix recursion check.
30200
30201 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
30202
30203         PR ipa/64988
30204         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30205         comdat groups.
30206
30207 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
30208             Aldy Hernandez  <aldyh@redhat.com>
30209
30210         PR lto/65276
30211         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30212         when checking TYPE_BINFO.
30213
30214 2015-03-02  Richard Biener  <rguenther@suse.de>
30215
30216         PR ipa/65270
30217         * ipa-icf-gimple.c: Include builtins.h.
30218         (func_checker::compare_memory_operand): Compare base alignment.
30219
30220 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30221
30222         PR target/65184
30223         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
30224         passed by reference.
30225
30226 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30227
30228         PR target/65183
30229         * tree-chkp.c (chkp_check_lower): Don't check against
30230         zero bounds for already instrumented functions.
30231         (chkp_check_upper): Likewise.
30232         (chkp_fini): Clean pass local data to avoid wrong reusage.
30233
30234 2015-02-28  Martin Liska  <mliska@suse.cz>
30235             Jan Hubicka  <hubicka@ucw.cz>
30236
30237         * ipa-icf.c (sem_variable::equals): Improve debug output;
30238         get variable constructor.
30239         (sem_variable::parse): Do not filter out too early; give up on
30240         volatile and register vars.
30241         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30242         variables.
30243         * ipa-icf.h (sem_variable::init): Do not set ctor.
30244         (sem_variable::ctor): Remove.
30245
30246 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
30247
30248         PR middle-end/65233
30249         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30250
30251 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30252
30253         * ipa-icf.c: Include stor-layout.h
30254         (sem_function::compare_cgraph_references): Rename to ...
30255         (sem_item::compare_cgraph_references): ... this one.
30256         (sem_variable::equals_wpa): New function
30257         (sem_variable::equals): Do not check stuff already verified by
30258         equals_wpa.
30259         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30260         * ipa-icf.h (sem_item): Add compare_cgraph_references.
30261         (sem_function): Remove compare_cgraph_references.
30262         (sem_variable): Turns equals_wpa into non-inline.
30263
30264 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30265
30266         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30267         (sem_item::add_expr): New function.
30268         (sem_function::hash_stmt): Handle operands of most statements.
30269         (sem_variable::get_hash): Hash the actual constructor.
30270         * ipa-icf.h (sem_item): Add add_expr.
30271         (sem_function): Update prototype of hash_stmt
30272
30273 2015-02-28  Martin Liska  <mliska@suse.cz>
30274             Jan Hubicka  <hubicka@ucw.cz>
30275
30276         PR ipa/65245
30277         * ipa-icf-gimple.c (func_checker::compare_function_decl):
30278         Remove.
30279         (func_checker::compare_variable_decl): Skip symtab vars.
30280         (func_checker::compare_cst_or_decl): Update.
30281         * ipa-icf.c (sem_function::parse): Do not consider aliases.
30282         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30283         use correct symtab predicates.
30284         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30285         (sem_variable::parse):  Update comment.
30286         (sem_item_optimizer::build_graph): Consider ultimate aliases
30287         for references.
30288
30289 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30290
30291         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30292         of OBJ_TYPE_REF.
30293
30294 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30295
30296         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30297         (sem_variable::merge) Likewise.
30298
30299 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30300
30301         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30302         target; also match flag_ipa_devirt.
30303
30304 2015-03-01  Martin Liska  <mliska@suse.cz>
30305             Jan Hubicka  <hubicka@ucw.cz>
30306
30307         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30308         Validate variable alignment.
30309         * ipa-icf.c (sem_function::equals_private): Be more precise
30310         about non-common function attributes.
30311         (sem_variable::equals): Likewise.
30312
30313 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30314
30315         PR ipa/65237
30316         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30317         across COMDAT group boundary.
30318
30319 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30320
30321         PR ipa/65232
30322         * ipa-icf.c (clear_decl_rtl): New function.
30323         (sem_function::merge): Clear RTL before forming alias.
30324         (sem_variable::merge): Clear RTL before forming alias.
30325
30326 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30327
30328         PR ipa/65236
30329         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30330
30331 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
30332
30333         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30334         to neon_to_gp<q>.
30335
30336 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30337
30338         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30339         a typo in the description.
30340
30341 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30342
30343         PR target/64317
30344         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30345         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30346         * lra-constraints.c: Include "params.h".
30347         (EBB_PROBABILITY_CUTOFF): Use
30348         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30349         (lra_inheritance): Use '<' instead of '<=' for
30350         EBB_PROBABILITY_CUTOFF.
30351         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30352         Document change.
30353
30354 2015-02-27  Martin Liska  <mliska@suse.cz>
30355
30356         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30357         vector length condition.
30358
30359 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
30360
30361         * doc/extend.texi (x86 transactional memory intrinsics):
30362         Reorganize discussion of _xbegin.  Clarify that the return
30363         value is a bit mask.  Expand example and move to end of section.
30364
30365 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
30366             Aldy Hernandez  <aldyh@redhat.com>
30367
30368         PR rtl-optimization/65220
30369         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30370
30371 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30372
30373         PR target/65032
30374         * lra-remat.c (update_scratch_ops): New.
30375         (do_remat): Call it.
30376         * lra.c (lra_register_new_scratch_op): New. Take code from ...
30377         (remove_scratches): ... here.
30378         * lra-int.h (lra_register_new_scratch_op): New prototype.
30379
30380 2015-02-27  Marek Polacek  <polacek@redhat.com>
30381
30382         PR c/65040
30383         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30384         -Wformat-signedness anymore.
30385
30386 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30387
30388         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30389         function.
30390         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30391
30392 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30393
30394         * config/s390/s390.c (enum s390_builtin):
30395         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30396         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30397         (s390_init_builtins): Generate new builtin functions.
30398         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30399         (s390_sfpc, s390_efpc): New pattern definitions.
30400
30401 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30402
30403         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30404         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30405         (s390_builtin_decls): New array.
30406         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30407         (s390_builtin_decl): New function.
30408         (TARGET_BUILTIN_DECL): Define macro.
30409
30410 2015-02-27  Richard Biener  <rguenther@suse.de>
30411
30412         PR middle-end/63175
30413         * builtins.c (get_object_alignment_2): Make sure to re-apply
30414         the ANDed mask after recursing to its operand gets us a new
30415         misalignment bit position.
30416
30417 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
30418             Martin Liska  <mliska@suse.cz>
30419
30420         PR bootstrap/65150
30421         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30422         Use address_matters_p.
30423         (redirect_all_callers, set_addressable): New functions.
30424         (sem_function::merge): Reorganize and fix merging issues.
30425         (sem_variable::merge): Likewise.
30426         (sem_variable::compare_sections): Remove.
30427         * common.opt (fmerge-all-constants, fmerge-constants): Remove
30428         Optimization flag.
30429         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30430         redirect them.
30431         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30432         decl is used.
30433         (address_matters_1): New function.
30434         (symtab_node::address_matters_p): New function.
30435         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30436         check for merged flag.
30437         * cgraph.h (address_matters_p): Declare.
30438         (symtab_node::address_taken_from_non_vtable_p): Remove.
30439         (symtab_node::address_can_be_compared_p): New method.
30440         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30441         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30442         Remove.
30443         (comdat_can_be_unshared_p_1) Use address_matters_p.
30444         (update_vtable_references): Fix formating.
30445         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30446         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30447         * cgraphclones.c: Preserve merged and icf_merged flags.
30448
30449 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
30450
30451         * doc/extend.texi (Function Attributes): Fix spelling and typos.
30452         (Label Attributes): Likewise.
30453         (Cilk Plus Builtins): Likewise.
30454         (ARC SIMD Built-in Functions): Likewise.
30455         (ARM C Language Extensions (ACLE)): Likewise.
30456         (PowerPC Built-in Functions): Likewise.
30457         (PowerPC Hardware Transactional Memory Built-in Functions):
30458         Likewise.
30459
30460 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
30461
30462         PR tree-optimization/65216
30463         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30464         new stmt and new SSA_NAME for lhs whenever the arguments have
30465         changed and weren't just swapped.  Fix comment typo.
30466
30467         PR tree-optimization/65215
30468         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30469         for PDP endian targets.
30470         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30471         Fix up formatting issues.
30472         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
30473         size is smaller than the original, adjust MEM_REF offset by the
30474         difference of sizes.  Use is_gimple_mem_ref_addr instead of
30475         is_gimple_min_invariant test to avoid adding address temporaries.
30476
30477 2015-02-26  Martin Liska  <mliska@suse.cz>
30478             Jan Hubicka  <hubicka@ucw.cz>
30479
30480         PR ipa/64693
30481         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30482         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30483         (sem_item_optimizer::process_cong_reduction): Include division by
30484         sensitive references.
30485         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30486         * ipa-ref.c (ipa_ref::address_matters_p): New function.
30487         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30488
30489 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
30490
30491         PR target/65192
30492         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30493         Remove.
30494         * config/avr/avr.c: Same.
30495         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30496         Refuse any constant address not in 0..0xbf.
30497         * config/avr/avr.md (*mov<mode>, *movsf): Remove
30498         tiny_valid_direct_memory_access_range from insn conditions.
30499         (mov<mode>): Don't special-case expansion of avrtiny addresses.
30500
30501 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
30502
30503         PR target/61142
30504         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30505         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30506         * config/sh/predicates.md (const_logical_operand): New predicate.
30507         * config/sh/sh.md: Add new peephole2 patterns.
30508
30509 2015-02-26  Marek Polacek  <polacek@redhat.com>
30510
30511         PR ipa/65008
30512         * ipa-inline.c (early_inliner): Recompute inline parameters.
30513
30514 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30515
30516         PR target/65171
30517         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30518         instructions with TImode operands are included in the analysis.
30519
30520 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
30521
30522         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30523         of an EDGE_FSM_THREAD.
30524
30525 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30526
30527         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30528
30529 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
30530
30531         PR debug/46102
30532         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30533
30534 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
30535
30536         PR tree-optimization/65048
30537         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30538         (thread_through_all_blocks): Call valid_jump_thread_path.
30539         Remove invalid FSM jump-thread paths.
30540
30541 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
30542
30543         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30544         (ipa_write_optimization_summaries): Likewise.
30545         * tree-streamer.h: Include data-streamer.h.
30546         (streamer_mode_table): Declare extern variable.
30547         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30548         * lto-streamer-out.c (lto_output_init_mode_table,
30549         lto_write_mode_table): New functions.
30550         (produce_asm_for_decls): Call lto_write_mode_table when streaming
30551         offloading LTO.
30552         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30553         (lto_create_simple_input_block): Add mode_table argument to the
30554         lto_input_block constructors.
30555         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30556         Likewise.
30557         * data-streamer-in.c (string_for_index): Likewise.
30558         * ipa-inline-analysis.c (inline_read_section): Likewise.
30559         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30560         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30561         * lto-streamer-in.c (lto_read_body_or_constructor,
30562         lto_input_toplevel_asms): Likewise.
30563         (lto_input_mode_table): New function.
30564         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30565         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30566         Use bp_pack_machine_mode.
30567         * real.h (struct real_format): Add name field.
30568         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30569         (class lto_input_block): Add mode_table member.
30570         (lto_input_block::lto_input_block): Add mode_table_ argument,
30571         initialize mode_table.
30572         (struct lto_file_decl_data): Add mode_table field.
30573         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30574         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30575         unpack_ts_decl_common_value_fields,
30576         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30577         * tree-streamer.c (streamer_mode_table): New variable.
30578         * real.c (ieee_single_format, mips_single_format,
30579         motorola_single_format, spu_single_format, ieee_double_format,
30580         mips_double_format, motorola_double_format,
30581         ieee_extended_motorola_format, ieee_extended_intel_96_format,
30582         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30583         ibm_extended_format, mips_extended_format, ieee_quad_format,
30584         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30585         decimal_single_format, decimal_double_format, decimal_quad_format,
30586         ieee_half_format, arm_half_format, real_internal_format): Add name
30587         field.
30588         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30589
30590 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
30591
30592         PR target/65161
30593         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30594         reordering for selective scheduling.
30595
30596 2015-02-26  Terry Guo  <terry.guo@arm.com>
30597
30598         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30599         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30600         (arm_arch_no_volatile_ce): Declare new global variable.
30601         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30602         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30603         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30604         (TARGET_NO_VOLATILE_CE): New macro.
30605         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30606         volatile memory access in IT block
30607
30608 2015-02-25  Kai Tietz  <ktietz@redhat.com>
30609
30610         PR tree-optimization/61917
30611         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30612         that reduc_def_stmt is null.
30613
30614 2015-02-25  Martin Liska  <mliska@suse.cz>
30615
30616         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30617         hard register variables.
30618
30619 2015-02-25  Kai Tietz  <ktietz@redhat.com>
30620
30621         PR target/64212
30622         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30623         (symtab::noninterposable_alias): Likewise.
30624
30625 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
30626
30627         PR target/65167
30628         * config/i386/i386.c (ix86_function_arg_regno_p): Support
30629         bounds registers.
30630         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30631
30632 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
30633
30634         PR target/64997
30635         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30636         as split condition; force split via '#' in output pattern.
30637
30638 2015-02-25  Richard Biener  <rguenther@suse.de>
30639             Kai Tietz  <ktietz@redhat.com>
30640
30641         PR tree-optimization/61917
30642         * tree-vect-loop.c (vectorizable_reduction): Allow
30643         vect_internal_def without reduction to exit graceful.
30644
30645 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
30646
30647         PR target/65196
30648         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30649         only with NONDEBUG_INSN_P.
30650
30651 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
30652
30653         Use variadic macros with avr-log.c.
30654
30655         * config/avr/avr-protos.h (avr_vdump): New prototype.
30656         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30657         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30658         * config/avr/avr-log.c: Adjust comments.
30659         (avr_vdump): New function.
30660         (avr_vadump): Pass caller as 2nd argument instead of format string.
30661         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30662         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30663
30664 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
30665
30666         PR lto/64374
30667         * target.def (target_option_stream_in): New target hook.
30668         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30669         targetm.target_option.post_stream_in if non-NULL.
30670         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30671         * doc/tm.texi: Updated.
30672         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30673         function.
30674         (TARGET_OPTION_POST_STREAM_IN): Redefine.
30675
30676 2015-02-24  Jeff Law  <law@redhat.com>
30677
30678         PR target/65117
30679         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30680         of operand 0 and operand 2.
30681         (zero_cost_loop_end, loop_end): Similarly.
30682
30683 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
30684
30685         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30686         CXX_MEM_STAT_INFO.
30687
30688 2015-02-24  DJ Delorie  <dj@redhat.com>
30689
30690         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30691         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30692         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30693         instead of hardcoding SImode.
30694
30695 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
30696
30697         * omp-low.c (create_omp_child_function): Tag entrypoint
30698         functions with a special attribute.
30699
30700 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30701
30702         PR target/65058
30703         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30704
30705 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
30706
30707         PR rtl-optimization/65123
30708         * lra-remat.c (operand_to_remat): Check hard regs in insn
30709         definition too.
30710
30711 2015-02-24  Nick Clifton  <nickc@redhat.com>
30712
30713         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30714         to the assembler.
30715
30716 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
30717
30718         PR libgomp/64625
30719         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30720         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30721         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30722         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30723         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30724         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30725         (BUILT_IN_GOACC_PARALLEL): Specify as
30726         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30727         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30728         * builtin-types.def
30729         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30730         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30731         Remove function types.
30732         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30733         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30734         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30735         New function types.
30736
30737 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
30738
30739         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30740
30741 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
30742
30743         PR tree-optimization/65170
30744         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30745         if val[1] < 0, clear also val[2] and return 3.
30746
30747 2015-02-24  Alan Modra  <amodra@gmail.com>
30748
30749         PR target/65172
30750         * config/rs6000/rs6000.c (get_memref_parts): Only return true
30751         when *base is a reg.  Handle nested plus addresses.  Simplify
30752         pre_modify test.
30753
30754 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
30755
30756         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30757         use natural alignment when optimizing for size.
30758
30759 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
30760
30761         PR target/65153
30762         * config/sh/sh.md (movsicc_true+3): Remove peephole.
30763         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30764         * config/sh/sh.c (replace_n_hard_rtx): Remove.
30765
30766 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
30767
30768         PR fortran/63427
30769         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30770         too big for a wide_int.  Implement missing wrapping operation.
30771
30772 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
30773
30774         PR target/65163
30775         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30776         instead of const_int 4294901760.
30777
30778 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
30779
30780         * config/avr/t-avr: Fix typo in comment.
30781
30782 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
30783
30784         * doc/rtl.texi (fma): Clarify documentation.
30785
30786 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
30787
30788         PR debug/58123
30789         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30790         over input_location.
30791
30792 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
30793
30794         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30795         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30796         restrict alignments to absolute_biggest_alignment.
30797         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30798         Define.
30799         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30800         * doc/tm.texi: Regenerate.
30801         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30802
30803 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
30804
30805         PR target/64172
30806         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30807
30808 2015-02-20  Richard Biener  <rguenther@suse.de>
30809
30810         PR tree-optimization/65136
30811         * tree-ssa-propagate.c: Include cfgloop.h.
30812         (replace_phi_args_in): Avoid replacing loop latch edge PHI
30813         arguments with constants.
30814
30815 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
30816             Martin Liska  <mliska@suse.cz>
30817
30818         PR target/63892
30819         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30820         don't try to create_thunk if stdarg_p.  If
30821         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30822         redirect_callers if possible.
30823         (sem_item_optimizer::execute): Call unregister_hooks here...
30824         (ipa_icf_driver): ... instead of here.
30825
30826 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30827
30828         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30829         Mark operand 0 as earlyclobber in 2nd alternative.
30830         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30831         Write negated shift amount into QI lowpart operand 0 and use it
30832         in the shift step.
30833         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30834
30835 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
30836
30837         * cgraph.h (clone_function_name_1): Declare.
30838         * cgraphclones.c (clone_function_name_1): New function.
30839         (clone_function_name): Use it.
30840         * lto-partition.c: Include "stringpool.h".
30841         (must_not_rename, maybe_rewrite_identifier)
30842         (validize_symbol_for_target): New static functions.
30843         (privatize_symbol_name): Use must_not_rename.
30844         (promote_symbol): Call validize_symbol_for_target.
30845         (lto_promote_cross_file_statics): Likewise.
30846         (lto_promote_statics_nonwpa): Likewise.
30847
30848 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
30849
30850         PR target/64452
30851         * config/avr/avr.md (pushhi_insn): New insn.
30852         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30853
30854 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
30855             Jakub Jelinek  <jakub@redhat.com>
30856
30857         * tree-streamer.c (preload_common_nodes): Don't preload
30858         TI_VA_LIST* for offloading.
30859         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30860         in_lto_p.
30861
30862 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
30863
30864         * config/pa/pa.c (pa_emit_move_sequence): Always force
30865         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
30866         note on insn.
30867
30868         * config/pa/pa.c (pa_reloc_rw_mask): New function.
30869         (TARGET_ASM_RELOC_RW_MASK): Define.
30870         (pa_cannot_force_const_mem): Revert previous change.
30871
30872 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
30873             Jan Hubicka  <hubicka@ucw.cz>
30874
30875         PR ipa/65028
30876         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30877         across jump functions.
30878
30879 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
30880
30881         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30882
30883 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
30884
30885         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30886
30887 2015-02-19  Richard Henderson  <rth@redhat.com>
30888
30889         PR middle-end/65074
30890         * varasm.c (default_binds_local_p_2): Don't test node->definition;
30891         test DECL_EXTERNAL independent of symtab_node.
30892
30893 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
30894
30895         PR lto/65012
30896         * varpool.c (varpool_node::get_constructor): Return early
30897         if this->lto_file_data is NULL.
30898
30899 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30900
30901         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30902         (rank_for_schedule_debug): Update.
30903         (ready_sort): Make static.  Move sorting logic to ...
30904         (ready_sort_debug, ready_sort_real): New static functions.
30905         (schedule_block): Sort both debug insns and real insns in preparation
30906         for ready list trimming.  Improve debug output.
30907         * sched-int.h (ready_sort): Remove global declaration.
30908
30909 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
30910
30911         * ipa-icf.c (sem_function::equals_private): Adjust.
30912         (sem_function::bb_dict_test): Take a vec<int> * instead of
30913         auto_vec<int>.
30914         * ipa-icf.h (bb_dict_test): Likewise.
30915
30916 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
30917
30918         PR gcov-profile/64634
30919         * tree-eh.c (frob_into_branch_around): Fix up typos
30920         in function comment.
30921         (lower_catch): Put eh_seq resulting from EH lowering of
30922         the cleanup sequence after the cleanup rather than before it.
30923
30924 2015-02-18  Tom de Vries  <tom@codesourcery.com>
30925
30926         * common.opt (fstdarg-opt): New option.
30927         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30928         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30929         (@item -fstdarg-opt): New item.
30930
30931 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
30932
30933         PR target/65064
30934         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30935         for common symbols.
30936
30937 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
30938
30939         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30940         insn-modes.h.
30941         (ALL_HOST_OBJS): Add mkoffload.o.
30942         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30943
30944 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
30945
30946         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30947         (compare_virtual_tables): Be smarter about skipping typeinfos;
30948         do sane output on virtual table table mismatch.
30949         (warn_odr): Be ready for forward declarations of enums;
30950         output sane info on base mismatch and virtual table mismatch.
30951         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30952         when only one type is polymorphic.
30953         (get_odr_type): Fix hashtable corruption.
30954         (dump_odr_type): Dump mangled names.
30955
30956 2015-02-18  Richard Biener  <rguenther@suse.de>
30957
30958         PR tree-optimization/65063
30959         * tree-predcom.c (determine_unroll_factor): Return 1 if we
30960         have replaced looparound PHIs.
30961
30962 2015-02-18  Martin Liska  <mliska@suse.cz>
30963
30964         * lto-streamer.c (lto_streamer_init): Encapsulate
30965         streamer_check_handled_ts_structures with checking macro.
30966
30967 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
30968
30969         PR ipa/65087
30970         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30971         section if !implicit_section.
30972         (cgraph_node::create_version_clone_with_body): Likewise.
30973         * trans-mem.c (ipa_tm_create_version): Likewise.
30974
30975 2015-02-18  Richard Biener  <rguenther@suse.de>
30976
30977         PR tree-optimization/62217
30978         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30979         into BIVs.
30980
30981 2015-02-18  Marek Polacek  <polacek@redhat.com>
30982
30983         PR sanitizer/65081
30984         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30985         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30986         is in range [-16K, -1].  Don't issue run-time error if
30987         (ptr > ptr + offset).
30988
30989 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
30990
30991         * doc/install.texi (nvptx-*-none): New section.
30992         * doc/invoke.texi (Nvidia PTX Options): Likewise.
30993         * config/nvptx/nvptx.opt: Update.
30994
30995         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30996         (access_check): New functions, copied from
30997         config/i386/intelmic-mkoffload.c.
30998         (main): For non-installed testing, look in all COMPILER_PATHs for
30999         GCC_INSTALL_NAME.
31000
31001         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
31002
31003 2015-02-18  Andrew Pinski  <apinski@cavium.com>
31004             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31005
31006         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
31007         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
31008
31009 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
31010
31011         * ipa-visibility.c (function_and_variable_visibility): Only
31012         check locality if node is not already local.
31013         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31014         call_for_symbol_and_aliases instead of
31015         call_for_symbol_thunks_and_aliases.
31016         (ipa_inline): Likewise.
31017         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31018         first walk aliases.
31019         * ipa.c (symbol_table::remove_unreachable_nodes): Use
31020         call_for_symbol_and_aliases.
31021         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31022         (ipa_propagate_frequency_1): Use it; use opt_for_fn
31023         (ipa_propagate_frequency): Update.
31024         (ipa_profile): Add opt_for_fn gueards.
31025
31026 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
31027
31028         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
31029         * doc/invoke.texi (SH options): Document it.
31030         * config/sh/sh.c (sh_insn_length_adjustment): Check
31031         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
31032
31033 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
31034
31035         * common.opt (fipa-cp-alignment): New.
31036         * ipa-cp.c (ipcp_store_alignment_results): Check
31037         flag_ipa_cp_alignment.
31038         * opts.c (default_options_table): Enable -fipa-cp-alignment for
31039         -O2.
31040         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
31041         * doc/invoke.texi: Document -fipa-cp-alignment.
31042
31043 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
31044
31045         PR target/64793
31046         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
31047         to nil.  Adjust comments.
31048
31049 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
31050
31051         * ipa-visibility.c (function_and_variable_visibility): Only
31052         check locality if node is not already local.
31053         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31054         call_for_symbol_and_aliases instead of
31055         call_for_symbol_thunks_and_aliases.
31056         (ipa_inline): Likewise.
31057         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31058         first walk aliases.
31059         * ipa.c (symbol_table::remove_unreachable_nodes): Use
31060         call_for_symbol_and_aliases.
31061         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31062         (ipa_propagate_frequency_1): Use it; use opt_for_fn
31063         (ipa_propagate_frequency): Update.
31064         (ipa_profile): Add opt_for_fn guards.
31065
31066 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
31067
31068         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
31069         skipping of "strange" tokens.
31070
31071 2015-02-17  Jeff Law  <law@redhat.com>
31072
31073         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
31074         obsolete comment.
31075
31076 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
31077
31078         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
31079         as forcing a HARD_DEP between instructions, thereby
31080         disallowing rewriting to break dependencies.
31081
31082 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
31083
31084         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
31085         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
31086         variables in boundary that have no inlitalizer encoded and are
31087         not aliases.
31088         * varasm.c (default_binds_local_p_2): External definitions do not
31089         count as definitions here.
31090
31091 2015-02-16  Jeff Law  <law@redhat.com>
31092
31093         PR tree-optimization/64823
31094         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
31095         statements.
31096         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31097         threading through blocks with PHIs, but no statements.
31098         (thread_through_normal_block): Distinguish between blocks where
31099         we did not process all the statements and blocks with no statements.
31100
31101 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
31102             James Greenhalgh  <james.greenhalgh@arm.com>
31103
31104         PR ipa/64963
31105         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31106         section if not linkonce.  Fix up formatting.
31107         (cgraph_node::create_version_clone_with_body): Copy section.
31108         * trans-mem.c (ipa_tm_create_version): Likewise.
31109
31110 2015-02-16  Richard Biener  <rguenther@suse.de>
31111
31112         PR tree-optimization/65077
31113         * tree-ssa-structalias.c (get_constraint_for_1): Handle
31114         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
31115         (find_func_aliases): Allow float values to carry pointers again.
31116
31117 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
31118
31119         * doc/install.texi (Specific): Reorder targets list to put
31120         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
31121         from the top menu.
31122
31123 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
31124             David Edelsohn  <dje.gcc@gmail.com>
31125
31126         PR target/65058
31127         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31128         mapping class to external variable or function reference.
31129         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31130         mapping class.
31131
31132 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
31133
31134         PR target/53348
31135         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31136         ASM_WEAKEN_DECL if defined.
31137
31138 2015-02-16  Richard Biener  <rguenther@suse.de>
31139
31140         PR lto/65015
31141         * varasm.c (default_file_start): For LTO produced units
31142         emit <artificial> as file directive.
31143
31144 2015-02-16  Richard Biener  <rguenther@suse.de>
31145
31146         PR tree-optimization/63593
31147         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31148         stmts and releasing SSA names until...
31149         (execute_pred_commoning): ... after processing all chains.
31150
31151 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
31152
31153         PR ipa/65059
31154         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31155         external functions.
31156
31157 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
31158
31159         * doc/bugreport.texi: Adjust section titles throughout the file
31160         to use "Title Case".
31161         * doc/extend.texi: Likewise.
31162         * doc/gcov.texi: Likewise.
31163         * doc/implement-c.texi: Likewise.
31164         * doc/implement-cxx.texi: Likewise.
31165         * doc/invoke.texi: Likewise.
31166         * doc/objc.texi: Likewise.
31167         * doc/standards.texi: Likewise.
31168         * doc/trouble.texi: Likewise.
31169
31170 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
31171
31172         * cgraph.h (symtab_node::has_aliases_p): Simplify.
31173         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31174         * tree.c (lookup_binfo_at_offset): Make static.
31175         (get_binfo_at_offset): Do not shadow offset; add explanatory
31176         comment.
31177
31178 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
31179
31180         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31181         for all floading point loads and stores except those using a register
31182         index address.
31183         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31184         to a register.
31185
31186 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
31187
31188         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31189         (do_estimate_growth_1): Record if any uninlinable edge was seen.
31190         (estimate_growth): Handle uninlinable edges correctly.
31191         (check_callers): New.
31192         (growth_likely_positive): Handle aliases correctly.
31193
31194 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
31195
31196         * ipa-chkp.c: Use iterate_direct_aliases.
31197         * symtab.c (resolution_used_from_other_file_p): Move inline.
31198         (symtab_node::create_reference): Fix formating.
31199         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31200         (symtab_node::iterate_reference): Move inline.
31201         (symtab_node::iterate_referring): Move inline.
31202         (symtab_node::iterate_direct_aliases): Move inline.
31203         (symtab_node::used_from_object_file_p_worker): Inline into ...
31204         (symtab_node::used_from_object_file_p): ... this one; move inline.
31205         (symtab_node::call_for_symbol_and_aliases): Move inline;
31206         use iterate_direct_aliases.
31207         (symtab_node::call_for_symbol_and_aliases_1): New method.
31208         (cgraph_node::call_for_symbol_and_aliases): Move inline;
31209         use iterate_direct_aliases.
31210         (cgraph_node::call_for_symbol_and_aliases_1): New method.
31211         (varpool_node::call_for_node_and_aliases): Rename to ...
31212         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31213         use iterate_direct_aliases.
31214         (varpool_node::call_for_symbol_and_aliases_1): New method.
31215         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31216         (ipa_discover_readonly_nonaddressable_var): Update.
31217         * ipa-devirt.c: Fix formating.
31218         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31219         Move inline.
31220         (cgraph_node::call_for_symbol_and_aliases): Move inline.
31221         (cgraph_node::call_for_symbol_and_aliases_1): New function..
31222         * cgraph.h (used_from_object_file_p_worker): Remove.
31223         (resolution_used_from_other_file_p): Move inline.
31224         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31225         (symtab_node::iterate_reference): Move inline.
31226         (symtab_node::iterate_referring): Move inline.
31227         (symtab_node::iterate_direct_aliases): Move inline.
31228         (symtab_node::used_from_object_file_p_worker): Inline into ...
31229         (symtab_node::used_from_object_file_p): Move inline.
31230         * tree-emutls.c (ipa_lower_emutls): Update.
31231         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31232         (varpool_node::call_for_node_and_aliases): Remove.
31233
31234 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
31235
31236         PR tree-optimization/62209
31237         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31238         op == range->exp, insert seq and gimplified code after labels
31239         instead of after the phi.
31240
31241 2015-02-13  Jeff Law  <law@redhat.com>
31242
31243         PR bootstrap/65060
31244         Revert my change for tree-optimization/64823.
31245
31246 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
31247
31248         PR tree-optimization/65053
31249         * tree-ssa-phiopt.c (value_replacement): When moving assign before
31250         cond, either reset VR on lhs or set it to phi result VR.
31251
31252 2015-02-13  Jeff Law  <law@redhat.com>
31253
31254         PR tree-optimization/64823
31255         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31256         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31257         threading through blocks with PHIs, but no statements.
31258         (thread_through_normal_block): Distinguish between blocks where
31259         we did not process all the statements and blocks with no statements.
31260
31261         PR rtl-optimization/47477
31262         * match.pd (convert (plus/minus (convert @0) (convert @1): New
31263         simplifier to narrow arithmetic.
31264
31265 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
31266
31267         PR ipa/65028
31268         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31269         polymorphic call info when type is not known to be preserved.
31270
31271 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
31272
31273         PR ipa/65028
31274         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31275         (inline_call): Use it.
31276
31277 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
31278
31279         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31280         GOMP_DEVICE_NVIDIA_PTX.
31281
31282 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
31283
31284         PR ipa/65034
31285         * stmt.c (emit_case_nodes): Use void_type_node instead of
31286         NULL_TREE as LABEL_DECL type.
31287
31288 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
31289
31290         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31291         constraints.
31292         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31293         symbolic references to data to be forced to constant memory on the
31294         SOM target.
31295
31296 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31297
31298         PR tree-optimization/65002
31299         * tree-cfg.c (pass_data_fixup_cfg): Don't update
31300         SSA on start.
31301         * tree-sra.c (some_callers_have_no_vuse_p): New.
31302         (ipa_early_sra): Reject functions whose callers
31303         assume function is read only.
31304
31305 2015-02-13  Richard Biener  <rguenther@suse.de>
31306
31307         PR lto/65015
31308         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31309         for LTO produced CUs.
31310
31311 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
31312
31313         PR tree-optimization/64705
31314         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31315         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31316         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31317         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31318         expand_simple_operations.
31319
31320 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31321             Richard Henderson  <rth@redhat.com>
31322
31323         PR rtl/32219
31324         * cgraphunit.c (cgraph_node::finalize_function): Set definition
31325         before notice_global_symbol.
31326         (varpool_node::finalize_decl): Likewise.
31327         * varasm.c (default_binds_local_p_2): Rename from
31328         default_binds_local_p_1, add weak_dominate argument.  Use direct
31329         returns instead of assigning to local variable.  Unify varpool and
31330         cgraph paths via symtab_node.  Reject undef weak variables before
31331         testing visibility.  Reorder tests for simplicity.
31332         (default_binds_local_p): Use default_binds_local_p_2.
31333         (default_binds_local_p_1): Likewise.
31334         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31335         via symtab_node.
31336         (default_elf_asm_output_external): Emit visibility when specified.
31337
31338 2015-02-13  Alan Modra  <amodra@gmail.com>
31339
31340         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31341         code setting up r11 for out-of-line fp restore.
31342
31343 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
31344
31345         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31346         (muser-mode): Likewise.
31347
31348 2015-02-13  Alan Modra  <amodra@gmail.com>
31349
31350         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31351         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31352
31353 2015-02-12  David Howells  <dhowells@redhat.com>
31354
31355         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31356         warning.
31357         * tree-ssa-uninit.c (dump_predicates): Likewise.
31358         * opts.c (print_filtered_help): Likewise.
31359
31360 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
31361
31362         * dwarf2out.c (output_die): Use "%s", name instead of name to
31363         avoid -Wformat-security warning.
31364
31365         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31366         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31367         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31368         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31369
31370 2015-02-12  Jason Merrill  <jason@redhat.com>
31371
31372         * common.opt (-flifetime-dse): New.
31373
31374 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
31375
31376         PR sanitizer/65019
31377         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31378
31379         PR tree-optimization/65014
31380         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31381         use original second operand of arg0 or arg1 instead of
31382         that adjusted by STRIP_NOPS.
31383
31384 2015-02-11  Jeff Law  <law@redhat.com>
31385
31386         PR target/63347
31387         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31388         that needs to be queued, just queue it for a single cycle.
31389
31390 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
31391
31392         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31393         bodies of thunks; comment on why.
31394         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31395         symbols are extern.
31396
31397 2015-02-11  Richard Henderson  <rth@redhat.com>
31398
31399         PR sanitize/65000
31400         * tree-eh.c (mark_reachable_handlers): Mark source and destination
31401         regions of __builtin_eh_copy_values.
31402
31403 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
31404
31405         PR middle-end/65003
31406         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31407         ultimate alias is MEM with SYMBOL_REF satisfying
31408         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
31409         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31410
31411 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
31412
31413         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31414         "diagnostic-core.h".
31415         (main): Initialize progname, and call diagnostic_initialize.
31416
31417         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31418         instead of __OPENMP_TARGET__.
31419
31420         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31421         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31422         hard-coding PTX_ID.
31423
31424 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
31425
31426         * doc/sourcebuild.texi (pie_enabled): Document.
31427
31428 2015-02-11  Martin Liska  <mliska@suse.cz>
31429
31430         PR ipa/64813
31431         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31432         a return value for call to a function that is noreturn.
31433
31434 2015-02-11  Richard Biener  <rguenther@suse.de>
31435
31436         PR lto/65015
31437         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31438         and -fresolution.
31439
31440 2015-02-11  Andrew Pinski  <apinski@cavium.com>
31441
31442         PR target/64893
31443         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31444         Change the first argument type to size_type_node and add another
31445         size_type_node.
31446         (aarch64_simd_expand_builtin): Handle the new argument to
31447         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31448         print an out when the first two arguments are not
31449         nonzero integer constants.
31450         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31451         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31452
31453 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
31454
31455         PR target/61925
31456         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31457         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31458         (ix86_set_current_function): Rewritten.
31459         (ix86_add_new_builtins): Temporarily clear current_target_pragma
31460         when creating builtin fndecls.
31461
31462 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
31463
31464         PR ipa/65005
31465         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31466         function.
31467         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31468         have no comdat group.
31469         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31470         (lto_output_varpool_node): Always output alias info.
31471         (output_refs): Output refs of boundary aliases, too.
31472         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31473         (output_symtab): Output call eges in thunks in boundary.
31474         (get_alias_symbol): Remove.
31475         (input_node, input_varpool_node): Do not special case weakrefs.
31476         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31477         alias and thunks targets in the boundary; do not take removed symbols
31478         from their comdat groups.
31479         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31480         (cgraph_node::global_info): Remove.
31481         (cgraph_node::rtl_info): Look through aliases and thunks.
31482         * cgrpah.h (global_info): Remove.
31483         (non_local_p): Remove.
31484
31485 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
31486             Sandra Loosemore  <sandra@codesourcery.com>
31487
31488         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31489         to inline asm.  List dialects in proper order.
31490
31491 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
31492             Sandra Loosemore  <sandra@codesourcery.com>
31493
31494         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31495
31496 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
31497
31498         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31499         modified) reference to Solaris.
31500
31501 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
31502
31503         * doc/extend.texi (Extended Asm): Fix typos.
31504
31505 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
31506
31507         PR sanitizer/65004
31508         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31509
31510 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
31511
31512         PR target/64661
31513         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31514         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31515         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31516         * config/sh/constraints.md (Ara, Add): New constraints.
31517         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31518         predicates.
31519         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31520         atomic_mem_operand_0.  Don't use force_reg on the memory address.
31521         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31522         Sra constraint.  Convert to insn_and_split.  Add workaround for
31523         PR 64974.
31524         (atomic_compare_and_swap<mode>_hard): Copy to
31525         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
31526         Use atomic_mem_operand_0 predicate.
31527         (atomic_compare_and_swap<mode>_soft_gusa,
31528         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31529         AraAdd constraints.
31530         (atomic_compare_and_swap<mode>_soft_tcb,
31531         atomic_compare_and_swap<mode>_soft_imask,
31532         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31533         atomic_mem_operand_0 predicate and SraSdd constraints.
31534         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31535         constraint.
31536         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31537         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
31538         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31539         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
31540         force_reg on the memory address.
31541         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31542         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31543         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31544         atomic_mem_operand_1 predicate and Sra constraint.
31545         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31546         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
31547         Use atomic_mem_operand_1 predicate.
31548         (atomic_<fetchop_name><mode>_hard): Copy to
31549         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
31550         Use atomic_mem_operand_1 predicate.
31551         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31552         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
31553         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
31554         insn_and_split.  Use atomic_mem_operand_1 predicate.
31555         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31556         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
31557         Use atomic_mem_operand_1 predicate.
31558         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31559         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
31560         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31561         in generated insn with original mem operand before emitting the insn.
31562         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31563         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31564         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31565         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31566         Use atomic_mem_operand_1 predicate and AraAdd constraints.
31567         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31568         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31569         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31570         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31571         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31572         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31573         atomic_not_fetch<mode>_soft_tcb,
31574         atomic_<fetchop_name>_fetch<mode>_soft_imask,
31575         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31576         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31577         Use atomic_mem_operand_1 predicate and SraSdd constraints.
31578
31579 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
31580
31581         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31582         and 3 earlyclobber operands.
31583
31584 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
31585
31586         * common.opt (fstack-reuse): Mark as optimization.
31587
31588 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
31589
31590         PR ipa/64982
31591         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31592
31593 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
31594
31595         PR tree-optimization/64326
31596         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31597
31598 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
31599
31600         PR gcov-profile/61889
31601         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31602
31603 2015-02-10  Richard Biener  <rguenther@suse.de>
31604
31605         PR tree-optimization/64995
31606         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31607         value we use is final.
31608         (visit_reference_op_store): Always valueize op.
31609         (visit_use): Properly valueize vuses.
31610
31611 2015-02-10  Richard Biener  <rguenther@suse.de>
31612
31613         PR tree-optimization/64909
31614         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31615         pass a scalar-stmt count estimate to the cost model.
31616         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31617
31618 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
31619
31620         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31621         enabled by default together with var-tracking.
31622
31623 2015-02-10  Nick Clifton  <nickc@redhat.com>
31624
31625         * config/rl78/rl78.c: Remove DIV attribute code accidentally
31626         included in previous rl78 commit.
31627
31628 2015-02-10  Richard Biener  <rguenther@suse.de>
31629
31630         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31631         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31632         return the bitpack.
31633
31634 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
31635
31636         PR gcov-profile/61889
31637         * config.in: regenerate.
31638         * configure.in: Likewise.
31639         * configure.ac: Check for ftw.h.
31640         * gcov-tool.c: Check for ftw.h before using nftw.
31641
31642 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
31643
31644         PR lto/64076
31645         * ipa-visibility.c (update_visibility_by_resolution_info): Only
31646         assert when not in lto mode.
31647
31648 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
31649
31650         * ira-color.c (setup_left_conflict_sizes_p): Simplify
31651         initialization/assignment of conflict_size.
31652
31653 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
31654
31655         PR ipa/64978
31656         * ipa-cp.c (gather_caller_stats): Skip thunks.
31657         (propagate_constants_topo): Skip aliases.
31658
31659 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
31660
31661         PR target/64761
31662         * config/sh/sh.c (sh_option_override): Don't change
31663         -freorder-blocks-and-partition to -freorder-blocks even when
31664         unwinding is enabled.
31665         (sh_can_follow_jump): Return false if the followee jump is
31666         a crossing jump when -freorder-blocks-and-partition is specified.
31667         * config/sh/sh.md (*jump_compact_crossing): New insn.
31668
31669 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
31670             Kaz Kojima  <kkojima@gcc.gnu.org>
31671
31672         PR target/64761
31673         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31674         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31675         (sh_can_redirect_branch): Rename to ...
31676         (sh_can_follow_jump): ... this.  Constify argument types.
31677         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31678         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31679         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31680         * doc/tm.texi: Regenerate.
31681
31682 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
31683
31684         PR sanitizer/64981
31685         * builtins.c (expand_builtin): Call targetm.expand_builtin
31686         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31687
31688 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31689
31690         PR ipa/61548
31691         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31692
31693 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31694
31695         PR ipa/63566
31696         * ipa-icf.c (set_local): New function.
31697         (sem_function::merge): Use it.
31698
31699 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31700
31701         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31702         (add_type_duplicate): Fix comparison of BINFOs.
31703
31704 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31705
31706         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31707         on getting VOID pointer.
31708
31709 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
31710
31711         PR target/64979
31712         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31713         va_list escapes.
31714
31715 2015-02-09  Richard Biener  <rguenther@suse.de>
31716
31717         * genmatch.c (replace_id): Copy expr_type.
31718
31719 2015-02-09  Richard Biener  <rguenther@suse.de>
31720
31721         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31722         (streamer_write_tree_bitfields): Declare.
31723         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31724         properly unpack padding.
31725         (unpack_value_fields): Inline ...
31726         (streamer_read_tree_bitfields): ... here.
31727         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31728         and properly add padding bits.
31729         (streamer_pack_tree_bitfields): Fold into ...
31730         (streamer_write_tree_bitfields): ... this new function,
31731         exposing the bitpack object.
31732         * lto-streamer-out.c (lto_write_tree_1): Call
31733         streamer_write_tree_bitfields.
31734
31735 2015-02-09  Richard Biener  <rguenther@suse.de>
31736
31737         PR tree-optimization/54000
31738         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31739         (struct ivopts_data): Add loop_loc member.
31740         (tree_ssa_iv_optimize_loop): Dump loop location.
31741         (create_new_ivs): Likewise, also dump number of IVs generated.
31742
31743 2015-02-09  Martin Liska  <mliska@suse.cz>
31744
31745         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31746         just if not yet registered.
31747         (ipa_icf_generate_summary): Register callgraph hooks.
31748
31749 2015-02-08  Andrew Pinski  <apinski@cavium.com>
31750
31751         * config/aarch64/aarch64.c (gty_dummy): Delete.
31752
31753 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31754
31755         PR ipa/63566
31756         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31757         (cgraph_node::local_p): Remove thunk related FIXME.
31758
31759 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31760
31761         PR ipa/63566
31762         * i386.c (ix86_function_regparm): Look through aliases to see if callee
31763         is local and optimized.
31764         (ix86_function_sseregparm): Likewise; also use target's SSE math
31765         settings; error out instead of silently generating wrong code
31766         on mismatches.
31767         (init_cumulative_args): Look through aliases.
31768
31769 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31770
31771         PR ipa/63566
31772         * ipa-split.c (execute_split_functions): Split if function has aliases.
31773
31774 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31775
31776         PR ipa/63566
31777         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31778         aliases before trying to expand it.
31779         (cgraph_node::expand_thunk): Fix formating.
31780
31781 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
31782
31783         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31784         (Using Assembly Language with C): Expand introduction.
31785         (Basic Asm): Copy-edit.  Add more information about uses of
31786         basic asm.
31787         (Extended Asm): Copy-edit.  Document new escape syntax and
31788         %l[label] syntax.
31789         (Global Reg Vars): Copy-edit.
31790         (Local Reg Vars): Likewise.
31791
31792 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
31793
31794         PR debug/2714
31795         PR bootstrap/64256
31796         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31797         (DBX_CONTIN_CHAR): Define.
31798
31799 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
31800             Brian Rzycki  <b.rzycki@samsung.com>
31801
31802         PR tree-optimization/64878
31803         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31804         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31805         Stop recursion at loop phi nodes after having visited a loop phi node.
31806
31807 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
31808
31809         * toplev.c (process_options): Change flag_ipa_ra before creating
31810         optimization_{default,current}_node.
31811
31812         PR ipa/64896
31813         * cgraphunit.c (cgraph_node::expand_thunk): If
31814         restype is not is_gimple_reg_type nor the thunk_fndecl
31815         returns aggregate_value_p, set restmp to a temporary variable
31816         instead of resdecl.
31817
31818 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
31819
31820         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31821
31822 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31823
31824         PR target/64205
31825         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31826         add a general secondary reload handler for SDmode, unless we have
31827         both read/write support for SDmode.
31828
31829 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
31830
31831         PR middle-end/64937
31832         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31833         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31834         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31835         1 before, push it to abstract_vec.
31836         (dwarf2out_abstract_function): Adjust caller.  Don't call
31837         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31838         DECL_ABSTRACT_P flags for all abstract_vec elts.
31839
31840 2015-02-06  Renlin Li  <renlin.li@arm.com>
31841
31842         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31843         complex gimple.
31844         * tree-ssa.c (execute_update_addresses_taken): Likewise.
31845
31846 2015-02-06  Jeff Law  <law@redhat.com>
31847
31848         PR target/64889
31849         * config/h8300/h8300.c (push): New argument "in_prologue".
31850         Pass "in_prologue" along to "F".
31851         (h8300_push_pop): Corresponding changes.
31852         (h8300_expand_prologue): Likewise.
31853         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
31854
31855 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
31856
31857         PR rtl-optimization/64957
31858         PR debug/64817
31859         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31860         IOR rather than for AND.
31861
31862 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
31863
31864         PR target/62631
31865         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31866         of shift-add and (add + shift) operations.  Rename local variable.
31867
31868 2015-02-05  Jeff Law  <law@redhat.com>
31869
31870         PR target/17306
31871         * config/h8300/constraints.md (U): Correctly dectect
31872         "eightbit_data" memory addresses.
31873         * config/h8300/h8300.c (eightbit_constant_address_p): Also
31874         handle (const (plus (symbol_ref (x)))) where x is declared
31875         as an 8-bit data memory address.
31876         * config/h8300/h8300.md (call, call_value): Correctly detect
31877         "funcvec" functions.
31878
31879         PR target/43264
31880         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31881         24 to 28 bits for the H8/300.
31882
31883 2015-02-06  Alan Modra  <amodra@gmail.com>
31884
31885         PR target/64876
31886         * config/rs6000/rs6000.c (chain_already_loaded): New function.
31887         (rs6000_call_aix): Use it.
31888
31889 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
31890
31891         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31892         check.
31893
31894 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
31895
31896         * config/h8300/constraints.md ("U" constraint): Use strict
31897         variant of REG_OK_FOR_BASE_P after reload has started.
31898
31899 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
31900
31901         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31902         define to zero if !TARGET_NEON.
31903         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31904
31905 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31906             Trevor Saunders  <tsaunders@mozilla.com>
31907
31908         PR ipa/61548
31909         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31910
31911 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31912
31913         PR ipa/61548
31914         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31915         when removing varpool nodes.
31916
31917 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31918
31919         PR ipa/61548
31920         * varpool.c (varpool_node::remove): Fix order of variables.
31921
31922 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31923
31924         PR ipa/64686
31925         * ipa-inline.c (inline_small_functions): Fix ordering issue between
31926         speculation resolution and key updates.
31927
31928 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31929
31930         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31931         about not letting any speculative edges unupdated.
31932
31933 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31934
31935         PR gcov/64123
31936         * gcov-io.c (gcov_var): Export.
31937
31938 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31939
31940         PR middle-end/64922
31941         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31942         edges that become speculative.
31943
31944 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
31945
31946         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31947         or DW_LANG_Fortran08.
31948         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31949         DW_LANG_Fortran08.
31950         (gen_compile_unit_die): Handle "GNU Fortran2003" and
31951         "GNU Fortran2008" language strings.
31952         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31953         * langhooks.h (lang_GNU_Fortran): New prototype.
31954         * langhooks.c (lang_GNU_Fortran): New function.
31955         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31956         lang_GNU_Fortran.
31957
31958 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
31959
31960         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31961         (RTX_OK_FOR_OLO10_P): Likewise.
31962
31963 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
31964
31965         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31966
31967 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31968
31969         PR middle-end/64922
31970         * gimple.c: Include gimple-ssa.h.
31971         (maybe_remove_unused_call_args): New function.
31972         * gimple.h (maybe_remove_unused_call_args): Declare.
31973         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31974         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31975         * gimple-fold.c (gimple_fold_call): Likewise.
31976
31977 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
31978
31979         PR rtl-optimization/64905
31980         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31981         pointer alignment if it isn't needed.
31982
31983 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
31984
31985         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31986         cortex-a72.cortex-a53.
31987         * config/aarch64/aarch64-tune.md: Regenerate.
31988         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31989
31990 2015-02-04  Nick Clifton  <nickc@redhat.com>
31991
31992         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31993         inside a MEM.
31994
31995 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
31996
31997         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31998         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31999         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
32000         of DEF_BUILTIN.
32001         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
32002         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
32003         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
32004         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
32005         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
32006         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
32007         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
32008         * tree-core.h (enum built_in_function): In between
32009         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
32010         for builtins that use DEF_BUILTIN_CHKP macro.
32011
32012 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
32013
32014         PR debug/64817
32015         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
32016         operands for tcc_comparison exprs.  Fix typos.
32017
32018         PR debug/64817
32019         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
32020         of two XORs that have an intervening AND or IOR.
32021
32022         PR debug/64817
32023         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
32024         simplification of XOR of AND to not allocate new rtx before
32025         committing to a simplification.
32026
32027 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32028
32029         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
32030         manual swaps in all peepholes.
32031
32032 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32033
32034         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
32035         of manual swapping implementation.
32036         (aarch64_expand_vec_perm_const_1): Likewise.
32037
32038 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
32039
32040         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
32041         (generic_addrcost_table): Remove NAMED_PARAM.
32042         (cortexa57_addrcost_table): Likewise.
32043         (xgene1_addrcost_table): Likewise.
32044         (generic_regmove_table): Likewise.
32045         (cortexa53_regmove_table): Likewise.
32046         (xgene1_regmove_table): Likewise.
32047         (generic_vector_table): Likewise.
32048         (cortexa57_vector_table): Likewise.
32049         (xgene1_vector_table): Likewise.
32050         (generic_tunings): Likewise.
32051         (cortexa53_tunings): Likewise.
32052         (cortexa57_tunings): Likewise.
32053         (xgene1_tunings): Likewise.
32054
32055 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
32056
32057         * config/arm/arm-cores.def: Add cortex-a72 and
32058         cortex-a72.cortex-a53.
32059         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
32060         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
32061         * config/arm/arm-tune.md: Regenerate.
32062         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
32063         "cortex-a72.cortex-a53".
32064         * doc/invoke.texi (ARM Options/-mtune): Likewise.
32065
32066 2015-02-04  Nick Clifton  <nickc@redhat.com>
32067
32068         PR target/64408
32069         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
32070         of accepted codes.
32071         (nonimmediate_di_operand): Likewise.
32072
32073         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
32074         prefixes of known F5 using MSP430 MCUs.
32075
32076 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32077
32078         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
32079         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
32080         instead of __builtin_sqrt.
32081
32082 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
32083
32084         * varasm.c (do_assemble_alias): Follow transparent alias
32085         chain for target.
32086         (default_assemble_visibility): Follow transparent alias
32087         chain for decl name.
32088
32089 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32090
32091         PR middle-end/62103
32092         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
32093         to compute size of referenced value in the constant case.
32094
32095 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
32096
32097         PR rtl-optimization/64756
32098         * cse.c (invalidate_dest): New function.
32099         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
32100         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
32101         invalidate and do not record it.
32102
32103 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
32104
32105         PR target/64660
32106         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
32107         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
32108         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
32109         atomic_nand<mode>_soft_tcb): New insns.
32110         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
32111         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
32112         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
32113         Split into atomic_not_fetchsi_hard if operands[0] is unused.
32114         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
32115         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32116         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
32117         atomic_not<mode>_hard if operands[0] is unused.
32118         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
32119         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
32120         if operands[0] is unused.
32121         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
32122         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
32123         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
32124         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32125         unused.
32126         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
32127         into atomic_not<mode>_soft_tcb if operands[0] is unused.
32128         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32129         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32130         if operands[0] is unused.
32131         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
32132         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32133         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
32134         atomic_nand_fetchsi_hard if operands[0] is unused.
32135         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
32136         atomic_nand<mode>_hard if operands[0] is unused.
32137         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
32138         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32139         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
32140         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32141         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
32142         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32143         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32144         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32145         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
32146         atomic_not<mode>_hard if operands[0] is unused.
32147         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32148         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32149         unused.
32150         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
32151         into atomic_not<mode>_soft_tcb if operands[0] is unused.
32152         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
32153         atomic_nand<mode>_hard if operands[0] is unused.
32154         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
32155         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32156
32157 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
32158
32159         PR jit/64810
32160         * Makefile.in (GCC_OBJS): Add gcc-main.o.
32161         * gcc-main.c: New file, containing "main" taken from gcc.c.
32162         * gcc.c (do_self_spec): Free decoded_options.
32163         (class driver): Move declaration to gcc.h.
32164         (main): Move declaration and implementation to new file
32165         gcc-main.c.
32166         (driver_get_configure_time_options): New function.
32167         * gcc.h (class driver): Move this declaration here, from
32168         gcc.c.
32169         (driver_get_configure_time_options): New declaration.
32170
32171 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
32172
32173         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32174         cross-module inlining.
32175         * cgraph.h (cgraph_node): Add flag merged.
32176         * ipa-icf.c (sem_function::merge): Maintain it.
32177
32178 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
32179
32180         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32181         instead of OBJECT_P.
32182
32183 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
32184
32185         PR target/62631
32186         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32187         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32188         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32189         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32190
32191 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
32192
32193         PR other/63504
32194         * combine.c (reg_n_sets_max): New variable.
32195         (can_change_dest_mode, reg_nonzero_bits_for_combine,
32196         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32197         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32198         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32199         (rest_of_handle_combine): Initialize reg_n_sets_max.
32200
32201 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
32202
32203         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32204         if some always_inline was inlined, apply changes before inlining
32205         heuristically.
32206
32207 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
32208
32209         PR jit/64810
32210         * config/arm/arm.c (arm_option_override): Set
32211         arm_selected_arch/cpu/tune to NULL on entry.
32212
32213 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
32214             Andrew Pinski  <pinskia@gcc.gnu.org>
32215             Jakub Jelinek  <jakub@gcc.gnu.org>
32216
32217         PR target/64231
32218         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32219         integer typing for small model. Use IN_RANGE.
32220
32221 2015-02-02  Richard Biener  <rguenther@suse.de>
32222
32223         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32224         * tree-vrp.c (vrp_valueize_1): Likewise.
32225
32226 2015-02-02  Alan Modra  <amodra@gmail.com>
32227
32228         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32229         than mem for toc_restore.
32230         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32231         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32232         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32233
32234 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
32235
32236         PR target/64047
32237         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32238         explicit default options.
32239
32240 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
32241
32242         PR ipa/64872
32243         * ipa-utils.c (ipa_merge_profiles): Add release argument.
32244         * ipa-icf.c (sem_function::merge): Do not release body when merging.
32245         * ipa-utils.h (ipa_merge_profiles): Update prototype.
32246
32247 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
32248
32249         PR debug/64817
32250         * cfgexpand.c (deep_ter_debug_map): New variable.
32251         (avoid_deep_ter_for_debug): New function.
32252         (expand_debug_expr): If TERed SSA_NAME is in
32253         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32254         instead of trying to expand SSA_NAME's def stmt.
32255         (expand_debug_locations): When expanding debug bind
32256         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32257         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32258         value.
32259         (pass_expand::execute): Call avoid_deep_ter_for_debug on
32260         all debug bind stmts.  Delete deep_ter_debug_map after
32261         expand_debug_location if non-NULL and clear it.
32262
32263 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
32264
32265         PR target/64851
32266         * config/sh/sync.md (atomic_fetch_notsi_hard,
32267         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32268         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32269         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32270         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32271         atomic_not_fetch<mode>_soft_imask): New insns.
32272
32273 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
32274
32275         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32276         (rank_for_schedule_debug): Split from ...
32277         (rank_for_schedule): ... this.
32278         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32279         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32280
32281 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
32282
32283         * doc/md.texi (Machine Constraints): Alphabetize table by target.
32284         * doc/extend.texi (x86 Variable Attributes): Move section to
32285         correct alphabetization after renaming.
32286         (x86 Type Attributes): Likewise.
32287         (Target Builtins): Re-alphabetize menu.
32288         (x86 Built-in Functions): Move section to correct alphabetization
32289         after renaming.
32290         (x86 transactional memory intrinsics): Likewise.
32291         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32292         and x86 Windows Options in table and menu.
32293         (x86 Options): Move section to correct alphabetization after
32294         renaming.
32295         (x86 Windows Options): Likewise.
32296
32297 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
32298
32299         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32300         preferred names of the architecture and its 32- and 64-bit
32301         variants.
32302         * doc/invoke.texi: Likewise.
32303         * doc/md.texi: Likewise.
32304
32305 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
32306
32307         PR target/64882
32308         * config/i386/predicates.md (address_no_seg_operand): Reject
32309         non-CONST_INT_P operands in invalid mode.
32310
32311 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
32312
32313         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32314         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
32315         * config/i386/predicates.md (address_no_seg_operand): Call
32316         address_operand with VOIDmode.
32317         (vsib_address_operand): Ditto.
32318         (address_mpx_no_base_operand): Ditto.
32319         (address_mpx_no_index_operand): Ditto.
32320
32321 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32322
32323         PR target/64688
32324         * lra-constraints.c (original_subreg_reg_mode): New.
32325         (simplify_operand_subreg): Try to simplify subreg of const.  Use
32326         original_subreg_reg_mode for it.
32327         (swap_operands): Update original_subreg_reg_mode.
32328         (curr_insn_transform): Set up original_subreg_reg_mode.
32329
32330 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32331
32332         PR target/64617
32333         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32334         function.
32335         (process_alt_operands): Use it.
32336         (curr_insn_transform): Check the optional reload pseudo class is
32337         ok for the mode.
32338
32339 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
32340
32341         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32342         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32343         prototype.
32344         * toplev.h (init_asm_output): Update comment on use of
32345         UNKNOWN_LOCATION with fatal_error.
32346         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32347         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32348         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32349         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32350         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32351         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32352         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32353         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32354         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32355         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32356         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32357         fatal_error changed to pass input_location as first argument.
32358
32359 2015-01-30  Martin Liska  <mliska@suse.cz>
32360
32361         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32362         in #pragma GCC diagnostic guards.
32363
32364 2015-01-30  Richard Biener  <rguenther@suse.de>
32365
32366         PR tree-optimization/64829
32367         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32368         not add a widening conversion pattern but hand off extra
32369         widenings to callers.
32370         (vect_recog_widen_mult_pattern): Handle extra widening produced
32371         by vect_handle_widen_op_by_const.
32372         (vect_recog_widen_shift_pattern): Likewise.
32373         (vect_pattern_recog_1): Remove excess vertical space in dumping.
32374         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32375         (vect_init_vector_1): Likewise.
32376         (vect_get_vec_def_for_operand): Likewise.
32377         (vect_finish_stmt_generation): Likewise.
32378         (vectorizable_load): Likewise.
32379         (vect_analyze_stmt): Likewise.
32380         (vect_is_simple_use): Likewise.
32381
32382 2015-01-29  Jeff Law  <law@redhat.com>
32383
32384         * combine.c (try_combine): Fix typo in comment.
32385
32386 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
32387
32388         PR target/64580
32389         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32390         (rs6000_stack_info): Add assert.
32391         (rs6000_output_savres_externs): New function, split off from...
32392         (rs6000_output_function_prologue): ... here.  Do not call it for
32393         thunks.
32394
32395 2015-01-29  Jeff Law  <law@redhat.com>
32396
32397         PR target/15184
32398         * combine.c (try_combine): If I0 is a memory load and I3 a store
32399         to a related address, increase the "goodness" of doing a 4-insn
32400         combination with I0-I3.
32401         (make_field_assignment): Handle SUBREGs in the ior+and case.
32402
32403 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
32404
32405         PR tree-optimization/64746
32406         * tree-if-conv.c (mask_exists): New function.
32407         (predicate_mem_writes): Save created mask with given size for further
32408         use.
32409         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32410         (ifcvt_repair_bool_pattern): Collect all statements that are root
32411         of bool pattern and use iterative algorithm to remove multiple uses
32412         of predicates, display number of required iterations.
32413
32414 2015-01-29  Richard Biener  <rguenther@suse.de>
32415
32416         PR tree-optimization/64853
32417         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32418         stmt will get simulated again.
32419         * tree-ssa-ccp.c (valueize_op_1): Likewise.
32420
32421 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32422
32423         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32424         return_in_pc.  Remove redundant assignments.
32425         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32426         (arm_expand_epilogue): Don't compare boolean with true in if condition.
32427
32428 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
32429
32430         * config/i386/i386.c (ix86_mode_after): Make static.
32431
32432 2015-01-29  Richard Biener  <rguenther@suse.de>
32433
32434         PR tree-optimization/64844
32435         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32436         dump cost model analysis.
32437         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32438         Do not register adjusted load/store costs here.
32439
32440 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
32441             Uros Bizjak  <ubizjak@gmail.com>
32442
32443         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32444         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32445         using x86_use_pseudo_pic_reg.
32446         * config/i386/i386.c (ix86_conditional_register_usage): Remove
32447         support for fixed PIC register.
32448         (ix86_use_pseudo_pic_reg): Not static any more.
32449
32450 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
32451
32452         PR middle-end/64805
32453         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32454         to avoid error in cgraph node verification.
32455
32456 2015-01-29  Marek Polacek  <polacek@redhat.com>
32457
32458         * doc/standards.texi: Reflect that the default for C is gnu11.
32459
32460 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
32461
32462         PR target/64761
32463         * reorg.c (switch_text_sections_between_p): New function.
32464         (relax_delay_slots): Call it when testing if the jump insn
32465         is removable.  Use targetm.can_follow_jump when testing if
32466         the conditional branch can follow an unconditional jump.
32467
32468 2015-01-27  Caroline Tice  <cmtice@google.com>
32469
32470         Committing VTV Cywin/Ming patch for Patrick Wollgast
32471         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32472         if -fvtable-verify=preinit/std is used.
32473         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32474         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32475         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32476         if -fvtable-verify=preinit/std is used.
32477         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32478         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32479         if -fvtable-verify=preinit/std is used.
32480         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32481         * config/i386/mingw32.h (LIB_SPEC): Likewise.
32482         * varasm.c (assemble_variable): Add code to properly set the comdat
32483         section and name for the .vtable_map_vars section in case the
32484         target is PE or COFF.
32485
32486 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
32487
32488         PR ipa/64801
32489         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32490         make sane BB profile.
32491         (cgraph_node::expand_thunk): Make sane BB profile.
32492         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32493         * cgraph.h (init_lowered_empty_function): Update prototype.
32494         * config/i386/i386.c (make_resolver_func): Update call.
32495         * predict.c (gate): Disable branch prediction pass if
32496         profile is already there.
32497
32498 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
32499
32500         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32501         * opth-gen.awk: Likewise.
32502         * common.opt: Mark flag_fp_contract_mode as Optimization.
32503
32504 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32505
32506         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32507         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32508
32509 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
32510
32511         PR target/64659
32512         * config/sh/predicates.md (atomic_arith_operand,
32513         atomic_logical_operand): Remove.
32514         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32515         (atomic_arith_operand_0): New predicate.
32516         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32517         Use atomic_arith_operand_0 for input values.
32518         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32519         atomic_compare_and_swap<mode>_soft_gusa,
32520         atomic_compare_and_swap<mode>_soft_tcb,
32521         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32522         arith_reg_operand instead of register_operand.
32523         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
32524         atomic_arith_operand_0 for newval input.
32525         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32526         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32527         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32528         arith_reg_operand instead of register_operand.
32529         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32530         fetchop_predicate_1, fetchop_constraint_1_llcs,
32531         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32532         fetchop_constraint_1_imask): New code iterator attributes.
32533         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32534         register_operand.  Use fetchop_predicate_1.
32535         (atomic_fetch_<fetchop_name>si_hard,
32536         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32537         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32538         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32539         and arith_reg_operand instead of register_operand.  Use
32540         fetchop_predicate_1, fetchop_constraint_1_gusa.
32541         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32542         and arith_reg_operand instead of register_operand.  Use
32543         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
32544         to allow R0 usage.
32545         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32546         and arith_reg_operand instead of register_operand.  Use
32547         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
32548         to allow R0 usage.
32549         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32550         register_operand.  Use atomic_logical_operand_1.
32551         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32552         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32553         arith_reg_operand instead of register_operand.
32554         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32555         Use arith_reg_dest and arith_reg_operand instead of register_operand.
32556         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
32557         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32558         register_operand.  Use fetchop_predicate_1.
32559         (atomic_<fetchop_name>_fetchsi_hard,
32560         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32561         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32562         fetchop_constraint_1_llcs.
32563         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32564         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32565         fetchop_constraint_1_gusa.
32566         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32567         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32568         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
32569         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32570         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32571         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
32572         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32573         register_operand.  Use atomic_logical_operand_1.
32574         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32575         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32576         arith_reg_operand instead of register_operand.
32577         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32578         arith_reg_operand instead of register_operand.  Use logical_operand
32579         and K08.  Adjust asm sequence to allow R0 usage.
32580         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32581         arith_reg_operand instead of register_operand.  Use logical_operand
32582         and K08.
32583
32584 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
32585
32586         PR other/63504
32587         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32588         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32589         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32590         only get_full_len HOST_WIDE_INTs from get_val () array rather than
32591         all bits in *val_wide.
32592
32593 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
32594
32595         * varpool.c (tls_model_names): Fix names.
32596         (varpool_node::dump): Dump tls- prefix for tls models.
32597
32598 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
32599             Bernd Schmidt  <bernds@codesourcery.com>
32600             Nathan Sidwell  <nathan@codesourcery.com>
32601
32602         * config/nvptx/mkoffload.c: New file.
32603         * config/nvptx/t-nvptx: Add build rules for it.
32604         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32605         (extra_programs): Add mkoffload.
32606         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32607         function.
32608         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32609
32610 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
32611
32612         PR middle-end/64809
32613         * cfgexpand.c (reorder_operands): Skip debug gimples.
32614
32615 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
32616
32617         PR tree-optimization/64277
32618         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32619         range info when possible to refine estimation.
32620
32621 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32622
32623         PR tree-optimization/64718
32624         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32625         be a 16bit unsigned integer when n->range is 16.
32626         (bswap_replace): Convert src to that type if necessary for all bswap
32627         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
32628         set in pass_optimize_bswap::execute ().
32629
32630 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
32631
32632         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32633         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32634         integer and floating point variants.
32635         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32636
32637 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
32638
32639         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32640         for all vector modes.
32641
32642 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
32643
32644         PR bootstrap/64612
32645         * doc/sourcebuild.texi (comdat_group): Document.
32646
32647 2015-01-28  Terry Guo  <terry.guo@arm.com>
32648
32649         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32650
32651 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
32652
32653         * toplev.c (print_version): Add param "show_global_state", and
32654         only print GGC and plugin information if it is true.
32655         (init_asm_output): Pass in "true" for the new param when calling
32656         print_version.
32657         (process_options): Likewise.
32658         (toplev::main): Likewise.
32659         * toplev.h (print_version): Add new param to decl.
32660
32661 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
32662
32663         PR ipa/60871
32664         PR ipa/64139
32665         * tree.c (lookup_binfo_at_offset): New function.
32666         (get_binfo_at_offset): Use it.
32667
32668 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
32669
32670         PR ipa/64282
32671         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32672         on vtable being vtable.
32673
32674 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32675
32676         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32677         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32678         -mhotpatch= option.
32679         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32680         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
32681         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32682         Renamed.
32683         (s390_hotpatch_trampoline_halfwords_max): Renamed.
32684         (s390_hotpatch_hw_max): New name.
32685         (s390_hotpatch_trampoline_halfwords): Renamed.
32686         (s390_hotpatch_hw_before_label): New name.
32687         (get_hotpatch_attribute): Removed.
32688         (s390_hotpatch_hw_after_label): New name.
32689         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32690         attribute.
32691         (s390_attribute_table): Ditto.
32692         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32693         (s390_function_num_hotpatch_hw): New name.
32694         Remove special handling of inline functions and hotpatching.
32695         Return number of nops before and after the function label.
32696         (s390_can_inline_p): Removed.
32697         (s390_asm_output_function_label): Emit a configurable number of nops
32698         after the function label.
32699         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32700         (TARGET_CAN_INLINE_P) Removed.
32701         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32702
32703 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32704             Jiong Wang  <jiong.wang@arm.com>
32705
32706         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32707         of scratch reg.
32708         (cb<optab><mode>1): Likewise.
32709         * config/aarch64/iterators.md (bcond): New define_code_attr.
32710
32711 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32712
32713         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32714         memory accesses.
32715
32716 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32717
32718         * config/s390/s390.c (s390_register_move_cost): Increase costs for
32719         FPR->GPR moves.
32720
32721 2015-01-27  Richard Biener  <rguenther@suse.de>
32722
32723         * tree-vrp.c (update_value_range): Intersect the range with
32724         old recorded SSA name range information.
32725
32726 2015-01-27  Nick Clifton  <nickc@redhat.com>
32727
32728         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32729         BC, DE and HL registers directly, not via AX.
32730         When decrementing the stack pointer by a large amount, transfer SP
32731         into AX and perform the subtraction there.
32732         (rl78_expand_epilogue): Perform the inverse of the above
32733         enhancements.
32734
32735 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32736
32737         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32738
32739 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
32740             Yury Gribov  <y.gribov@samsung.com>
32741
32742         PR ubsan/64741
32743         * ubsan.c (ubsan_source_location): Refactor code.
32744         (ubsan_type_descriptor): Update type size. Refactor code.
32745
32746 2015-01-27  Richard Biener  <rguenther@suse.de>
32747
32748         PR tree-optimization/56273
32749         PR tree-optimization/59124
32750         PR tree-optimization/64277
32751         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32752         from the first VRP pass.
32753
32754 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
32755
32756         PR ipa/64776
32757         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32758         handle the first argument in the same loop as all the other arguments.
32759
32760         PR rtl-optimization/61058
32761         * jump.c (cleanup_barriers): Update basic block boundaries
32762         if BLOCK_FOR_INSN is non-NULL on PREV.
32763
32764 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
32765
32766         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32767         bounds narrowing, already instrumented calls and calls to
32768         not instrumentable functions.
32769
32770 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
32771
32772         PR tree-optimization/64807
32773         * wide-int.cc (wi::divmod_internal): Clear
32774         b_dividend[dividend_blocks_needed].
32775
32776 2015-01-26  DJ Delorie  <dj@redhat.com>
32777
32778         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32779         volatile memory references.
32780
32781 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
32782
32783         PR target/49263
32784         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32785         remove_insn.
32786         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32787         shifts if it already fits into K08.
32788
32789 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
32790
32791         PR ipa/64730
32792         * ipa-inline.c (inline_small_functions): Print "unknown" even
32793         if edge->call_stmt is non-NULL, but has builtins or unknown
32794         location.
32795
32796         PR middle-end/64421
32797         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32798         with asterisk, skip the first character.
32799
32800 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
32801
32802         PR target/64806
32803         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32804         order change.
32805
32806 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
32807
32808         PR target/64795
32809         * config/i386/i386.md (*movdi_internal): Also check operand 0
32810         to determine TYPE_LEA operand.
32811         (*movsi_internal): Ditto.
32812
32813 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
32814
32815         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32816         OPTION_MASK_QUAD_MEMORY_ATOMIC.
32817
32818 2015-01-26  Renlin Li  <renlin.li@arm.com>
32819
32820         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32821         the comment.
32822         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32823         for higher part.
32824
32825 2015-01-26  Richard Biener  <rguenther@suse.de>
32826
32827         PR middle-end/64764
32828         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32829         combining two BIT_AND_EXPR predicates.
32830
32831 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
32832
32833         PR bootstrap/64754
32834         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32835
32836 2015-01-26  Terry Guo  <terry.guo@arm.com>
32837
32838         * config/arm/arm.c (arm_file_start): Update the assignment of
32839         Tag_ABI_HardFP_use.
32840
32841 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
32842
32843         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32844         pipeline model.
32845         config/arm/arm.md: Include the new Cortex-A57 model.
32846         (generic_sched): Don't use generic_sched when tuning for
32847         Cortex-A57.
32848
32849 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
32850             Uros Bizjak  <ubizjak@gmail.com>
32851
32852         * config/i386/i386.c (get_builtin_code_for_version): Add
32853         support for BMI and BMI2 multiversion functions.
32854
32855 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32856
32857         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32858         (extract_bit_field): Likewise.
32859         (extract_low_bits): Likewise.
32860         (expand_mult): Likewise.
32861         (expand_mult_highpart_adjust): Likewise.
32862
32863 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
32864
32865         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32866         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32867         * config/i386/i386.c (processor_model): Add
32868         M_INTEL_COREI7_BROADWELL.
32869         (arch_names_table): Add "broadwell".
32870
32871 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
32872
32873         PR target/49263
32874         PR target/53987
32875         PR target/64345
32876         PR target/59533
32877         PR target/52933
32878         PR target/54236
32879         PR target/51244
32880         * config/sh/sh-protos.h
32881         (sh_extending_set_of_reg::can_use_as_unextended_reg,
32882         sh_extending_set_of_reg::use_as_unextended_reg,
32883         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32884         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32885         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32886         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32887         (sh_treg_insns): New class.
32888         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32889         (scope_counter): New class.
32890         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32891         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32892         sh_extending_set_of_reg::can_use_as_unextended_reg,
32893         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32894         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32895         sh_split_treg_set_expr): New functions.
32896         (addsubcosts): Handle treg_set_expr.
32897         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32898         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32899         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32900         (sh_insn_operands_modified_between_p): Make non-static.
32901         * config/sh/predicates.md (zero_extend_movu_operand): Allow
32902         simple_mem_operand in addition to displacement_mem_operand.
32903         (zero_extend_operand): Don't allow zero_extend_movu_operand.
32904         (treg_set_expr, treg_set_expr_not_const01,
32905         arith_reg_or_treg_set_expr): New predicates.
32906         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32907         arith_or_int_operand instead of logical_operand.  Convert to
32908         insn_and_split.  Try to optimize constant operand in splitter.
32909         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
32910         (*tstqi_t_zero): Delete.
32911         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32912         (tstsi_t_and_not): Delete.
32913         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32914         Convert to insn_and_split.
32915         (unnamed split, tstsi_t_zero_extract_xor,
32916         tstsi_t_zero_extract_subreg_xor_little,
32917         tstsi_t_zero_extract_subreg_xor_big): Delete.
32918         (*tstsi_t_shift_mask): New insn_and_split.
32919         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32920         to recombine with surrounding insns when splitting.
32921         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32922         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32923         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32924         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32925         (*cbranch_div0s: Delete.
32926         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
32927         Try to recombine with surrounding insns when splitting.  Add operand
32928         order variants.
32929         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32930         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32931         *addc_r_r_msb, *addc_2r_msb): Delete.
32932         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
32933         order variant.
32934         (*addc_negreg_t): New insn_and_split.
32935         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
32936         Try to recombine with surrounding insns when splitting.
32937         Add operand order variants.
32938         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32939         insn_and_split patterns.
32940         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
32941         surrounding insns when splitting.
32942         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32943         (*rotcl): Likewise.  Add zero_extract variant.
32944         (*ashrsi2_31): New insn_and_split.
32945         (*negc): Convert to insn_and_split.  Use treg_set_expr.
32946         (*zero_extend<mode>si2_disp_mem): Update comment.
32947         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32948         condition.
32949         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
32950         with surrounding insns when splitting.
32951         (any_treg_expr_to_reg): New insn_and_split.
32952         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32953         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32954         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32955         *zero_extract_2): New single bit zero extract patterns.
32956         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32957         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32958         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32959         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32960         set destination.
32961         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32962         register_operand for set source.
32963
32964 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
32965
32966         * i386.opt (prefetch_sse): New targetsave.
32967         * i386.c (ix86_function_specific_save): Save prefetch_sse.
32968         (ix86_function_specific_restore): Restore prefetch_sse and initialize
32969         ix86_cost/ix86_tune_cost.
32970
32971 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
32972
32973         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32974         Support the JIT by using 0 as the language type.
32975
32976 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
32977
32978         PR target/64317
32979         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
32980         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32981         (mark_regno_live, process_bb_lives): Pass new parameter value to
32982         make_hard_regno_born.
32983
32984 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
32985
32986         PR rtl-optimization/63637
32987         PR rtl-optimization/60663
32988         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32989         if elt->cost is MAX_COST for ASM_OPERANDS.
32990         (find_sets_in_insn): Fix up comment typo.
32991         (cse_insn): Don't set src_volatile for all non-volatile
32992         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32993         or with "memory" clobber.  Set elt->cost to MAX_COST
32994         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
32995         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32996
32997 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
32998
32999         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
33000         alternative 1.
33001
33002 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
33003
33004         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
33005         libgcc/config/i386/elf-lib.h.
33006
33007 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
33008
33009         PR driver/64737
33010         * gcc.c (print_configuration): Don't print a blank line at the end
33011         here...
33012         (run_attempt): ... but here unstead.
33013
33014         PR middle-end/64734
33015         * omp-low.c (scan_sharing_clauses): Don't ignore
33016         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
33017         on target data/update constructs.
33018
33019 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33020
33021         PR target/50928
33022         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
33023         (DEBUG_RELOAD): Removed define.
33024         (m32c_limit_reload_class): Enable traces with if DEBUG0.
33025         (m32c_function_arg): Added a type cast.
33026         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
33027         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
33028         * config/m32c/bitops.md (andqi3_16): Likewise.
33029         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
33030         (push_a01_l): Likewise.
33031
33032 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
33033
33034         PR jit/64721
33035         * main.c (main): Construct toplev instances with init_signals=true.
33036         * toplev.c (general_init): Add param "init_signals", and use it to
33037         conditionalize the calls to signal and host_hooks.extra_signals.
33038         (toplev::toplev): Add param "init_signals".
33039         (toplev::main): When invoking general_init, pass m_init_signals
33040         to control whether signal-handlers are installed.
33041         * toplev.h (toplev::toplev): Add param "init_signals".
33042         (toplev::m_init_signals): New field.
33043
33044 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
33045
33046         PR jit/64722
33047         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
33048         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
33049         latter may be affected by the former (e.g. on i686).
33050
33051 2015-01-23  Martin Liska  <mliska@suse.cz>
33052
33053         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
33054         false positive during profiledbootstrap.
33055
33056 2015-01-23  Tom de Vries  <tom@codesourcery.com>
33057
33058         PR libgomp/64672
33059         * lto-opts.c (lto_write_options): Output non-explicit conservative
33060         -fno-openacc.
33061         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
33062         (append_compiler_options): Pass -fopenacc through.
33063
33064 2015-01-23  Tom de Vries  <tom@codesourcery.com>
33065
33066         PR libgomp/64707
33067         * lto-opts.c (lto_write_options): Output non-explicit conservative
33068         -fno-openmp.
33069         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
33070         (append_compiler_options): Pass -fopenmp through.
33071
33072 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
33073
33074         PR debug/64511
33075         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
33076         GTY markup.
33077
33078         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
33079         * diagnostic.def (DK_ICE_NOBT): New kind.
33080         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
33081         like DK_ICE, but never print backtrace.
33082         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
33083         (internal_error_no_backtrace): New function.
33084         * gcc.c (execute): Use internal_error_no_backtrace instead of
33085         internal_error.
33086
33087 2015-01-22  Jeff Law  <law@redhat.com>
33088
33089         PR target/52076
33090         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
33091         improve code density for small immediate to memory case.
33092         (insv): Better handle bitfield assignments when the field is
33093         being set to all ones.
33094         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
33095         operand predicate.
33096
33097 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33098             Jakub Jelinek  <jakub@redhat.com>
33099
33100         PR middle-end/64729
33101         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
33102         for !TARGET_LIBC_PROVIDES_SSP version and
33103         -fstack-protector-{all,strong,explicit} otherwise.
33104         * config/freebsd.h (LINK_SSP_SPEC): Handle
33105         -fstack-protector-{strong,explicit}.
33106
33107 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
33108             H.J. Lu  <hongjiu.lu@intel.com>
33109
33110         PR ipa/64694
33111         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
33112         heap.
33113
33114 2015-01-22  Wei Mi  <wmi@google.com>
33115
33116         PR rtl-optimization/64557
33117         * dse.c (record_store): Call get_addr for mem_addr.
33118         (check_mem_read_rtx): Likewise.
33119
33120 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
33121
33122         * fold-const.c (const_binop): Add early return for non-tcc_binary.
33123
33124 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
33125
33126         * toplev.c (init_local_tick): Process the failure when read
33127         fails for random_seed.
33128
33129         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33130         'pretty_name' to avoid memory overflow.
33131
33132 2015-01-22  Richard Biener  <rguenther@suse.de>
33133
33134         PR middle-end/64728
33135         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33136         abnormal coalescing on undefined SSA names.
33137
33138 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
33139
33140         PR target/64688
33141         PR target/64477
33142         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33143         for alternative 3.
33144         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33145
33146 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
33147
33148         PR middle-end/63325
33149         * fold-const.c (fold_checksum_tree): Don't include value of
33150         expr->decl_with_vis.symtab_node in the checksum.
33151
33152 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33153
33154         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33155
33156 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33157
33158         PR driver/64690
33159         * gcc.c (insert_comments): New function.
33160         (try_generate_repro): Call it.
33161         (append_text): Removed.
33162
33163 2015-01-22  Richard Biener  <rguenther@suse.de>
33164
33165         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33166         with IL incompatible options.  Properly honor user optimize
33167         attributes.
33168
33169 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
33170
33171         PR rtl-optimization/64682
33172         * combine.c (distribute_notes): When moving a death note for
33173         a register that is set in the new I2, make sure to put it
33174         before that new I2.
33175
33176 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
33177
33178         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33179         not TARGET_DEFAULT.
33180
33181 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
33182
33183         PR debug/64511
33184         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33185         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33186         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33187
33188         PR sanitizer/64706
33189         * doc/invoke.texi (-fsanitize=vptr): Document.
33190
33191         PR rtl-optimization/62078
33192         * dse.c: Include cfgcleanup.h.
33193         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33194         anything call purge_all_dead_edges and cleanup_cfg at the end
33195         of the pass.
33196
33197 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
33198
33199         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33200         edges.
33201
33202 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33203
33204         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33205         decl attribute.
33206
33207 2015-01-21  David Sherwood  <david.sherwood@arm.com>
33208             Tejas Belagod <Tejas.Belagod@arm.com>
33209
33210         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33211         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33212         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33213         Removed.
33214
33215 2015-01-21  David Sherwood  <david.sherwood@arm.com>
33216             Tejas Belagod <Tejas.Belagod@arm.com>
33217
33218         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33219         (aarch64_reverse_mask): New decls.
33220         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33221         (insn_count): New mode_attr.
33222         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33223         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33224         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33225         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33226         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33227         (aarch64_simd_st4): New patterns.
33228         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33229         (aarch64_reverse_mask): New functions.
33230
33231 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
33232
33233         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33234         Declare.
33235         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33236         addressing modes for BE.
33237         (aarch64_print_operand): Add 'R' specifier.
33238         (aarch64_simd_disambiguate_copy): Delete.
33239         (aarch64_simd_emit_reg_reg_move): New function.
33240         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33241         in define_splits for structural moves.
33242         (mov<mode>): Use less restrictive predicates.
33243         (*aarch64_mov<mode>): Simplify and only allow for LE.
33244         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33245
33246 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
33247
33248         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33249
33250 2015-01-21  Richard Henderson  <rth@redhat.com>
33251
33252         PR target/64669
33253         * ccmp.c (used_in_cond_stmt_p): Remove.
33254         (expand_ccmp_expr): Don't use it.
33255
33256 2015-01-21  Nick Clifton  <nickc@redhat.com>
33257
33258         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33259         PARALLELs.
33260
33261 2015-01-21  Richard Biener  <rguenther@suse.de>
33262
33263         PR middle-end/64313
33264         * tree-core.h (builtin_info, builtin_info_type): Turn from
33265         an object with two arrays into an array of an object with
33266         decl and two flags, implicit_p and declared_p.
33267         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33268         set_builtin_decl, set_builtin_decl_implicit_p,
33269         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33270         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33271         * builtins.c (builtin_info): Adjust.
33272         * gimplify.c (gimplify_addr_expr): References to builtins
33273         that have been declared by the user makes them eligible for
33274         use by the compiler.  Call set_builtin_decl_implicit_p on them.
33275
33276 2015-01-20  Jeff Law  <law@redhat.com>
33277
33278         PR target/59946
33279         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33280         allow pc-relative addresses in operand predicates or constraints.
33281
33282 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
33283
33284         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33285         neon on aarch32 processors for stringops.
33286
33287 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33288
33289         PR ipa/63576
33290         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33291
33292 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33293
33294         PR lto/45375
33295         * ipa-inline.c: Include lto-streamer.h
33296         (report_inline_failed_reason): Output source file differences and
33297         flags on optimization/target node mismatch.
33298         (can_inline_edge_p): Consider caller to be the outer inline function;
33299         be less restrictive about matching opimize and optimize_size attributes.
33300         (inline_account_function_p): Break out from ...
33301         (inline_small_functions): ... here.
33302         * ipa-inline-transform.c (clone_inlined_nodes): Use
33303         inline_account_function_p.
33304         (inline_call): Use optimize attribution; use inline_account_function_p.
33305         (inline_transform): Use opt_for_fn.
33306         * ipa-inline.h (inline_account_function_p): Declare.
33307
33308 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
33309
33310         PR debug/64663
33311         * dwarf2out.c (decl_piece_node): Don't put bitsize into
33312         mode if bitsize <= 0.
33313         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33314         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33315         sizes and positions.
33316
33317 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
33318
33319         * config/nios2/nios2.c (nios2_asm_file_end): Implement
33320         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33321         needed.
33322         (TARGET_ASM_FILE_END): Define.
33323
33324 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33325
33326         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33327         (struct tune_params): Use the enum.
33328         * arm.c (arm_*_tune): Update.
33329         (arm_option_override): Update.
33330
33331 2015-01-20  Richard Biener  <rguenther@suse.de>
33332
33333         PR ipa/64684
33334         * ipa-reference.c (add_static_var): Inline ...
33335         (analyze_function): ... here after splitting out from ...
33336         (is_proper_for_analysis): ... this.
33337
33338 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
33339
33340         PR target/64149
33341         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33342         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33343         replace the conditional with it's true branch.
33344         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33345         (arm_lra_p): Remove.
33346
33347 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
33348
33349         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33350
33351 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33352
33353         * config/tilegx/mul-tables.c: Move symtab.h include after
33354         coretypes.h include.
33355         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33356         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33357         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33358         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33359         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33360
33361 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33362
33363         PR bootstrap/64676
33364         Revert:
33365         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
33366
33367         PR rtl-optimization/64081
33368         * loop-iv.c (def_pred_latch_p): New function.
33369         (latch_dominating_def): Allow specific cases with non-single
33370         definitions.
33371         (iv_get_reaching_def): Likewise.
33372         (check_complex_exit_p): New function.
33373         (check_simple_exit): Use check_complex_exit_p to allow certain cases
33374         with exits not executing on any iteration.
33375
33376 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33377
33378         PR lto/45375
33379         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33380         to set branch cost.
33381
33382 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33383
33384         PR lto/45375
33385         * i386.c (gate): Check flag_expensive_optimizations and
33386         optimize_size.
33387         (ix86_option_override_internal): Drop optimize_size condition
33388         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33389         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33390         MASK_PREFER_AVX128.
33391         (ix86_avx256_split_vector_move_misalign,
33392         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33393         * sse.md (all uses of TARGET_PREFER_AVX128): Add
33394         optimize_insn_for_speed_p check.
33395
33396 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
33397
33398         * config/mips/mips.h (FP_ASM_SPEC): New define.
33399         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33400         instead.
33401
33402 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
33403
33404         PR target/53988
33405         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33406         nullptr for insn when reaching the first insn.
33407         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33408         (sh_insn_operands_modified_between_p): Add nullptr check.
33409         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
33410         sign extending mem load if the insn contains any UNSPEC or
33411         UNSPEC_VOLATILE.
33412
33413 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33414
33415         * params.def (inline-unit-growth): Drop to 15%.
33416         * invoke.texi (inline-unit-growth): Document change.
33417
33418 2015-01-19  Martin Liska  <mliska@suse.cz>
33419
33420         PR ipa/64668
33421         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33422         function for second argument of OBJ_TYPE_REF.
33423
33424 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33425
33426         PR ipa/64218
33427         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33428         whether function is an alias.
33429
33430 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33431
33432         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33433         cases.
33434
33435 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
33436
33437         PR rtl-optimization/64671
33438         * lra-remat.c (operand_to_remat): Don't consider jump and call
33439         insns.
33440
33441 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
33442
33443         PR target/59828
33444         * config/rs6000/default64.h: Include rs6000-cpus.def.
33445         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33446         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33447         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33448         and POWER8.
33449         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33450         POWER8.
33451         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33452         pseudo-op to specify assembler dialect.
33453
33454 2015-01-19  Martin Liska  <mliska@suse.cz>
33455
33456         PR ipa/64664
33457         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33458         Handle safe potentially removed nodes during filtering.
33459
33460 2015-01-19  Martin Liska  <mliska@suse.cz>
33461
33462         * doc/extend.texi (no_icf): Add new attribute description.
33463         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33464         where the pass attempts to merge a function with no_icf attribute.
33465
33466 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33467
33468         PR target/64532
33469         * doc/md.texi (ARM Options): Document register constraints.
33470
33471 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
33472             Andrew Pinski  <apinski@cavium.com>
33473
33474         PR target/64304
33475         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33476         (ashl<mode>3): Don't expand if operands[2] is not constant.
33477
33478 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33479
33480         PR target/64448
33481         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33482         Match xor-and-xor RTL pattern.
33483
33484 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
33485
33486         PR rtl-optimization/64081
33487         * loop-iv.c (def_pred_latch_p): New function.
33488         (latch_dominating_def): Allow specific cases with non-single
33489         definitions.
33490         (iv_get_reaching_def): Likewise.
33491         (check_complex_exit_p): New function.
33492         (check_simple_exit): Use check_complex_exit_p to allow certain cases
33493         with exits not executing on any iteration.
33494
33495 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
33496
33497         * common.opt (fgraphite): Fix a typo.
33498
33499 2015-01-19  Felix Yang  <felix.yang@huawei.com>
33500
33501         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33502         pattern.
33503         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33504         uminp, smax_nanp, smin_nanp): New builtins.
33505         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33506         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33507         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33508         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33509         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33510         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33511         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33512         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33513         vpminnms_f32): Rewrite using builtin functions.
33514
33515 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
33516
33517         PR libgomp/64625
33518         * omp-low.c (offload_symbol_decl): Remove variable.
33519         (get_offload_symbol_decl): Remove function.
33520         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33521         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33522         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33523         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33524         BUILT_IN_GOACC_UPDATE don't pass it at all.
33525
33526 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33527
33528         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33529         callers.
33530
33531 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33532
33533         * ipa-chkp.c (chkp_produce_thunks): Add early param
33534         to split thunks production into two passes.  Keep
33535         'always_inline' function bodies after the first pass.
33536         (pass_data_ipa_chkp_early_produce_thunks): New.
33537         (pass_ipa_chkp_early_produce_thunks): New.
33538         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33539         chkp_produce_thunks signature.
33540         (make_pass_ipa_chkp_early_produce_thunks): New.
33541         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33542         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33543         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33544
33545 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
33546
33547         * cgraph.c (cgraph_node::dump): Dump profile flags.
33548
33549 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
33550
33551         PR target/64652
33552         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33553         reg appear first in the parallel.
33554
33555 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
33556
33557         * ipa-reference.c (set_reference_optimization_summary,
33558         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33559         disabled.
33560         (ignore_module_statics): New static var.
33561         (propagate_bits): If ipa-reference is disabled, do not look into local
33562         properties.
33563         (analyze_function): Disable analysis when ipa_reference is disabled.
33564         (generate_summary): Do not dump when reference is disabled;
33565         collect vars accessed from functions with ipa-reference disabled.
33566         (get_read_write_all_from_node): When ipa-reference is disabled, use the
33567         node flags.
33568         (gate): Enable for LTO.
33569         (ignore_edge_p): New function.
33570         (propagate): Skip functions w/o ipa-reference analysis.
33571         * optc-save-gen.awk: Handle optimize_debug correctly.
33572         * opth-gen.awk: Likewise.
33573         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33574         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33575         fira-share-save-slots, fira-share-spill-slots,
33576         fmodulo-sched-allow-regmoves, fpartial-inlining,
33577         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33578         ftracer, ftree-parallelize-loops, fassociative-math,
33579         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33580         Optimization
33581         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33582         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33583         Optimization.
33584         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33585         Fix for IPA.
33586
33587 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
33588
33589         PR ipa/64378
33590         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33591         flag correctly.
33592         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33593
33594 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
33595
33596         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33597         Remove duplicate option listings.
33598
33599 2015-01-18  Felix Yang  <felix.yang@huawei.com>
33600
33601         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33602         (autofdo_source_profile::get_callsite_total_count,
33603         function_instance::get_function_instance_by_decl,
33604         string_table::get_index, string_table::get_index_by_decl,
33605         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33606         Fix comment typos. Reformatting and minor code rearrangement.
33607
33608 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
33609
33610         * config/rs6000/rs6000.md (probe_stack): Delete.
33611         (probe_stack_address): New.
33612
33613 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
33614
33615         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33616         to test for 32-bit ABIs, not !TARGET_POWERPC64.
33617
33618 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
33619
33620         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33621         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
33622         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
33623         snafu.
33624         (rs6000_libcall_value): Use the new function.
33625
33626 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
33627
33628         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33629
33630 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
33631
33632         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33633         implement a more precise life analysis for it during backward scan.
33634
33635 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
33636
33637         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33638
33639 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
33640
33641         PR rtl-optimization/52773
33642         * calls.c (emit_library_call_value): When pushing arguments use
33643         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33644         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
33645         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33646
33647 2015-01-17  Jeff Law  <law@redhat.com>
33648
33649         PR rtl-optimization/32790
33650         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33651         not ZERO_EXTEND in SET_DESTs.
33652
33653 2015-01-17  Alan Modra  <amodra@gmail.com>
33654
33655         * cprop.c (do_local_cprop): Revert last change.
33656
33657 2015-01-16  DJ Delorie  <dj@redhat.com>
33658             Nick Clifton  <nickc@redhat.com>
33659
33660         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33661         (addhi3_real): Likewise.  Fix [HL+0] syntax.
33662         (subqi3_real): Likewise.
33663         (subhi3_real): Likewise.
33664         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
33665         (cbranchhi4_real): Likewise.
33666         (cbranchhi4_real_inverted): Likewise.
33667         (cbranchsi4_real_lt): Likewise.
33668         (cbranchsi4_real_ge): Likewise.
33669         (cbranchsi4_real_ge): Likewise.
33670         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33671         (sub<mode>3_virt): Likewise.
33672         (cbranchqi4_virt): Likewise.
33673         (cbranchhi4_virt): Likewise.
33674         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33675         always use '[reg+imm]' even when imm is zero.
33676         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33677         (rl78_general_operand): New.
33678         (rl78_nonimmediate_operand): New.
33679         (rl78_nonfar_operand): Use them.
33680         (rl78_nonfar_nonimm_operand): Likewise.
33681         (rl78_stack_based_mem): Fix.
33682         * config/rl78/constraints.md (Ibqi): New.
33683         (IBqi): New.
33684         (Wsa): New.
33685         (Wsf): New.
33686         (Cs1): Fix.
33687         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33688         (iorqi3): Likewise.
33689         (xorqi3): Likewise.
33690         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33691
33692         * config/rl78/constrains (Qs8): New constraint.
33693         * config/rl78/rl78.c (rl78_flags_already_set): New function.
33694         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33695         * config/rl78/rl78-real.md (update_Z): New attribute.
33696         Update patterns to set it.
33697         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33698         shorter compare and branch sequence can be used.
33699         (cbranchhi4_real): Likewise.
33700         (cbranchhi4_real_inverted): Likewise.
33701
33702         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33703         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33704         address space.
33705         * config/rl78/rl78.c (rl78_get_name_encoding): New.
33706         (rl78_option_override): Allow -mes0 only if C.
33707         (characterize_address): Support subregs of symbol_refs.
33708         (rl78_addr_space_address_mode): Move.  Add __near.
33709         (rl78_far_p): Likewise.
33710         (rl78_addr_space_pointer_mode): Likewise.
33711         (rl78_as_legitimate_address): Likewise.
33712         (rl78_addr_space_subset_p): Likewise.
33713         (rl78_addr_space_convert): Likewise.
33714         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33715         symbols with -mes0.
33716         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
33717         addressing.
33718         (rl78_alloc_physical_registers_op1): Change logic to prefer
33719         symbol[BC] addressing.
33720         (frodata_section): New.
33721         (rl78_asm_init_sections): Initialize it.
33722         (rl78_select_section): Put __far readonly symbols in .frodata.
33723         (rl78_make_type_far): New.
33724         (rl78_insert_attributes): Force all readonly symbols to be
33725         __far when -mes0.
33726         (rl78_asm_out_integer): New.
33727         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33728         * config/rl78/rl78.opt (-mes0): New.
33729
33730         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33731         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33732         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33733         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33734         (rl78_saddr_p): New.
33735         (rl78_output_aligned_common): New.
33736         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33737         (rl78_handle_saddr_attribute): New.
33738         (rl78_handle_naked_attribute): New.
33739         (rl78_attribute_table): Add saddr.
33740         (rl78_print_operand_1): Don't print '!' on saddr operands.
33741         (rl78_print_operand_1): Strip encodings.
33742         (rl78_sfr_p): New.
33743         (rl78_strip_name_encoding): New.
33744         (rl78_attrlist_to_encoding): New.
33745         (rl78_encode_section_info): New.
33746         (rl78_asm_init_sections): New.
33747         (rl78_select_section): New.
33748         (rl78_output_labelref): New.
33749         (rl78_output_aligned_common): New.
33750         (rl78_asm_out_integer): New.
33751         (rl78_asm_ctor_dtor): New.
33752         (rl78_asm_constructor): New.
33753         (rl78_asm_destructor): New.
33754
33755         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33756         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33757         (transcode_memory_rtx): Update.
33758         (rl78_expand_epilogue): Use A_REG instead of 0.
33759
33760 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33761
33762         * config/arm/arm-protos.h (struct tune_params): New field
33763         sched_autopref_queue_depth.
33764         * config/arm/arm.c (sched-int.h): Include header.
33765         (arm_first_cycle_multipass_dfa_lookahead_guard,)
33766         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33767         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33768         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33769         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33770         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33771         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33772         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33773         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
33774         * config/arm/t-arm (arm.o): Update.
33775         * haifa-sched.c (update_insn_after_change): Update.
33776         (rank_for_schedule): Use auto-prefetcher model, if requested.
33777         (autopref_multipass_init): New static function.
33778         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33779         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33780         variable for debug dumps.
33781         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33782         (autopref_multipass_dfa_lookahead_guard): New global function that
33783         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33784         (init_h_i_d): Update.
33785         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33786         * sched-int.h (enum autopref_multipass_data_status): New const enum.
33787         (autopref_multipass_data_): Structure for auto-prefetcher data.
33788         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33789         (struct _haifa_insn_data:autopref_multipass_data): New field.
33790         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33791         (autopref_multipass_dfa_lookahead_guard): Declare.
33792
33793 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33794
33795         * rtlanal.c (get_base_term): Handle SCRATCH.
33796
33797 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33798
33799         * config/aarch64/aarch64.c
33800         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33801         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33802         * config/arm/arm.c
33803         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33804         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33805
33806 2015-01-17  Alan Modra  <amodra@gmail.com>
33807
33808         * cprop.c (do_local_cprop): Disallow replacement of fixed
33809         hard registers.
33810
33811 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33812
33813         PR target/62066
33814         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33815         early return 0.
33816
33817 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33818
33819         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33820         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33821
33822 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33823
33824         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33825         * config/arm/thumb1.md: ... Here.
33826
33827 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33828
33829         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33830         TImode for TARGET_32BIT.
33831
33832 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33833
33834         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33835         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33836         as ...
33837         (rs6000_abi_word_mode): New function.
33838
33839 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33840
33841         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33842         instead of UNITS_PER_WORD to describe the size of stack slots.
33843
33844 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33845
33846         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33847         as rs6000_promote_function_mode.  Move comment to there.
33848         (rs6000_promote_function_mode): New function.
33849
33850 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33851
33852         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33853         -mpowerpc64 is active.
33854
33855 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
33856
33857         PR middle-end/64353
33858         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33859         virtuals on start.
33860
33861 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
33862
33863         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33864         introduced in revision 219724.
33865
33866 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33867             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33868
33869         PR target/64263
33870         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33871         destination is not a GP reg.
33872         (*movdi_aarch64): Likewise.
33873
33874 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
33875
33876         PR target/64623
33877         * config/rs6000/default64.h: Revert ISA change.
33878
33879 2015-01-16  Richard Biener  <rguenther@suse.de>
33880
33881         PR middle-end/64614
33882         * tree-ssa-uninit.c: Include tree-cfg.h.
33883         (MAX_SWITCH_CASES): New define.
33884         (convert_control_dep_chain_into_preds): Handle switch statements.
33885         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33886         (normalize_one_pred_1): Do not split bit-manipulations.
33887         Record (x & CST).
33888
33889 2015-01-16  Richard Biener  <rguenther@suse.de>
33890
33891         PR tree-optimization/64568
33892         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33893         complex load rewriting for TARGET_MEM_REFs.
33894
33895 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
33896
33897         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33898
33899 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
33900
33901         PR target/64149
33902         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33903         variable.
33904         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33905         (aarch64_lra_p): Remove.
33906
33907 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
33908
33909         PR target/64363
33910         * ipa-chkp.h (chkp_instrumentable_p): New.
33911         * ipa-chkp.c: Include tree-inline.h.
33912         (chkp_instrumentable_p): New.
33913         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33914         Fix processing of not instrumentable functions.
33915         (chkp_versioning): Use chkp_instrumentable_p. Warn about
33916         not instrumentable functions.
33917         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33918         chkp_instrumentable_p.
33919         * tree-inline.h (copy_forbidden): New.
33920         * tree-inline.c (copy_forbidden): Not static anymore.
33921
33922 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33923
33924         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33925         ptr1, ptr2 unused.
33926
33927 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
33928
33929         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33930         type OP_OUT to OP_INOUT.
33931
33932 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
33933
33934         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33935         (high x) y) to y if x and y have the same base.
33936
33937 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
33938
33939         * config/arm/cortex-a57.md: New.
33940         * config/aarch64/aarch64.md: Include it.
33941         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33942         * config/aarch64/aarch64-tune.md: Regenerate.
33943
33944 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
33945
33946         PR target/64015
33947         * ccmp.c (expand_ccmp_next): New function.
33948         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33949         and compare insn sequence.
33950         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33951         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33952         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33953         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33954         (*ccmp_ior): Changed to ccmp_ior<mode>.
33955         (cmp<mode>): New pattern.
33956         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33957         parameters.
33958         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33959
33960 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
33961
33962         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33963         _mm256_bsrli_epi128): New.
33964         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33965
33966 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
33967
33968         * expmed.c (store_bit_field_using_insv): Improve warning message.
33969         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33970
33971 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
33972
33973         PR rtl-optimization/64011
33974         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33975         there is partial overflow.
33976
33977 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33978
33979         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33980         prototype.
33981         (nds32_expand_epilogue_v3pop): Likewise.
33982         * config/nds32/nds32.md (sibcall): Define this for sibling call
33983         optimization.
33984         (sibcall_register): Likewise.
33985         (sibcall_immediate): Likewise.
33986         (sibcall_value): Likewise.
33987         (sibcall_value_register): Likewise.
33988         (sibcall_value_immediate): Likewise.
33989         (sibcall_epilogue): Likewise.
33990         (epilogue): Pass false to indicate this is not a sibcall epilogue.
33991         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33992         (nds32_expand_epilogue_v3pop): Likewise.
33993
33994 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33995
33996         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33997         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33998         (return_internal): New.
33999         (return): Define this named pattern.
34000         (simple_return): Define this named pattern.
34001         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
34002         pattern instead of unspec_volatile_func_return.
34003         (nds32_expand_epilogue_v3pop): Likewise.
34004         (nds32_can_use_return_insn): New function.
34005
34006 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
34007
34008         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
34009         * config/nds32/nds32.md (pop25return): New.
34010         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
34011         pop25return pattern.
34012
34013 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
34014
34015         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
34016         -mforbid-fp-as-gp, and -mex9 options.
34017
34018 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
34019
34020         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
34021         remove -mgp-direct option.
34022
34023 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
34024
34025         * doc/invoke.texi (--param early-inlining-insns): Update default value.
34026         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
34027
34028 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
34029
34030         * ipa-inline.c (inline_small_functions): Work around hints
34031         cache issue.
34032
34033 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
34034
34035         PR target/59710
34036         * doc/invoke.texi (Option Summary): Document new Nios II
34037         -mgpopt= syntax.
34038         (Nios II Options): Likewise.
34039         * config/nios2/nios2.opt: Add -mgpopt= option support.
34040         Modify existing -mgpopt and -mno-gpopt options to be aliases.
34041         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
34042         * config/nios2/nios2.c (nios2_option_override): Adjust
34043         -mgpopt defaulting.
34044         (nios2_in_small_data_p): Return true for explicit small data
34045         sections even with -G0.
34046         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
34047         option choices.
34048
34049 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
34050
34051         PR ipa/64612
34052         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
34053         of comdat locals.
34054         (inline_call): Fix removal of aliases.
34055
34056 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
34057
34058         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
34059         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
34060         * opts.c (common_handle_option): Add -fsanitize=vptr.
34061         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
34062         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
34063         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
34064         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
34065         (ubsan_expand_vptr_ifn): New prototype.
34066         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
34067         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
34068         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
34069         expand_LOOP_VECTORIZED): Make argument nameless, remove
34070         ATTRIBUTE_UNUSED.
34071         (expand_UBSAN_VPTR): New function.
34072         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
34073         in fn spec.
34074         (UBSAN_VPTR): New internal function.
34075         * sanopt.c (tree_map_traits): Renamed to ...
34076         (sanopt_tree_map_traits): ... this.
34077         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
34078         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
34079         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
34080         (maybe_optimize_ubsan_vptr_ifn): New function.
34081         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
34082         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
34083         -fsanitize=vptr.
34084         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
34085         internal calls like pure functions for aliasing, even when they
34086         have other side-effects that prevent making them ECF_PURE.
34087         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
34088         (ubsan_expand_vptr_ifn): New function.
34089
34090 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34091
34092         PR rtl-optimization/64110
34093         * stmt.c (parse_output_constraint): Process '^' and '$'.
34094         (parse_input_constraint): Ditto.
34095         * lra-constraints.c (process_alt_operands): Process the new
34096         constraints.
34097         * ira-costs.c (record_reg_classes): Process the new constraint
34098         '^'.
34099         * genoutput.c (indep_constraints): Add '^' and '$'.
34100         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
34101         * doc/md.texi: Add description of the new constraints.
34102
34103 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
34104             Bernd Schmidt  <bernds@codesourcery.com>
34105             Cesar Philippidis  <cesar@codesourcery.com>
34106             James Norris  <jnorris@codesourcery.com>
34107             Tom de Vries  <tom@codesourcery.com>
34108             Ilmir Usmanov  <i.usmanov@samsung.com>
34109             Dmitry Bocharnikov  <dmitry.b@samsung.com>
34110             Evgeny Gavrin  <e.gavrin@samsung.com>
34111             Jakub Jelinek  <jakub@redhat.com>
34112
34113         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
34114         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34115         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34116         New function types.
34117         * builtins.c: Include "gomp-constants.h".
34118         (expand_builtin_acc_on_device): New function.
34119         (expand_builtin, is_inexpensive_builtin): Handle
34120         BUILT_IN_ACC_ON_DEVICE.
34121         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
34122         New macros.
34123         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
34124         flag_openmp.
34125         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34126         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34127         i386/intelmic-offload.h.
34128         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34129         to libgomp and its dependencies.
34130         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34131         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34132         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34133         * config/ia64/hpux.h (LIB_SPEC): Likewise.
34134         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34135         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34136         * doc/generic.texi: Update for OpenACC changes.
34137         * doc/gimple.texi: Likewise.
34138         * doc/invoke.texi: Likewise.
34139         * doc/sourcebuild.texi: Likewise.
34140         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34141         GF_OMP_FOR_KIND_OACC_LOOP.
34142         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34143         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34144         GF_OMP_TARGET_KIND_OACC_UPDATE,
34145         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34146         Dump more data.
34147         * gimple.c: Update comments for OpenACC changes.
34148         * gimple.def: Likewise.
34149         * gimple.h: Likewise.
34150         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34151         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34152         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34153         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34154         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34155         appropriate place.
34156         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34157         * gimplify.c: Include "gomp-constants.h".
34158         Update comments for OpenACC changes.
34159         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34160         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34161         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34162         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34163         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34164         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34165         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34166         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34167         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34168         OMP_CLAUSE_SEQ.
34169         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34170         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
34171         OMP_CLAUSE_SET_MAP_KIND.
34172         (gimplify_oacc_cache): New function.
34173         (gimplify_omp_for): Handle OACC_LOOP.
34174         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34175         OACC_DATA.
34176         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34177         OACC_EXIT_DATA, OACC_UPDATE.
34178         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34179         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34180         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34181         (gimplify_body): Consider flag_openacc next to flag_openmp.
34182         * lto-streamer-out.c: Include "gomp-constants.h".
34183         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34184         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34185         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34186         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34187         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34188         (BUILT_IN_ACC_ON_DEVICE): New builtins.
34189         * omp-low.c: Include "gomp-constants.h".
34190         Update comments for OpenACC changes.
34191         (struct omp_context): Add reduction_map, gwv_below, gwv_this
34192         members.
34193         (extract_omp_for_data, use_pointer_for_field, install_var_field)
34194         (new_omp_context, delete_omp_context, scan_sharing_clauses)
34195         (create_omp_child_function, scan_omp_for, scan_omp_target)
34196         (check_omp_nesting_restrictions, lower_reduction_clauses)
34197         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34198         Update for OpenACC changes.
34199         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34200         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34201         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34202         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34203         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34204         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
34205         OMP_CLAUSE_MAP_*.
34206         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34207         Handle GF_OMP_FOR_KIND_OACC_LOOP.
34208         (expand_omp_target, lower_omp_target): Handle
34209         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34210         GF_OMP_TARGET_KIND_OACC_UPDATE,
34211         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34212         GF_OMP_TARGET_KIND_OACC_DATA.
34213         (pass_expand_omp::execute, execute_lower_omp)
34214         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34215         flag_openmp.
34216         (offload_symbol_decl): New variable.
34217         (oacc_get_reduction_array_id, oacc_max_threads)
34218         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34219         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34220         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34221         (oacc_gimple_assign, oacc_initialize_reduction_data)
34222         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34223         functions.
34224         (is_targetreg_ctx): Remove function.
34225         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34226         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34227         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34228         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34229         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34230         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34231         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34232         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34233         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34234         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34235         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34236         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34237         * tree-core.h: Update comments for OpenACC changes.
34238         (enum omp_clause_map_kind): Remove.
34239         (struct tree_omp_clause): Change type of map_kind member from enum
34240         omp_clause_map_kind to unsigned char.
34241         * tree-inline.c: Update comments for OpenACC changes.
34242         * tree-nested.c: Likewise.  Include "gomp-constants.h".
34243         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34244         (convert_tramp_reference_stmt, convert_gimple_call): Update for
34245         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
34246         OMP_CLAUSE_SET_MAP_KIND.
34247         * tree-pretty-print.c: Include "gomp-constants.h".
34248         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34249         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34250         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34251         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34252         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34253         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
34254         instead of OMP_CLAUSE_MAP_*.
34255         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34256         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34257         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34258         * tree-streamer-in.c: Include "gomp-constants.h".
34259         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34260         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
34261         * tree-streamer-out.c: Include "gomp-constants.h".
34262         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34263         OMP_CLAUSE_MAP_*.
34264         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34265         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34266         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34267         * tree.c (omp_clause_num_ops): Update accordingly.
34268         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34269         Likewise.
34270         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34271         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34272         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34273         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34274         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34275         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34276         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34277         (OMP_CLAUSE_SET_MAP_KIND): New macro.
34278         * varpool.c (varpool_node::get_create): Consider flag_openacc next
34279         to flag_openmp.
34280         * config/i386/intelmic-offload.h: New file.
34281         * config/nvptx/offload.h: Likewise.
34282
34283 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34284
34285         * explow.h: Remove duplicate contents.
34286         * dojump.h: Likewise.
34287
34288 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
34289
34290         * arm.c (arm_xgene_tune): Add default initializer for instruction
34291         fusion.
34292
34293 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
34294
34295         PR ipa/64068
34296         PR ipa/64559
34297         * ipa.c (symbol_table::remove_unreachable_nodes):
34298         Do not put abstract origins into boundary.
34299
34300 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
34301
34302         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34303         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34304
34305 2015-01-15  Steve Ellcey  <sellcey@mips.com>
34306
34307         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34308         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34309         builtins.def, and chkp-builtins.def.
34310
34311 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
34312
34313         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34314         ISA 2.7 (POWER8).
34315
34316 2015-01-15  Richard Biener  <rguenther@suse.de>
34317
34318         PR tree-optimization/61743
34319         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34320         information on PHIs for some simple cases.
34321
34322 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34323
34324         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34325         Include xgene1.md.
34326         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34327         * config/arm/arm-cores.def (xgene1): New entry.
34328         * config/arm/arm-tables.opt: Regenerate.
34329         * config/arm/arm-tune.md: Regenerate.
34330         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34331
34332 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
34333
34334         * tree-if-conv.c: Include hash-map.h.
34335         (aggressive_if_conv): New variable.
34336         (fold_build_cond_expr): Add simplification of non-zero condition.
34337         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34338         destination block is not always executed.
34339         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34340         than two predecessors if AGGRESSIVE_IF_CONV is true.
34341         (if_convertible_stmt_p): Fix commentary.
34342         (all_preds_critical_p): New function.
34343         (has_pred_critical_p): New function.
34344         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34345         BB can have more than two predecessors and all incoming edges can be
34346         critical.
34347         (predicate_bbs): Skip predication for loop exit block, use build2_loc
34348         to compute predicate for true edge.
34349         (find_phi_replacement_condition): Delete this function.
34350         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34351         Allow interchange PHI arguments if EXTENDED is false.
34352         Change check that block containing reduction statement candidate
34353         is predecessor of phi-block since phi may have more than two arguments.
34354         (phi_args_hash_traits): New helper structure.
34355         (struct phi_args_hash_traits): New type.
34356         (phi_args_hash_traits::hash): New function.
34357         (phi_args_hash_traits::equal_keys): New function.
34358         (gen_phi_arg_condition): New function.
34359         (predicate_scalar_phi): Add handling of phi nodes with more than two
34360         arguments, delete COND and TRUE_BB arguments, insert body of
34361         find_phi_replacement_condition to predicate ordinary phi nodes.
34362         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34363         delete call of find_phi_replacement_condition and invoke
34364         predicate_scalar_phi with two arguments.
34365         (insert_gimplified_predicates): Add assert that non-predicated block
34366         don't have statements to insert.
34367         (ifcvt_split_critical_edges): New function.
34368         (ifcvt_split_def_stmt): Likewise.
34369         (ifcvt_walk_pattern_tree): Likewise.
34370         (stmt_is_root_of_bool_pattern): Likewise.
34371         (ifcvt_repair_bool_pattern): Likewise.
34372         (ifcvt_local_dce): Likewise.
34373         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34374         is copy of inner or outer loop force_vectorize field, invoke
34375         ifcvt_split_critical_edges, ifcvt_local_dce and
34376         ifcvt_repair_bool_pattern for aggressive if-conversion.
34377
34378 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
34379
34380         * config/aarch64/aarch64.md: Include xgene1.md.
34381         * config/aarch64/xgene1.md: New file.
34382
34383 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34384
34385         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34386         xgene1 (APM XGene-1) core definition.
34387         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34388         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34389         * doc/invoke.texi: Document -mcpu=xgene1.
34390
34391 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34392
34393         * dojump.h: New header file.
34394         * explow.h: Likewise.
34395         * expr.h: Remove includes.
34396         Move expmed.c prototypes to expmed.h.
34397         Move dojump.c prototypes to dojump.h.
34398         Move alias.c prototypes to alias.h.
34399         Move explow.c prototypes to explow.h.
34400         Move calls.c prototypes to calls.h.
34401         Move emit-rtl.c prototypes to emit-rtl.h.
34402         Move varasm.c prototypes to varasm.h.
34403         Move stmt.c prototypes to stmt.h.
34404         (saved_pending_stack_adjust): Move to dojump.h.
34405         (adjust_address): Move to explow.h.
34406         (adjust_address_nv): Move to emit-rtl.h.
34407         (adjust_bitfield_address): Likewise.
34408         (adjust_bitfield_address_size): Likewise.
34409         (adjust_bitfield_address_nv): Likewise.
34410         (adjust_automodify_address_nv): Likewise.
34411         * explow.c (expr_size): Move to expr.c.
34412         (int_expr_size): Likewise.
34413         (tree_expr_size): Likewise.
34414         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34415         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34416         * genemit.c (main): Generate includes statistics.h, real.h,
34417         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34418         stmt.h.
34419         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34420         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34421         explow.h, emit-rtl.h, stmt.h.
34422         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34423         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34424         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34425         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34426         emit-rtl.h, varasm.h, stmt.h.
34427         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34428         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34429         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34430         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34431         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34432         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34433         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34434         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34435         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34436         tm.h tree.h varasm.h vec.h wide-int.h.
34437         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34438         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34439         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34440         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34441         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34442         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34443         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34444         * loop-iv.c: Likewise.
34445         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34446         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34447         statistics.h stmt.h tree.h varasm.h wide-int.h.
34448         * lra-constraints.c: Likewise.
34449         * lra-eliminations.c: Likewise.
34450         * lra-lives.c: Likewise.
34451         * lra-remat.c: Likewise.
34452         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34453         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34454         statistics.h stmt.h tree.h varasm.h wide-int.h.
34455         * hw-doloop.c: Likewise.
34456         * ira-color.c: Likewise.
34457         * ira-emit.c: Likewise.
34458         * loop-doloop.c: Likewise.
34459         * loop-invariant.c: Likewise.
34460         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34461         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34462         statistics.h stmt.h tree.h varasm.h wide-int.h.
34463         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34464         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34465         statistics.h stmt.h tree.h varasm.h wide-int.h.
34466         * combine-stack-adj.c: Likewise.
34467         * cse.c: Likewise.
34468         * ddg.c: Likewise.
34469         * ifcvt.c: Likewise.
34470         * ira-costs.c: Likewise.
34471         * jump.c: Likewise.
34472         * lra-coalesce.c: Likewise.
34473         * lra-spills.c: Likewise.
34474         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34475         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34476         stmt.h varasm.h wide-int.h.
34477         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34478         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34479         varasm.h.
34480         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34481         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34482         statistics.h stmt.h varasm.h wide-int.h.
34483         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34484         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34485         varasm.h wide-int.h.
34486         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34487         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34488         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34489         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34490         statistics.h stmt.h.
34491         * config/tilepro/tilepro.c: Likewise.
34492         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34493         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34494         * config/pdp11/pdp11.c: Likewise.
34495         * config/xtensa/xtensa.c: Likewise.
34496         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34497         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34498         varasm.h.
34499         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34500         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34501         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34502         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34503         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34504         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34505         * rtl-chkp.c: Likewise.
34506         * tree-chkp-opt.c: Likewise.
34507         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34508         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34509         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34510         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34511         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34512         statistics.h stmt.h.
34513         * tree-vect-data-refs.c: Likewise.
34514         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34515         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34516         rtl.h statistics.h stmt.h varasm.h.
34517         * internal-fn.c: Likewise.
34518         * ipa-icf-gimple.c: Likewise.
34519         * lto-section-out.c: Likewise.
34520         * tree-data-ref.c: Likewise.
34521         * tree-nested.c: Likewise.
34522         * tree-outof-ssa.c: Likewise.
34523         * tree-predcom.c: Likewise.
34524         * tree-pretty-print.c: Likewise.
34525         * tree-scalar-evolution.c: Likewise.
34526         * tree-ssa-strlen.c: Likewise.
34527         * tree-vect-loop.c: Likewise.
34528         * tree-vect-patterns.c: Likewise.
34529         * tree-vect-slp.c: Likewise.
34530         * tree-vect-stmts.c: Likewise.
34531         * tsan.c: Likewise.
34532         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34533         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34534         stmt.h.
34535         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34536         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34537         statistics.h stmt.h varasm.h.
34538         * loop-unroll.c: Likewise.
34539         * ubsan.c: Likewise.
34540         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34541         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34542         stmt.h varasm.h.
34543         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34544         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34545         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34546         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34547         statistics.h stmt.h.
34548         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34549         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34550         statistics.h stmt.h varasm.h.
34551         * gimple-match-head.c: Likewise.
34552         * lto-cgraph.c: Likewise.
34553         * lto-section-in.c: Likewise.
34554         * lto-streamer-in.c: Likewise.
34555         * lto-streamer-out.c: Likewise.
34556         * tree-affine.c: Likewise.
34557         * tree-cfg.c: Likewise.
34558         * tree-cfgcleanup.c: Likewise.
34559         * tree-if-conv.c: Likewise.
34560         * tree-into-ssa.c: Likewise.
34561         * tree-ssa-alias.c: Likewise.
34562         * tree-ssa-copyrename.c: Likewise.
34563         * tree-ssa-dse.c: Likewise.
34564         * tree-ssa-forwprop.c: Likewise.
34565         * tree-ssa-live.c: Likewise.
34566         * tree-ssa-math-opts.c: Likewise.
34567         * tree-ssa-pre.c: Likewise.
34568         * tree-ssa-sccvn.c: Likewise.
34569         * tree-tailcall.c: Likewise.
34570         * tree-vect-generic.c: Likewise.
34571         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34572         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34573         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34574         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34575         * varasm.c: Likewise.
34576         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34577         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34578         varasm.h.
34579         * init-regs.c: Likewise.
34580         * ira.c: Likewise.
34581         * omp-low.c: Likewise.
34582         * stack-ptr-mod.c: Likewise.
34583         * tree-ssa-reassoc.c: Likewise.
34584         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34585         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34586         varasm.h.
34587         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34588         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34589         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34590         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34591         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34592         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34593         * tree-ssa-phiopt.c: Likewise.
34594         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34595         fixed-value.h hashtab.h real.h statistics.h stmt.h.
34596         * config/fr30/fr30.c: Likewise.
34597         * config/frv/frv.c: Likewise.
34598         * expr.c: Likewise.
34599         * final.c: Likewise.
34600         * optabs.c: Likewise.
34601         * passes.c: Likewise.
34602         * simplify-rtx.c: Likewise.
34603         * stmt.c: Likewise.
34604         * toplev.c: Likewise.
34605         * var-tracking.c: Likewise.
34606         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34607         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34608         * lower-subreg.c: Likewise.
34609         * postreload-gcse.c: Likewise.
34610         * ree.c: Likewise.
34611         * reginfo.c: Likewise.
34612         * store-motion.c: Likewise.
34613         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34614         fixed-value.h hashtab.h real.h stmt.h varasm.h.
34615         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34616         fixed-value.h hashtab.h statistics.h stmt.h.
34617         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34618         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34619         * except.c: Likewise.
34620         * explow.c: Likewise.
34621         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34622         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34623         varasm.h.
34624         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34625         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34626         * tree-ssa-structalias.c: Likewise.
34627         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34628         fixed-value.h insn-config.h real.h statistics.h.
34629         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34630         fixed-value.h insn-config.h real.h statistics.h stmt.h.
34631         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34632         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34633         * cfgbuild.c: Likewise.
34634         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34635         fixed-value.h real.h rtl.h statistics.h stmt.h.
34636         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34637         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34638         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34639         fixed-value.h real.h statistics.h stmt.h.
34640         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34641         fixed-value.h real.h statistics.h stmt.h varasm.h.
34642         * cprop.c: Likewise.
34643         * modulo-sched.c: Likewise.
34644         * postreload.c: Likewise.
34645         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34646         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34647         statistics.h stmt.h varasm.h.
34648         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34649         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34650         rtl.h statistics.h stmt.h varasm.h.
34651         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34652         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34653         varasm.h.
34654         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34655         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34656         varasm.h.
34657         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34658         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34659         varasm.h.
34660         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34661         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34662         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34663         function.h real.h statistics.h stmt.h varasm.h.
34664         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34665         insn-config.h real.h statistics.h stmt.h.
34666         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34667         statistics.h stmt.h.
34668         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34669         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34670         statistics.h stmt.h varasm.h.
34671         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34672         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34673         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34674         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34675         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34676         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34677         statistics.h stmt.h varasm.h.
34678         * ipa-polymorphic-call.c: Likewise.
34679         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34680         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34681         statistics.h stmt.h.
34682         * config/c6x/c6x.c: Likewise.
34683         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34684         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34685         statistics.h stmt.h varasm.h.
34686         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34687         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34688         stmt.h varasm.h.
34689         * ipa-split.c: Likewise.
34690         * tree-eh.c: Likewise.
34691         * tree-ssa-dce.c: Likewise.
34692         * tree-ssa-loop-niter.c: Likewise.
34693         * tree-vrp.c: Likewise.
34694         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34695         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34696         stmt.h.
34697         * config/nds32/nds32-fp-as-gp.c: Likewise.
34698         * config/nds32/nds32-intrinsic.c: Likewise.
34699         * config/nds32/nds32-isr.c: Likewise.
34700         * config/nds32/nds32-md-auxiliary.c: Likewise.
34701         * config/nds32/nds32-memory-manipulation.c: Likewise.
34702         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34703         * config/nds32/nds32-predicates.c: Likewise.
34704         * config/nds32/nds32.c: Likewise.
34705         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34706         fixed-value.h hashtab.h real.h statistics.h.
34707         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34708         fixed-value.h hashtab.h real.h statistics.h stmt.h.
34709         * config/arm/arm.c: Likewise.
34710         * config/avr/avr.c: Likewise.
34711         * config/bfin/bfin.c: Likewise.
34712         * config/h8300/h8300.c: Likewise.
34713         * config/i386/i386.c: Likewise.
34714         * config/ia64/ia64.c: Likewise.
34715         * config/iq2000/iq2000.c: Likewise.
34716         * config/m32c/m32c.c: Likewise.
34717         * config/m32r/m32r.c: Likewise.
34718         * config/m68k/m68k.c: Likewise.
34719         * config/mcore/mcore.c: Likewise.
34720         * config/mep/mep.c: Likewise.
34721         * config/mips/mips.c: Likewise.
34722         * config/mn10300/mn10300.c: Likewise.
34723         * config/moxie/moxie.c: Likewise.
34724         * config/pa/pa.c: Likewise.
34725         * config/rl78/rl78.c: Likewise.
34726         * config/rx/rx.c: Likewise.
34727         * config/s390/s390.c: Likewise.
34728         * config/sh/sh.c: Likewise.
34729         * config/sparc/sparc.c: Likewise.
34730         * config/spu/spu.c: Likewise.
34731         * config/stormy16/stormy16.c: Likewise.
34732         * config/v850/v850.c: Likewise.
34733         * config/vax/vax.c: Likewise.
34734         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34735         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34736         * config/msp430/msp430.c: Likewise.
34737         * predict.c: Likewise.
34738         * value-prof.c: Likewise.
34739         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34740         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34741         * config/microblaze/microblaze.c: Likewise.
34742         * config/nios2/nios2.c: Likewise.
34743         * config/rs6000/rs6000.c: Likewise.
34744         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34745         insn-config.h real.h rtl.h statistics.h stmt.h.
34746         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34747         insn-config.h real.h statistics.h stmt.h.
34748         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34749         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34750         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34751         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34752         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34753         fixed-value.h real.h statistics.h stmt.h.
34754         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34755         fixed-value.h statistics.h stmt.h.
34756         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34757         stmt.h.
34758
34759 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
34760
34761         * gengtype.c (create_user_defined_type): Workaround
34762         -Wmaybe-uninitialized false positives.
34763         * cse.c (fold_rtx): Likewise.
34764         * loop-invariant.c (gain_for_invariant): Likewise.
34765
34766 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34767
34768         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34769         set the memory attributes in all cases but clear MEM_EXPR if need be.
34770
34771 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
34772
34773         PR tree-optimization/64434
34774         * cfgexpand.c (reorder_operands): New function.
34775         (expand_gimple_basic_block): Insert call of reorder_operands if
34776         optimized is true.
34777
34778 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
34779
34780         * config/mips/micromips.md (*swp): Remove explicit parallel.
34781         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34782         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34783         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34784         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34785         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34786         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34787         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34788         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34789         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34790         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34791         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34792         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34793         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34794         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34795         (mips_wrdsp): Likewise.
34796         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34797         parallel.
34798         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34799         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34800         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34801         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34802         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34803         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34804         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34805         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34806         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34807
34808 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
34809
34810         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34811         (mips_print_operand): Support 'y' to print exact log2 in decimal
34812         of a const_int.
34813         * config/mips/mips.h (ISA_HAS_LSA): New define.
34814         (ISA_HAS_DLSA): Likewise.
34815         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34816         * config/mips/predicates.md (const_immlsa_operand): New predicate.
34817
34818 2015-01-15  Martin Liska  <mliska@suse.cz>
34819
34820         PR target/64377
34821         * optc-save-gen.awk: Add support for array types.
34822
34823 2015-01-15  Richard Biener  <rguenther@suse.de>
34824
34825         PR middle-end/64365
34826         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34827         for MEM_REF access functions with the same base can never partially
34828         overlap.
34829
34830 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
34831
34832         * common.opt: New option -fstack-protector-explicit.
34833         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34834         (stack_protect_decl_phase): Handle stack_protect attribute for
34835         explicit stack protection requests.
34836         (expand_used_vars): Similarly.
34837         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34838         * doc/extend.texi: Add documentation for "stack_protect" attribute.
34839         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34840
34841 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
34842
34843         PR target/53988
34844         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34845         reg-reg copies.
34846         (sh_extending_set_of_reg): New struct.
34847         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34848         sh_remove_reg_dead_or_unused_notes): New Declarations.
34849         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34850         sh_find_extending_set_of_reg, sh_split_tst_subregs,
34851         sh_extending_set_of_reg::use_as_extended_reg): New functions.
34852         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34853         convert to insn_and_split and use new function sh_split_tst_subregs.
34854
34855 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
34856
34857         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34858         option.
34859         (Optimization Options): Move -fuse-ld documentation to...
34860         (Link Options): ...here.
34861
34862 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
34863
34864         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34865         offsets.
34866         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34867         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34868         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34869         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34870         instead of ZR for the memory operand of LL/SC.
34871         (compare_and_swap_12, sync_add<mode>): Likewise.
34872         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34873         (sync_new_<optab>_12, sync_nand_12): Likewise.
34874         (sync_old_nand_12, sync_new_nand_12): Likewise.
34875         (sync_sub<mode>, sync_old_add<mode>): Likewise.
34876         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34877         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34878         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34879         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34880         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34881         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34882         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34883         * doc/md.texi (ZC): Update description.
34884
34885 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
34886
34887         * builtins.c (expand_builtin_atomic_exchange): Remove error when
34888         memory model is CONSUME.
34889         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34890         expand_builtin_atomic_store): Change invalid memory model errors to
34891         warnings.
34892         (expand_builtin_atomic_clear): Change invalid model errors to warnings
34893         and issue warning for CONSUME.
34894
34895 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
34896
34897         * lto-cgraph: Update function comments for
34898         lto_symtab_encoder_encode_*.
34899
34900 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
34901
34902         * Makefile.in (site.exp): Do not set ENABLE_LTO.
34903
34904 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
34905
34906         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34907         * lto-cgraph.c (select_what_to_stream): Remove argument, use
34908         lto_stream_offload_p instead.
34909         * lto-streamer.h (select_what_to_stream): Remove argument.
34910         * passes.c (ipa_write_summaries): Likewise.
34911         * tree-pass.h (ipa_write_summaries): Likewise.
34912
34913 2015-01-14  Richard Biener  <rguenther@suse.de>
34914
34915         PR tree-optimization/59354
34916         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34917         groups larger than the slp group size as having gaps.
34918
34919 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
34920
34921         PR middle-end/59448
34922         * builtins.c (get_memmodel): Promote consume to acquire always.
34923
34924 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
34925
34926         PR target/64386
34927         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34928         V32HImode.
34929
34930 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
34931
34932         PR target/64393
34933         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34934         Enable AVX512BW.
34935         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34936         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34937         AVX512VBMI, as it implies AVX512BW.
34938
34939 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
34940
34941         PR target/64387
34942         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34943         (vec_unpacks_hi_v16sf): Ditto.
34944
34945 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34946
34947         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34948         is not available.
34949
34950 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34951
34952         * doc/invoke.texi (mapcs): Mention deprecation.
34953         (mapcs-frame): Likewise.
34954
34955 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34956
34957         PR target/64453
34958         * config/arm/arm.c (callee_saved_reg_p): Define.
34959         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34960         register is callee saved instead of !call_used_regs[reg].
34961         (thumb1_compute_save_reg_mask): Likewise.
34962
34963 2015-01-14  Hale Wang  <hale.wang@arm.com>
34964
34965         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34966         Cortex-M7.
34967
34968 2015-01-14  Richard Biener  <rguenther@suse.de>
34969
34970         PR lto/64415
34971         * tree-inline.c (insert_debug_decl_map): Check destination
34972         function MAY_HAVE_DEBUG_STMTS.
34973         (insert_init_debug_bind): Likewise.
34974         (insert_init_stmt): Remove redundant check.
34975         (remap_gimple_stmt): Drop debug stmts if the destination
34976         function has var-tracking assignments disabled.
34977
34978 2015-01-14  Martin Liska  <mliska@suse.cz>
34979
34980         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34981         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34982
34983 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34984
34985         PR target/64460
34986         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34987         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34988
34989 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
34990
34991         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34992         level from an ARCH; do not inject the default.
34993         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34994         MIPS_ISA_LEVEL_SPEC.
34995         (MIPS_ISA_NAN2008_SPEC): Update comment.
34996         (BASE_DRIVER_SELF_SPECS): Likewise.
34997         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34998         MIPS_DEFAULT_ISA_LEVEL_SPEC.
34999         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
35000         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
35001         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
35002
35003 2015-01-14  Richard Biener  <rguenther@suse.de>
35004
35005         PR tree-optimization/64493
35006         PR tree-optimization/64495
35007         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
35008         assign the proper vectorized PHI to the inner loop exit PHIs.
35009
35010 2015-01-14  Joey Ye  <joey.ye@arm.com>
35011
35012         * config/arm/arm.c (arm_compute_save_reg_mask):
35013         Do not save lr in case of tail call.
35014         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
35015
35016 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
35017
35018         * tree-vrp.c (check_array_ref): Emit more warnings
35019         for warn_array_bounds >= 2.
35020         * common.opt: New option -Warray-bounds=.
35021         * doc/invoke.texi: Document -Warray-bounds=.
35022
35023 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35024
35025         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
35026         (mforbid-fp-as-gp): Remove.
35027         (mex9): Remove.
35028         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
35029         (nds32_symbol_load_store_p): Remove.
35030         (nds32_fp_as_gp_check_available): Clean up implementation.
35031         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
35032         cases.
35033         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
35034         fp-as-gp and ex9 cases.
35035
35036 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
35037
35038         * tree-profile.c (init_ic_make_global_vars): Drop workaround
35039         for bintuils bug 14342.
35040         (init_ic_make_global_vars): Likewise.
35041         (gimple_init_edge_profiler): Likewise.
35042         (gimple_gen_ic_func_profiler): Likewise.
35043
35044 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35045
35046         * ipa-inline.c (inline_small_functions): Swap the operands in
35047         enum.
35048
35049 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
35050
35051         PR ipa/64481
35052         * ipa-inline-analysis.c (node_growth_cache): Remove.
35053         (initialize_growth_caches): Do not initialize it.
35054         (free_growth_caches): Do not free it.
35055         (do_estimate_growth): Rename to ...
35056         (estimate_growth): ... this one; drop growth cache code.
35057         (growth_likely_positive): Always go the heuristics way.
35058         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
35059         (reset_edge_caches): Do not reset node growth.
35060         (heap_edge_removal_hook): Do not maintain cache.
35061         (inline_small_functions): Likewise; strenghten sanity check.
35062         (ipa_inline): Do not maintain caches.
35063         * ipa-inline.h (node_growth_cache): Remove.
35064         (do_estimate_growth): Remove to ...
35065         (estimate_growth): this one; remove inline version.
35066         (reset_node_growth_cache): Remove.
35067
35068 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
35069
35070         PR ipa/64565
35071         * ipa-inline.c (inline_small_functions): Update callee keys after
35072         resolving speculation
35073         (inline_small_functions): Always check monotonicity of the queue.
35074
35075 2015-01-13  Marek Polacek  <polacek@redhat.com>
35076
35077         PR middle-end/64391
35078         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
35079
35080 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
35081
35082         PR rtl-optimization/64286
35083         * ree.c (combine_reaching_defs): Move part of comment earlier,
35084         remove !SCALAR_INT_MODE_P check.
35085         (add_removable_extension): Don't add vector mode
35086         extensions if all uses of the source register aren't the same
35087         vector extensions.
35088
35089 2015-01-13  Renlin Li  <renlin.li@arm.com>
35090
35091         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
35092         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
35093
35094 2015-01-13  Martin Liska  <mliska@suse.cz>
35095
35096         * ipa-icf.c (sem_function::equals_private): Call new functions
35097         cl_target_option_print_diff and cl_optimization_print_diff.
35098         * optc-save-gen.awk (cl_target_option_print_diff): New function.
35099         (cl_optimization_print_diff): Likewise.
35100         * opth-gen.awk: Likewise.
35101
35102 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
35103
35104         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
35105         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
35106         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
35107         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
35108         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
35109         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
35110
35111 2015-01-13  Andrew Pinski  <apinski@cavium.com>
35112
35113         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
35114         instead of src mode.
35115
35116 2015-01-13  Richard Biener  <rguenther@suse.de>
35117
35118         PR lto/64373
35119         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
35120         DECL_CONTEXT.
35121
35122 2015-01-13  Andrew Pinski  <apinski@cavium.com>
35123
35124         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35125         volatile mems.
35126         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35127
35128 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
35129
35130         PR middle-end/63974
35131         * cfgexpand.c (expand_computed_goto): Don't call
35132         convert_memory_address here.
35133
35134 2015-01-13  Richard Biener  <rguenther@suse.de>
35135
35136         PR tree-optimization/64406
35137         * tree-loop-distibution.c (pass_loop_distribution::execute):
35138         Reset the SCEV hashtable if we distributed anything.
35139
35140 2015-01-13  Richard Biener  <rguenther@suse.de>
35141
35142         PR tree-optimization/64404
35143         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35144         SLP types for CSEd loads.
35145
35146 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35147
35148         PR tree-optimization/64436
35149         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35150         merge of two symbolic numbers for a bitwise OR to ...
35151         (perform_symbolic_merge): This. Also fix computation of the range and
35152         end of the symbolic number corresponding to the result of a bitwise OR.
35153
35154 2015-01-13  Richard Biener  <rguenther@suse.de>
35155
35156         PR tree-optimization/64568
35157         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35158         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35159
35160 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35161
35162         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35163         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35164
35165 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35166
35167         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35168         target-specific symbol_ref flag.
35169         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35170         resides in rodata section.
35171         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35172         (nds32_encode_section_info): New function.
35173
35174 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35175
35176         * config/nds32/nds32.md (call): Use pseudo instruction bal which
35177         clobbers TA_REGNUM if large code model is specified.
35178         (call_register): Likewise.
35179         (call_immediate): Likewise.
35180         (call_value): Likewise.
35181         (call_value_register): Likewise.
35182         (call_value_immediate): Likewise.
35183
35184 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35185
35186         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35187         (TARGET_CMODEL_MEDIUM): New macro.
35188         (TARGET_CMODEL_LARGE): New macro.
35189         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35190         code model setting in assembly code.
35191
35192 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35193
35194         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35195         Remove MASK_GP_DIRECT flag.
35196         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35197         one of the multilib default options.
35198         * config/nds32/nds32.opt (mgp-direct): Remove.
35199         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35200         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
35201
35202 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35203
35204         * config/nds32/nds32.opt (mcmodel): Add new option.
35205         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35206         to describe code model.
35207
35208 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
35209
35210         PR target/64479
35211         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35212
35213 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
35214
35215         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35216         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35217         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35218         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35219         __builtin_sh_set_fpscr.
35220
35221 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35222
35223         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35224         after a funtion name just to indicate it is a function.
35225         ([-fsanitize-undefined-trap-on-error]): Likewise.
35226         ([-fdbg-cnt=]): Likewise.
35227         ([-mmemcpy]): Likewise.
35228         ([-mflush-func]): Likewise.
35229         ([-msynci]): Likewise.
35230
35231 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35232
35233         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35234         example.
35235
35236 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
35237
35238         PR tree-optimization/64563
35239         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35240         instead of != VR_VARYING.
35241
35242         PR target/64513
35243         * config/i386/i386.c (ix86_expand_prologue): Add
35244         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35245
35246         PR tree-optimization/64454
35247         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35248         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35249         for signed or [0, op1 - 1] for unsigned modulo.
35250         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35251         even if op1 does not satisfy integer_pow2p.
35252
35253         PR other/64370
35254         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35255
35256 2015-01-12  Jeff Law  <law@redhat.com>
35257
35258         PR target/64461
35259         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35260         (trunchiqi2, truncsihi2): Similarly.
35261
35262         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35263         rather than calling F.
35264
35265 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35266
35267         * tsan.c (instrument_expr): Use force_gimple_operand.
35268         Use may_be_nonaddressable_p instead of is_gimple_addressable.
35269
35270 2015-01-12  Richard Biener  <rguenther@suse.de>
35271
35272         PR tree-optimization/64530
35273         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35274         back dr1.
35275
35276 2015-01-12  Richard Biener  <rguenther@suse.de>
35277
35278         PR middle-end/64357
35279         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35280         latches properly.
35281
35282 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35283
35284         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35285         Cortex-A17 tuning parameters.
35286         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35287
35288 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35289
35290         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35291         * config/arm/arm.c (arm_macro_fusion_p): New function.
35292         (arm_macro_fusion_pair_p): Likewise.
35293         (TARGET_SCHED_MACRO_FUSION_P): Define.
35294         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35295         (ARM_FUSE_NOTHING): Likewise.
35296         (ARM_FUSE_MOVW_MOVT): Likewise.
35297         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35298         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35299         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35300         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35301         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35302         arm_cortex_a5_tune): Specify fuseable_ops value.
35303
35304 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
35305
35306         PR bootstrap/64561
35307         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35308         test for PIE with copy reloc.
35309         * configure: Regenerated.
35310
35311 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35312
35313         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35314         in gen_rtx_REG.
35315         (arm_tls_descseq_addr): Likewise.
35316         (arm_gen_movmemqi): Likewise.
35317         (arm_expand_epilogue_apcs_frame): Likewise.
35318         (arm_expand_epilogue): Likewise.
35319         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
35320         in gen_rtx_REG.
35321
35322 2015-01-12  Martin Liska  <mliska@suse.cz>
35323
35324         PR ipa/64550
35325         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35326         volatility for correct operands.
35327
35328 2015-01-12  Martin Liska  <mliska@suse.cz>
35329
35330         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35331         indication that a function is not leaf.
35332         (sem_function::compare_polymorphic_p): Likewise.
35333
35334 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35335
35336         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35337         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35338         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35339         fold-const.h, tree-check.h.
35340
35341 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
35342
35343         PR ipa/63967
35344         PR ipa/64425
35345         * ipa-inline.c (compute_uninlined_call_time,
35346         compute_inlined_call_time): Use counts for extra precision when
35347         needed possible.
35348         (big_speedup_p): Fix formating.
35349         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35350         (relative_time_benefit): Remove.
35351         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35352         merge guessed and read profile paths.
35353         (inline_small_functions): Count only !optimize_size functions into
35354         initial size; be more lax about sanity check when profile is used;
35355         be sure to update inlined function profile when profile is read.
35356
35357 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
35358
35359         PR ipa/63470
35360         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35361         cost when edge becomes direct.
35362         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35363         is resolved or when introducing new speculation.
35364
35365 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
35366
35367         PR ipa/64551
35368         PR ipa/64552
35369         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35370         '||' to fix typo issue.
35371
35372         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
35373         accept and return NULL.
35374
35375 2015-01-12  Martin Liska  <mliska@suse.cz>
35376
35377         * cgraph.c (cgraph_edge::remove_callee): Move function to header
35378         file for being inlined.
35379         (cgraph_set_edge_callee): Delete.
35380         (cgraph_edge::redirect_callee): Move function to header file
35381         for being inlined.
35382         (cgraph_edge::make_direct): Use new function.
35383         (cgraph_edge::dump_edge_flags): New function created from
35384         static dump_edge_flags function.
35385         (cgraph_node::dump): Use new function.
35386         (cgraph_edge::verify_count_and_frequency): New function created
35387         from verify_edge_count_and_frequency.
35388         (cgraph_edge::verify_corresponds_to_fndecl): New function created
35389         from verify_edge_corresponds_to_fndecl.
35390         (verify_edge_corresponds_to_fndecl): Delete.
35391         (cgraph_node::verify_node): Use new function.
35392         * cgraph.h (cgraph_edge::set_callee): New function.
35393         (cgraph_edge::dump_edge_flags): Likewise.
35394         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35395
35396 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
35397
35398         * ipa-utils.c (estimate_function_body_sizes): Do not
35399         free node params when called late with early=true.
35400
35401 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
35402
35403         * doc/md.texi (Instruction Patterns): Rewrite text for
35404         clarity.
35405         (Example): Likewise.
35406
35407 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
35408
35409         * doc/invoke.texi (Option Summary): Break long lines.
35410         [(-fdiagnostics-color)]: Put long literal in @smallexample
35411         instead of inline.
35412         [(-fsanitize-recover)]: Likewise.
35413         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35414         [(-ffast-math)]: Likewise.
35415         [(--param max-inline-insns-recursive)]: Likewise.
35416         [(--param max-inline-recursive-depth)]: Likewise.
35417         [(-mno-text-section-literals)]: Likewise.
35418
35419 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
35420
35421         * doc/install.texi: Update for libgomp being renamed from "GNU
35422         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35423         Runtime Library".
35424         * doc/sourcebuild.texi: Likewise.
35425
35426 2015-01-10  Anthony Green  <green@moxielogic.com>
35427
35428         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35429         mul.x availability for moxiebox configuration.
35430
35431 2015-01-09  Anthony Green  <green@moxielogic.com>
35432
35433         * config/moxie/moxie.md: Tabify assembly output.
35434
35435 2015-01-09  Anthony Green  <green@moxielogic.com>
35436
35437         * config/moxie/moxie.md (CC_REG): Correct register definition.
35438
35439 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35440
35441         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35442         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
35443         of log files.
35444
35445 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
35446
35447         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35448
35449 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
35450             Jakub Jelinek  <jakub@redhat.com>
35451
35452         PR middle-end/64412
35453         * lto-streamer.h (lto_stream_offload_p): New declaration.
35454         * lto-streamer.c (lto_stream_offload_p): New variable.
35455         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35456         at the same time as section_name_prefix.
35457         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35458         if lto_stream_offload_p.
35459         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35460         stream TREE_TARGET_OPTION if lto_stream_offload_p.
35461         (write_ts_function_decl_tree_pointers): Don't
35462         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35463         * tree-streamer-in.c (unpack_value_fields): Don't stream
35464         TREE_TARGET_OPTION in if ACCEL_COMPILER.
35465         (lto_input_ts_function_decl_tree_pointers): Don't stream
35466         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35467         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35468         instead of section_name_prefix string comparisons.
35469
35470 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
35471
35472         PR rtl-optimization/64536
35473         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35474         tablejumps.
35475
35476 2015-01-09  Michael Collison  <michael.collison@linaro.org>
35477
35478         PR tree-optimization/64322
35479         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35480         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35481
35482 2015-01-09  Tom de Vries  <tom@codesourcery.com>
35483
35484         PR rtl-optimization/64539
35485         * regcprop.c (kill_clobbered_values): Factor out of ...
35486         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
35487         instead of note_stores with kill_clobbered_value.
35488
35489 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
35490
35491          * ginclude/unwind-arm-common.h: Revert previous commit.
35492
35493 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
35494
35495         * config.gcc (arm*-*-freebsd*): New configuration.
35496         * config/arm/freebsd.h: New file.
35497         * config.host: Add extra components for arm*-*-freebsd*.
35498         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35499         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35500
35501 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35502
35503         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35504         for -mcpu=e6500.
35505         * config/rs6000/t-rtems: Add e6500 multilibs.
35506
35507 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35508
35509         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35510         MPC8540.
35511
35512 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35513
35514         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35515         MULTILIB_EXCEPTIONS.
35516
35517 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35518
35519         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35520         MULTILIB_EXCEPTIONS.
35521
35522 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35523
35524         * config/arm/t-rtems-eabi: Rename to...
35525         * config/arm/t-rtems: ...this.
35526         * config/arm/rtems-eabi.h: Rename to...
35527         * config/arm/rtems.h: ...this.
35528         * config.gcc (arm*-*-rtems*): Reflect changes above.
35529
35530 2015-01-09  Richard Biener  <rguenther@suse.de>
35531
35532         PR tree-optimization/64410
35533         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35534         on the LHS.
35535         (execute_update_addresses_taken): Deal with that.
35536         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35537         loads/stores for complex variables.
35538
35539 2015-01-09  Martin Liska  <mliska@suse.cz>
35540
35541         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35542         name comparison.
35543         (func_checker::compare_memory_operand): New function.
35544         (func_checker::compare_operand): Split case to newly
35545         added functions.
35546         (func_checker::compare_cst_or_decl): New function.
35547         (func_checker::compare_gimple_call): Identify
35548         memory operands.
35549         (func_checker::compare_gimple_assign): Likewise.
35550         * ipa-icf-gimple.h: New function.
35551
35552 2015-01-09  Martin Liska  <mliska@suse.cz>
35553
35554         PR ipa/64503
35555         * sreal.c (sreal::dump): Change unsigned format to signed for
35556         m_exp value.
35557         (sreal::to_double): Replace exp2 with scalbln.
35558
35559 2015-01-09  Martin Liska  <mliska@suse.cz>
35560
35561         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35562         * ipa-icf.c (sem_function::equals_private): Add support for target and
35563         (sem_item_optimizer::merge_classes): Remove redundant function
35564         optimization flags comparison.
35565         * tree.h (target_opts_for_fn): New function.
35566
35567 2015-01-09  Tom de Vries  <tom@codesourcery.com>
35568
35569         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35570
35571 2015-01-09  Kito Cheng  <kito@0xlab.org>
35572
35573         PR rtl-optimization/64348
35574         * lra-constraints.c (split_reg): Fix caller-save store/restore
35575         instruction generation.
35576
35577 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
35578
35579         PR gcov-profile/61790
35580         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35581         long long.  Fallback to int64_t if host doesn't have long long and
35582         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
35583
35584 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
35585
35586         PR tree-optimization/63989
35587         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35588         from 1000 to 10000.
35589         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35590         (get_stridx): If we don't have a record for certain SSA_NAME,
35591         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35592         constant offset, call get_stridx_plus_constant.
35593         (get_stridx_plus_constant): New function.
35594         (zero_length_string): Don't use get_stridx here.
35595
35596         PR target/55023
35597         PR middle-end/64388
35598         * dse.c (struct insn_info): Mention frame_read set also
35599         before reload for tail calls on some targets.
35600         (scan_insn): Revert 2014-12-22 change.  Set frame_read
35601         also before reload for tail calls if
35602         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
35603         instead of add_non_frame_wild_read for non-const/memset
35604         tail calls after reload.
35605
35606 2015-01-08  Jason Merrill  <jason@redhat.com>
35607
35608         * ubsan.c (do_ubsan_in_current_function): New.
35609         (pass_ubsan::gate): Use it.
35610         * ubsan.h: Declare it.
35611         * convert.c (convert_to_integer): Use it.
35612
35613 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
35614
35615         PR target/64338
35616         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35617         compare_code when it is unconditionally overwritten afterwards.
35618         Use ix86_reverse_condition instead of reverse_condition.  Don't
35619         change code if *reverse_condition* returned UNKNOWN and don't
35620         swap ct/cf and negate diff in that case.
35621
35622 2015-01-08  Mike Stump  <mikestump@comcast.net>
35623
35624         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35625         (pass_tsan_O0::gate): Likewise.
35626         * extend.texi (Function Attributes): Add no_sanitize_thread
35627         documentation.
35628
35629 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
35630
35631         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35632         for registering builtins.
35633         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35634         add -fopenmp to the argv_obstack used when invoking
35635         compile_for_target.
35636
35637         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35638         add "-m32" or "-m64" to argv_obstack.
35639         (generate_host_descr_file): Likewise, when invoking host_compiler.
35640         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35641         ld.
35642
35643 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
35644
35645         * config/sh/sh-mem.cc: Use constant as second operand when emitting
35646         tstsi_t insns.
35647
35648 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
35649
35650         PR target/55212
35651         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35652         constant load if constant operand fits into I08.
35653
35654 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
35655
35656         PR sanitizer/64336
35657         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35658         and TREE_THIS_VOLATILE for MEM_REFs.
35659         (build5_stat): Fix up initialization of TREE_READONLY and
35660         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35661
35662 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
35663
35664         PR target/64533
35665         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35666         of r for the second alternative of the destination operand.
35667
35668 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
35669
35670         PR target/36557
35671         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35672
35673 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
35674
35675         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35676         keywords.
35677         ([-fivar-visibility], [-fvisibility]): Likewise.
35678
35679 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
35680
35681         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35682         the file where @code, @command, etc is more appropriate.
35683
35684 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
35685
35686         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35687         of -mrecip= documentation.
35688
35689 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35690
35691         PR target/64505
35692         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35693         correct reload handler if -m32 -mpowerpc64 is used.
35694
35695 2015-01-06  Tom de Vries  <tom@codesourcery.com>
35696
35697         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35698
35699 2015-01-08  Christian Bruel  <christian.bruel@st.com>
35700
35701         PR target/64507
35702         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35703
35704 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35705
35706         PR tree-optimization/63259
35707         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35708         if optab exists for 16bit byteswap.
35709
35710 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
35711
35712         * opts.c (common_handle_option): Add support for
35713         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35714         * doc/invoke.texi: Document -fno-sanitize=all,
35715         -f{,no-}sanitize-recover=all.  Document that
35716         -fsanitize=float-cast-overflow is not enabled
35717         by -fsanitize=undefined.  Fix up documentation
35718         of -f{,no-}sanitize-recover.
35719
35720 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35721
35722         * config.gcc: Add Visium support.
35723         * configure.ac: Likewise.
35724         * configure: Regenerate.
35725         * doc/extend.texi (interrupt attribute): Add Visium.
35726         * doc/invoke.texi: Document Visium options.
35727         * doc/install.texi: Document Visium target.
35728         * doc/md.texi: Document Visium constraints.
35729         * common/config/visium: New directory.
35730         * config/visium: Likewise.
35731
35732 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
35733
35734         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35735         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35736
35737 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
35738
35739         * combine.c (combine_validate_cost): Do not count the cost of a
35740         split I2 twice.  Do not display it twice in the dump, either.
35741
35742 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
35743
35744         Revert parts of r219199.
35745         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35746         <inttypes.h>.
35747         ([-Wtraditional]): Restore markup on <limits.h>.
35748
35749 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
35750
35751         PR c++/31397
35752         * doc/invoke.texi: Document -Wsuggest-override.
35753
35754 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
35755
35756         PR rtl-optimization/64287
35757         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35758         (process_options): Disable flag_ipa_ra if profiling.
35759
35760 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35761
35762         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35763
35764 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
35765
35766         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35767         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35768         put under #if TARGET_LOOPS guard.
35769
35770 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
35771
35772         * config/i386/i386.c (output_387_binary_op): Use std::swap.
35773
35774 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
35775
35776         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35777         * rtl.h (refers_to_regno_p): Add overload.
35778         * cse.c: Use it.
35779         * bt-load.c: Likewise.
35780         * combine.c: Likewise.
35781         * df-scan.c: Likewise.
35782         * sched-deps.c: Likewise.
35783         * config/s390/s390.c: Likewise.
35784         * config/m32r/m32r.c: Likewise.
35785         * config/rs6000/spe.md: Likewise.
35786         * config/rs6000/rs6000.c: Likewise.
35787         * config/pa/pa.c: Likewise.
35788         * config/stormy16/stormy16.c: Likewise.
35789         * config/cris/cris.c: Likewise.
35790         * config/arc/arc.md: Likewise.
35791         * config/arc/arc.c: Likewise.
35792         * config/sh/sh.md: Likewise.
35793         * config/sh/sh.c: Likewise.
35794         * config/frv/frv.c: Likewise.
35795
35796 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
35797
35798         PR sanitizer/64265
35799         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35800         call as cleanup of the whole body.
35801         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35802         * tsan.c (replace_func_exit): New function.
35803         (instrument_func_exit): Moved earlier.
35804         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35805         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35806         been found.
35807         (tsan_pass): Don't call instrument_func_exit.
35808         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35809         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35810         inlining.
35811
35812         PR sanitizer/64344
35813         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35814         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35815         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
35816         if the result is integer_zerop, return NULL_TREE.
35817         * convert.c (convert_to_integer): Pass expr as ARG.
35818
35819         PR tree-optimization/64465
35820         * tree-inline.c (redirect_all_calls): During inlining
35821         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35822         changed the stmt to a non-throwing call.
35823
35824 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
35825
35826         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35827         etc markup throughout the file.
35828
35829 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35830
35831         Enable experimental TSAN support for Ada.
35832         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35833
35834 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
35835
35836         PR tree-optimization/64494
35837         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35838         clear SSA_NAME_ANTI_RANGE_P flag.
35839
35840 2015-01-05  Marek Polacek  <polacek@redhat.com>
35841
35842         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35843
35844 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
35845
35846         Update copyright years.
35847
35848         * gcc.c (process_command): Update copyright notice dates.
35849         * gcov-dump.c: Ditto.
35850         * gcov.c: Ditto.
35851         * doc/cpp.texi: Bump @copying's copyright year.
35852         * doc/cppinternals.texi: Ditto.
35853         * doc/gcc.texi: Ditto.
35854         * doc/gccint.texi: Ditto.
35855         * doc/gcov.texi: Ditto.
35856         * doc/install.texi: Ditto.
35857         * doc/invoke.texi: Ditto.
35858
35859         * auto-profile.c, auto-profile.h: Fix up Copyright line.
35860
35861 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
35862
35863         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35864         verb tense, etc.
35865         ([-fvtable-verify], [-fvtv-debug]): Likewise.
35866         ([-Wabi]): Likewise.
35867         ([-fmessage-length]): Likewise.
35868         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35869         ([-Wno-discarded-qualifiers]): Likewise.
35870         ([-Wnodiscarded-array-qualifiers]): Likewise.
35871         ([-Wno-virtual-move-assign]): Likewise.
35872         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35873         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35874         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35875         ([-fsanitize-undefined-trap-on-error]): Likewise.
35876         ([-floop-interchange]): Likewise.
35877         ([-ftree-coalesce-inlined-vars]): Likewise.
35878         ([-fvect-cost-model]): Likewise.
35879         ([-flto]): Likewise.
35880         ([--param]): Likewise.
35881         (Spec Files): Likewise.
35882         ([-mstrict-align]): Likewise.
35883         ([-mfix-cortex-a53-835769]): Likewise.
35884         ([-march], [-mtune]): Likewise.
35885         ([-mpic-register]): Likewise.
35886         ([-munaligned-access]): Likewise.
35887         ([-msp8]): Likewise.
35888         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35889         (AVR Built-in Macros): Likewise.
35890         ([-mpreferred-stack-boundary]): Likewise.
35891         ([-mtune-crtl]): Likewise.
35892         ([-mashf]): Likewise.
35893         ([-mmcu=]): Likewise.
35894         ([-minrt]): Likewise.
35895         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35896         ([-mupper-regs]): Likewise.
35897         ([-matomic-model]): Likewise.
35898         ([-mdiv]): Likewise.
35899         ([-mzdcbranch]): Likewise.
35900         ([-mdisable-callt]): Likewise.
35901         ([-msoft-float]): Likewise.
35902         ([-m8byte-align]): Likewise.
35903         ([-fstack-reuse]): Likewise.
35904
35905 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35906
35907         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35908         Fix markup, light copy-editing.
35909         ([-fauto-profile]): Rewrite to fix formatting and content
35910         problems.
35911
35912 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35913
35914         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35915         Copy-edit description.
35916         ([-fisolate-erroneous-paths-attribute]): Likewise.
35917         * common.opt (fisolate-erroneous-paths-dereference):
35918         Copy-edit description.
35919         (fisolate-erroneous-paths-attribute): Likewise.
35920
35921 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35922
35923         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35924         tidy grammar.
35925
35926 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35927
35928         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35929         ([-fvtv-debug]): Likewise.
35930         ([-Wc++-compat]): Likewise.
35931         ([-Wc++11-compat]): Likewise.
35932         ([-Wc++14-compat]): Likewise.
35933         ([-Wno-sized-deallocation]): Likewise.
35934         ([-femit-class-debug-always]): Likewise.
35935         ([-femit-struct-debug-detailed]): Likewise.
35936         ([-fno-keep-inline-dllexport]): Likewise.
35937         ([-fira-algorithm]): Likewise.
35938         ([-fira-region]): Likewise.
35939         ([-flra-remat]): Likewise.
35940         ([-fipa-ra]): Likewise.
35941         ([-fhoist-adjacent-loads]): Likewise.
35942         ([-fisolate-erroneous-paths-dereference]): Likewise.
35943         ([-fisolate-erroneous-paths-attribute]): Likewise.
35944         ([-ftree-switch-conversion]): Likewise.
35945         ([-ftree-tail-merge]): Likewise.
35946         ([-ftree-loop-if-convert]): Likewise.
35947         ([-ftree-loop-if-convert-stores]): Likewise.
35948         ([-ftree-loop-distribution]): Likewise.
35949         ([-ftree-loop-distribute-patterns]): Likewise.
35950         ([-flto-compression-level]): Likewise.
35951         ([-flto-report]): Likewise.
35952         ([-flto-report-wpa]): Likewise.
35953         ([-fuse-linker-plugin]): Likewise.
35954         ([-mfix-cortex-a53-835769]): Likewise.
35955         ([-mno-fix-cortex-a53-835769]): Likewise.
35956         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35957         explicit listing; add a note to the discussion indicating they
35958         exist.  Reorder table to group similar options.  Add missing
35959         @opindex entries.  Add @need commands throughout the table to
35960         allow it to be split across multiple pages.
35961         ([-m8bit-idiv]): Fix @opindex.
35962         ([-mavx256-split-unaligned-load]): Likewise.
35963         ([-mavx256-split-unaligned-store]): Likewise.
35964         ([-mstack-protector-guard]): Likewise.
35965         ([-mcpu=]): Likewise.
35966         ([-mcpu]): Likewise.
35967         ([-mpointer-size=]): Likewise.
35968
35969 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
35970
35971         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35972         instead of `m' constraint.  Likewise for unnamed movb comparison
35973         patterns using reg_before_reload_operand predicate.
35974         * config/pa/predicates.md (reg_before_reload_operand): Tighten
35975         predicate to reject register index and LO_SUM DLT memory forms
35976         after reload.
35977
35978 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
35979
35980         * doc/invoke.texi (Option Summary): Fix spelling of
35981         -fdevirtualize-at-ltrans.
35982         ([-fdevirtualize]): Fix markup.
35983         ([-fdevirtualize-speculatively]): Fix typo.
35984         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
35985         implementor-speaky.
35986         * common.opt (fdevirtualize-at-ltrans): Likewise.
35987         * ipa-devirt.c: Fix typos in comments throughout the file.
35988         (ipa_devirt): Fix typos in format strings for dump output.
35989
35990 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
35991
35992         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35993         discussion of defaults, light copy-editing.
35994
35995 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35996
35997         * tsan.c (instrument_expr): corrected previous checkin.
35998
35999 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36000
36001         Instrument bit field and unaligned accesses for TSAN.
36002         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
36003         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
36004         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
36005         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
36006         unaligned memory regions.
36007
36008 2015-01-01  Anthony Green  <green@moxielogic.com>
36009
36010         * config/moxie/predicates.md (moxie_general_movsrc_operand):
36011         Restrict move source register offsets to 16 bits.
36012 \f
36013 Copyright (C) 2015 Free Software Foundation, Inc.
36014
36015 Copying and distribution of this file, with or without modification,
36016 are permitted in any medium without royalty provided the copyright
36017 notice and this notice are preserved.