Mark function parallelized_function before add_new_function
[official-gcc.git] / gcc / ChangeLog
blob8709621f109d6760a5f1f308f542f2a67ffec2a0
1 2015-06-09  Tom de Vries  <tom@codesourcery.com>
3         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
4         parallelized_function before add_new_function.
6 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
8         * gcc-plugin.h: Move decls to plugin.h and include it.
9         * plugin.h: Relocate decls from gcc-plugin.h
10         * ggc-page.c: Include required header files.
11         * passes.c: Likewise.
12         * cgraphunit.c: Likewise.
14 2015-06-09  Tom de Vries  <tom@codesourcery.com>
16         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
18 2015-06-09  Jason Merrill  <jason@redhat.com>
20         PR bootstrap/66448
21         * toplev.c (check_global_declaration): Don't warn about a clone.
23 2015-06-09  Marek Polacek  <polacek@redhat.com>
25         PR tree-optimization/66299
26         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
28         patterns.
30 2015-06-09  Richard Biener  <rguenther@suse.de>
32         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
33         (vect_analyze_slp_instance): Instead do not falsely drop
34         load permutations.
36 2015-06-09  Richard Biener  <rguenther@suse.de>
38         PR middle-end/66423
39         * match.pd: Handle A % (unsigned)(1 << B).
41 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
43         * varasm.c (output_object_block_htab): Remove.
44         (output_object_block_compare): New.
45         (output_object_blocks): Sort named object_blocks before outputting
46         them.
48 2015-06-09  Richard Biener  <rguenther@suse.de>
50         PR tree-optimization/66419
51         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
52         consider GROUP_GAP when detecting a perfect subchain.
54 2015-06-09  Nick Clifton  <nickc@redhat.com>
56         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
57         place read only data in the .frodata section.
59 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
61         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
62         (atomic_store<mode>): Likewise.
64 2015-06-09  Richard Biener  <rguenther@suse.de>
66         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
68 2015-06-09  Richard Biener  <rguenther@suse.de>
70         PR middle-end/66413
71         * tree-inline.c (insert_init_debug_bind): Unshare value.
73 2015-06-09  Richard Biener  <rguenther@suse.de>
75         PR tree-optimization/66396
76         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
77         Rename virtual operands.
79 2015-06-09  Tom de Vries  <tom@codesourcery.com>
81         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
82         always return false.
84 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
86         PR rtl-optimization/64164
87         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
88         * tree-ssa-copyrename.c: Removed.
89         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
90         -ftree-coalesce-vars.
91         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
92         * common.opt (ftree-copyrename): Ignore.
93         (ftree-coalesce-inlined-vars): Likewise.
94         * doc/invoke.texi: Remove the ignored options above.
95         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
96         * tree-ssa-coalesce.h: ... here.
97         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
98         headers required by it.
99         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
100         across variables when flag_tree_coalesce_vars.  Check register
101         use and promoted modes to allow coalescing.  Moved to
102         tree-ssa-coalesce.c.
103         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
104         with its member functions to tree-ssa-coalesce.c.
105         (var_map_base_init): Likewise.  Renamed to
106         compute_samebase_partition_bases.
107         (partition_view_normal): Drop want_bases parameter.
108         (partition_view_bitmap): Likewise.
109         * tree-ssa-live.h: Adjust declarations.
110         * tree-ssa-coalesce.c: Include explow.h.
111         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
112         default defs at the entry point.
113         (dump_part_var_map): New.
114         (compute_optimized_partition_bases): New, called by...
115         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
116         of compute_samebase_partition_bases.  Adjust.
117         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
118         * cfgexpand.c (leader_merge): New.
119         (get_rtl_for_parm_ssa_default_def): New.
120         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
121         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
122         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
123         redundant MEM attr setting.
124         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
125         from...
126         (expand_one_stack_var): ... this.  New wrapper to check and
127         skip already expanded SSA partitions.
128         (record_alignment_for_reg_var): New, factored out of...
129         (expand_one_var): ... this.
130         (expand_one_ssa_partition): New.
131         (adjust_one_expanded_partition_var): New.
132         (expand_one_register_var): Check and skip already expanded SSA
133         partitions.
134         (expand_used_vars): Don't create DECLs for anonymous SSA
135         names.  Expand all SSA partitions, then adjust all SSA names.
136         (pass::execute): Replace the loops that set
137         SA.partition_to_pseudo from partition leaders and cleared
138         DECL_RTL for multi-location variables, and that which used to
139         rename vars and set attrs, with one that clears DECL_RTL and
140         checks that PARMs and RESULTs default_defs match DECL_RTL.
141         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
142         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
143         * explow.c (promote_ssa_mode): New.
144         * explow.h (promote_ssa_mode): Declare.
145         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
146         * function.c: Include cfgexpand.h.
147         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
148         (use_register_for_parm_decl): Wrapper for the above to
149         special-case the result_ptr.
150         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
151         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
152         multiple locations.
153         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
154         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
155         (assign_parm_setup_block): Prefer SSA-assigned location.
156         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
157         if stack_parm is NULL.
158         (assign_parm_setup_stack): Prefer SSA-assigned location.
159         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
160         rtl before testing for pointer bounds.  Special-case result_ptr.
161         (expand_function_start): Maybe reset DECL_RTL of result.
162         Prefer SSA-assigned location for result and static chain.
163         Factor out DECL_RESULT and SET_DECL_RTL.
164         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
165         anonymous SSA names.  Use promote_ssa_mode.
166         (get_temp_reg): Likewise.
167         (remove_ssa_form): Adjust.
168         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
169         and get its reg_usage for reg invalidation.
170         (compute_bb_dataflow): Pass it insn.
171         (emit_notes_in_bb): Likewise.
172         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
173         fail assert on conversion between unsigned types.
175 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
177         PR debug/58315
178         * tree-inline.c (reset_debug_binding): New.
179         (reset_debug_bindings): Likewise.
180         (expand_call_inline): Call it.
182 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
184         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
185         TYPE_STRING_FLAG.
187 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
189         * lto-streamer-out.c (lto_output_location): Stream
190         reserved locations correctly.
191         * lto-streamer-in.c (lto_output_location): Likewise.
193 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
195         * coretypes.h: Include hash-table.h and hash-set.h for host files.
196         * ggc.h: Don't include statistics.h>
197         * hash-map.h: Remove all includes.
198         * hash-set.h: Likewise.
199         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
200         the include list. Remove <new>.
201         * inchash.h: Remove all includes.
202         * mem-stats.h: Likewise.
203         * vec.h: No special processing for generators or ggc.  
204         * alias.c : Adjust include files.
205         * alloc-pool.c : Likewise.
206         * alloc-pool.h : Likewise.
207         * asan.c : Likewise.
208         * attribs.c : Likewise.
209         * auto-inc-dec.c : Likewise.
210         * auto-profile.c : Likewise.
211         * bb-reorder.c : Likewise.
212         * bitmap.c : Likewise.
213         * bitmap.h : Likewise.
214         * bt-load.c : Likewise.
215         * builtins.c : Likewise.
216         * caller-save.c : Likewise.
217         * calls.c : Likewise.
218         * ccmp.c : Likewise.
219         * cfg.c : Likewise.
220         * cfganal.c : Likewise.
221         * cfgbuild.c : Likewise.
222         * cfgcleanup.c : Likewise.
223         * cfgexpand.c : Likewise.
224         * cfghooks.c : Likewise.
225         * cfgloop.c : Likewise.
226         * cfgloop.h : Likewise.
227         * cfgloopanal.c : Likewise.
228         * cfgloopmanip.c : Likewise.
229         * cfgrtl.c : Likewise.
230         * cgraph.c : Likewise.
231         * cgraphbuild.c : Likewise.
232         * cgraphclones.c : Likewise.
233         * cgraphunit.c : Likewise.
234         * cilk-common.c : Likewise.
235         * combine-stack-adj.c : Likewise.
236         * combine.c : Likewise.
237         * compare-elim.c : Likewise.
238         * context.c : Likewise.
239         * convert.c : Likewise.
240         * coverage.c : Likewise.
241         * cppbuiltin.c : Likewise.
242         * cprop.c : Likewise.
243         * cse.c : Likewise.
244         * cselib.c : Likewise.
245         * data-streamer-in.c : Likewise.
246         * data-streamer-out.c : Likewise.
247         * data-streamer.c : Likewise.
248         * data-streamer.h : Likewise.
249         * dbxout.c : Likewise.
250         * dce.c : Likewise.
251         * ddg.c : Likewise.
252         * debug.c : Likewise.
253         * df-core.c : Likewise.
254         * df-problems.c : Likewise.
255         * df-scan.c : Likewise.
256         * df.h : Likewise.
257         * dfp.c : Likewise.
258         * dojump.c : Likewise.
259         * dominance.c : Likewise.
260         * domwalk.c : Likewise.
261         * double-int.c : Likewise.
262         * dse.c : Likewise.
263         * dumpfile.c : Likewise.
264         * dwarf2asm.c : Likewise.
265         * dwarf2cfi.c : Likewise.
266         * dwarf2out.c : Likewise.
267         * emit-rtl.c : Likewise.
268         * et-forest.c : Likewise.
269         * except.c : Likewise.
270         * except.h : Likewise.
271         * explow.c : Likewise.
272         * expmed.c : Likewise.
273         * expr.c : Likewise.
274         * final.c : Likewise.
275         * fixed-value.c : Likewise.
276         * fold-const.c : Likewise.
277         * function.c : Likewise.
278         * fwprop.c : Likewise.
279         * gcc-plugin.h : Likewise.
280         * gcc.c : Likewise.
281         * gcse-common.c : Likewise.
282         * gcse.c : Likewise.
283         * genattrtab.c : Likewise.
284         * genautomata.c : Likewise.
285         * genconditions.c : Likewise.
286         * genemit.c : Likewise.
287         * generic-match-head.c : Likewise.
288         * genextract.c : Likewise.
289         * gengtype-state.c : Likewise.
290         * gengtype.c : Likewise.
291         * genhooks.c : Likewise.
292         * genmatch.c : Likewise.
293         * genmodes.c : Likewise.
294         * genrecog.c : Likewise.
295         * gensupport.c : Likewise.
296         * ggc-common.c : Likewise.
297         * ggc-internal.h : Likewise.
298         * ggc-none.c : Likewise.
299         * ggc-page.c : Likewise.
300         * gimple-builder.c : Likewise.
301         * gimple-expr.c : Likewise.
302         * gimple-fold.c : Likewise.
303         * gimple-iterator.c : Likewise.
304         * gimple-low.c : Likewise.
305         * gimple-match-head.c : Likewise.
306         * gimple-pretty-print.c : Likewise.
307         * gimple-ssa-isolate-paths.c : Likewise.
308         * gimple-ssa-strength-reduction.c : Likewise.
309         * gimple-ssa.h : Likewise.
310         * gimple-streamer-in.c : Likewise.
311         * gimple-streamer-out.c : Likewise.
312         * gimple-streamer.h : Likewise.
313         * gimple-walk.c : Likewise.
314         * gimple.c : Likewise.
315         * gimplify-me.c : Likewise.
316         * gimplify.c : Likewise.
317         * godump.c : Likewise.
318         * graph.c : Likewise.
319         * graphds.c : Likewise.
320         * graphite-blocking.c : Likewise.
321         * graphite-dependences.c : Likewise.
322         * graphite-interchange.c : Likewise.
323         * graphite-isl-ast-to-gimple.c : Likewise.
324         * graphite-optimize-isl.c : Likewise.
325         * graphite-poly.c : Likewise.
326         * graphite-scop-detection.c : Likewise.
327         * graphite-sese-to-poly.c : Likewise.
328         * graphite.c : Likewise.
329         * haifa-sched.c : Likewise.
330         * hard-reg-set.h : Likewise.
331         * hw-doloop.c : Likewise.
332         * ifcvt.c : Likewise.
333         * inchash.c : Likewise.
334         * incpath.c : Likewise.
335         * init-regs.c : Likewise.
336         * input.c : Likewise.
337         * internal-fn.c : Likewise.
338         * ipa-chkp.c : Likewise.
339         * ipa-comdats.c : Likewise.
340         * ipa-cp.c : Likewise.
341         * ipa-devirt.c : Likewise.
342         * ipa-icf-gimple.c : Likewise.
343         * ipa-icf.c : Likewise.
344         * ipa-inline-analysis.c : Likewise.
345         * ipa-inline-transform.c : Likewise.
346         * ipa-inline.c : Likewise.
347         * ipa-polymorphic-call.c : Likewise.
348         * ipa-profile.c : Likewise.
349         * ipa-prop.c : Likewise.
350         * ipa-pure-const.c : Likewise.
351         * ipa-ref.c : Likewise.
352         * ipa-reference.c : Likewise.
353         * ipa-split.c : Likewise.
354         * ipa-utils.c : Likewise.
355         * ipa-visibility.c : Likewise.
356         * ipa.c : Likewise.
357         * ira-build.c : Likewise.
358         * ira-color.c : Likewise.
359         * ira-conflicts.c : Likewise.
360         * ira-costs.c : Likewise.
361         * ira-emit.c : Likewise.
362         * ira-lives.c : Likewise.
363         * ira.c : Likewise.
364         * jump.c : Likewise.
365         * langhooks.c : Likewise.
366         * lcm.c : Likewise.
367         * libfuncs.h : Likewise.
368         * lists.c : Likewise.
369         * loop-doloop.c : Likewise.
370         * loop-init.c : Likewise.
371         * loop-invariant.c : Likewise.
372         * loop-iv.c : Likewise.
373         * loop-unroll.c : Likewise.
374         * lower-subreg.c : Likewise.
375         * lra-assigns.c : Likewise.
376         * lra-coalesce.c : Likewise.
377         * lra-constraints.c : Likewise.
378         * lra-eliminations.c : Likewise.
379         * lra-lives.c : Likewise.
380         * lra-remat.c : Likewise.
381         * lra-spills.c : Likewise.
382         * lra.c : Likewise.
383         * lto-cgraph.c : Likewise.
384         * lto-compress.c : Likewise.
385         * lto-opts.c : Likewise.
386         * lto-section-in.c : Likewise.
387         * lto-section-out.c : Likewise.
388         * lto-streamer-in.c : Likewise.
389         * lto-streamer-out.c : Likewise.
390         * lto-streamer.c : Likewise.
391         * lto-streamer.h : Likewise.
392         * mcf.c : Likewise.
393         * mode-switching.c : Likewise.
394         * modulo-sched.c : Likewise.
395         * omega.c : Likewise.
396         * omp-low.c : Likewise.
397         * optabs.c : Likewise.
398         * opts-global.c : Likewise.
399         * opts.h : Likewise.
400         * passes.c : Likewise.
401         * plugin.c : Likewise.
402         * postreload-gcse.c : Likewise.
403         * postreload.c : Likewise.
404         * predict.c : Likewise.
405         * print-rtl.c : Likewise.
406         * print-tree.c : Likewise.
407         * profile.c : Likewise.
408         * read-md.c : Likewise.
409         * read-md.h : Likewise.
410         * read-rtl.c : Likewise.
411         * real.c : Likewise.
412         * realmpfr.c : Likewise.
413         * recog.c : Likewise.
414         * ree.c : Likewise.
415         * reg-stack.c : Likewise.
416         * regcprop.c : Likewise.
417         * reginfo.c : Likewise.
418         * regrename.c : Likewise.
419         * regstat.c : Likewise.
420         * reload.c : Likewise.
421         * reload1.c : Likewise.
422         * reorg.c : Likewise.
423         * resource.c : Likewise.
424         * rtl-chkp.c : Likewise.
425         * rtl.c : Likewise.
426         * rtl.h : Likewise.
427         * rtlanal.c : Likewise.
428         * rtlhash.c : Likewise.
429         * rtlhash.h : Likewise.
430         * rtlhooks.c : Likewise.
431         * sanopt.c : Likewise.
432         * sched-deps.c : Likewise.
433         * sched-ebb.c : Likewise.
434         * sched-rgn.c : Likewise.
435         * sched-vis.c : Likewise.
436         * sdbout.c : Likewise.
437         * sel-sched-dump.c : Likewise.
438         * sel-sched-ir.c : Likewise.
439         * sel-sched-ir.h : Likewise.
440         * sel-sched.c : Likewise.
441         * sese.c : Likewise.
442         * shrink-wrap.c : Likewise.
443         * shrink-wrap.h : Likewise.
444         * simplify-rtx.c : Likewise.
445         * stack-ptr-mod.c : Likewise.
446         * statistics.c : Likewise.
447         * stmt.c : Likewise.
448         * stor-layout.c : Likewise.
449         * store-motion.c : Likewise.
450         * stringpool.c : Likewise.
451         * symtab.c : Likewise.
452         * target-globals.c : Likewise.
453         * targhooks.c : Likewise.
454         * tlink.c : Likewise.
455         * toplev.c : Likewise.
456         * tracer.c : Likewise.
457         * trans-mem.c : Likewise.
458         * tree-affine.c : Likewise.
459         * tree-affine.h : Likewise.
460         * tree-browser.c : Likewise.
461         * tree-call-cdce.c : Likewise.
462         * tree-cfg.c : Likewise.
463         * tree-cfgcleanup.c : Likewise.
464         * tree-chkp-opt.c : Likewise.
465         * tree-chkp.c : Likewise.
466         * tree-chrec.c : Likewise.
467         * tree-complex.c : Likewise.
468         * tree-data-ref.c : Likewise.
469         * tree-dfa.c : Likewise.
470         * tree-diagnostic.c : Likewise.
471         * tree-dump.c : Likewise.
472         * tree-eh.c : Likewise.
473         * tree-eh.h : Likewise.
474         * tree-emutls.c : Likewise.
475         * tree-hasher.h : Likewise.
476         * tree-if-conv.c : Likewise.
477         * tree-inline.c : Likewise.
478         * tree-inline.h : Likewise.
479         * tree-into-ssa.c : Likewise.
480         * tree-iterator.c : Likewise.
481         * tree-loop-distribution.c : Likewise.
482         * tree-nested.c : Likewise.
483         * tree-nrv.c : Likewise.
484         * tree-object-size.c : Likewise.
485         * tree-outof-ssa.c : Likewise.
486         * tree-parloops.c : Likewise.
487         * tree-phinodes.c : Likewise.
488         * tree-predcom.c : Likewise.
489         * tree-pretty-print.c : Likewise.
490         * tree-profile.c : Likewise.
491         * tree-scalar-evolution.c : Likewise.
492         * tree-sra.c : Likewise.
493         * tree-ssa-address.c : Likewise.
494         * tree-ssa-alias.c : Likewise.
495         * tree-ssa-ccp.c : Likewise.
496         * tree-ssa-coalesce.c : Likewise.
497         * tree-ssa-copy.c : Likewise.
498         * tree-ssa-copyrename.c : Likewise.
499         * tree-ssa-dce.c : Likewise.
500         * tree-ssa-dom.c : Likewise.
501         * tree-ssa-dse.c : Likewise.
502         * tree-ssa-forwprop.c : Likewise.
503         * tree-ssa-ifcombine.c : Likewise.
504         * tree-ssa-live.c : Likewise.
505         * tree-ssa-loop-ch.c : Likewise.
506         * tree-ssa-loop-im.c : Likewise.
507         * tree-ssa-loop-ivcanon.c : Likewise.
508         * tree-ssa-loop-ivopts.c : Likewise.
509         * tree-ssa-loop-manip.c : Likewise.
510         * tree-ssa-loop-niter.c : Likewise.
511         * tree-ssa-loop-prefetch.c : Likewise.
512         * tree-ssa-loop-unswitch.c : Likewise.
513         * tree-ssa-loop.c : Likewise.
514         * tree-ssa-math-opts.c : Likewise.
515         * tree-ssa-operands.c : Likewise.
516         * tree-ssa-phiopt.c : Likewise.
517         * tree-ssa-phiprop.c : Likewise.
518         * tree-ssa-pre.c : Likewise.
519         * tree-ssa-propagate.c : Likewise.
520         * tree-ssa-reassoc.c : Likewise.
521         * tree-ssa-sccvn.c : Likewise.
522         * tree-ssa-scopedtables.c : Likewise.
523         * tree-ssa-sink.c : Likewise.
524         * tree-ssa-strlen.c : Likewise.
525         * tree-ssa-structalias.c : Likewise.
526         * tree-ssa-tail-merge.c : Likewise.
527         * tree-ssa-ter.c : Likewise.
528         * tree-ssa-threadedge.c : Likewise.
529         * tree-ssa-threadupdate.c : Likewise.
530         * tree-ssa-uncprop.c : Likewise.
531         * tree-ssa-uninit.c : Likewise.
532         * tree-ssa.c : Likewise.
533         * tree-ssanames.c : Likewise.
534         * tree-stdarg.c : Likewise.
535         * tree-streamer-in.c : Likewise.
536         * tree-streamer-out.c : Likewise.
537         * tree-streamer.c : Likewise.
538         * tree-streamer.h : Likewise.
539         * tree-switch-conversion.c : Likewise.
540         * tree-tailcall.c : Likewise.
541         * tree-vect-data-refs.c : Likewise.
542         * tree-vect-generic.c : Likewise.
543         * tree-vect-loop-manip.c : Likewise.
544         * tree-vect-loop.c : Likewise.
545         * tree-vect-patterns.c : Likewise.
546         * tree-vect-slp.c : Likewise.
547         * tree-vect-stmts.c : Likewise.
548         * tree-vectorizer.c : Likewise.
549         * tree-vectorizer.h : Likewise.
550         * tree-vrp.c : Likewise.
551         * tree.c : Likewise.
552         * tsan.c : Likewise.
553         * ubsan.c : Likewise.
554         * valtrack.c : Likewise.
555         * valtrack.h : Likewise.
556         * value-prof.c : Likewise.
557         * var-tracking.c : Likewise.
558         * varasm.c : Likewise.
559         * varpool.c : Likewise.
560         * vec.c: Likewise.
561         * vmsdbgout.c : Likewise.
562         * vtable-verify.c : Likewise.
563         * vtable-verify.h : Likewise.
564         * web.c : Likewise.
565         * wide-int.cc : Likewise.
566         * xcoffout.c : Likewise.
567         * config/aarch64/aarch64-builtins.c : Likewise.
568         * config/aarch64/aarch64.c : Likewise.
569         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
570         * config/alpha/alpha.c : Likewise.
571         * config/arc/arc.c : Likewise.
572         * config/arm/aarch-common.c : Likewise.
573         * config/arm/arm-builtins.c : Likewise.
574         * config/arm/arm-c.c : Likewise.
575         * config/arm/arm.c : Likewise.
576         * config/avr/avr-c.c : Likewise.
577         * config/avr/avr-log.c : Likewise.
578         * config/avr/avr.c : Likewise.
579         * config/bfin/bfin.c : Likewise.
580         * config/c6x/c6x.c : Likewise.
581         * config/cr16/cr16.c : Likewise.
582         * config/cris/cris.c : Likewise.
583         * config/darwin-c.c : Likewise.
584         * config/darwin.c : Likewise.
585         * config/default-c.c : Likewise.
586         * config/epiphany/epiphany.c : Likewise.
587         * config/epiphany/mode-switch-use.c : Likewise.
588         * config/epiphany/resolve-sw-modes.c : Likewise.
589         * config/fr30/fr30.c : Likewise.
590         * config/frv/frv.c : Likewise.
591         * config/ft32/ft32.c : Likewise.
592         * config/glibc-c.c : Likewise.
593         * config/h8300/h8300.c : Likewise.
594         * config/i386/i386-c.c : Likewise.
595         * config/i386/i386.c : Likewise.
596         * config/i386/msformat-c.c : Likewise.
597         * config/i386/winnt-cxx.c : Likewise.
598         * config/i386/winnt-stubs.c : Likewise.
599         * config/i386/winnt.c : Likewise.
600         * config/ia64/ia64-c.c : Likewise.
601         * config/ia64/ia64.c : Likewise.
602         * config/iq2000/iq2000.c : Likewise.
603         * config/lm32/lm32.c : Likewise.
604         * config/m32c/m32c-pragma.c : Likewise.
605         * config/m32c/m32c.c : Likewise.
606         * config/m32r/m32r.c : Likewise.
607         * config/m68k/m68k.c : Likewise.
608         * config/mcore/mcore.c : Likewise.
609         * config/mep/mep-pragma.c : Likewise.
610         * config/mep/mep.c : Likewise.
611         * config/microblaze/microblaze-c.c : Likewise.
612         * config/microblaze/microblaze.c : Likewise.
613         * config/mips/mips.c : Likewise.
614         * config/mmix/mmix.c : Likewise.
615         * config/mn10300/mn10300.c : Likewise.
616         * config/moxie/moxie.c : Likewise.
617         * config/msp430/msp430-c.c : Likewise.
618         * config/msp430/msp430.c : Likewise.
619         * config/nds32/nds32-cost.c : Likewise.
620         * config/nds32/nds32-fp-as-gp.c : Likewise.
621         * config/nds32/nds32-intrinsic.c : Likewise.
622         * config/nds32/nds32-isr.c : Likewise.
623         * config/nds32/nds32-md-auxiliary.c : Likewise.
624         * config/nds32/nds32-memory-manipulation.c : Likewise.
625         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
626         * config/nds32/nds32-predicates.c : Likewise.
627         * config/nds32/nds32.c : Likewise.
628         * config/nios2/nios2.c : Likewise.
629         * config/nvptx/nvptx.c : Likewise.
630         * config/pa/pa.c : Likewise.
631         * config/pdp11/pdp11.c : Likewise.
632         * config/rl78/rl78-c.c : Likewise.
633         * config/rl78/rl78.c : Likewise.
634         * config/rs6000/rs6000-c.c : Likewise.
635         * config/rs6000/rs6000.c : Likewise.
636         * config/rx/rx.c : Likewise.
637         * config/s390/s390-c.c : Likewise.
638         * config/s390/s390.c : Likewise.
639         * config/sh/sh-c.c : Likewise.
640         * config/sh/sh-mem.cc : Likewise.
641         * config/sh/sh.c : Likewise.
642         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
643         * config/sh/sh_treg_combine.cc : Likewise.
644         * config/sol2-c.c : Likewise.
645         * config/sol2-cxx.c : Likewise.
646         * config/sol2-stubs.c : Likewise.
647         * config/sol2.c : Likewise.
648         * config/sparc/sparc-c.c : Likewise.
649         * config/sparc/sparc.c : Likewise.
650         * config/spu/spu-c.c : Likewise.
651         * config/spu/spu.c : Likewise.
652         * config/stormy16/stormy16.c : Likewise.
653         * config/tilegx/mul-tables.c : Likewise.
654         * config/tilegx/tilegx-c.c : Likewise.
655         * config/tilegx/tilegx.c : Likewise.
656         * config/tilepro/mul-tables.c : Likewise.
657         * config/tilepro/tilepro-c.c : Likewise.
658         * config/tilepro/tilepro.c : Likewise.
659         * config/v850/v850-c.c : Likewise.
660         * config/v850/v850.c : Likewise.
661         * config/vax/vax.c : Likewise.
662         * config/visium/visium.c : Likewise.
663         * config/vms/vms-c.c : Likewise.
664         * config/vms/vms.c : Likewise.
665         * config/vxworks.c : Likewise.
666         * config/winnt-c.c : Likewise.
667         * config/xtensa/xtensa.c : Likewise.
669 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
671         PR lto/65378
672         * ipa-utils.h (warn_types_mismatch): Update prototype.
673         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
674         parameters.
675         (type_mismatch_p): New function.
676         (warn_types_mismatch): Reorg to work better on non-C++ types.
677         (odr_types_equivalent_p): Add loc1/loc2 parameters.
678         (add_type_duplicate): Update.
680 2015-06-08  Tom de Vries  <tom@codesourcery.com>
682         PR rtl-optimization/66444
683         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
684         call_used_regs.
686 2015-06-08  Richard Biener  <rguenther@suse.de>
688         PR tree-optimization/66422
689         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
690         block after inserted gcc_unreachable.
692 2015-06-08  Nick Clifton  <nickc@redhat.com>
694         * config/rx/rx.c (rx_function_value): Do not promote vector types.
695         (rx_promote_function_mode): Likewise.
696         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
698 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
700         * genattrtab.c (insn_alternatives): Change type from int *
701         to uint64_t *.
702         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
703         (get_attr_value): Change type of num_alt to uint64_t.
704         (compute_alternative_mask): Change return type from
705         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
706         (make_alternative_compare, mk_attr_alt): Change argument type
707         from int to uint64_t.
708         (simplify_test_exp): Change type of i from int to uint64_t.
709         Shift ((uint64_t) 1) instead of 1 up.
710         (main): Adjust oballocvec first argument from int to uint64_t.
711         Shift ((uint64_t) 1) instead of 1 up.
713 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
715         PR other/65366
716         * gdbhooks.py: Import sys.
717         (intptr): New function.  Replace int(...) by intptr(...).
719 2015-06-08  Richard Biener  <rguenther@suse.de>
721         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
722         adjustment for gaps at the end of a SLP load group properly.
723         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
724         all permutations we can generate.
725         (vect_transform_slp_perm_load): Use the correct group-size.
727 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
729         * genmatch.c (expr::gen_transform): For conditions, guess the type
730         from the second operand.
732 2015-06-08  Tom de Vries  <tom@codesourcery.com>
734         PR tree-optimization/66442
735         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
736         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
737         if the loop latch is not a singleton.  Use
738         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
740 2015-06-08  Marek Polacek  <polacek@redhat.com>
742         PR sanitizer/66452
743         * toplev.c (check_global_declaration): Don't warn about artificial
744         decls.
746 2015-06-08  Tom de Vries  <tom@codesourcery.com>
748         PR tree-optimization/66436
749         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
750         dump file.
751         * gimplify.c: Add tree-dump.h include.
752         (gimplify_function_tree): Dump function to gimple dump file.
753         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
754         dump file.
756 2015-06-08  Tom de Vries  <tom@codesourcery.com>
758         PR tree-optimization/66435
759         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
760         function.
762 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
764         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
765         of ptr_type_node to not be ptr_to_node.
766         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
767         TREE_TYPE of pointers.
768         * gimple-expr.c (useless_type_conversion): Reorder the check for
769         function pointers and TYPE_CANONICAL.
771 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
773         PR bootstrap/66319
774         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
775         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
776         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
777         later.
778         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
779         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
780         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
781         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
782         and non iso if unix2003.
784 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
786         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
788 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
790         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
791         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
792         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
793         except.c, final.c, function.c, gcse-common.c, genemit.c,
794         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
795         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
796         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
797         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
798         more derived ones.
800 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
802         * combine.c (combine_split_insns): Remove cast.
803         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
804         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
805         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
806         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
807         * genemit.c (gen_split): Change return type of generated functions to
808         rtx_insn.
809         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
810         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
811         gen_peephole2_* functions.
812         (print_subroutine, main): Likewise.
813         * recog.c (peephole2_optimize): Remove cast.
814         (peep2_next_insn): Promote return type to rtx_insn.
815         * recog.h (peep2_next_insn): Fix prototype.
816         * rtl.h (try_split, split_insns): Likewise.
818 2015-06-06  DJ Delorie  <dj@redhat.com>
820         * config/msp430/msp430.c (msp430_asm_integer): Support addition
821         and subtraction too.
823 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
825         PR target/66410
826         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
827         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
828         instead of Snd.  Disparage Sid/z alternative with '^'.
830 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
832         * dwarf2out.c: Remove deferred_locations*.
833         (dwarf2_debug_hooks): Add early_finish hook.
834         Remove global_decl hook.
835         Add early_global_decl and late_global_decl hook.
836         New global early_dwarf.
837         New structure set_early_dwarf.
838         (output_die): Indicate whether a DIE was generated early
839         when generating assembly with -dA.
840         (struct limbo_die_struct): Document created_for field.
841         Remove file_table_last_lookup.
842         (remove_AT): Return TRUE if successful.
843         (remove_child_TAG): Clear die_parent.
844         (reparent_child): New function abstracted from...
845         (splice_child_die): ...here.
846         (new_die): ICE if a DIE ends up in limbo too late.
847         (check_die): New.
848         (defer_location): Remove.
849         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
850         (fill_variable_array_bounds): New.
851         (decl_start_label): Call fill_variable_array_bounds.
852         (gen_formal_parameter_die): Rewrite to reuse previously generated
853         DIEs.
854         (gen_subprogram_die): Same.
855         (gen_variable_die): Same.
856         (gen_const_die): Same.
857         (gen_label_die): Same.
858         (gen_lexical_block_die): Same.
859         (decl_will_get_specification_p): New.
860         (local_function_static): New.
861         (gen_struct_or_union_type_die): Fill in variable-length fields.
862         (gen_typedef_die): Fill in variable-length typedefs.
863         (gen_tagged_type_die): Gracefully return on error_mark_node.
864         Handle re-entrancy.
865         (gen_type_die_with_usage): Handle variable-length types.
866         Remove duplicate code for ARRAY_TYPE case.
867         (process_scope_var): Only process imported modules during early
868         dwarf.
869         (dwarf2out_early_global_decl): New.
870         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
871         (dwarf2out_type_decl): Set early_dwarf while calling
872         dwarf2out_decl.
873         (dwarf2out_decl): Verify that we did not recreate a previously
874         generated DIE.
875         Do not return on DECL_EXTERNALs in VAR_DECLs.
876         Abstract some code to local_function_static.
877         (lookup_filename): Remove use of file_table_last_lookup.
878         Gracefully exit on missing file_name.
879         (dwarf2out_finish): Verify limbo list.
880         Remove deferred_locations_list use.
881         Move deferred_asm_name and limbo flushing to...
882         (dwarf2out_early_finish): ...here.  New.
883         (dwarf2out_c_finalize): Remove set of deferred_location_list,
884         deferred_asm_name, and file_table_last_lookup.
885         * cgraph.h (referred_to_p): Add default argument.
886         * cgraphunit.c (referred_to_p): Add and handle include_self
887         argument.
888         (analyze_functions): Add first_time argument.
889         Call check_global_declaration for all symbols.
890         Call late_global_decl for nodes for moribund nodes.
891         (finalize_compilation_unit): Add new argument to
892         analyze_functions.
893         Call early_global_decl for functions.
894         Call early_finish debug hook.
895         * dbxout.c (dbxout_early_global_decl): New.
896         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
897         (dbx_debug_hooks): Add new hooks.
898         (xcoff_debug_hooks): Same.
899         * debug.c (do_nothing_debug_hooks): Add early_finish field.
900         Add early and late debug hooks.
901         Remove global_decl hook.
902         * debug.h (struct gcc_debug_hooks): Add early_finish,
903         early_global_decl, and late_global_decl fields.
904         Remove global_decl field.
905         Document gcc_debug_hooks.
906         * gengtype.c (output_typename): Remove.
907         * godump.c (go_early_global_decl): New.
908         (go_late_global_decl): New.
909         (go_global_decl): Remove.
910         (dump_go_spec_init): Remove global_decl.  Add
911         {early,late}_global_decl.
912         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
913         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
914         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
915         (write_global_declarations): Remove.
916         (global_decl_processing): New.
917         * langhooks.h (struct lang_hooks_for_decls): Remove
918         final_write_globals field.
919         Add post_compilation_parsing_cleanups field.
920         * passes.c (rest_of_decl_compilation): Call early_global_decl.
921         * sdbout.c: Add early and late_global_decl hooks.  Remove
922         sdbout_global_decl hook.
923         Add early_finish field for sdb_debug_hooks.
924         (sdbout_global_decl): Remove.
925         (sdbout_early_global_decl): New.
926         (sdbout_late_global_decl): New.
927         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
928         * toplev.c (check_global_declaration): Rename from
929         check_global_declaration_1.
930         Adapt to use symtab infrastructure.
931         (check_global_declarations): Remove.
932         (emit_debug_global_declarations): Remove.
933         (compile_file): Remove call to final_write_globals langhook.
934         Run the actual compilation process.
935         Perform any post compilation parser cleanups.
936         Generate late debug info.
937         * toplev.h (check_global_declaration): New.
938         (check_global_declaration_1): Remove.
939         (check_global_declarations): Remove.
940         (write_global_declarations): Remove.
941         (emit_debug_global_declarations): Remove.
942         (global_decl_processing): New.
943         * tree-core.h (struct tree_block): Add DIE field.
944         * tree.h (BLOCK_DIE): New.
945         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
946         throughout.
947         (vmsdbgout_early_global_decl): New.
948         (vmsdbgout_late_global_decl): New.
949         Add early_finish debug hook field to vmsdbg_debug_hooks.
950         Remove vmsdbgout_decl to vmsdbgout_function_decl.
951         Add early and late_global_decl debug hooks.
953 2015-06-05  Julian Brown  <julian@codesourcery.com>
954             Sandra Loosemore  <sandra@codesourcery.com>
956         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
957         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
958         to print-sysroot-suffix.sh script.
960 2015-06-05  Tom de Vries  <tom@codesourcery.com>
962         merge from gomp4 branch:
963         2015-05-28  Tom de Vries  <tom@codesourcery.com>
965         PR tree-optimization/65443
966         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
967         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
968         (try_transform_to_exit_first_loop_alt): New function.
969         (transform_to_exit_first_loop): Use
970         try_transform_to_exit_first_loop_alt.
972 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
974         * builtins.c (expand_builtin_atomic_compare_exchange): Call
975         emit_cmp_and_jump_insns with the mode of target.
977 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
979         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
981 2015-06-04  DJ Delorie  <dj@redhat.com>
983         * config/msp430/msp430.md (movsi_s): New.  Special case for
984         storing a 20-bit symbol into a 32-bit register.
985         * config/msp430/msp430.c (msp430_subreg): Add support for it.
986         * config/msp430/predicates.md (msp430_symbol_operand): New.
988 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
990         * c-family/c-common.c (noplt): New attribute.
991         (handle_noplt_attribute): New handler.
992         * calls.c (prepare_call_address): Check for noplt
993         attribute.
994         * config/i386/i386.c (ix86_expand_call): Check
995         for noplt attribute.
996         (ix86_nopic_noplt_attribute_p): New function.
997         (ix86_output_call_insn): Output indirect call for non-pic
998         no plt calls.
999         * doc/extend.texi (noplt): Document new attribute.
1000         * doc/invoke.texi: Document new attribute.
1002 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
1004         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
1005         real.h, and fixed-value.h when included in host source files.
1006         * double-int.h: Remove redundant #includes listed above.
1007         * fixed-value.h: Likewise.
1008         * real.h: Likewise.
1009         * wide-int.h: Likewise.
1010         * inchash.h: Likewise.
1011         * rtl.h: Add some include files When included from a generator file.
1012         * target.h: Remove wide-int.h and insn-modes.h from the include list.
1013         * internal-fn.h: Don't include coretypes.h.
1014         * alias.c: Adjust includes for restructured coretypes.h.
1015         * asan.c: Likewise.
1016         * attribs.c: Likewise.
1017         * auto-inc-dec.c: Likewise.
1018         * auto-profile.c: Likewise.
1019         * bb-reorder.c: Likewise.
1020         * bt-load.c: Likewise.
1021         * builtins.c: Likewise.
1022         * caller-save.c: Likewise.
1023         * calls.c: Likewise.
1024         * ccmp.c: Likewise.
1025         * cfg.c: Likewise.
1026         * cfganal.c: Likewise.
1027         * cfgbuild.c: Likewise.
1028         * cfgcleanup.c: Likewise.
1029         * cfgexpand.c: Likewise.
1030         * cfghooks.c: Likewise.
1031         * cfgloop.c: Likewise.
1032         * cfgloop.h: Likewise.
1033         * cfgloopanal.c: Likewise.
1034         * cfgloopmanip.c: Likewise.
1035         * cfgrtl.c: Likewise.
1036         * cgraph.c: Likewise.
1037         * cgraphbuild.c: Likewise.
1038         * cgraphclones.c: Likewise.
1039         * cgraphunit.c: Likewise.
1040         * cilk-common.c: Likewise.
1041         * combine-stack-adj.c: Likewise.
1042         * combine.c: Likewise.
1043         * compare-elim.c: Likewise.
1044         * convert.c: Likewise.
1045         * coverage.c: Likewise.
1046         * cppbuiltin.c: Likewise.
1047         * cprop.c: Likewise.
1048         * cse.c: Likewise.
1049         * cselib.c: Likewise.
1050         * data-streamer-in.c: Likewise.
1051         * data-streamer-out.c: Likewise.
1052         * data-streamer.c: Likewise.
1053         * dbxout.c: Likewise.
1054         * dce.c: Likewise.
1055         * ddg.c: Likewise.
1056         * debug.c: Likewise.
1057         * df-core.c: Likewise.
1058         * df-problems.c: Likewise.
1059         * df-scan.c: Likewise.
1060         * df.h: Likewise.
1061         * dfp.c: Likewise.
1062         * dojump.c: Likewise.
1063         * dominance.c: Likewise.
1064         * domwalk.c: Likewise.
1065         * double-int.c: Likewise.
1066         * dse.c: Likewise.
1067         * dumpfile.c: Likewise.
1068         * dwarf2asm.c: Likewise.
1069         * dwarf2cfi.c: Likewise.
1070         * dwarf2out.c: Likewise.
1071         * dwarf2out.h: Likewise.
1072         * emit-rtl.c: Likewise.
1073         * et-forest.c: Likewise.
1074         * except.c: Likewise.
1075         * explow.c: Likewise.
1076         * expmed.c: Likewise.
1077         * expr.c: Likewise.
1078         * final.c: Likewise.
1079         * fixed-value.c: Likewise.
1080         * fold-const.c: Likewise.
1081         * function.c: Likewise.
1082         * fwprop.c: Likewise.
1083         * gcc-plugin.h: Likewise.
1084         * gcse.c: Likewise.
1085         * generic-match-head.c: Likewise.
1086         * ggc-page.c: Likewise.
1087         * gimple-builder.c: Likewise.
1088         * gimple-expr.c: Likewise.
1089         * gimple-fold.c: Likewise.
1090         * gimple-iterator.c: Likewise.
1091         * gimple-low.c: Likewise.
1092         * gimple-match-head.c: Likewise.
1093         * gimple-pretty-print.c: Likewise.
1094         * gimple-ssa-isolate-paths.c: Likewise.
1095         * gimple-ssa-strength-reduction.c: Likewise.
1096         * gimple-streamer-in.c: Likewise.
1097         * gimple-streamer-out.c: Likewise.
1098         * gimple-streamer.h: Likewise.
1099         * gimple-walk.c: Likewise.
1100         * gimple.c: Likewise.
1101         * gimplify-me.c: Likewise.
1102         * gimplify.c: Likewise.
1103         * godump.c: Likewise.
1104         * graph.c: Likewise.
1105         * graphite-blocking.c: Likewise.
1106         * graphite-dependences.c: Likewise.
1107         * graphite-interchange.c: Likewise.
1108         * graphite-isl-ast-to-gimple.c: Likewise.
1109         * graphite-optimize-isl.c: Likewise.
1110         * graphite-poly.c: Likewise.
1111         * graphite-scop-detection.c: Likewise.
1112         * graphite-sese-to-poly.c: Likewise.
1113         * graphite.c: Likewise.
1114         * haifa-sched.c: Likewise.
1115         * hooks.h: Likewise.
1116         * hw-doloop.c: Likewise.
1117         * ifcvt.c: Likewise.
1118         * incpath.c: Likewise.
1119         * init-regs.c: Likewise.
1120         * internal-fn.c: Likewise.
1121         * ipa-chkp.c: Likewise.
1122         * ipa-comdats.c: Likewise.
1123         * ipa-cp.c: Likewise.
1124         * ipa-devirt.c: Likewise.
1125         * ipa-icf-gimple.c: Likewise.
1126         * ipa-icf.c: Likewise.
1127         * ipa-inline-analysis.c: Likewise.
1128         * ipa-inline-transform.c: Likewise.
1129         * ipa-inline.c: Likewise.
1130         * ipa-polymorphic-call.c: Likewise.
1131         * ipa-profile.c: Likewise.
1132         * ipa-prop.c: Likewise.
1133         * ipa-pure-const.c: Likewise.
1134         * ipa-ref.c: Likewise.
1135         * ipa-reference.c: Likewise.
1136         * ipa-split.c: Likewise.
1137         * ipa-utils.c: Likewise.
1138         * ipa-visibility.c: Likewise.
1139         * ipa.c: Likewise.
1140         * ira-build.c: Likewise.
1141         * ira-color.c: Likewise.
1142         * ira-conflicts.c: Likewise.
1143         * ira-costs.c: Likewise.
1144         * ira-emit.c: Likewise.
1145         * ira-lives.c: Likewise.
1146         * ira.c: Likewise.
1147         * jump.c: Likewise.
1148         * langhooks.c: Likewise.
1149         * lcm.c: Likewise.
1150         * loop-doloop.c: Likewise.
1151         * loop-init.c: Likewise.
1152         * loop-invariant.c: Likewise.
1153         * loop-iv.c: Likewise.
1154         * loop-unroll.c: Likewise.
1155         * lower-subreg.c: Likewise.
1156         * lra-assigns.c: Likewise.
1157         * lra-coalesce.c: Likewise.
1158         * lra-constraints.c: Likewise.
1159         * lra-eliminations.c: Likewise.
1160         * lra-lives.c: Likewise.
1161         * lra-remat.c: Likewise.
1162         * lra-spills.c: Likewise.
1163         * lra.c: Likewise.
1164         * lto-cgraph.c: Likewise.
1165         * lto-compress.c: Likewise.
1166         * lto-opts.c: Likewise.
1167         * lto-section-in.c: Likewise.
1168         * lto-section-out.c: Likewise.
1169         * lto-streamer-in.c: Likewise.
1170         * lto-streamer-out.c: Likewise.
1171         * lto-streamer.c: Likewise.
1172         * mcf.c: Likewise.
1173         * mode-switching.c: Likewise.
1174         * modulo-sched.c: Likewise.
1175         * omega.c: Likewise.
1176         * omp-low.c: Likewise.
1177         * optabs.c: Likewise.
1178         * opts-global.c: Likewise.
1179         * passes.c: Likewise.
1180         * plugin.c: Likewise.
1181         * postreload-gcse.c: Likewise.
1182         * postreload.c: Likewise.
1183         * predict.c: Likewise.
1184         * print-rtl.c: Likewise.
1185         * print-tree.c: Likewise.
1186         * profile.c: Likewise.
1187         * real.c: Likewise.
1188         * realmpfr.c: Likewise.
1189         * realmpfr.h: Likewise.
1190         * recog.c: Likewise.
1191         * ree.c: Likewise.
1192         * reg-stack.c: Likewise.
1193         * regcprop.c: Likewise.
1194         * reginfo.c: Likewise.
1195         * regrename.c: Likewise.
1196         * regs.h: Likewise.
1197         * regstat.c: Likewise.
1198         * reload.c: Likewise.
1199         * reload1.c: Likewise.
1200         * reorg.c: Likewise.
1201         * resource.c: Likewise.
1202         * rtl-chkp.c: Likewise.
1203         * rtlanal.c: Likewise.
1204         * rtlhooks.c: Likewise.
1205         * sanopt.c: Likewise.
1206         * sched-deps.c: Likewise.
1207         * sched-ebb.c: Likewise.
1208         * sched-rgn.c: Likewise.
1209         * sched-vis.c: Likewise.
1210         * sdbout.c: Likewise.
1211         * sel-sched-dump.c: Likewise.
1212         * sel-sched-ir.c: Likewise.
1213         * sel-sched.c: Likewise.
1214         * sese.c: Likewise.
1215         * shrink-wrap.c: Likewise.
1216         * shrink-wrap.h: Likewise.
1217         * simplify-rtx.c: Likewise.
1218         * stack-ptr-mod.c: Likewise.
1219         * statistics.c: Likewise.
1220         * stmt.c: Likewise.
1221         * stor-layout.c: Likewise.
1222         * store-motion.c: Likewise.
1223         * stringpool.c: Likewise.
1224         * symtab.c: Likewise.
1225         * target-globals.c: Likewise.
1226         * targhooks.c: Likewise.
1227         * toplev.c: Likewise.
1228         * tracer.c: Likewise.
1229         * trans-mem.c: Likewise.
1230         * tree-affine.c: Likewise.
1231         * tree-affine.h: Likewise.
1232         * tree-browser.c: Likewise.
1233         * tree-call-cdce.c: Likewise.
1234         * tree-cfg.c: Likewise.
1235         * tree-cfgcleanup.c: Likewise.
1236         * tree-chkp-opt.c: Likewise.
1237         * tree-chkp.c: Likewise.
1238         * tree-chrec.c: Likewise.
1239         * tree-complex.c: Likewise.
1240         * tree-data-ref.c: Likewise.
1241         * tree-dfa.c: Likewise.
1242         * tree-diagnostic.c: Likewise.
1243         * tree-dump.c: Likewise.
1244         * tree-eh.c: Likewise.
1245         * tree-emutls.c: Likewise.
1246         * tree-if-conv.c: Likewise.
1247         * tree-inline.c: Likewise.
1248         * tree-into-ssa.c: Likewise.
1249         * tree-iterator.c: Likewise.
1250         * tree-loop-distribution.c: Likewise.
1251         * tree-nested.c: Likewise.
1252         * tree-nrv.c: Likewise.
1253         * tree-object-size.c: Likewise.
1254         * tree-outof-ssa.c: Likewise.
1255         * tree-parloops.c: Likewise.
1256         * tree-phinodes.c: Likewise.
1257         * tree-predcom.c: Likewise.
1258         * tree-pretty-print.c: Likewise.
1259         * tree-pretty-print.h: Likewise.
1260         * tree-profile.c: Likewise.
1261         * tree-scalar-evolution.c: Likewise.
1262         * tree-sra.c: Likewise.
1263         * tree-ssa-address.c: Likewise.
1264         * tree-ssa-alias.c: Likewise.
1265         * tree-ssa-ccp.c: Likewise.
1266         * tree-ssa-coalesce.c: Likewise.
1267         * tree-ssa-copy.c: Likewise.
1268         * tree-ssa-copyrename.c: Likewise.
1269         * tree-ssa-dce.c: Likewise.
1270         * tree-ssa-dom.c: Likewise.
1271         * tree-ssa-dse.c: Likewise.
1272         * tree-ssa-forwprop.c: Likewise.
1273         * tree-ssa-ifcombine.c: Likewise.
1274         * tree-ssa-live.c: Likewise.
1275         * tree-ssa-loop-ch.c: Likewise.
1276         * tree-ssa-loop-im.c: Likewise.
1277         * tree-ssa-loop-ivcanon.c: Likewise.
1278         * tree-ssa-loop-ivopts.c: Likewise.
1279         * tree-ssa-loop-manip.c: Likewise.
1280         * tree-ssa-loop-niter.c: Likewise.
1281         * tree-ssa-loop-prefetch.c: Likewise.
1282         * tree-ssa-loop-unswitch.c: Likewise.
1283         * tree-ssa-loop.c: Likewise.
1284         * tree-ssa-loop.h: Likewise.
1285         * tree-ssa-math-opts.c: Likewise.
1286         * tree-ssa-operands.c: Likewise.
1287         * tree-ssa-phiopt.c: Likewise.
1288         * tree-ssa-phiprop.c: Likewise.
1289         * tree-ssa-pre.c: Likewise.
1290         * tree-ssa-propagate.c: Likewise.
1291         * tree-ssa-reassoc.c: Likewise.
1292         * tree-ssa-sccvn.c: Likewise.
1293         * tree-ssa-scopedtables.c: Likewise.
1294         * tree-ssa-sink.c: Likewise.
1295         * tree-ssa-strlen.c: Likewise.
1296         * tree-ssa-structalias.c: Likewise.
1297         * tree-ssa-tail-merge.c: Likewise.
1298         * tree-ssa-ter.c: Likewise.
1299         * tree-ssa-threadedge.c: Likewise.
1300         * tree-ssa-threadupdate.c: Likewise.
1301         * tree-ssa-uncprop.c: Likewise.
1302         * tree-ssa-uninit.c: Likewise.
1303         * tree-ssa.c: Likewise.
1304         * tree-ssanames.c: Likewise.
1305         * tree-stdarg.c: Likewise.
1306         * tree-streamer-in.c: Likewise.
1307         * tree-streamer-out.c: Likewise.
1308         * tree-streamer.c: Likewise.
1309         * tree-switch-conversion.c: Likewise.
1310         * tree-tailcall.c: Likewise.
1311         * tree-vect-data-refs.c: Likewise.
1312         * tree-vect-generic.c: Likewise.
1313         * tree-vect-loop-manip.c: Likewise.
1314         * tree-vect-loop.c: Likewise.
1315         * tree-vect-patterns.c: Likewise.
1316         * tree-vect-slp.c: Likewise.
1317         * tree-vect-stmts.c: Likewise.
1318         * tree-vectorizer.c: Likewise.
1319         * tree-vrp.c: Likewise.
1320         * tree.c: Likewise.
1321         * tsan.c: Likewise.
1322         * ubsan.c: Likewise.
1323         * valtrack.c: Likewise.
1324         * value-prof.c: Likewise.
1325         * var-tracking.c: Likewise.
1326         * varasm.c: Likewise.
1327         * varpool.c: Likewise.
1328         * vmsdbgout.c: Likewise.
1329         * vtable-verify.c: Likewise.
1330         * web.c: Likewise.
1331         * wide-int-print.cc: Likewise.
1332         * wide-int-print.h: Likewise.
1333         * wide-int.cc: Likewise.
1334         * xcoffout.c: Likewise.
1335         * config/aarch64/aarch64-builtins.c: Likewise.
1336         * config/aarch64/aarch64.c: Likewise.
1337         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1338         * config/alpha/alpha.c: Likewise.
1339         * config/arc/arc.c: Likewise.
1340         * config/arm/aarch-common.c: Likewise.
1341         * config/arm/arm-builtins.c: Likewise.
1342         * config/arm/arm-c.c: Likewise.
1343         * config/arm/arm.c: Likewise.
1344         * config/avr/avr-c.c: Likewise.
1345         * config/avr/avr-log.c: Likewise.
1346         * config/avr/avr.c: Likewise.
1347         * config/bfin/bfin.c: Likewise.
1348         * config/c6x/c6x.c: Likewise.
1349         * config/cr16/cr16.c: Likewise.
1350         * config/cris/cris.c: Likewise.
1351         * config/darwin-c.c: Likewise.
1352         * config/darwin.c: Likewise.
1353         * config/default-c.c: Likewise.
1354         * config/epiphany/epiphany.c: Likewise.
1355         * config/epiphany/mode-switch-use.c: Likewise.
1356         * config/epiphany/resolve-sw-modes.c: Likewise.
1357         * config/fr30/fr30.c: Likewise.
1358         * config/frv/frv.c: Likewise.
1359         * config/ft32/ft32.c: Likewise.
1360         * config/glibc-c.c: Likewise.
1361         * config/h8300/h8300.c: Likewise.
1362         * config/i386/i386-c.c: Likewise.
1363         * config/i386/i386.c: Likewise.
1364         * config/i386/msformat-c.c: Likewise.
1365         * config/i386/winnt-cxx.c: Likewise.
1366         * config/i386/winnt-stubs.c: Likewise.
1367         * config/i386/winnt.c: Likewise.
1368         * config/ia64/ia64-c.c: Likewise.
1369         * config/ia64/ia64.c: Likewise.
1370         * config/iq2000/iq2000.c: Likewise.
1371         * config/lm32/lm32.c: Likewise.
1372         * config/m32c/m32c-pragma.c: Likewise.
1373         * config/m32c/m32c.c: Likewise.
1374         * config/m32r/m32r.c: Likewise.
1375         * config/m68k/m68k.c: Likewise.
1376         * config/mcore/mcore.c: Likewise.
1377         * config/mep/mep-pragma.c: Likewise.
1378         * config/mep/mep.c: Likewise.
1379         * config/microblaze/microblaze-c.c: Likewise.
1380         * config/microblaze/microblaze.c: Likewise.
1381         * config/mips/mips.c: Likewise.
1382         * config/mmix/mmix.c: Likewise.
1383         * config/mn10300/mn10300.c: Likewise.
1384         * config/moxie/moxie.c: Likewise.
1385         * config/msp430/msp430-c.c: Likewise.
1386         * config/msp430/msp430.c: Likewise.
1387         * config/nds32/nds32-cost.c: Likewise.
1388         * config/nds32/nds32-fp-as-gp.c: Likewise.
1389         * config/nds32/nds32-intrinsic.c: Likewise.
1390         * config/nds32/nds32-isr.c: Likewise.
1391         * config/nds32/nds32-md-auxiliary.c: Likewise.
1392         * config/nds32/nds32-memory-manipulation.c: Likewise.
1393         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1394         * config/nds32/nds32-predicates.c: Likewise.
1395         * config/nds32/nds32.c: Likewise.
1396         * config/nios2/nios2.c: Likewise.
1397         * config/nvptx/nvptx.c: Likewise.
1398         * config/pa/pa.c: Likewise.
1399         * config/pdp11/pdp11.c: Likewise.
1400         * config/rl78/rl78-c.c: Likewise.
1401         * config/rl78/rl78.c: Likewise.
1402         * config/rs6000/rs6000-c.c: Likewise.
1403         * config/rs6000/rs6000.c: Likewise.
1404         * config/rx/rx.c: Likewise.
1405         * config/s390/s390-c.c: Likewise.
1406         * config/s390/s390.c: Likewise.
1407         * config/sh/sh-c.c: Likewise.
1408         * config/sh/sh-mem.cc: Likewise.
1409         * config/sh/sh.c: Likewise.
1410         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1411         * config/sh/sh_treg_combine.cc: Likewise.
1412         * config/sol2-c.c: Likewise.
1413         * config/sol2-cxx.c: Likewise.
1414         * config/sol2-stubs.c: Likewise.
1415         * config/sol2.c: Likewise.
1416         * config/sparc/sparc-c.c: Likewise.
1417         * config/sparc/sparc.c: Likewise.
1418         * config/spu/spu-c.c: Likewise.
1419         * config/spu/spu.c: Likewise.
1420         * config/stormy16/stormy16.c: Likewise.
1421         * config/tilegx/mul-tables.c: Likewise.
1422         * config/tilegx/tilegx-c.c: Likewise.
1423         * config/tilegx/tilegx.c: Likewise.
1424         * config/tilepro/mul-tables.c: Likewise.
1425         * config/tilepro/tilepro-c.c: Likewise.
1426         * config/tilepro/tilepro.c: Likewise.
1427         * config/v850/v850-c.c: Likewise.
1428         * config/v850/v850.c: Likewise.
1429         * config/vax/vax.c: Likewise.
1430         * config/visium/visium.c: Likewise.
1431         * config/vms/vms-c.c: Likewise.
1432         * config/vms/vms.c: Likewise.
1433         * config/vxworks.c: Likewise.
1434         * config/winnt-c.c: Likewise.
1435         * config/xtensa/xtensa.c: Likewise.
1436         * common/config/bfin/bfin-common.c: Likewise.
1438 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
1440         * tree.h (tree_code_for_canonical_type_merging): New function.
1441         * tree.c (gimple_canonical_types_compatible_p): Use
1442         tree_code_for_canonical_type_merging..
1444 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1446         PR c++/66192
1447         PR target/66200
1448         * doc/tm.texi: Regenerate.
1449         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
1450         * target.def (TARGET_RELAXED_ORDERING): Likewise.
1451         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
1452         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
1453         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
1454         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
1455         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
1456         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
1457         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
1459 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1461         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
1462         register fma steering pass.
1463         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
1464         AARCH64_TUNE_FMA_STEERING.
1466 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
1468         * tree.c (verify_type_variant): Verify that type and variant is
1469         compatible.
1470         (gimple_canonical_types_compatible_p): Look for main variants.
1472 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1474         * config.gcc (powerpc*-*-*): Add support for a new configure
1475         option --with-advance-toolchain=<xxx> which overrides using the
1476         default header files, libraries and dynamic linker.
1478         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
1479         specs to support the configure --with-advance-toolchain=<xxx>
1480         option.
1481         (INCLUDE_EXTRA_SPEC): Likewise.
1482         (LINK_OS_EXTRA_SPEC32): Likewise.
1483         (LINK_OK_EXTRA_SPEC64): Likewise.
1484         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
1485         (DYNAMIC_LINKER_PREFIX): Likewise.
1486         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
1487         toolchain support.
1488         (GLIBC_DYNAMIC_LINKER32): Likewise.
1489         (GLIBC_DYNAMIC_LINKER64): Likewise.
1490         (LINK_OS_LINUX_SPEC32): Likewise.
1491         (LINK_OS_LINUX_SPEC64): Likewise.
1493         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
1494         configuration option.
1496 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
1498         PR target/66275
1499         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
1500         to determine current function ABI.
1501         (ix86_function_value_regno_p): Ditto.
1503 2015-06-03  Martin Liska  <mliska@suse.cz>
1505         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
1506         * bitmap.h (struct bitmap_usage): Likewise.
1507         * ggc-common.c (struct ggc_usage): Likewise.
1508         * mem-stats.h (struct mem_location): Likewise.
1509         (struct mem_usage): Likewise.
1510         * vec.c (struct vec_usage): Likewise.
1512 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
1514         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
1515         -Bsymbolic.
1517 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
1519         * doc/plugins.texi (enum plugin_event): New event.
1520         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
1521         and PLUGIN_FINISH_FUNCTION.
1522         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
1523         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
1525 2015-06-03  Richard Biener  <rguenther@suse.de>
1527         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1528         compute GROUP_GAP for the first element.
1529         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1530         on in-group gaps.
1532 2015-06-03  Nick Clifton  <nickc@redhat.com>
1534         * config/rl78/rl78-real.md: Add peepholes to avoid a register
1535         copy when calling a function.
1536         * config/rl78/rl78.c (need_to_save): Do not push the frame
1537         pointer in an interrupt handler prologue if it is never used.
1539 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1541         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
1543 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
1545         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
1546         reference when cloning alias node.
1548 2015-06-03  Martin Liska  <mliska@suse.cz>
1550         * alloc-pool.h (struct pool_usage): Correct space padding.
1551         * ggc-page.c (ggc_print_statistics): Align columns in a report.
1552         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
1553         * tree.c (dump_tree_statistics): Align columns in a report.
1555 2015-06-03  Martin Liska  <mliska@suse.cz>
1557         * alloc-pool.c (allocate_pool_descriptor): Remove.
1558         (struct pool_output_info): Likewise.
1559         (print_alloc_pool_statistics): Likewise.
1560         (dump_alloc_pool_statistics): Likewise.
1561         * alloc-pool.h (struct pool_usage): New struct.
1562         (pool_allocator::initialize): Change usage of memory statistics
1563         to a new interface.
1564         (pool_allocator::release): Likewise.
1565         (pool_allocator::allocate): Likewise.
1566         (pool_allocator::remove): Likewise.
1567         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
1568         for a pool allocator.
1569         * mem-stats.h (struct mem_location): Add new ctor.
1570         (struct mem_usage): Add counter for number of
1571         instances.
1572         (mem_alloc_description::register_descriptor): New overload of
1573         * mem-stats.h (mem_location::to_string): New function.
1574         * bitmap.h (struct bitmap_usage): Use this new function.
1575         * ggc-common.c (struct ggc_usage): Likewise.
1576         the function.
1578 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
1580         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
1581         of GCC_INSN_FLAGS_H block.
1583 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
1585         * explow.c (plus_constant): Update check after force_const_mem call
1586         to see if the value returned is not a NULL_RTX.
1588 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
1590         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
1591         remove instumentation thunks calling reachable functions.
1592         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
1593         * lto/lto-partition.c (privatize_symbol_name_1): New.
1594         (privatize_symbol_name): Privatize both decl and orig_decl
1595         names for instrumented functions.
1596         * cgraph.c (cgraph_node::verify_node): Add transparent
1597         alias chain check for instrumented node.
1599 2015-06-03  Marek Polacek  <polacek@redhat.com>
1601         PR c/64223
1602         PR c/29358
1603         * tree.c (attribute_value_equal): Handle attribute format.
1604         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
1606 2015-06-03  Richard Biener  <rguenther@suse.de>
1608         PR tree-optimization/63916
1609         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1610         Forward-propagate non-invariant addresses by splicing their
1611         reference ops if the result isn't going to be used by PRE.
1612         (vn_reference_lookup_3): Remove pointless assert.
1614 2015-06-03  Richard Biener  <rguenther@suse.de>
1616         PR tree-optimization/66375
1617         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
1618         add to the evolution before following SSA edges.
1620 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
1622         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
1623         (dump_use, dump_cand, find_induction_variables): Pass new argument
1624         to dump_iv.
1625         (record_use): Preserve the ssa name information in IV.
1627 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
1629         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
1630         NO_MODE_TEST.
1631         (add_mode_tests): Don't add mode tests if the predicate only
1632         accepts scalar constant integers.  Otherwise, allow the mode
1633         of "op" to be VOIDmode if the predicate does accept such integers.
1635 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
1637         PR target/66258
1638         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
1639         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
1640         (aarch64_secondary_reload): Likewise
1641         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
1642         to !TARGET_FLOAT.
1643         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
1644         Likewise.
1646 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
1647             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1649         PR target/65768
1650         * cprop.c (try_replace_reg): Check cost of constants before propagating.
1652 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1654         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
1655         provide access to the IBM extended double floating point mode if
1656         long double is IEEE 128-bit floating point.
1657         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
1658         point if long double is the IBM extended double type.
1660         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
1661         enable adding IEEE 128-bit floating point support.
1662         (-mfloat128-software): Likewise.
1663         (-mfloat128-sw): Likewise.
1665         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
1666         128-bit floating point types to occupy any register if
1667         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
1668         -mfloat128-software is enabled.
1669         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
1670         support.
1671         (rs6000_option_override_internal): Add -mfloat128-* support.
1672         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
1674         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
1675         and float128 type nodes.
1676         (ieee128_float_type_node): Likewise.
1677         (ibm128_float_type_node): Likewise.
1679 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1681         PR target/66136
1682         * config/aarch64/geniterators.sh: Rewrite in awk.
1684 2015-06-02  Martin Liska  <mliska@suse.cz>
1686         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
1687         values to avoid -Wmaybe-uninitialized errors.
1689 2015-06-02  Richard Biener  <rguenther@suse.de>
1691         PR debug/65549
1692         * dwarf2out.c (lookup_context_die): New function.
1693         (resolve_addr): Avoid forcing a full DIE for the
1694         target of a DW_TAG_GNU_call_site during late compilation.
1695         Instead create a stub DIE without a type if we have a
1696         context DIE present.
1698 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
1700         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
1702 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
1704         PR tree-optimization/48052
1705         * cfgloop.h (struct control_iv): New.
1706         (struct loop): New field control_ivs.
1707         * tree-ssa-loop-niter.c : Include "stor-layout.h".
1708         (number_of_iterations_lt): Set no_overflow information.
1709         (number_of_iterations_exit): Init control iv in niter struct.
1710         (record_control_iv): New.
1711         (estimate_numbers_of_iterations_loop): Call record_control_iv.
1712         (loop_exits_before_overflow): New.  Interface factored out of
1713         scev_probably_wraps_p.
1714         (scev_probably_wraps_p): Factor loop niter related code into
1715         loop_exits_before_overflow.
1716         (free_numbers_of_iterations_estimates_loop): Free control ivs.
1717         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
1719 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1721         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
1722         the target doesn't belong to the current function.
1724 2015-06-02  Marek Polacek  <polacek@redhat.com>
1726         PR middle-end/66345
1727         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
1728         get_maxval_strlen does not produce an INTEGER_CST.
1730 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
1732         * config/arc/constraints.md: Use lower-case names in match_code.
1733         * config/mmix/constraints.md: Likewise.
1735 2015-06-02  Richard Biener  <rguenther@suse.de>
1737         PR tree-optimization/65961
1738         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
1739         check and clarify dump message.
1740         (vect_build_slp_tree): If all children are built up from scalars
1741         build up the parent from scalars instead.
1742         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
1744 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1746         PR other/65366
1747         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
1748         instead of print ... .
1750 2015-06-02  Alan Modra  <amodra@gmail.com>
1752         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
1753         2014-08-11 change.
1755 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
1757         PR tree-optimization/52563
1758         PR tree-optimization/62173
1759         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
1760         (alloc_iv, set_iv): New parameter.
1761         (determine_biv_step): Delete.
1762         (find_bivs): Inline original determine_biv_step.  Pass new
1763         argument to set_iv.
1764         (idx_find_step): Use no_overflow information for conversion.
1765         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
1766         resolve_mixers handle folded_casts.
1767         (instantiate_scev_name): Change bool parameter to bool pointer.
1768         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
1769         (instantiate_array_ref, instantiate_scev_not): Ditto.
1770         (instantiate_scev_3, instantiate_scev_2): Ditto.
1771         (instantiate_scev_1, instantiate_scev_r): Ditto.
1772         (instantiate_scev_convert, ): Change parameter.  Pass argument
1773         to chrec_convert_aggressive.
1774         (instantiate_scev): Change argument.
1775         (resolve_mixers): New parameter and set it.
1776         (scev_const_prop): New argument.
1777         * tree-scalar-evolution.h (resolve_mixers): New parameter.
1778         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
1779         of chrec_conert_1.
1780         (chrec_convert): New parameter.  Move definition below.
1781         (chrec_convert_aggressive): New parameter and set it.  Call
1782         convert_affine_scev.
1783         * tree-chrec.h (chrec_convert): New parameter.
1784         (chrec_convert_aggressive): Ditto.
1786 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1788         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
1789         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
1790         the LHS of a no-return call if its type has variable size.
1791         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1792         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
1794 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
1796         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
1797         * config.in: Regenerate.
1799 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
1801         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1802         consecutive accesses within outer-loop with force_vectorize
1803         for references with zero step in inner-loop.
1805 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
1807         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
1808         rather than from gcc/build directory.
1810 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
1812         PR target/65697
1813         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
1814         for __sync memory models, emit initial loads and final barriers as
1815         appropriate.
1817 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
1819         PR target/65697
1820         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
1821         (aarch64_split_atomic_op): Check for __sync memory models, emit
1822         appropriate initial loads and final barriers.
1824 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
1826         * Makefile.in: Fix gcov dependencies that should
1827         not point to a build folder.
1829 2015-06-01  Richard Biener  <rguenther@suse.de>
1831         Revert
1832         2015-05-29  Richard Biener  <rguenther@suse.de>
1834         PR tree-optimization/66314
1835         * tree-ssa-threadupdate.c (create_block_for_threading): Add
1836         parameter that says which loop the new block belongs to.
1837         (ssa_create_duplicates): Blocks duplicated for the threaded
1838         path belong to the loop of the thread destination.
1840 2015-06-01  Martin Liska  <mliska@suse.cz>
1842         * sched-deps.c: Include pool-alloc.h before
1843         cselib.h header file is included.
1845 2015-06-01  Richard Biener  <rguenther@suse.de>
1847         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
1848         functions.
1850 2015-06-01  Martin Liska  <mliska@suse.cz>
1852         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
1853         a function local variable.
1855 2015-06-01  Martin Liska  <mliska@suse.cz>
1857         * alloc-pool.c (create_alloc_pool): Remove.
1858         (empty_alloc_pool): Likewise.
1859         (free_alloc_pool): Likewise.
1860         (free_alloc_pool_if_empty): Likewise.
1861         (pool_alloc): Likewise.
1862         (pool_free): Likewise.
1863         * alloc-pool.h: Remove old declarations.
1865 2015-06-01  Martin Liska  <mliska@suse.cz>
1867         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
1868         (ira_create_object): Likewise.
1869         (ira_create_allocno): Likewise.
1870         (ira_create_live_range): Likewise.
1871         (copy_live_range): Likewise.
1872         (ira_finish_live_range): Likewise.
1873         (ira_free_allocno_costs): Likewise.
1874         (finish_allocno): Likewise.
1875         (finish_allocnos): Likewise.
1876         (initiate_prefs): Likewise.
1877         (ira_create_pref): Likewise.
1878         (finish_pref): Likewise.
1879         (finish_prefs): Likewise.
1880         (initiate_copies): Likewise.
1881         (ira_create_copy): Likewise.
1882         (finish_copy): Likewise.
1883         (finish_copies): Likewise.
1884         (finish_prefs): Likewise.
1886 2015-06-01  Martin Liska  <mliska@suse.cz>
1888         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
1889         (allocate_and_init_ipcp_value): Likewise.
1890         (ipcp_lattice::add_value): Likewise.
1891         (merge_agg_lats_step): Likewise.
1892         (ipcp_driver): Likewise.
1893         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
1894         (ipa_free_all_structures_after_iinln): Likewise.
1895         * ipa-prop.h: Likewise.
1897 2015-06-01  Martin Liska  <mliska@suse.cz>
1899         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
1900         pool allocator.
1901         (set_hint_predicate): Likewise.
1902         (inline_summary_alloc): Likewise.
1903         (reset_inline_edge_summary): Likewise.
1904         (reset_inline_summary): Likewise.
1905         (set_cond_stmt_execution_predicate): Likewise.
1906         (set_switch_stmt_execution_predicate): Likewise.
1907         (compute_bb_predicates): Likewise.
1908         (estimate_function_body_sizes): Likewise.
1909         (inline_free_summary): Likewise.
1911 2015-06-01  Martin Liska  <mliska@suse.cz>
1913         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
1914         (ipa_edge_duplication_hook): Likewise.
1915         (ipa_free_all_structures_after_ipa_cp): Likewise.
1916         (ipa_free_all_structures_after_iinln): Likewise.
1918 2015-06-01  Martin Liska  <mliska@suse.cz>
1920         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
1921         (ipa_profile_generate_summary): Likewise.
1922         (ipa_profile_read_summary): Likewise.
1923         (ipa_profile): Likewise.
1925 2015-06-01  Martin Liska  <mliska@suse.cz>
1927         * tree-ssa-structalias.c (new_var_info): Use new type-based
1928         pool allocator.
1929         (new_constraint): Likewise.
1930         (init_alias_vars): Likewise.
1931         (delete_points_to_sets): Likewise.
1933 2015-06-01  Martin Liska  <mliska@suse.cz>
1935         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
1936         (free_strinfo): Likewise.
1937         (pass_strlen::execute): Likewise.
1939 2015-06-01  Martin Liska  <mliska@suse.cz>
1941         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
1942         pool allocator.
1943         (vn_reference_insert_pieces): Likewise.
1944         (vn_phi_insert): Likewise.
1945         (visit_reference_op_call): Likewise.
1946         (copy_phi): Likewise.
1947         (copy_reference): Likewise.
1948         (process_scc): Likewise.
1949         (allocate_vn_table): Likewise.
1950         (free_vn_table): Likewise.
1952 2015-06-01  Martin Liska  <mliska@suse.cz>
1954         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
1955         pool allocator.
1956         (add_repeat_to_ops_vec): Likewise.
1957         (get_ops): Likewise.
1958         (maybe_optimize_range_tests): Likewise.
1959         (init_reassoc): Likewise.
1960         (fini_reassoc): Likewise.
1962 2015-06-01  Martin Liska  <mliska@suse.cz>
1964         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
1965         pool allocator.
1966         (bitmap_set_new): Likewise.
1967         (get_or_alloc_expr_for_constant): Likewise.
1968         (get_or_alloc_expr_for): Likewise.
1969         (phi_translate_1): Likewise.
1970         (compute_avail): Likewise.
1971         (init_pre): Likewise.
1972         (fini_pre): Likewise.
1974 2015-06-01  Martin Liska  <mliska@suse.cz>
1976         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
1977         (delete_dep_node): Likewise.
1978         (create_deps_list): Likewise.
1979         (free_deps_list): Likewise.
1980         (sched_deps_init): Likewise.
1981         (sched_deps_finish): Likewise.
1983 2015-06-01  Martin Liska  <mliska@suse.cz>
1985         * regcprop.c (free_debug_insn_changes): Use new type-based
1986         pool allocator.
1987         (replace_oldest_value_reg): Likewise.
1988         (pass_cprop_hardreg::execute): Likewise.
1990 2015-06-01  Martin Liska  <mliska@suse.cz>
1992         * ira-build.c (initiate_cost_vectors): Use new type-based
1993         pool allocator.
1994         (ira_allocate_cost_vector): Likewise.
1995         (ira_free_cost_vector): Likewise.
1996         (finish_cost_vectors): Likewise.
1998 2015-06-01  Martin Liska  <mliska@suse.cz>
2000         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
2001         pool allocator.
2002         (free_sched_pools): Likewise.
2003         * sel-sched-ir.h (_list_alloc): Likewise.
2004         (_list_remove): Likewise.
2006 2015-06-01  Martin Liska  <mliska@suse.cz>
2008         * stmt.c (add_case_node): Use new type-based pool allocator.
2009         (expand_case): Likewise.
2010         (expand_sjlj_dispatch_table): Likewise.
2012 2015-06-01  Martin Liska  <mliska@suse.cz>
2014         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
2015         (free_bb): Likewise.
2016         (pass_cse_reciprocals::execute): Likewise.
2018 2015-06-01  Martin Liska  <mliska@suse.cz>
2020         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
2021         (sra_deinitialize) Likewise.
2022         (create_access_1) Likewise.
2023         (build_accesses_from_assign) Likewise.
2024         (create_artificial_child_access) Likewise.
2026 2015-06-01  Martin Liska  <mliska@suse.cz>
2028         * dse.c (get_group_info):Use new type-based pool allocator.
2029         (dse_step0) Likewise.
2030         (free_store_info) Likewise.
2031         (delete_dead_store_insn) Likewise.
2032         (free_read_records) Likewise.
2033         (record_store) Likewise.
2034         (replace_read) Likewise.
2035         (check_mem_read_rtx) Likewise.
2036         (scan_insn) Likewise.
2037         (dse_step1) Likewise.
2038         (dse_step7) Likewise.
2040 2015-06-01  Martin Liska  <mliska@suse.cz>
2042         * df-scan.c (struct df_scan_problem_data):Use new type-based
2043         pool allocator.
2044         (df_scan_free_internal) Likewise.
2045         (df_scan_alloc) Likewise.
2046         (df_grow_reg_info) Likewise.
2047         (df_free_ref) Likewise.
2048         (df_insn_create_insn_record) Likewise.
2049         (df_mw_hardreg_chain_delete) Likewise.
2050         (df_insn_info_delete) Likewise.
2051         (df_free_collection_rec) Likewise.
2052         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
2053         (df_sort_and_compress_mws) Likewise.
2054         (df_ref_create_structure) Likewise.
2055         (df_ref_record) Likewise.
2057 2015-06-01  Martin Liska  <mliska@suse.cz>
2059         * df-problems.c (df_chain_create):Use new type-based pool allocator.
2060         (df_chain_unlink_1) Likewise.
2061         (df_chain_unlink) Likewise.
2062         (df_chain_remove_problem) Likewise.
2063         (df_chain_alloc) Likewise.
2064         (df_chain_free) Likewise.
2065         * df.h (struct dataflow) Likewise.
2067 2015-06-01  Martin Liska  <mliska@suse.cz>
2069         * cselib.c (new_elt_list):Use new type-based pool allocator.
2070         (new_elt_loc_list) Likewise.
2071         (unchain_one_elt_list) Likewise.
2072         (unchain_one_elt_loc_list) Likewise.
2073         (unchain_one_value) Likewise.
2074         (new_cselib_val) Likewise.
2075         (cselib_init) Likewise.
2076         (cselib_finish) Likewise.
2078 2015-06-01  Martin Liska  <mliska@suse.cz>
2080         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
2081         (sh_reorg) Likewise.
2083 2015-06-01  Martin Liska  <mliska@suse.cz>
2085         * cfg.c (initialize_original_copy_tables):Use new type-based
2086         pool allocator.
2087         (free_original_copy_tables) Likewise.
2088         (copy_original_table_clear) Likewise.
2089         (copy_original_table_set) Likewise.
2091 2015-06-01  Martin Liska  <mliska@suse.cz>
2093         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
2094         pool allocator.
2095         (asan_mem_ref_new) Likewise.
2096         (free_mem_ref_resources) Likewise.
2098 2015-06-01  Martin Liska  <mliska@suse.cz>
2100         * var-tracking.c (variable_htab_free):Use new type-based
2101         pool allocator.
2102         (attrs_list_clear) Likewise.
2103         (attrs_list_insert) Likewise.
2104         (attrs_list_copy) Likewise.
2105         (shared_hash_unshare) Likewise.
2106         (shared_hash_destroy) Likewise.
2107         (unshare_variable) Likewise.
2108         (var_reg_delete_and_set) Likewise.
2109         (var_reg_delete) Likewise.
2110         (var_regno_delete) Likewise.
2111         (drop_overlapping_mem_locs) Likewise.
2112         (variable_union) Likewise.
2113         (insert_into_intersection) Likewise.
2114         (canonicalize_values_star) Likewise.
2115         (variable_merge_over_cur) Likewise.
2116         (dataflow_set_merge) Likewise.
2117         (remove_duplicate_values) Likewise.
2118         (variable_post_merge_new_vals) Likewise.
2119         (dataflow_set_preserve_mem_locs) Likewise.
2120         (dataflow_set_remove_mem_locs) Likewise.
2121         (variable_from_dropped) Likewise.
2122         (variable_was_changed) Likewise.
2123         (set_slot_part) Likewise.
2124         (clobber_slot_part) Likewise.
2125         (delete_slot_part) Likewise.
2126         (loc_exp_insert_dep) Likewise.
2127         (notify_dependents_of_changed_value) Likewise.
2128         (emit_notes_for_differences_1) Likewise.
2129         (vt_emit_notes) Likewise.
2130         (vt_initialize) Likewise.
2131         (vt_finalize) Likewise.
2133 2015-06-01  Martin Liska  <mliska@suse.cz>
2135         * ira-color.c (init_update_cost_records):Use new type-based
2136         pool allocator.
2137         (get_update_cost_record) Likewise.
2138         (free_update_cost_record_list) Likewise.
2139         (finish_update_cost_records) Likewise.
2140         (initiate_cost_update) Likewise.
2142 2015-06-01  Martin Liska  <mliska@suse.cz>
2144         * lra.c (init_insn_regs): Use new type-based pool allocator.
2145         (new_insn_reg) Likewise.
2146         (free_insn_reg) Likewise.
2147         (free_insn_regs) Likewise.
2148         (finish_insn_regs) Likewise.
2149         (init_insn_recog_data) Likewise.
2150         (init_reg_info) Likewise.
2151         (finish_reg_info) Likewise.
2152         (lra_free_copies) Likewise.
2153         (lra_create_copy) Likewise.
2154         (invalidate_insn_data_regno_info) Likewise.
2156 2015-06-01  Martin Liska  <mliska@suse.cz>
2158         * lra-lives.c (free_live_range): Use new type-based pool allocator.
2159         (free_live_range_list) Likewise.
2160         (create_live_range) Likewise.
2161         (copy_live_range) Likewise.
2162         (lra_merge_live_ranges) Likewise.
2163         (remove_some_program_points_and_update_live_ranges) Likewise.
2164         (lra_live_ranges_init) Likewise.
2165         (lra_live_ranges_finish) Likewise.
2167 2015-06-01  Martin Liska  <mliska@suse.cz>
2169         * et-forest.c (et_new_occ): Use new type-based pool allocator.
2170         (et_new_tree): Likewise.
2171         (et_free_tree): Likewise.
2172         (et_free_tree_force): Likewise.
2173         (et_free_pools): Likewise.
2174         (et_split): Likewise.
2176 2015-06-01  Martin Liska  <mliska@suse.cz>
2178         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
2179         to header file.
2180         * alloc-pool.h (pool_allocator::pool_allocator): New function.
2181         (pool_allocator::release): Likewise.
2182         (inline pool_allocator::release_if_empty): Likewise.
2183         (inline pool_allocator::~pool_allocator): Likewise.
2184         (pool_allocator::allocate): Likewise.
2185         (pool_allocator::remove): Likewise.
2187 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
2189         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
2190         in comment.
2192 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
2194         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
2195         to fusible_ops.
2196         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
2197         (arm_macro_fusion_p): Likewise.
2198         (arm_macro_fusion_pair_p): Likewise.
2200 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
2202         * config/aarch64/aarch64-protos.h (tune_params): Rename
2203         fuseable_ops to fusible_ops.
2204         * config/aarch64/aarch64.c (generic_tunings): Rename
2205         fuseable_ops to fusible_ops.
2206         (cortexa53_tunings): Likewise.
2207         (cortexa57_tunings): Likewise.
2208         (thunderx_tunings): Likewise.
2209         (xgene1_tunings): Likewise.
2210         (aarch64_macro_fusion_p): Likewise.
2211         (aarch64_macro_fusion_pair_p): Likewise.
2213 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2215         * config/s390/driver-native.c: New file.
2216         * config/s390/x-native: New file.
2217         * config.host: Add new files for s390.
2218         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
2219         and -march=native
2220         * config.gcc: Likewise.
2221         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
2222         * config/s390/s390-opts.h (enum processor_type): Ditto.
2223         * config/s390/s390.c (s390_option_override): Catch unhandled
2224         PROCESSOR_NATIVE
2226 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
2228         PR target/65527
2229         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
2230         redirection for instrumented calls.
2231         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
2232         (append_compiler_options): Append -fcheck-pointer-bounds.
2233         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
2234         (chkp_redirect_edge): New.
2235         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
2236         (chkp_redirect_edge): New.
2238 2015-06-01  Richard Biener  <rguenther@suse.de>
2240         PR tree-optimization/66280
2241         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
2242         def-use walking.
2244 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2246         * config/aarch64/aarch64.md
2247         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
2248         logic_shift_imm.
2250 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2252         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
2253         Remove obsolete kludge.
2255 2015-06-01  Richard Biener  <rguenther@suse.de>
2257         * tree-ssa-reassoc.c (get_rank): Simplify.
2259 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2261         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
2262         * configure: Regenerated.
2264 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
2266         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
2267         issue (add space between string literal and macro).
2268         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
2270 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2272         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
2273         implict or explicit -fPIE or -fpie.
2275 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
2277         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
2279 2015-05-28  DJ Delorie  <dj@redhat.com>
2281         * expmed.c (extract_bit_field_1): Avoid clobbering a
2282         yet-to-be-used base/index register.
2284 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
2286         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
2287         (alias_stats): Add num_universal.
2288         (alias_set_subset_of): Special case pointers; be ready for NULL
2289         children.
2290         (alias_sets_conflict_p): Special case pointers; be ready for NULL
2291         children.
2292         (init_alias_set_entry): Break out from ...
2293         (record_alias_subset): ... here; propagate new fields;
2294         allocate children only when really needed.
2295         (get_alias_set): Do less generous pointer globbing.
2296         (dump_alias_stats_in_alias_c): Update statistics.
2298 2015-05-30  Alan Modra  <amodra@gmail.com>
2300         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
2301         correct block for use of r12.
2302         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
2304 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2306         PR target/66215
2307         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
2308         with -mhotpatch=.
2310 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
2312         PR tree-optimization/66142
2313         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
2314         virtual phis that feed themselves.
2316 2015-05-29  Richard Biener  <rguenther@suse.de>
2318         PR tree-optimization/66314
2319         * tree-ssa-threadupdate.c (create_block_for_threading): Add
2320         parameter that says which loop the new block belongs to.
2321         (ssa_create_duplicates): Blocks duplicated for the threaded
2322         path belong to the loop of the thread destination.
2324 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2326         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
2327         to cleanup-saved-temps.
2328         * doc/sourcebuild.texi (Clean up generated test files): Expand
2329         introduction.
2330         (dg-keep-saved-temps): Document new proc.
2331         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
2332         cleanup-saved-temps): Remove.
2334 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
2336         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
2337         gcc_AC_CHECK_DECLS.
2338         * configure: Regenerate.
2340 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
2342         * config/nios2/linux.h (CPP_SPEC): Define.
2344 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
2346         * config/microblaze/linux.h (CPP_SPEC): Define.
2348 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
2350         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
2351         -pthread is specified.
2353 2015-05-28  Richard Biener  <rguenther@suse.de>
2355         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
2356         (vect_fixup_scalar_cycles_with_patterns): Likewise.
2357         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
2358         after pattern recog.
2359         (vect_create_epilog_for_reduction): Properly handle reductions
2360         with patterns.
2361         (vectorizable_reduction): Likewise.
2362         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
2363         reduction chains.
2364         (vect_get_constant_vectors): Create the correct number of
2365         initial values for reductions.
2366         (vect_schedule_slp_instance): Handle reduction chains that are
2367         type changing properly.
2368         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
2370 2015-05-28  Richard Biener  <rguenther@suse.de>
2372         PR tree-optimization/66142
2373         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
2374         values better in memcpy destination handling.  Handle non-aliasing
2375         we discover here.
2377 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
2379         PR target/63810
2380         * config/darwin-c.c (version_components): New global enum.
2381         (parse_version, version_as_legacy_macro)
2382         (version_as_modern_macro, macosx_version_as_macro): New functions.
2383         (version_as_macro): Remove.
2384         (darwin_cpp_builtins): Use new function.
2386 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
2388         * builtins.c (expand_builtin_acc_on_device): Mark parameters
2389         with ATTRIBUTE_UNUSED.
2391 2015-05-28  Julian Brown  <julian@codesourcery.com>
2393         PR libgomp/65742
2395         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
2396         sequence for !ACCEL_COMPILER.
2398 2015-05-28  Nick Clifton  <nickc@redhat.com>
2400         * config/rx/rx.c (push_regs): New function.  Extracts code from...
2401         (rx_expand_prologue): ... here.  Use push_regs to push even small
2402         spans of registers.
2403         (pop_regs): New function.
2404         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
2405         registers.
2407 2015-05-28  Richard Biener  <rguenther@suse.de>
2409         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
2410         member.
2411         (SLP_INSTANCE_BODY_COST_VEC): Remove.
2412         (vect_update_slp_costs_according_to_vf): Likewise.
2413         (vect_slp_analyze_operations): Update prototype.
2414         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
2415         vect_update_slp_costs_according_to_vf, adjust.
2416         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
2417         (vect_analyze_slp_cost_1): Likewise.
2418         (vect_analyze_slp_cost): Likewise.  Properly deal with
2419         widening reduction ops.  Commit body costs.
2420         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
2421         cost for loops from here.
2422         (vect_slp_analyze_operations): But do it from here when
2423         the vectorization factor is known and stmts are analyzed.
2424         (vect_bb_vectorization_profitable_p): Simplify.
2425         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
2426         (vect_update_slp_costs_according_to_vf): Remove.
2428 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
2429             H.J. Lu  <hongjiu.lu@intel.com>
2431         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
2432         (BUILD_CFLAGS): Likewise.
2433         (BUILD_CXXFLAGS): Likewise.
2434         (LINKER): Add @NO_PIE_FLAG@.
2435         (BUILD_LDFLAGS): Likewise.
2436         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
2437         --enable-default-pie.
2438         * common.opt (fPIE): Initialize to -1.
2439         (fpie): Likewise.
2440         (no-pie): New option.
2441         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
2442         * configure.ac: Add --enable-default-pie.
2443         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
2444         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
2445         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
2446         * gcc.c (NO_PIE_SPEC): New.
2447         (PIE_SPEC): Likewise.
2448         (NO_FPIE1_SPEC): Likewise.
2449         (FPIE1_SPEC): Likewise.
2450         (NO_FPIE2_SPEC): Likewise.
2451         (FPIE2_SPEC): Likewise.
2452         (NO_FPIE2_SPEC): Likewise.
2453         (FPIE_SPEC): Likewise.
2454         (NO_FPIE_SPEC): Likewise.
2455         (NO_FPIC1_SPEC): Likewise.
2456         (FPIC1_SPEC): Likewise.
2457         (NO_FPIC2_SPEC): Likewise.
2458         (FPIC2_SPEC): Likewise.
2459         (NO_FPIC2_SPEC): Likewise.
2460         (FPIC_SPEC): Likewise.
2461         (NO_FPIC_SPEC): Likewise.
2462         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
2463         (FPIE1_OR_FPIC1_SPEC): Likewise.
2464         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
2465         (FPIE2_OR_FPIC2_SPEC): Likewise.
2466         (NO_FPIE_AND_FPIC_SPEC): Likewise.
2467         (FPIE_OR_FPIC_SPEC): Likewise.
2468         (LD_PIE_SPEC): Likewise.
2469         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
2470         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
2471         * config/darwin.h (PIE_SPEC): Renamed to ...
2472         (DARWIN_PIE_SPEC): This.
2473         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
2474         * config/darwin9.h (PIE_SPEC): Renamed to ...
2475         (DARWIN_PIE_SPEC): This.
2476         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
2477         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
2478         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
2479         FPIE2_OR_FPIC2_SPEC.
2480         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
2481         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
2482         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
2483         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2484         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2485         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2486         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
2487         * config/m32r/m32r.h (ASM_SPEC): Likewise.
2488         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
2489         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
2490         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
2491         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
2492         * config/sparc/linux.h (ASM_SPEC): Likewise.
2493         * config/sparc/linux64.h (ASM_SPEC): Likewise.
2494         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
2495         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
2496         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2497         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2498         * config/sparc/sparc.h (ASM_SPEC): Likewise.
2499         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
2500         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
2501         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
2502         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
2503         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
2504         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
2505         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
2506         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
2507         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
2508         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
2509         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
2510         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
2511         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2512         * config/vax/linux.h (ASM_SPEC): Likewise.
2513         * doc/install.texi: Document --enable-default-pie.
2514         * doc/invoke.texi: Document -no-pie.
2515         * config.in: Regenerated.
2516         * configure: Likewise.
2518 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2520         PR rtl-optimization/66168
2521         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
2522         can_move_invariant_reg.
2524 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
2526         PR target/66148
2527         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
2528         REG_EQUAL note when doing insert.
2530         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
2531         instead of "%d" for 'o' operand.
2533 2015-05-27  Nathan Sidwell  <nathan@acm.org>
2535         PR c++/66270
2536         * tree.c (build_pointer_type_for_mode): Canonical type does not
2537         inherit can_alias_all.
2538         (build_reference_type_for_mode): Likewise.
2540 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2542         * expr.h (array_at_struct_end_p): Move to...
2543         (array_ref_element_size): Likewise.
2544         (component_ref_field_offset): Likewise.
2545         * tree.h (array_ref_element_size): ...here.
2546         (array_at_struct_end_p): Likewise.
2547         (component_ref_field_offset): Likewise.
2548         * expr.c (array_ref_element_size): Move to...
2549         (array_ref_low_bound): Likewise.
2550         (array_at_struct_end_p): Likewise.
2551         (array_ref_up_bound): Likewise.
2552         (component_ref_field_offset): Likewise.
2553         * tree.c (array_ref_element_size): ...here.
2554         (array_ref_low_bound): Likewise.
2555         (array_ref_up_bound): Likewise.
2556         (array_at_struct_end_p): Likewise.
2557         (component_ref_field_offset): Likewise.
2559 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
2560             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2562         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
2564 2015-05-27  Jason Merrill  <jason@redhat.com>
2566         PR bootstrap/66304
2567         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
2568         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
2569         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
2571 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
2573         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
2574         is true.
2576         * statistics.c (statistics_fini_pass): Print pass name.
2578 2015-05-27  Richard Biener  <rguenther@suse.de>
2580         PR tree-optimization/66272
2581         Revert parts of
2582         2014-08-15  Richard Biener  <rguenther@suse.de>
2584         PR tree-optimization/62031
2585         * tree-data-ref.c (dr_analyze_indices): Do not set
2586         DR_UNCONSTRAINED_BASE.
2587         (dr_may_alias_p): All indirect accesses have to go the
2588         formerly DR_UNCONSTRAINED_BASE path.
2589         * tree-data-ref.h (struct indices): Remove
2590         unconstrained_base member.
2591         (DR_UNCONSTRAINED_BASE): Remove.
2593 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
2595         * dwarf2out.c: Remove block_map.
2596         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
2597         (gen_lexical_block_die): Same.
2598         (dwarf2out_function_decl): Remove block_map use.
2599         (dwarf2out_c_finalize): Same.
2600         * tree-core.h (struct tree_block): Add die field.
2601         * tree.h (BLOCK_DIE): New.
2603 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2605         PR target/65358
2606         * expr.c (memory_load_overlap): New function.
2607         (emit_push_insn): When pushing partial args to the stack would
2608         clobber the register part load the overlapping part into a pseudo
2609         and put it into the hard reg after pushing.  Change return type
2610         to bool.  Add bool argument.
2611         * expr.h (emit_push_insn): Change return type to bool.
2612         Add bool argument.
2613         * calls.c (expand_call): Cancel sibcall optimization when encountering
2614         partial argument on targets with ARGS_GROW_DOWNWARD and
2615         !STACK_GROWS_DOWNWARD.
2616         (emit_library_call_value_1): Update callsite of emit_push_insn.
2617         (store_one_arg): Likewise.
2619 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
2621         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
2623 2015-05-27  Martin Liska  <mliska@suse.cz>
2625         * Makefile.in: Add additional dependencies related to memory report
2626         enhancement.
2627         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
2628         * bitmap.c (struct bitmap_descriptor_d): Remove.
2629         (struct loc): Likewise.
2630         (struct bitmap_desc_hasher): Likewise.
2631         (bitmap_desc_hasher::hash): Likewise.
2632         (bitmap_desc_hasher::equal): Likewise.
2633         (get_bitmap_descriptor): Likewise.
2634         (bitmap_register): User new memory descriptor API.
2635         (register_overhead): Likewise.
2636         (bitmap_find_bit): Register nsearches and search_iter statistics.
2637         (struct bitmap_output_info): Remove.
2638         (print_statistics): Likewise.
2639         (dump_bitmap_statistics): Use new memory descriptor.
2640         * bitmap.h (struct bitmap_usage): New class.
2641         * genmatch.c: Extend header file inclusion.
2642         * genpreds.c: Likewise.
2643         * ggc-common.c (struct ggc_usage): New class.
2644         (struct ggc_loc_desc_hasher): Remove.
2645         (ggc_loc_desc_hasher::hash): Likewise.
2646         (ggc_loc_desc_hasher::equal): Likewise.
2647         (struct ggc_ptr_hash_entry): Likewise.
2648         (struct ptr_hash_hasher): Likewise.
2649         (ptr_hash_hasher::hash): Likewise.
2650         (ptr_hash_hasher::equal): Likewise.
2651         (make_loc_descriptor): Likewise.
2652         (ggc_prune_ptr): Likewise.
2653         (dump_ggc_loc_statistics): Use new memory descriptor.
2654         (ggc_record_overhead): Likewise.
2655         (ggc_free_overhead): Likewise.
2656         (final_cmp_statistic): Remove.
2657         (cmp_statistic): Likewise.
2658         (ggc_add_statistics): Liekwise.
2659         (ggc_prune_overhead_list): Likewise.
2660         * hash-map-traits.h: New file.
2661         * hash-map.h (struct default_hashmap_traits): Move the traits to a
2662         separate header file.
2663         * hash-set.h: Pass memory statistics info to ctor.
2664         * hash-table.c (void dump_hash_table_loc_statistics): New function.
2665         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
2666         (hash_table::~hash_table): Register memory release operation.
2667         (hash_table::alloc_entries): Handle memory allocation operation.
2668         (hash_table::expand): Likewise.
2669         * inchash.c (iterative_hash_hashval_t): Move implementation to header
2670         file.
2671         (iterative_hash_host_wide_int): Likewise.
2672         * inchash.h (class hash): Likewise.
2673         * mem-stats-traits.h: New file.
2674         * mem-stats.h: New file.
2675         (mem_location): Add new class.
2676         (mem_usage): Likewise.
2677         (mem_alloc_description): Likewise.
2678         * sese.c: Add new header file inclusision.
2679         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
2680         and hash_set.
2681         * tree-sra.c: Add new header file inclusision.
2682         * vec.c (struct vec_descriptor): Remove.
2683         (hash_descriptor): Likewise.
2684         (struct vec_usage): Likewise.
2685         (struct ptr_hash_entry): Likewise.
2686         (hash_ptr): Likewise.
2687         (eq_ptr): Likewise.
2688         (vec_prefix::register_overhead): Use new memory descriptor API.
2689         (vec_prefix::release_overhead): Likewise.
2690         (add_statistics): Remove.
2691         (dump_vec_loc_statistics): Use new memory descriptor API.
2692         * vec.h (struct vec_prefix): Likewise.
2693         (va_heap::reserve): Likewise.
2694         (va_heap::release): Likewise.
2695         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
2697 2015-05-27  Richard Biener  <rguenther@suse.de>
2699         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
2700         earlier and remove ??? comment.
2701         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
2702         and got called from loop analysis bail out.  Always pass the SLP
2703         node to the vectorizable_* functions.
2704         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
2705         the premature SLP check here.
2706         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
2707         detected SLP stmts.
2708         (vect_detect_hybrid_slp_1): Likewise.
2710 2015-05-26  Jeff Law  <law@redhat.com>
2712         * combine.c (find_split_point): Verify that the shift count is a
2713         constant when choosing (plus (ashift ...)) as a split point.
2715         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
2716         No functional changes.
2718 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
2720         * ipa-polymorphic-call.c
2721         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
2722         case when call target is already known.
2724 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
2726         PR target/65979
2727         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
2728         take into account the case that operands[1] and operands[2]
2729         are the same register.
2731 2015-05-26  Michael Matz  <matz@suse.de>
2733         PR middle-end/66251
2735         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
2736         stores.
2737         (vect_create_vectorized_demotion_stmts): Always set
2738         STMT_VINFO_VEC_STMT, also with SLP.
2739         (vectorizable_store): Handle strided group stores.
2741 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2743         PR target/66049
2744         * config/aarch64/aarch64.md
2745         (*adds_shift_imm_<mode>):  New pattern.
2746         (*subs_shift_imm_<mode>):  Likewise.
2747         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
2748         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
2749         (*add_uxt<mode>_shift2): Likewise.
2750         (*add_uxtsi_shift2_uxtw): Likewise.
2751         (*sub_uxt<mode>_shift2): Likewise.
2752         (*sub_uxtsi_shift2_uxtw): Likewise.
2754 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
2756         * config/rs6000/constraints.md (Y, U): Use match_test.
2758 2015-05-26  Christian Bruel  <christian.bruel@st.com>
2760         PR target/52144
2761         * config/arm/arm.c (arm_option_check_internal)
2762         (arm_option_params_internal): Check opts->target_flags to set macros.
2763         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
2764         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
2765         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
2766         (builtin_define): Replaced with def_or_undef_macro.
2767         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
2768         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
2769         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
2770         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
2771         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
2772         (TARGET_ARM_FEATURE_LDREX_P)
2773         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
2774         * config/arm/arm-c.c (def_or_undef_macro): New function.
2775         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
2777 2015-05-26  Christian Bruel  <christian.bruel@st.com>
2779         * c-common.h (builtin_define_with_int_value)
2780         (builtin_define_type_sizeof): Declare.
2781         * c-cppbuiltin.c (builtin_define_with_int_value)
2782         (builtin_define_type_sizeof): Externalize.
2783         (builtin_define_std): Cleanup declaration.
2784         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
2785         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
2786         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
2787         (builtin_define, builtin_assert): New macros.
2789 2015-05-26  Richard Biener  <rguenther@suse.de>
2791         PR tree-optimization/66142
2792         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
2793         MEM_REFs for the same base address.
2795 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2797         PR ipa/66181
2798         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
2800 2015-05-26  Jason Merrill  <jason@redhat.com>
2802         * configure.ac: Set CXXFLAGS for ISL test.
2803         * configure: Regenerate.
2805         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
2806         strstr and basename.
2807         * configure: Regenerate.
2809 2015-05-26  Richard Biener  <rguenther@suse.de>
2811         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
2812         X % C -> X & (C - 1) for C being a power-of two to ...
2813         * match.pd: ... patterns.
2815 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
2817         * match.pd (swapped_tcc_comparison): New operator list.
2818         (-A CMP -B): New simplification.
2819         * fold-const.c (fold_comparison): Remove corresponding code.
2821 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2823         * caller-save.c (init_caller_save): Base temporary register numbers
2824         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
2825         * cfgloopanal.c (init_set_costs): Likewise.
2826         * dojump.c (prefer_and_bit_test): Likewise.
2827         * expr.c (init_expr_target): Likewise.
2828         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2829         * lower-subreg.c (init_lower_subreg): Likewise.
2830         * postreload.c (reload_cse_regs_1): Likewise.
2832 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2834         * gensupport.h (compute_test_codes): Declare.
2835         * gensupport.c (compute_predicate_codes): Rename to...
2836         (compute_test_codes): ...this.  Generalize error message.
2837         (process_define_predicate): Update accordingly.
2838         * genpreds.c (compute_maybe_allows): Delete.
2839         (add_constraint): Use compute_test_codes to determine whether
2840         something can accept a SUBREG, REG or MEM.
2842 2015-05-26  Torvald Riegel  <triegel@redhat.com>
2844         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
2845         'memory model' to align with C++11; fix description of memory orders;
2846         fix a few typos.
2848 2015-05-26  Richard Biener  <rguenther@suse.de>
2850         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
2851         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
2852         detect whether we apply SLP.  Remove call to
2853         vect_update_slp_costs_according_to_vf.
2854         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
2855         vect_update_slp_costs_according_to_vf from here.  Dispatch
2856         to vect_slp_analyze_operations to analyze SLP stmts.
2857         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
2858         unused bb_vec_info parameter, adjust assert.
2859         (vect_slp_analyze_operations): Pass in the slp instance tree
2860         instead of bb_vec_info.
2861         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
2862         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
2864 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
2866         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
2867         Q_REGS.  Expand comment.
2868         (REG_CLASS_NAMES): Ditto.
2869         (REG_CLASS_CONTENTS): Ditto.
2871 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
2873         PR target/66274
2874         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
2875         when LEGACY_INT_REGNO_P is processed.
2877 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
2879         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
2881 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2883         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
2884         register if not marked dead/unused, before return.
2886 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
2888         PR lto/66180
2889         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
2890         is set; check for assembler name at LTO time.
2891         (type_in_anonymous_namespace): Remove hacks, check that all
2892         anonymous types are called "<anon>"
2893         (odr_type_p): Simplify; add check for "<anon>"
2894         (odr_subtypes_equivalent): Add odr_type_p check.
2895         * tree.c (need_assembler_name_p): Even anonymous namespace needs
2896         assembler name.
2898 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
2900         * ipa-utils.h (method_class_type): Remove.
2901         * cgraphunit.c (walk_polymorphic_call_targets): Use
2902         TYPE_METHOD_BASETYPE.
2903         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
2904         on main variants only.
2905         (method_class_type): Remove.
2906         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
2907         (build_type_inheritance_graph): Likewise.
2908         * ipa-icf.c (sem_function::equals_wpa): Likewise.
2909         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
2910         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
2912 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
2914         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
2915         is_typedef_decl, typedef_variant_p): Constify.
2916         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
2917         is_typedef_decl, typedef_variant_p): Constify.
2919 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2921         * defaults.h (gen_tablejump): New function.
2922         (HAVE_tablejump): Add default value.
2923         * expr.c: Adjust.
2924         * stmt.c: Likewise.
2926 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2928         * defaults.h (gen_store_multiple): New function.
2929         (HAVE_store_multiple): Add default value.
2930         * expr.c (move_block_from_reg): Adjust.
2932 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2934         * defaults.h (gen_load_multiple): New function.
2935         (HAVE_load_multiple): Add default value.
2936         * expr.c (move_block_to_reg): Adjust.
2938 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2940         * defaults.h (gen_mem_signal_fence): New function.
2941         (HAVE_mem_signal_fence): Add default value.
2942         * optabs.c: Adjust.
2944 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2946         * defaults.h (gen_memory_barrier): New function.
2947         (HAVE_memory_barrier): Add default value.
2948         * optabs.c: Adjust.
2950 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2952         * defaults.h (gen_mem_thread_fence): New function.
2953         (HAVE_mem_thread_fence): Add default definition.
2954         * optabs.c: Adjust.
2956 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2958         * combine.c (find_split_point): Check the value of HAVE_lo_sum
2959         instead of if it is defined.
2960         (combine_simplify_rtx): Likewise.
2961         * lra-constraints.c (process_address_1): Likewise.
2962         * config/darwin.c: Adjust.
2963         * genconfig.c (main): Always define HAVE_lo_sum.
2965 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2967         * genmatch.c (parser::parse_operation): Reject expanding
2968         operator-list inside 'for'.
2970 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2972         * genmatch.c (parser::parse_for): Reject iterator if used as
2973         operator-list.
2975 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2977         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
2978         after end of id-list.
2980 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
2982         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
2983         we do not try to compute canonical type for type that does not need
2984         alias set.
2985         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
2986         FUNCITON_TYPE.
2987         * tree.h (type_with_alias_set_p): New.
2989 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
2991         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
2992         function attributes.
2993         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
2995 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
2997         * Makefile.in (check_gcc_parallelize): Delete.
2998         (lang_checks_parallelized): Update comment.
3000 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
3002         PR rtl-optimization/66237
3003         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
3004         location of an "as_a" cast.
3006 2015-05-22  Jeff Law  <law@redhat.com>
3008         * config/pa/pa.md (non-canonical shift-add insns): Remove.
3009         (peepholes with non-canonical RTL sources): Remove.
3010         (peepholes for indexed stores of FP regs in integer modes): Match and
3011         generate canonical RTL.
3013 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
3015         PR tree-optimization/63387
3016         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
3017         ((x ord x) & (y ord y) -> (x ord y),
3018         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
3019         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
3020         vectors like scalars.
3022 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
3024         * convert.c (convert_to_integer, convert_to_vector): Include the
3025         types in the error message.
3027 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
3029         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
3030         simplifications.
3032 2015-05-22  Jeff Law  <law@redhat.com>
3034         * config/pa/pa.md (integer_indexed_store splitters): Use
3035         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
3036         insns -- adjusting the constant 2nd operand accordingly.
3038         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
3039         (plus (ashift X log2) Y) if it is a split point.
3041         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
3042         out of hppa_legitimize_address to handle both forms of a multiply
3043         by 2, 4 or 8.
3044         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
3045         Always generate the ASHIFT variant as the result is not directly
3046         used in a MEM.  Update comments and refactor slightly to improve
3047         readability.
3049 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3051         PR target/65491
3052         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
3053         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
3054         (aarch64_composite_type_p): Return false if given type and mode are
3055         for a short vector.
3057 2015-05-22  Richard Biener  <rguenther@suse.de>
3059         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
3060         member.
3061         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
3062         patterns when determining whether SLP is pure.
3063         (vect_is_slp_reduction): Remove check for pattern stmts.
3064         (vect_is_simple_reduction_1): Remove dead code.
3065         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
3066         (vect_get_and_check_slp_defs): Pass in the stmt number.
3067         Allow the first def in a reduction to be not a pattern stmt when
3068         the rest of the stmts def are patterns.
3069         (vect_build_slp_tree_1): Allow tcc_expression codes like
3070         SAD_EXPR and DOT_PROD_EXPR.
3071         (vect_build_slp_tree): Adjust.
3072         (vect_analyze_slp): Refactor and move BB vect error message ...
3073         (vect_slp_analyze_bb_1): ... here.
3075 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
3077         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
3078         for CSWTCH temporary.
3080 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3082         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
3083         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
3084         unknown unspecs.
3086 2015-05-22  Richard Biener  <rguenther@suse.de>
3088         PR tree-optimization/66251
3089         * tree-vect-stmts.c (vectorizable_conversion): Properly
3090         set STMT_VINFO_VEC_STMT even for the SLP case.
3092 2015-05-22  Marek Polacek  <polacek@redhat.com>
3094         * doc/extend.texi: Use @pxref instead of @xref.
3096 2015-05-22  hiraditya  <hiraditya@msn.com>
3098         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
3099         redundant if.
3101 2015-05-22  Richard Biener  <rguenther@suse.de>
3103         PR tree-optimization/65701
3104         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3105         Move peeling cost models into one place.  Peel for alignment
3106         for single loads only if an aligned load is cheaper than
3107         an unaligned load.
3109 2015-05-22  Marek Polacek  <polacek@redhat.com>
3111         PR c/47043
3112         * doc/extend.texi (Enumerator Attributes): New section.
3113         Document syntax of enumerator attributes.
3115 2015-05-22  Richard Biener  <rguenther@suse.de>
3117         * tree-vect-loop.c (get_reduction_op): New function.
3118         (vect_model_reduction_cost): Use it, add reduc_index parameter.
3119         Make ready for BB reductions.
3120         (vect_create_epilog_for_reduction): Use get_reduction_op.
3121         (vectorizable_reduction): Init reduc_index to a valid value.
3122         Adjust vect_model_reduction_cost call.
3123         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
3124         operand for reduction defaults.  Add SAD_EXPR support.
3125         Assert we have a neutral op for SLP reductions.
3126         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
3127         walking pattern stmt ops only recurse to SSA names.
3129 2015-05-22  Richard Biener  <rguenther@suse.de>
3131         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
3132         assert with guard, remove check on detected reduction.
3133         (vect_recog_sad_pattern): Likewise.
3134         (vect_recog_widen_sum_pattern): Likewise.
3136 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3138         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
3139         __always_inline__ attribute.
3140         (vaesdq_u8): Likewise.
3141         (vaesmcq_u8): Likewise.
3142         (vaesimcq_u8): Likewise.
3143         (vsha1cq_u32): Likewise.
3144         (vsha1mq_u32): Likewise.
3145         (vsha1pq_u32): Likewise.
3146         (vsha1h_u32): Likewise.
3147         (vsha1su0q_u32): Likewise.
3148         (vsha1su1q_u32): Likewise.
3149         (vsha256hq_u32): Likewise.
3150         (vsha256h2q_u32): Likewise.
3151         (vsha256su0q_u32): Likewise.
3152         (vsha256su1q_u32): Likewise.
3153         (vmull_p64): Likewise.
3154         (vmull_high_p64): Likewise.
3156 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3158         * final.c (final_scan_insn): Don't check HAVE_peephole with the
3159         preprocessor.
3160         * output.h: Likewise.
3161         * genconfig.c (main): Alwways define HAVE_peephole.
3162         * genpeep.c: Don't emit checks of HAVE_peephole.
3164 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3166         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
3167         check HAVE_conditional_move with the preprocessor.
3169 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3171         * genconfig.c (main): Always define HAVE_conditional_move.
3172         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
3173         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
3174         is defined.
3176 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3178         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
3179         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
3180         and FRAME_POINTER_REGNUM with the preprocessor.
3182 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3184         * defaults.h: Add default for STACK_PUSH_CODE.
3185         * expr.c: Don't redefine STACK_PUSH_CODE.
3186         * recog.c: Likewise.
3188 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3190         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
3191         sched-deps.c: Use if instead of preprocessor checks with
3192         STACK_GROWS_DOWNWARD.
3194 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3196         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
3197         is defined.
3198         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
3199         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
3200         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
3201         * doc/tm.texi: Regenerate.
3203 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3205         PR target/66232
3206         * config/i386/constraints.md (Bg): New constraint for GOT memory
3207         operand.
3208         * config/i386/i386.md (*call_got_x32): New pattern.
3209         (*call_value_got_x32): Likewise.
3210         * config/i386/predicates.md (GOT_memory_operand): New predicate.
3212 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
3214         PR tree-optimization/66233
3215         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
3216         Simplify.
3218 2015-05-21  Jeff Law  <law@redhat.com>
3220         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
3221         than MULT for shadd sequences.
3223 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
3225         * alias.c (alias_stats): New static var.
3226         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
3227         (dump_alias_stats_in_alias_c): New function.
3228         * alias.h (dump_alias_stats_in_alias_c): Declare.
3229         * tree-ssa-alias.c (dump_alias_stats): Call it.
3231 2015-05-08  Michael Matz  <matz@suse.de>
3233         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
3234         to strided_p.
3235         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
3236         (STMT_VINFO_STRIDED_P): ... this.
3237         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
3238         (vect_verify_datarefs_alignment): Likewise.
3239         (vect_enhance_data_refs_alignment): Likewise.
3240         (vect_analyze_data_ref_access): Likewise.
3241         (vect_analyze_data_refs): Accept strided stores.
3242         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
3243         (vect_model_load_cost): Adjust for macro rename.
3244         (vectorizable_mask_load_store): Likewise.
3245         (vectorizable_load): Likewise.
3246         (vectorizable_store): Open code strided stores.
3248 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3250         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
3251         Document sqrt_insn.
3253 2015-05-21  Richard Biener  <rguenther@suse.de>
3255         PR c++/66211
3256         * match.pd: Guard pattern optimzing (int)(float)int
3257         conversions to apply only on GIMPLE.
3259 2015-05-21  Jeff Law  <law@redhat.com>
3261         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
3262         multiply-accumulate/shift-add insn generation.
3264 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
3266         PR target/54236
3267         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
3268         operands[1] are the same.
3270 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
3272         PR middle-end/66221
3273         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
3274         build_distinct_type_copy to copy bounds.
3276 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
3278         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
3279         Change to unsigned int.
3281 2015-05-20  Jeff Law  <law@redhat.com>
3283         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
3284         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
3285         (pa_shadd_constant_p): Allow constants for shadd insns rather
3286         than valid scaling constants for memory addresses.
3287         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
3288         * config/pa/predicates.md (mem_shadd_operand): New predicate.
3289         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
3290         (shift-add insns using ASHIFT): New patterns.
3292 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
3294         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
3295         feasible.
3296         (fix_up_fall_thru_edges): Likewise.
3297         (fix_crossing_conditional_branches): Likewise. Promote jump targets
3298         from to rtx_insn to rtx_code_label where feasible.
3299         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
3300         gen_move_insn (returned type changed to rtx_insn).
3301         * builtins.c (expand_errno_check): Fix arguments of
3302         do_compare_rtx_and_jump (now expects rtx_code_label).
3303         (expand_builtin_acc_on_device): Likewise.
3304         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
3305         invert_jump (now exprects rtx_jump_insn).
3306         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
3307         (construct_init_block): Use rtx_code_label.
3308         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
3309         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
3310         calling redirect_jump.
3311         (patch_jump_insn): Likewise.
3312         (redirect_branch_edge): Likewise.
3313         (force_nonfallthru_and_redirect): Likewise.
3314         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
3315         when suitable.
3316         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
3317         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
3318         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
3319         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
3320         to store the value retured by gen_label_rtx.
3321         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
3322         rtx_jump_insn.
3323         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
3324         (split_branches): Fix calls of redirect_jump.
3325         * dojump.c (jumpifnot): Promote argument type from rtx to
3326         rtx_code_label.
3327         (jumpifnot_1): Likewise.
3328         (jumpif): Likewise.
3329         (jumpif_1): Likewise.
3330         (do_jump_1): Likewise.
3331         (do_jump): Likewise. Use rtx_code_label when feasible.
3332         (do_jump_by_parts_greater_rtx): Likewise.
3333         (do_jump_by_parts_zero_rtx): Likewise.
3334         (do_jump_by_parts_equality_rtx): Likewise.
3335         (do_compare_rtx_and_jump): Likewise.
3336         * dojump.h: Update function prototypes.
3337         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
3338         returns rtx_insn).
3339         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
3340         rtx_jump_insn.
3341         (emit_label_before): Likewise.
3342         (emit_jump_insn_after_noloc): Likewise.
3343         (emit_jump_insn_after_setloc): Likewise.
3344         (emit_jump_insn_after): Likewise
3345         (emit_jump_insn_before_setloc): Likewise.
3346         (emit_jump_insn_before): Likewise.
3347         (emit_label_before): Promote return type to rtx_code_label.
3348         (emit_label): Likewise.
3349         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
3350         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
3351         gen_move_insn.
3352         (emit_stack_restore): Likewise.
3353         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
3354         (do_cmp_and_jump): Likewise.
3355         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
3356         from rtx to rtx_code_label.
3357         (gen_move_insn_uncast): New function.
3358         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
3359         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
3360         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
3361         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
3362         invert_jump_1 and redirect_jump_1.
3363         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
3364         do_compare_rtx_and_jump.
3365         (expand_addsub_overflow): Likewise.
3366         (expand_neg_overflow): Likewise.
3367         (expand_mul_overflow): Likewise.
3368         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
3369         return value of gen_move_insn.
3370         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
3371         * loop-doloop.c (add_test): Use rtx_code_label.
3372         (doloop_modify): Likewise.
3373         (doloop_optimize): Likewise.
3374         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
3375         * lra-constraints.c (emit_spill_move): Remove cast of value returned
3376         by gen_move_insn.
3377         (inherit_reload_reg): Add cast when calling dump_insn_slim.
3378         (split_reg): Likewise.
3379         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
3380         gen_move_insn.
3381         * optabs.c (expand_binop_directly): Remove casts of values returned by
3382         maybe_gen_insn.
3383         (expand_unop_direct): Likewise.
3384         (expand_abs): Likewise.
3385         (maybe_emit_unop_insn): Likewise.
3386         (maybe_gen_insn): Promote return type to rtx_insn.
3387         * optabs.h: Update prototype of maybe_gen_insn.
3388         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
3389         redundant cast.
3390         * recog.c (struct peep2_insn_data): Promote type of insn field to
3391         rtx_insn.
3392         (peep2_reinit_state): Use NULL instead of NULL_RTX.
3393         (peep2_attempt): Remove casts of insn in peep2_insn_data.
3394         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
3395         * recog.h (struct insn_gen_fn): Promote return types of function
3396         pointers and operator ().from rtx to rtx_insn.
3397         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
3398         (fill_eager_delay_slots): Likewise.
3399         (relax_delay_slots): Likewise.
3400         (make_return_insns): Likewise.
3401         (dbr_schedule): Likewise.
3402         (optimize_skips): Likewise.
3403         (reorg_redirect_jump): Likewise.
3404         (fill_slots_from_thread): Likewise.
3405         * reorg.h: Update prototypes.
3406         * resource.c (find_dead_or_set_registers): Use dyn_cast to
3407         rtx_jump_insn instead of check.  Use it's jump_target method.
3408         * rtl.h (rtx_jump_insn::jump_label): Define new method.
3409         (rtx_jump_insn::jump_target): Define new method.
3410         (rtx_jump_insn::set_jump_target): Define new method.
3411         * rtlanal.c (tablejump_p): Promote type of one local variable.
3412         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
3413         (sched_analyze_insn): Likewise.
3414         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
3415         (print_insn): Likewise.
3416         * stmt.c (label_rtx): Promote return type to rtx_insn.
3417         (force_label_rtx): Likewise.
3418         (jump_target_rtx): Define new function.
3419         (expand_label): Use it, get rid of one cast.
3420         (expand_naked_return): Promote rtx to rtx_code_label.
3421         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
3422         (expand_case): Use rtx_code_label instread of rtx where feasible.
3423         (expand_sjlj_dispatch_table): Likewise.
3424         (emit_case_nodes): Likewise.
3425         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
3426         * store-motion.c (insert_store): Make use of new return type of
3427         gen_move_insn and remove a cast.
3428         (replace_store_insn): Likewise.
3430 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
3432         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
3433         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
3435 2015-05-20  Jeff Law  <law@redhat.com>
3437         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
3438         dispose of the jump thread path when the jump threading
3439         opportunity is cancelled.
3441 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3443         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
3444         when printing the caret character.
3446 2015-05-20  Marek Polacek  <polacek@redhat.com>
3448         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
3450 2015-05-20  Marek Polacek  <polacek@redhat.com>
3452         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
3453         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
3454         * gimple-fold.c (canonicalize_bool): Likewise.
3455         (same_bool_result_p): Likewise.
3456         * tree-if-conv.c (parse_predicate): Likewise.
3458 2015-05-20  Marek Polacek  <polacek@redhat.com>
3460         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
3461         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
3463 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3465         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
3466         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
3467         values.
3469 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
3471         * config/mips/mips.h (micromips_globals): Declare.
3473 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
3475         * timevar.def (TV_INITIALIZE_RTL): New.
3476         * toplev.c (initialize_rtl): Use an auto_timevar to account this
3477         function's time to TV_INITIALIZE_RTL.
3479 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
3481         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
3482         gimple_build_nop calls.
3483         (chkp_find_bounds_for_elem): Likewise.
3484         (chkp_get_zero_bounds): Likewise.
3485         (chkp_get_none_bounds): Likewise.
3486         (chkp_get_bounds_by_definition): Likewise.
3487         (chkp_generate_extern_var_bounds): Likewise.
3488         (chkp_get_bounds_for_decl_addr): Likewise.
3489         (chkp_get_bounds_for_string_cst): Likewise.
3491 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
3493         PR tree-optimization/65447
3494         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
3495         (dump_use, dump_uses): Support to dump sub use.
3496         (record_use): New parameters to support sub use.  Remove call to
3497         dump_use.
3498         (record_sub_use, record_group_use): New functions.
3499         (compute_max_addr_offset, split_all_small_groups): New functions.
3500         (group_address_uses, rewrite_use_address): New functions.
3501         (strip_offset): New declaration.
3502         (find_interesting_uses_address): Call record_group_use.
3503         (add_candidate): New assertion.
3504         (infinite_cost_p): Move definition forward.
3505         (add_costs): Check INFTY cost and return immediately.
3506         (get_computation_cost_at): Clear setup cost and dependent bitmap
3507         for sub uses.
3508         (determine_use_iv_cost_address): Compute cost for sub uses.
3509         (rewrite_use_address_1): Rename from old rewrite_use_address.
3510         (free_loop_data): Free sub uses.
3511         (tree_ssa_iv_optimize_loop): Call group_address_uses.
3513 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3514             Jim Wilson  <jim.wilson@linaro.org>
3516         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
3517         new  fields loadv and storev.
3518         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
3519         Initialize loadv and storev.
3520         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
3521         (cortexa53_extra_costs): Likewise.
3522         (cortexa57_extra_costs): Likewise.
3523         (xgene1_extra_costs): Likewise.
3524         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
3525         rtx_costs.
3527 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3529         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
3530          storev.
3531         (cortexa8_extra_costs): Likewise.
3532         (cortexa5_extra_costs): Likewise.
3533         (cortexa7_extra_costs): Likewise.
3534         (cortexa12_extra_costs): Likewise.
3535         (cortexa15_extra_costs): Likewise.
3536         (v7m_extra_costs): Likewise.
3538 2015-05-20  Jeff Law  <law@redhat.com>
3540         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
3541         instead of open-coded version.  Also delete the jump thread created
3542         within this function.
3544 2015-05-20  Alan Modra  <amodra@gmail.com>
3546         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
3547         stack adjusting insn.  Formatting.
3548         (rs6000_emit_prologue): Track stack adjusting insn, and use of
3549         r12.  If possible, emit first -fsplit-stack arg pointer insn
3550         before stack adjust.  Don't use r12 to save cr if split-stack.
3552 2015-05-20  Alan Modra  <amodra@gmail.com>
3554         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
3555         Define.
3556         (rs6000_supports_split_stack): New function.
3557         * gcc/config/rs6000/rs6000.c (machine_function): Add
3558         split_stack_arg_pointer.
3559         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
3560         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
3561         rather than virtual_incoming_args_rtx.
3562         (rs6000_va_start): Likewise.
3563         (split_stack_arg_pointer_used_p): New function.
3564         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
3565         (morestack_ref): New var.
3566         (gen_add3_const, rs6000_expand_split_stack_prologue,
3567         rs6000_internal_arg_pointer, rs6000_live_on_entry,
3568         rs6000_split_stack_space_check): New functions.
3569         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
3570         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
3571         (UNSPECV_SPLIT_STACK_RETURN): Define.
3572         (split_stack_prologue, load_split_stack_limit,
3573         load_split_stack_limit_di, load_split_stack_limit_si,
3574         split_stack_return, split_stack_space_check): New expands and insns.
3575         * gcc/config/rs6000/rs6000-protos.h
3576         (rs6000_expand_split_stack_prologue): Declare.
3577         (rs6000_split_stack_space_check): Declare.
3579 2015-05-20  Alan Modra  <amodra@gmail.com>
3581         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
3582         (rs6000_stack_info): Don't zero offsets when not saving registers.
3583         (debug_stack_info): Adjust to omit printing unused offsets,
3584         as before.
3585         (direct_return): Test vrsave_size rather than vrsave_mask.
3586         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
3587         (rs6000_emit_epilogue): Likewise.
3589 2015-05-20  Alan Modra  <amodra@gmail.com>
3591         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
3592         when not saving registers.
3593         (debug_stack_info): Adjust to omit printing unused offsets,
3594         as before.
3595         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
3596         expression.
3598 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3600         PR c++/65835
3601         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
3602         value_type to const char *.
3604 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
3606         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
3607         to build a biarch toolchain again.
3609 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
3611         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
3612         or implicit declarations.
3613         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
3614         into it.
3615         (get_odr_type): Check type has linkage before adding bases.
3616         (register_odr_type): Check that type has linkage before adding it.
3617         (type_known_to_have_no_deriavations_p): Rename to ..
3618         (type_known_to_have_no_derivations_p): This one.
3619         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
3620         (type_known_to_have_no_derivations_p): This one.
3621         * ipa-polymorphic-call.c
3622         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
3623         type has linkage.
3625 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3627         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
3628         (layout_type): Use RECORD_OR_UNION_TYPE_P.
3630 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3632         * config/s390/s390.c (s390_vector_bool_type_p): New function.
3633         (s390_invalid_binary_op): New function.
3634         (TARGET_INVALID_BINARY_OP): Define macro.
3636 2015-05-19  David Sherwood  <david.sherwood@arm.com>
3638         * loop-invariant.c (create_new_invariant): Don't calculate address cost
3639         if mode is not a scalar integer.
3640         (get_inv_cost): Increase computational cost for unused invariants.
3642 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3644         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
3645         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
3646         * config/s390/s390-builtin-types.def: New file.
3647         * config/s390/s390-builtins.def: New file.
3648         * config/s390/s390-builtins.h: New file.
3649         * config/s390/s390-c.c: New file.
3650         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
3651         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
3652         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
3653         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
3654         prototypes.
3655         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
3656         Include.
3657         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
3658         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
3659         variable definitions.
3660         (s390_const_operand_ok): New function.
3661         (s390_expand_builtin): Rewrite.
3662         (s390_init_builtins): New function.
3663         (s390_handle_vectorbool_attribute): New function.
3664         (s390_attribute_table): Add s390_vector_bool attribute.
3665         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
3666         (s390_branch_condition_mask): Generate masks for new modes.
3667         (s390_expand_vec_compare_cc): New function.
3668         (s390_mangle_type): Add mangling for vector bool types.
3669         (enum s390_builtin): Remove.
3670         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
3671         efpc builtins.
3672         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
3673         s390_cpu_cpp_builtins.
3674         (REGISTER_TARGET_PRAGMAS): New macro.
3675         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
3676         (insn_cmp mode attribute): Add new CC modes.
3677         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
3678         (lcbb): New pattern definition.
3679         * config/s390/s390intrin.h: Include vecintrin.h.
3680         * config/s390/t-s390: New file.
3681         * config/s390/vecintrin.h: New file.
3682         * config/s390/vector.md: Include vx-builtins.md.
3683         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
3684         support.
3686 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3688         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
3689         CCVFHE.
3690         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
3691         (s390_select_ccmode): Likewise.
3692         (s390_canonicalize_comparison): Swap operands if necessary.
3693         (s390_expand_vec_compare_scalar): Expand DFmode compare using
3694         single element vector instructions.
3695         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
3696         (s390_branch_condition_mask): Generate CC masks for the new modes.
3697         * config/s390/s390.md (v0, vf, vd): New mode attributes.
3698         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
3699         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
3700         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
3701         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
3702         (*extend<DSF:mode><BFP:mode>2): New insn definition.
3703         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
3704         (extend<DSF:mode><BFP:mode>2): Turn into expander.
3705         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
3706         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
3707         (sqrt<mode>2): Add vector instruction.
3709 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3711         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
3712         constraints.
3713         * config/s390/predicates.md (const0_operand, constm1_operand)
3714         (constable_operand): Accept vector operands.
3715         * config/s390/s390-modes.def: Add supported vector modes.
3716         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
3717         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
3718         (s390_bytemask_vector_p, s390_expand_vec_strlen)
3719         (s390_expand_vec_compare, s390_expand_vcond)
3720         (s390_expand_vec_init): Add prototypes.
3721         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
3722         (s390_vector_mode_supported_p): New function.
3723         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
3724         (s390_contiguous_bitmask_vector_p): New function.
3725         (s390_bytemask_vector_p): New function.
3726         (s390_split_ok_p): Vector regs don't work either.
3727         (regclass_map): Add VEC_REGS.
3728         (s390_legitimate_constant_p): Handle vector constants.
3729         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
3730         (legitimate_reload_vector_constant_p): New function.
3731         (s390_preferred_reload_class): Handle CONST_VECTOR.
3732         (s390_reload_symref_address):  Likewise.
3733         (s390_secondary_reload): Vector memory instructions only support
3734         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
3735         (s390_emit_ccraw_jump): New function.
3736         (s390_expand_vec_strlen): New function.
3737         (s390_expand_vec_compare): New function.
3738         (s390_expand_vcond): New function.
3739         (s390_expand_vec_init): New function.
3740         (s390_dwarf_frame_reg_mode): New function.
3741         (print_operand): Handle addresses with 'O' and 'R' constraints.
3742         (NR_C_MODES, constant_modes): Add vector modes.
3743         (s390_output_pool_entry): Handle vector constants.
3744         (s390_hard_regno_mode_ok): Handle vector registers.
3745         (s390_class_max_nregs): Likewise.
3746         (s390_cannot_change_mode_class): New function.
3747         (s390_invalid_arg_for_unprototyped_fn): New function.
3748         (s390_function_arg_vector): New function.
3749         (s390_function_arg_float): Remove size variable.
3750         (s390_pass_by_reference): Handle vector arguments.
3751         (s390_function_arg_advance): Likewise.
3752         (s390_function_arg): Likewise.
3753         (s390_return_in_memory): Vector values are returned in a VR if
3754         possible.
3755         (s390_function_and_libcall_value): Handle vector arguments.
3756         (s390_gimplify_va_arg): Likewise.
3757         (s390_call_saved_register_used): Consider the arguments named.
3758         (s390_conditional_register_usage): Disable v16-v31 for non-vec
3759         targets.
3760         (s390_preferred_simd_mode): New function.
3761         (s390_support_vector_misalignment): New function.
3762         (s390_vector_alignment): New function.
3763         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
3764         (TARGET_VECTOR_MODE_SUPPORTED_P)
3765         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
3766         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
3767         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
3768         (TARGET_VECTOR_ALIGNMENT): Define target macro.
3769         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
3770         (FIRST_PSEUDO_REGISTER): Increase value.
3771         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
3772         (VECTOR_REG_P): Define macros.
3773         (FIXED_REGISTERS, CALL_USED_REGISTERS)
3774         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
3775         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
3776         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
3777         Add vector registers.
3778         (CANNOT_CHANGE_MODE_CLASS): Call C function.
3779         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
3780         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
3781         memory.
3782         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
3783         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
3784         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
3785         (VR*_REGNUM): New constants.
3786         (ALL): New mode iterator.
3787         (INTALL): Remove mode iterator.
3788         Include vector.md.
3789         (movti): Implement TImode moves for VRs.
3790         Disable TImode splitter for VR targets.
3791         Implement splitting TImode GPR<->VR moves.
3792         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
3793         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
3794         reload<mode>_la_in, reload<mode>_la_out.
3795         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
3796         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
3797         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
3798         (mov<mode> SF SD): Prefer lder, lde for loading.
3799         Add lrl and strl instructions.
3800         Add vector instructions.
3801         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
3802         Call s390_expand_vec_strlen on z13.
3803         (*cc_to_int): Change predicate to nonimmediate_operand.
3804         (addti3): Rename to *addti3.  New expander.
3805         (subti3): Rename to *subti3.  New expander.
3806         * config/s390/vector.md: New file.
3808 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3810         * common/config/s390/s390-common.c (processor_flags_table): Add
3811         z13.
3812         * config.gcc: Add z13.
3813         * config/s390/s390-opts.h (enum processor_type): Add
3814         PROCESSOR_2964_Z13.
3815         * config/s390/s390.c (s390_adjust_priority): Check for
3816         PROCESSOR_2964_Z13.
3817         (s390_reorg): Likewise.
3818         (s390_sched_reorder): Likewise.
3819         (s390_sched_variable_issue): Likewise.
3820         (s390_loop_unroll_adjust): Likewise.
3821         (s390_option_override): Likewise. Default to -mvx when available.
3822         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
3823         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
3824         (TARGET_VX_ABI): Define macros.
3825         macros.
3826         (TARGET_DEFAULT): Add MASK_OPT_VX.
3827         * config/s390/s390.md ("cpu" attribute): Add z13.
3828         ("cpu_facility" attribute): Add vec.
3829         * config/s390/s390.opt (processor_type): Add z13.
3830         (mvx): New options.
3831         * doc/invoke.texi: Add z13 option for -march.
3833 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3835         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
3836         mode check to make sure that only scalar integer values are
3837         accepted.
3839 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
3841         * tree.c (verify_type_variant): Fix #undef.
3842         (gimple_canonical_types_compatible_p): Move here from lto.c
3843         (verify_type): Verify TYPE_CANONICAL compatibility.
3844         * tree.h (gimple_canonical_types_compatible_p): Declare.
3846 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
3848         PR middle-end/66199
3849         * tree.h (OMP_TEAMS_COMBINED): Define.
3850         * gimplify.c (enum gimplify_omp_var_data): Add
3851         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
3852         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
3853         (omp_notice_variable): Accept both ORT_TEAMS
3854         and ORT_COMBINED_TEAMS.  Don't recurse if
3855         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
3856         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
3857         GOVD_FIRSTPRIVATE.
3858         (omp_no_lastprivate): New function.
3859         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
3860         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
3861         notice_outer and set appropriate bits, otherwise make
3862         sure default(none) combined constructs won't complain.
3863         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
3864         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
3865         omp_no_lastprivate either remove the clause or turn it
3866         into OMP_CLAUSE_PRIVATE.
3867         (gimplify_omp_for): Fix up handling of implicit
3868         lastprivate or linear iterators.
3869         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
3870         ORT_COMBINED_TEAMS.
3871         * omp-low.c (lower_omp_for_lastprivate): For combined
3872         for simd use fd.loop.n2 from the for rather than simd.
3874 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3876         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
3877         instead of gen_rtx_raw_REG.
3878         (cris_expand_epilogue): Likewise.
3879         * config/microblaze/microblaze.c (microblaze_classify_address):
3880         Likewise.
3881         * config/sparc/sparc.md: Likewise.
3883 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
3885         * config/alpha/alpha.c (alpha_legitimize_reload_address)
3886         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
3887         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
3888         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
3889         Use CASE_CONST_SCALAR_INT.
3890         (print_operand) <case 'M'>: Use mode_width_operand to check the
3891         value of the constant.
3892         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
3893         * config/alpha/predicates.md (input_operand): Use general_operand
3894         instead of match_code as operand check.
3895         (symbolic_operand): Use match_code with subexpression digits.
3896         * config/alpha/constraints.md (Q): Ditto.
3898 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3900         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
3902 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3904         * config/s390/s390.c (s390_secondary_reload): Fix check for
3905         load/store relative.
3907 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3909         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
3910         alternative_mask to uint64_t.
3912 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
3914         PR tree-optimization/66187
3915         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3916         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
3917         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
3919 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
3921         * diagnostic.c (diagnostic_report_current_module): Strengthen
3922         local "new_map" from const line_map * to
3923         const line_map_ordinary *.
3924         * genmatch.c (error_cb): Likewise for local "map".
3925         (output_line_directive): Likewise for local "map".
3926         * input.c (expand_location_1): Likewise for local "map".
3927         Pass NULL rather than &map to
3928         linemap_unwind_to_first_non_reserved_loc, since the value is never
3929         read from there, and the value written back not read from here.
3930         (is_location_from_builtin_token): Strengthen local "map" from
3931         const line_map * to const line_map_ordinary *.
3932         (dump_location_info): Strengthen locals "map" from
3933         line_map *, one to const line_map_ordinary *, the other
3934         to const line_map_macro *.
3935         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
3936         const line_map * to const line_map_macro *.
3937         (maybe_unwind_expanded_macro_loc): Add a call to
3938         linemap_check_macro when writing to the "map" field of the
3939         loc_map_pair.
3940         Introduce local const line_map_ordinary * "ord_map", using it in
3941         place of "map" in the part of the function where we know we have
3942         an ordinary map.  Strengthen local "m" from const line_map * to
3943         const line_map_ordinary *.
3945 2015-05-19  Nick Clifton  <nickc@redhat.com>
3947         PR target/66156
3948         * config/msp430/msp430.md (zero_extendhisi2): Add support for
3949         separate source and destination registers.
3951 2015-05-19  Richard Biener  <rguenther@suse.de>
3953         PR tree-optimization/66165
3954         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
3955         for no load permutation.
3957         PR tree-optimization/66185
3958         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
3959         when building the SLP node from scalars.
3961 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3962             Tristan Gingold  <gingold@adacore.com>
3964         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
3965         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
3966         (expand_stack_restore): Call record_new_stack_level.
3967         (expand_stack_save): Do not call do_pending_stack_adjust.
3968         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
3969         * calls.c (expand_call): Call record_new_stack_level for alloca.
3970         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
3971         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
3972         (update_sjlj_context): New global function.
3973         * except.h (update_sjlj_context): Declare.
3974         * explow.c (record_new_stack_level): New global function.
3975         (allocate_dynamic_stack_space): Call record_new_stack_level.
3976         * explow.h (record_new_stack_level): Declare.
3977         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
3978         * cfgrtl.c (duplicate_insn_chain): Likewise.
3980 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3982         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
3983         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
3984         STACK_GROWS_DOWNWARD as normal if.
3985         (expand_call): Likewise.
3987 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
3989         PR target/54236
3990         * config/sh/sh.md (*round_int_even): New insn_and_split and
3991         accompanying new unnamed split.
3993 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3995         * bitmap.c (bitmap_set_range): Handle count==1 specially.
3996         (bitmap_clear_range): Likewise.
3997         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
3998         bitmap_set_range unconditionally.
3999         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
4000         * df-scan.c (df_mark_reg): Likewise.
4001         * haifa-sched.c (setup_ref_regs): Likewise.
4002         * sched-rgn.c (update_live_1): Likewise.
4004 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4006         * regs.h (END_HARD_REGNO): Delete.
4007         (END_REGNO): Move to...
4008         * rtl.h: ...here.
4009         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
4010         * caller-save.c (mark_set_regs): Likewise.
4011         * combine.c (move_deaths, distribute_notes): Likewise.
4012         * cse.c (invalidate, invalidate_for_call): Likewise.
4013         * df-scan.c (df_ref_record): Likewise.
4014         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
4015         (record_last_reg_set_info): Likewise.
4016         * reg-stack.c (convert_regs_exit): Likewise.
4017         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
4018         * resource.c (update_live_status): Likewise.
4019         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
4021 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4023         * rtl.h (reg_info): Add an nregs field.
4024         (REG_NREGS): Use it.
4025         (SET_REGNO_RAW): Delete.
4026         (set_regno_raw): New function.
4027         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
4028         (END_REGNO): Redefine in terms of REG_NREGS.
4029         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
4030         SET_REGNO_RAW.
4031         * emit-rtl.c (set_mode_and_regno): Likewise.
4032         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
4033         instead of SET_REGNO_RAW.
4035 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4037         * rtl.h (PUT_MODE_RAW): New macro.
4038         (PUT_REG_NOTE_KIND): Use it.
4039         (set_mode_and_regno): Declare.
4040         (gen_raw_REG): Change regno to "unsigned int".
4041         (gen_rtx_REG): Change "unsigned" to "unsigned int".
4042         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
4043         use set_mode_and_regno to change the mode of registers.
4044         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
4045         * emit-rtl.c (set_mode_and_regno): New function.
4046         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
4047         * caller-save.c (reg_save_code): Use set_mode_and_regno.
4048         * expr.c (init_expr_target): Likewise.
4049         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4050         * postreload.c (reload_cse_simplify_operands): Likewise.
4052 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4054         * caller-save.c (init_caller_save): Use word_mode and
4055         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
4056         * expr.c (init_expr_target): Likewise.
4057         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4058         * postreload.c (reload_cse_regs_1): Likewise.
4060 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4062         * rtl.def (REG): Change format to "r".
4063         * rtl.h (rtunion): Remove rt_reg.
4064         (reg_info): New structure.
4065         (rtx_def): Add reg field to main union.
4066         (X0REGATTR): Delete.
4067         (REG_CHECK): New macro.
4068         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
4069         * rtl.c (rtx_format): Document "r".
4070         (rtx_code_size): Handle REG specially.
4071         * gengenrtl.c (special_format): Return true for formats
4072         that include 'r'.
4073         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
4074         Deal with REG_ATTRS after the field loop.
4075         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
4076         * expmed.c (init_expmed): Call gen_raw_REG instead of
4077         gen_rtx_raw_REG.
4078         * expr.c (init_expr_target): Likewise.
4079         * regcprop.c (maybe_mode_change): Likewise.
4080         * varasm.c (make_decl_rtl): Likewise.
4081         * final.c (leaf_renumber_regs_insn): Return early after
4082         handling REGs.
4083         * genemit.c (gen_exp): Handle 'r' fields.
4084         * genpeep.c (match_rtx): Likewise.
4085         * gensupport.c (subst_pattern_match): Likewise.
4086         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
4087         (alter_constraints, subst_dup): Likewise.
4088         * read-rtl.c (read_rtx_code): Likewise.
4089         * print-rtl.c (print_rtx): Likewise.
4090         * genrecog.c (find_operand, find_matching_operand): Likewise.
4091         (validate_pattern, match_pattern_2): Likewise.
4092         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
4093         (rtx_test::regno_field): New function.
4094         (operator ==, safe_to_hoist_p, transition_parameter_type)
4095         (parameter_type_string, print_parameter_value)
4096         (print_nonbool_test, print_test): Handle new enum values.
4097         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
4098         * lra-constraints.c (operands_match_p): Likewise.
4100 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4102         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
4103         Change type of new_regno to unsigned int.
4104         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
4105         new_regno to unsigned int.
4106         (df_ref_change_reg_with_loc): Remove old_regno parameter.
4107         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
4108         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
4109         (SET_REGNO_RAW): Add space after ",".
4111 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4113         * rtl.h (REG_NREGS): New macro
4114         * alias.c (record_set): Use it.
4115         * cfgcleanup.c (mark_effect): Likewise.
4116         * combine.c (likely_spilled_retval_1): Likewise.
4117         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
4118         (move_deaths, distribute_notes): Likewise.
4119         * cselib.c (cselib_record_set): Likewise.
4120         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
4121         * df-scan.c (df_mark_reg): Likewise.
4122         * dse.c (look_for_hardregs): Likewise.
4123         * dwarf2out.c (reg_loc_descriptor): Likewise.
4124         (multiple_reg_loc_descriptor): Likewise.
4125         * expr.c (write_complex_part, read_complex_part): Likewise.
4126         (emit_move_complex): Likewise.
4127         * haifa-sched.c (setup_ref_regs): Likewise.
4128         * ira-lives.c (mark_hard_reg_live): Likewise.
4129         * lra.c (lra_set_insn_recog_data): Likewise.
4130         * mode-switching.c (create_pre_exit): Likewise.
4131         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
4132         (reload_combine_recognize_pattern): Likewise.
4133         (reload_combine_note_use, move2add_record_mode): Likewise.
4134         (reload_cse_move2add): Likewise.
4135         * reg-stack.c (subst_stack_regs_pat): Likewise.
4136         * regcprop.c (kill_value, copy_value): Likewise.
4137         (copyprop_hardreg_forward_1): Likewise.
4138         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
4139         (build_def_use): Likewise.
4140         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
4141         (deps_analyze_insn): Likewise.
4142         * sched-rgn.c (check_live_1, update_live_1): Likewise.
4143         * sel-sched.c (count_occurrences_equiv): Likewise.
4144         * valtrack.c (dead_debug_insert_temp): Likewise.
4146 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
4148         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
4149         * dse.c (note_add_store): Likewise.
4150         * ira-lives.c (mark_hard_reg_dead): Likewise.
4151         * loop-invariant.c (mark_reg_store): Likewise.
4152         (mark_reg_death): Likewise.
4153         * postreload.c (reload_combine): Likewise.
4154         (reload_combine_note_store): Likewise.
4155         (reload_combine_note_use): Likewise.
4156         * recog.c (peep2_reg_dead_p): Likewise.
4158 2015-05-19  Alan Modra  <amodra@gmail.com>
4160         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
4161         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
4162         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
4163         unused predicates.
4164         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
4165         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
4166         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
4167         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
4169 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
4171         * config/mips/mips.md (JOIN_MODE): New mode iterator.
4172         (join2_load_Store<JOIN_MODE:mode>): New pattern.
4173         (join2_loadhi): Likewise.
4174         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
4175         load-load and store-stores.
4176         * config/mips/mips.opt (mload-store-pairs): New option.
4177         (TARGET_LOAD_STORE_PAIRS): New macro.
4178         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
4179         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
4180         * config/mips/mips.c (mips_load_store_bonding_p): New function.
4182 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
4184         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
4185         explicit swaps.
4186         * dojump.c (do_compare_rtx_and_jump): Likewise.
4187         * expmed.c (emit_store_flag_1): Likewise.
4188         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
4189         * final.c (sprint_ul): Use std::reverse for reversing a string.
4190         * fold-const.c (extract_muldiv_1): Use std::swap.
4191         * genmodes.c (emit_mode_int_n): Likewise.
4192         * ifcvt.c (dead_or_predicable): Likewise.
4193         * ira-build.c (ira_merge_live_ranges): Likewise.
4194         (swap_allocno_copy_ends_if_necessary): Likewise.
4195         * ira.c (ira_setup_alts): Likewise.
4196         * loop-iv.c (iv_analyze_expr): Likewise.
4197         (implies_p): Likewise.
4198         (canon_condition): Likewise.
4199         * lra-constraints.c (swap_operands): Likewise.
4200         * lra-lives.c (lra_merge_live_ranges): Likewise.
4201         * omega.c (swap): Remove.
4202         (bswap): Remove.
4203         (omega_unprotect_1): Use std::swap.
4204         (omega_solve_geq): Likewise.
4205         * optabs.c (expand_binop_directly): Likewise.
4206         (expand_binop): Likewise.
4207         (emit_conditional_move): Likewise.
4208         (emit_conditional_add): Likewise.
4209         * postreload.c (reload_cse_simplify_operands): Likewise.
4210         * reg-stack.c (emit_swap_insn): Likewise.
4211         (swap_to_top): Likewise.
4212         (compare_for_stack_reg): Likewise.
4213         (subst_asm_stack_regs): Likewise.
4214         * reload.c (find_reloads): Likewise.
4215         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
4216         * sel-sched.c (invoke_reorder_hooks): Likewise.
4217         (create_block_for_bookkeeping): Likewise.
4218         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
4219         (lambda_matrix_right_hermite): Use std::swap.
4220         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
4221         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4222         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
4223         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
4224         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4225         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
4226         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4227         * tree-vrp.c (compare_ranges): Likewise.
4228         * var-tracking.c (add_with_sets): Likewise.
4229         (vt_find_locations): Likewise.
4231 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
4233         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
4234         pie executables.
4235         (FBSD_ENDFILE_SPEC): Likewise.
4236         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
4237         config/freebsd-spec.h.
4238         (ENDFILE_SPEC): Likewise.
4240 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
4241             Richard Henderson  <rth@redhat.com>
4243         PR target/57032
4244         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
4245         Check for a memory location that is not a reference (using an AND)
4246         to an unaligned location here.
4247         * config/alpha/predicates.md (normal_memory_operand): Remove.
4249 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
4251         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
4252         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
4254 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4256         * config/mips/mips.c (micromips_globals): New variable.
4257         (mips_set_compression_mode): Save and reinitialize target-dependent
4258         state for microMIPS.
4260 2015-05-18  Martin Liska  <mliska@suse.cz>
4262         * dbgcnt.def: Add new counter.
4263         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
4265 2015-05-18  Martin Liska  <mliska@suse.cz>
4267         * dbgcnt.def: Sort counters.
4268         * opts.c (common_handle_option): Do not compile if
4269         -fdbg-cnt-list is enabled.
4271 2015-05-18  Tom de Vries  <tom@codesourcery.com>
4273         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
4274         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
4275         address operator to va_list operand.
4276         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
4277         unconditionally.
4278         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
4279         operand.
4280         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
4281         * config/s390/s390.c (s390_gimplify_va_arg): Same.
4282         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
4284 2015-05-18  Tom de Vries  <tom@codesourcery.com>
4286         * tree-ssa-tail-merge.c: Fix whitespace.
4288 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
4290         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
4291         cortex-a17, and cortex-a17.cortex-a7.
4293 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
4295         PR target/54236
4296         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
4298 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
4300         PR target/66174
4301         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
4302         QImode inner modes for TARGET_AVX512BW.  Force mask operand
4303         to a register for AVX512F modes.
4305 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
4307         * toplev.c (emit_debug_global_declarations): Do not output debug info
4308         when doing slim LTO objects.
4310 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
4312         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
4313         odr_types_equivalent_p): Declare.
4314         (odr_type_p): Use gcc_checking_assert.
4315         (type_in_anonymous_namespace_p) Declare.
4316         (type_with_linkage_p): Declare.
4317         * common.opt (Wlto-type-mismatch): New warning.
4318         * ipa-devirt.c (compound_type_base): New function.
4319         (odr_or_derived_type_p): New function.
4320         (odr_types_equivalent_p): New function.
4321         (add_type_duplicate): Simplify.
4322         (type_with_linkage_p): Add hack to prevent false positives on C types
4323         (type_in_anonymous_namespace_p): Likewise.
4324         * tree.c (need_assembler_name_p): Use type_with_linkage.
4325         * tree.h (type_in_anonymous_namespace_p): Remove.
4326         * doc/invoke.texi (-Wlto-type-mismatch): Document
4328 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
4330         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
4331         (verify_type): Verify STRING_FLAG.
4333 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4335         PR fortran/44054
4336         * tree-pretty-print.c (percent_K_format): Replace locus pointer
4337         with accessor function.
4338         * tree-diagnostic.c (diagnostic_report_current_function): Use
4339         diagnostic_location function.
4340         (maybe_unwind_expanded_macro_loc): Likewise.
4341         (virt_loc_aware_diagnostic_finalizer): Likewise.
4342         (default_tree_printer): Replace locus pointer with accessor function.
4343         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
4344         (diagnostic_set_info_translated): Initialize second location.
4345         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
4346         (diagnostic_show_locus): Handle two locations. Call
4347         diagnostic_print_caret_line.
4348         (diagnostic_print_caret_line): New.
4349         (default_diagnostic_starter): Use diagnostic_location function.
4350         (diagnostic_report_diagnostic): Use diagnostic_location function.
4351         (verbatim): Do not set text.locus.
4352         * diagnostic.h (struct diagnostic_info): Remove location field.
4353         (struct diagnostic_context): Make caret_chars an array of two.
4354         (diagnostic_location): New inline.
4355         (diagnostic_expand_location): Handle two locations.
4356         (diagnostic_same_line): New inline.
4357         (diagnostic_print_caret_line): Declare.
4358         (CARET_LINE_MARGIN): New constant.
4359         * pretty-print.c (pp_printf): Do not set text.locus.
4360         (pp_verbatim): Do not set text.locus.
4361         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
4362         (struct text_info): Replace locus pointer with locations
4363         array. Add accessor functions.
4365 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
4366             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4368         PR target/65768
4369         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
4370         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
4371          large constants in register instead of splitting them.
4373 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
4375         PR target/66140
4376         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
4377         replacements in memory addresses.
4378         (get_unaligned_address): Ditto.
4380 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
4382         * config/ft32/*: New files for FT32 port.
4383         * doc/install.texi: Add FT32 information.
4384         * doc/invoke.texi: Add FT32 information.
4385         * doc/md.texi: Add FT32 information.
4386         * doc/contrib.texi: Self added.
4388 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
4390         PR tree-optimization/64454
4391         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
4392         (-1 - A -> ~A): Remove unnecessary condition.
4394 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
4396         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
4397         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4398         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
4400 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
4402         * ipa-chkp.h (chkp_wrap_function): New.
4403         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
4404         (chkp_wrap_function_name): New.
4405         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
4406         to get wrapper name.
4407         * lto-cgraph.c: Include ipa-chkp.h.
4408         (input_cgraph_1): Avoid alias chain for wrappers.
4410 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4412         PR middle-end/66134
4413         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
4414         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
4416 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4418         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
4419         (AARCH64_FL_SLOWMUL): Delete.
4420         (AARCH64_FL_CRC): Redefine to 1<<3.
4421         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
4423 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4425         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
4426         casting.
4428 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
4430         * config/alpha/alpha.md (extendqidi2): Use general_operand
4431         instead of some_operand for operand[1] predicate.
4432         (extendhidi2): Ditto.
4433         (cbranchdi4): Use general_operand instead of some_operand
4434         for operand[1] and operands[2] predicates.
4435         (cstoredi4): Ditto.
4436         * config/alpha/predicates.md (some_operand): Remove unused predicate.
4437         (some_ni_operand): Ditto.
4439 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
4441         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
4442         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
4443         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
4444         low part of the constant using alpha_emit_set_const_1.
4445         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
4447 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
4449         * varasm.c (output_constant_pool_1): Pass down alignment from
4450         constant pool entry's descriptor to output_constant_pool_2.
4451         (output_object_block): Add comment prior to call to
4452         output_constant_pool_1.
4454 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
4456         PR rtl-optimization/65862
4457         * target.def (ira_change_pseudo_allocno_class): New hook.
4458         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
4459         value of the hook.
4460         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
4461         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
4462         hook.
4463         * ira-costs.c (find_costs_and_classes): Call the hook and change
4464         classes when it is necessary.
4465         * doc/tm.texi: Update.
4467 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
4469         * config/i386/i386.md (sibcall_memory): Check that register with
4470         callee address is not also used as one of the arguments, instead
4471         of checking that it is not live after the sibcall.
4472         (sibcall_pop_memory): Ditto.
4473         (sibcall_value_memory): Ditto.
4474         (sibcall_value_pop_memory): Ditto.
4476 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
4478         * generic-match-head.c (types_match): Handle non-types.
4479         * gimple-match-head.c (types_match): Likewise.
4480         * match.pd: Remove unnecessary TREE_TYPE for types_match.
4482 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
4484         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
4485         (csneg3<mode>_insn): Enable expansion of pattern.
4487 2015-05-14  Nick Clifton  <nickc@redhat.com>
4489         * config/rl78/rl78.c (rl78_select_section): Select the correct
4490         default section based upon the category of the decl.
4492 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4494         PR rtl-optimization/30967
4495         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
4496         destination mode for the cost of scc patterns.
4498 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
4500         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
4501         using SWIM248 mode iterator.
4502         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
4503         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
4504         for operand[2] constraint.
4505         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
4507 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
4509         PR middle-end/66133
4510         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
4511         make sure it is never noreturn, even when the task body does not
4512         return.
4513         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
4514         right before GIMPLE_OMP_RETURN.
4515         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
4516         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
4517         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
4519 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4521         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
4522         * tree-ssa-math-opts.c: Include params.h
4523         (pow_synth_sqrt_info): New struct.
4524         (representable_as_half_series_p): New function.
4525         (get_fn_chain): Likewise.
4526         (print_nested_fn): Likewise.
4527         (dump_fractional_sqrt_sequence): Likewise.
4528         (dump_integer_part): Likewise.
4529         (expand_pow_as_sqrts): Likewise.
4530         (gimple_expand_builtin_pow): Use above to attempt to expand
4531         pow as series of square roots.  Removed now unused variables.
4533 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
4535         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
4536         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
4537         Remove *p0 and *p1 arguments.  Rewrite function.
4538         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
4539         (alpha_split_const_mov): Update calls to alpha_extract_integer and
4540         alpha_emit_set_long_const.
4541         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
4542         (alpha_output_mi_thunk_osf): Ditto.
4543         * config/alpha/alpha.md (movti): Do not check operands[1]
4544         for CONST_DOUBLE.
4546 2015-05-13  Richard Biener  <rguenther@suse.de>
4548         PR tree-optimization/66129
4549         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
4550         commutative.
4551         (vect_schedule_slp_instance): Fix typo.
4553 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
4555         * common.opt (fdump-internal-locations): New option.
4556         * input.c: Include diagnostic-core.h.
4557         (get_end_location): New function.
4558         (write_digit): New function.
4559         (write_digit_row): New function.
4560         (dump_location_range): New function.
4561         (dump_labelled_location_range): New function.
4562         (dump_location_info): New function.
4563         * input.h (dump_location_info): New prototype.
4564         * toplev.c (compile_file): Handle flag_dump_locations.
4566 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4568         * gimple-expr.h (is_gimple_constant): Reorder.
4569         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
4571 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4573         * combine.c (simplify_set): When generating a CC set, if the
4574         source already is in the correct mode, do not wrap it in a
4575         compare.  Simplify the rest of that code.
4577 2015-05-13  Richard Biener  <rguenther@suse.de>
4579         PR tree-optimization/66123
4580         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
4581         a taken edge.
4583 2015-05-13  Richard Biener  <rguenther@suse.de>
4585         PR middle-end/66110
4586         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
4587         specially.
4588         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
4590 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
4592         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
4593         * aclocal.m4: Regenerated with automake-1.11.6.
4595 2015-05-13  Tom de Vries  <tom@codesourcery.com>
4597         PR tree-optimization/66010
4598         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
4599         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
4600         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
4601         and rval based on do_deref.
4603 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4605         PR target/65103
4606         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
4607         link time constants into adress expressions and therefore set
4608         their cost to 0.
4610 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
4612         PR target/66112
4613         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
4614         Use SWI248 iterator instead of SWI.
4615         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
4616         Use eq_attr "alternative" "0" instead of match_test in
4617         length_immediate attribute computation.
4618         (*mulvhi4, *mulvhi4_1): New define_insns.
4620         PR target/66112
4621         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
4622         SIGNED to get precision of non-negative value.
4624 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4626         PR target/66048
4627         * function.c (diddle_return_value_1): Process bounds first.
4628         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
4629         register.
4631 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4633         PR rtl-optimization/64616
4634         * loop-invariant.c (can_move_invariant_reg): New.
4635         (move_invariant_reg): Call above new function to decide whether
4636         instruction can just be moved, skipping creation of temporary
4637         register.
4639 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
4641         PR target/pr66047.c
4642         * i386.c (ix86_function_sseregparm): Only return -1 if local function
4643         with implied regparm is called from -mno-sse function.
4644         (init_cumulative_args): Output error if ix86_function_sseregparm
4645         return -1 and SSE register would be needed.
4646         (function_arg_advance_32): Likewise.
4647         (function_arg_32): Likewise.
4648         * i386.h (ix86_args): Add decl field.
4650 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
4652         PR ipa/65873
4653         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
4654         inlines across optimization boundary.
4656 2015-05-12  Jason Merrill  <jason@redhat.com>
4658         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
4659         string literal and macro name.
4661 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
4663         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
4664         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
4665         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
4667 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
4669         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
4670         (-Wmisleading-indentation): New option.
4671         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
4673 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
4675         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
4676         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
4677         (alpha_extract_integer): Ditto.
4678         (alpha_legitimate_constant_p): Ditto.
4679         (alpha_split_tmode_pair): Ditto.
4680         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
4681         (alpha_expand_mov): Ditto.
4682         (print_operand): Remove handling of 'H' modifier.
4683         <case 'm'>: Remove CONST_DOUBLE handling.
4684         (summarize_insn): Handle CONST_WIDE_INT.
4685         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
4686         (anddi3): Ditto.
4687         (movti): Handle CONST_WIDE_INT.
4688         * config/alpha/constraints.md ('H'): Remove constraint definition.
4689         ('G'): Do not match MODE_FLOAT class.
4690         * config/alpha/predicates.md (const0_operand): Also match
4691         const_wide_int.
4692         (non_add_const_operand): Ditto.
4693         (non_zero_const_operand): Ditto.
4694         (some_operand): Ditto.
4695         (input_operand): Ditto.  Handle CONST_WIDE_INT.
4696         (and_operand): Do not match const_double.
4697         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
4699 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
4701         PR target/65697
4702         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
4703         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
4704         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4705         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
4706         is_mm_seq_cst, is_mm_sync): New accessor functions.
4707         * builtins.c (expand_builtin_sync_operation,
4708         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
4709         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
4710         (get_memmodel,  expand_builtin_atomic_compare_exchange,
4711         expand_builtin_atomic_load, expand_builtin_atomic_store,
4712         expand_builtin_atomic_clear): Use new accessor routines.
4713         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
4714         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
4715         (maybe_emit_sync_lock_test_and_set): Use new accessors and
4716         MEMMODEL_SYNC_ACQUIRE.
4717         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
4718         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
4719         expand_atomic_store): Use new accessors.
4720         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
4721         * tsan.c (instrument_builtin_call): Update check for memory model beyond
4722         final enum to use MEMMODEL_LAST.
4723         * c-family/c-common.c: Use new accessor for memmodel_base.
4724         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
4725         accessors.
4726         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
4727         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
4728         mem_thread_fence, *dmb): Likewise.
4729         * config/alpha/alpha.c (alpha_split_compare_and_swap,
4730         alpha_split_compare_and_swap_12): Likewise.
4731         * config/arm/arm.c (arm_expand_compare_and_swap,
4732         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
4733         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
4734         atomic_loaddi): Likewise.
4735         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
4736         Likewise.
4737         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
4738         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
4739         use new accessors.
4740         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
4741         atomic_store<mode>, atomic_compare_and_swap<mode>,
4742         atomic_exchange<mode>): Use new accessors.
4743         * config/mips/mips.c (mips_process_sync_loop): Likewise.
4744         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
4745         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
4746         rs6000_post_atomic_barrier): Add new cases.
4747         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
4748         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
4749         (atomic_load<mode>): Add new cases and use new accessors.
4750         (store_quadpti): Add new cases.
4751         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
4752         accessors.
4753         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
4754         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
4755         model, not 8.
4757 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
4759         * ipa-devirt.c (type_with_linkage_p): New function.
4760         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
4761         type has linkage.
4762         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
4763         (can_be_name_hashed_p): Simplify.
4764         (hash_odr_name): Check that type has linkage before checking if it is
4765         anonymous.
4766         (types_same_for_odr): Likewise.
4767         (odr_name_hasher::equal): Likewise.
4768         (odr_subtypes_equivalent_p): Likewise.
4769         (warn_types_mismatch): Likewise.
4770         (get_odr_type): Likewise.
4771         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
4772         * ipa-utils.h (odr_type_p): Move offline.
4773         * tree.c (need_assembler_name_p): Fix handling of types
4774         without linkages.
4775         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
4777 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
4779         * timevar.c (timevar_enable): Delete in favor of...
4780         (g_timer): New global.
4781         (struct timevar_def): Move to timevar.h inside class timer.
4782         (struct timevar_stack_def): Likewise.
4783         (timevars): Delete global in favor of field "m_timevars" within
4784         class timer in timevar.h
4785         (stack): Likewise, in favor of field "m_stack".
4786         (unused_stack_instances): Likewise, in favor of field
4787         "m_unused_stack_instances".
4788         (start_time): Likewise, in favor of field "m_start_time".
4789         (get_time): Eliminate check for timevar_enable.
4790         (timer::timer): New function, built from part of timevar_init.
4791         (timevar_init): Rewrite idempotency test from using
4792         "timevar_enable" bool to using dynamic allocation of "g_timer".
4793         Move rest of implementation into timer's constructor.
4794         (timevar_push_1): Rename to...
4795         (timer::push): ...this, adding "m_" prefixes to variables that
4796         are now fields of timer.
4797         (timevar_pop_1): Likewise, rename to...
4798         (timer::pop): ...this, and add "m_" prefixes.
4799         (timevar_start): Replace test for "timevar_enable" with one for
4800         "g_timer", and move bulk of implementation to...
4801         (timer::start): ...here, adding "m_" prefixes.
4802         (timevar_stop): Likewise, from here...
4803         (timer::stop): ...to here.
4804         (timevar_cond_start): Likewise, from here...
4805         (timer::cond_start): ...to here.
4806         (timevar_cond_stop): Likewise, from here...
4807         (timer::cond_stop): ...to here.
4808         (validate_phases): Rename to...
4809         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
4810         locals "total" and "tv" const.
4811         (timevar_print): Rename to...
4812         (timer::print): ...this, and add "m_" prefixes.  Make locals
4813         "total" and "tv" const.  Eliminate test for timevar_enable.
4814         * timevar.h (timevar_enable): Eliminate.
4815         (g_timer): New declaration.
4816         (timevar_push_1): Eliminate.
4817         (timevar_pop_1): Eliminate.
4818         (timevar_print): Eliminate.
4819         (class timer): New class.
4820         (timevar_push): Rewrite to use g_timer.
4821         (timevar_pop): Likewise.
4822         * toplev.c (toplev::~toplev): Likewise.
4824 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
4826         * arm-protos.h (arm_sched_autopref): Delete.
4827         (tune_params): Re-organize, use enums for flag values.
4828         (FUSE_OPS): New macro.
4829         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
4830         (ARM_PREFETCH_BENEFICIAL): Likewise.
4831         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
4832         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4833         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
4834         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
4835         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
4836         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
4837         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
4838         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
4839         format.
4840         (arm_option_override, thumb2_reorg, arm_print_tune_info)
4841         (aarch_macro_fusion_pair_p): Update uses of current_tune.
4842         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
4844 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
4846         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
4847         "break".
4849 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
4850             Sandra Loosemore <sandra@codesourcery.com>
4852         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
4853         value.
4854         (REG_CLASS_NAMES): Add "IJMP_REGS".
4855         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
4856         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
4857         use new "c" register constraint.
4858         * config/nios2/constraint.md (c): New register constraint
4859         corresponding to IJMP_REGS.
4861 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4863         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
4864         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
4865         define_splits): Delete, revamp, transmogrify into ...
4866         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4867         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4868         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4869         New.
4871 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4873         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
4874         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
4876 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4878         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
4879         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
4880         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
4881         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
4882         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
4883         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
4884         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
4885         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
4886         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
4887         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
4888         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
4889         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
4890         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
4891         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
4892         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
4893         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
4894         and 30 corresponding splitters): Delete.
4896 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4898         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
4899         zero_extract.
4901 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4903         * combine.c (recog_for_combine_1): New function, factored out
4904         from recog_for_combine.
4905         (change_zero_ext): New function.
4906         (recog_for_combine): If recog fails, try again with the pattern
4907         modified by change_zero_ext; if that still fails, restore the
4908         pattern.
4910 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4912         * combine.c (get_undo_marker): New function.
4913         (undo_to_marker): New function, largely factored out from ...
4914         (undo_all): ... this.  Adjust.
4916 2015-05-12  Richard Biener  <rguenther@suse.de>
4918         PR tree-optimization/66101
4919         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
4920         fixup if we turn a loop exit edge to a fallthru edge.
4922 2015-05-12  Richard Biener  <rguenther@suse.de>
4924         PR tree-optimization/37021
4925         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
4926         (SLP_TREE_TWO_OPERATORS): New define.
4927         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
4928         SLP_TREE_TWO_OPERATORS.
4929         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
4930         SLP node.
4931         (vect_build_slp_tree): Adjust.
4932         (vect_analyze_slp_cost_1): Likewise.
4933         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
4934         emitting two vector stmts and mixing the results.
4936 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4938         * call.c (print_z_candidates): Remove dead code.
4940 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4942         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
4943         and zEC12_simple_fp.
4944         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
4945         to 1.
4947 2015-05-12  Tom de Vries  <tom@codesourcery.com>
4949         PR tree-optimization/66010
4950         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
4951         ifn_va_arg.
4952         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
4953         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
4954         va_lists are passed, and remove corresponding handling.
4955         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
4956         do_deref argument to ifn_va_arg.
4957         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
4958         ifn_va_arg.
4960 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4962         PR target/65955
4963         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
4964         REG before taking its REGNO.
4966 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4968         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
4969         rsp->sign_bit_copies and rsp->nonzero_bits into ...
4970         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
4971         present to get more accurate information about the number of sign bit
4972         copies and non zero bits.
4974 2015-05-12  Richard Biener  <rguenther@suse.de>
4976         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
4977         do not allow unrolling.
4979 2015-05-11  Richard Henderson  <rth@redhat.com>
4981         * config/i386/i386-modes.def (CCP): New.
4982         * config/i386/i386.c (put_condition_code): Handle it.
4983         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
4985 2015-05-11  Richard Henderson  <rth@redhat.com>
4987         * target.def (md_asm_clobbers): Replace with...
4988         (md_asm_adjust): this.
4989         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
4990         (TARGET_MD_ASM_ADJUST): New.
4991         * tm.texi: Rebuild.
4992         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
4993         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
4994         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
4996         * cfgexpand.c (check_operand_nalternatives): Accept vector of
4997         constraints instead of lists of outputs and inputs.
4998         (expand_asm_stmt): Save and restore input_location around the
4999         body of the function.  Move asm data into vectors instead of
5000         building tree lists.  Generate cleanup sequences as needed,
5001         rather than waiting til the end.  Use new md_asm_adjust hook.
5003         * config/vxworks.c: Include vec.h before target.h.
5004         * gimple.c: Likewise.
5005         * incpath.c: Likewise.
5006         * mode-switching.c: Likewise.
5008         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
5009         (cris_md_asm_adjust): this.
5010         (TARGET_MD_ASM_CLOBBERS): Remove.
5011         (TARGET_MD_ASM_ADJUST): New.
5012         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
5013         (ix86_md_asm_adjust): this.
5014         (TARGET_MD_ASM_CLOBBERS): Remove.
5015         (TARGET_MD_ASM_ADJUST): New.
5016         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
5017         (mn10300_md_asm_adjust): this.
5018         (TARGET_MD_ASM_CLOBBERS): Remove.
5019         (TARGET_MD_ASM_ADJUST): New.
5020         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
5021         (rs6000_md_asm_adjust): this.
5022         (TARGET_MD_ASM_CLOBBERS): Remove.
5023         (TARGET_MD_ASM_ADJUST): New.
5024         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
5025         (visium_md_asm_adjust): this.
5026         (TARGET_MD_ASM_CLOBBERS): Remove.
5027         (TARGET_MD_ASM_ADJUST): New.
5029 2015-05-11  Richard Henderson  <rth@redhat.com>
5031         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
5032         if noutputs is zero.
5033         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
5035         * cfgexpand.c (expand_asm_operands): Merge into...
5036         (expand_asm_stmt): ... here.
5038         * cfgexpand.c (expand_asm_operands): Don't call
5039         resolve_asm_operand_names.
5040         * stmt.c (resolve_asm_operand_names): Clarify block comment.
5042 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
5044         * dwarf2out.c (gen_member_die): Sanity check that we access
5045         TYPE_MAIN_VARIANT for TYPE_METHODS.
5046         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
5047         checking TYPE_METHODS.
5048         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
5049         if non-null.
5050         (build_distinct_type_copy): Clear TYPE_METHODS.
5051         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
5052         (verify_type): Allow TYPE_METHODS to be error_mark_node.
5053         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
5055 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5057         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
5058         (emit_pattern_before_setloc): Likewise.
5060 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
5062         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
5063         for define_peephole2s.
5064         (get_peephole2_pattern): New function.
5065         (main): Use it.  Call validate_pattern.
5067 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5069         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
5070         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
5071         (Last callee saved reg is different for AVR_TINY architecture)
5073 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
5075         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
5076         when looking for memory references.
5078 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
5080         PR target/65753
5081         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
5082         via function pointers.
5084 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
5086         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
5087         indirect call by forcing address into a pseudo with -fno-plt.
5088         * common.opt (flag_plt): New option.
5089         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
5090         ([-fno-plt]): Document.
5092 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
5094         PR bootstrap/66105
5095         * config/rs6000/option-defaults.h: Add space between string literal
5096         and macro name.
5098 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5100         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
5101         accross ARM targets.
5103 2015-05-11  Christian Bruel  <christian.bruel@st.com>
5105         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
5106         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
5108 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
5110         PR rtl-optimization/66076
5111         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
5112         Don't grow the heap array if it is already big enough from a
5113         previous iteration.
5115 2015-05-11  Christian Bruel  <christian.bruel@st.com>
5117         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
5118         (is_called_in_ARM_mode): Remove.
5119         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
5120         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
5121         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
5122          arm_declare_function_name.
5124 2015-05-11  Christian Bruel  <christian.bruel@st.com>
5126         * config/arm/arm.c (arm_option_override): Reoganized and split into :
5127         (arm_option_params_internal); New function.
5128         (arm_option_check_internal): New function.
5129         (arm_option_override_internal): New function.
5130         (thumb_code, thumb1_code): Remove.
5131         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
5132         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
5133         (thumb_code, thumb1_code): Remove.
5134         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
5136 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
5138         * config/alpha/alpha.c (alpha_emit_set_const_1)
5139         (alpha_emit_set_long_const, alpha_extract_integer)
5140         (alpha_legitimate_constant_p, alpha_split_const_mov)
5141         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
5142         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
5143         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
5144         HOST_WIDE_INT_1U.
5145         * config/alpha/predicates.md (mode_mask_operand): Do not match
5146         const_double RTX.
5147         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
5148         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
5149         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
5150         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
5151         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
5153 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
5155         PR target/65780
5156         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
5157         default_binds_local_p_2.
5158         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
5159         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
5161 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5163         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
5165 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5167         Patch by Richard Biener
5168         * coverage.c (coverage_obj_init): Delay building of type variant
5169         until the type is finished.
5171 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5173         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
5174         mismatch between C and C++ type; compoare correctly ARG_TYPES
5175         for non-prototypes and output correctly parameter index for METHOD_TYPE.
5176         (odr_types_equivalent_p): Fix wording of warning about attributes;
5177         it is OK to match prototype and non-prototype.
5179 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5181         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
5182         TYPE_ARG_TYPES list.
5183         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
5184         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
5186 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
5188         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
5189         * tree.h (is_lang_specific): Constify.
5191 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
5193         PR tree-optimization/64454
5194         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
5195         Rewrite.
5197 2015-05-08  Jason Merrill  <jason@redhat.com>
5199         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
5200         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
5201         config/darwin.h, config/darwin9.h, config/elfos.h,
5202         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
5203         config/microblaze/microblaze.h, config/mips/mips.h,
5204         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
5205         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
5206         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5207         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
5208         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
5209         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
5210         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
5211         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
5212         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
5213         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
5214         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
5215         between string literal and macro name.
5217 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5219         * jump.c: Change argument types to rtx_insn *.
5220         * rtl.h: Adjust.
5222 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5224         * lra-constraints.c: Change argument type to rtx_insn *.
5226 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5228         * df-problems.c: Change argument type to rtx_insn *.
5230 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5232         * combine.c: Change argument type to rtx_insn *.
5234 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5236         * rtl.h: Adjust.
5237         * rtlanal.c: Change argument type to rtx_insn *.
5239 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5241         * sched-deps.c: Change argument types to rtx_insn *.
5242         * sched-int.h: Adjust.
5244 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5246         * dwarf2cfi.c: Change argument type to rtx_insn *.
5248 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5250         * ira.c (decrease_live_ranges_number): Changetype of local
5251         variable to rtx_insn *.
5252         * recog.c: Change argument types to rtx_insn *.
5253         * recog.h: Adjust.
5255 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5257         * reorg.c: Change argument types to rtx_insn *.
5259 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5261         * ira-color.c: Change argument types to rtx_insn *.
5262         * lra-eliminations.c: Likewise.
5263         * ira.h: Adjust.
5265 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5267         * gcse.c: Change argument types to rtx_insn *.
5269 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5271         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
5273 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5275         * emit-rtl.c (emit_debug_insn_before): Change argument type to
5276         rtx_insn *.
5277         * rtl.h: Adjust.
5279 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5281         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
5282         * rtl.h: Adjust.
5284 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5286         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
5287         * rtl.h: Adjust.
5289 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5291         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
5292         * rtl.h: Adjust.
5294 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5296         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
5297         * rtl.h: Adjust.
5299 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5301         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
5302         to rtx_insn *.
5303         * rtl.h: Adjust.
5305 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5307         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
5308         to rtx_insn *.
5309         * rtl.h: Likewise.
5311 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5313         * except.c (can_nonlocal_goto): Change type of argument to
5314         rtx_insn *.
5315         * rtl.h: Adjust.
5317 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5319         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
5320         * rtl.h: Adjust.
5322 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5324         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
5325         * cfgrtl.c (can_delete_label_p): Adjust.
5326         * rtl.h: likewise.
5328 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5330         * reorg.c (stop_search_p): Change argument to rtx_insn *.
5332 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5334         * except.c (make_reg_eh_region_note): Change argument to
5335         rtx_insn *.
5336         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
5337         * except.h: Adjust.
5339 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5341         * mode-switching.c (commit_mode_sets): Change type of local
5342         variable from rtx to rtx_insn *.
5344 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
5346         * doc/install.texi (--enable-languages): Add missing jit and lto info.
5347         Add ^ to grep command.
5348         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
5349         arg to last gimple_simplify declaration.  Add missing gimple_build
5350         declaration for built-in function case with four tree args.
5352 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
5353             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5355         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
5356         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
5357         (GNU_USER_DYNAMIC_LINKERN32): Update.
5359 2015-05-08  Richard Biener  <rguenther@suse.de>
5361         PR tree-optimization/66036
5362         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5363         Handle strided group loads.
5364         (vect_verify_datarefs_alignment): Likewise.
5365         (vect_enhance_data_refs_alignment): Likewise.
5366         (vect_analyze_group_access): Likewise.
5367         (vect_analyze_data_ref_access): Likewise.
5368         (vect_analyze_data_ref_accesses): Likewise.
5369         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
5370         (vectorizable_load): Likewise.
5372 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
5374         * config/rs6000/rs6000.md: Require operand inequality in one
5375         of the peepholes.
5377 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
5378             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5380         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
5381         from (set ...).
5382         * config/rx/rx.md (movdi, movdf): Likewise.
5383         Likewise for define_peephole2s.
5385 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
5387         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
5388         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
5389         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
5390         vtst_u64): Rewrite using gcc vector extensions.
5392 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
5394         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
5395         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
5397 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
5399         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
5401 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5403         * config/glibc-stdint.h (OPTION_MUSL): Define.
5404         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
5405         Change the definition based on OPTION_MUSL for 64 bit targets.
5406         * config/linux.h (OPTION_MUSL): Redefine.
5407         * config/alpha/linux.h (OPTION_MUSL): Redefine.
5408         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
5409         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
5411 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
5412             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5414         * config.gcc (LIBC_MUSL): New tm_defines macro.
5415         * config/linux.h (OPTION_MUSL): Define.
5416         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
5417         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
5418         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5419         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5420         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5421         * config/linux.opt (mmusl): New option.
5422         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
5423         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
5424         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
5425         * configure: Regenerate.
5427 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5428             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5430         PR target/48904
5431         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
5432         * config/i386/knetbsd-gnu64.h: New file.
5434 2015-05-08  Marek Polacek  <polacek@redhat.com>
5436         PR c/64918
5437         * doc/invoke.texi: Document -Woverride-init-side-effects.
5439 2015-05-07  Marek Polacek  <polacek@redhat.com>
5441         PR c/65179
5442         * doc/invoke.texi: Document -Wshift-negative-value.
5444 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
5446         * gcov-tool.c (do_merge): Refactore to remove int ret.
5447         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
5448         !type == FUNC to type != FUNC.
5449         * reload.h (struct target_reload): Changee to type of
5450         x_spill_indirect_levels from bool to unsigned char.
5452 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
5454         * rtl.h (always_void_p): New function.
5455         * gengenrtl.c (always_void_p): Likewise.
5456         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
5457         with code foo are always VOIDmode.
5458         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
5459         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
5460         compare-elim.c, config/aarch64/aarch64.c,
5461         config/aarch64/aarch64.md, config/alpha/alpha.c,
5462         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
5463         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
5464         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
5465         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5466         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
5467         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
5468         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
5469         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
5470         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
5471         config/ia64/vect.md, config/iq2000/iq2000.c,
5472         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
5473         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
5474         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
5475         config/mep/mep.c, config/microblaze/microblaze.c,
5476         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
5477         config/mn10300/mn10300.c, config/msp430/msp430.c,
5478         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
5479         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
5480         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
5481         config/rs6000/altivec.md, config/rs6000/rs6000.c,
5482         config/rs6000/rs6000.md, config/rs6000/vector.md,
5483         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
5484         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
5485         config/sh/sh.md, config/sh/sh_treg_combine.cc,
5486         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
5487         config/spu/spu.md, config/stormy16/stormy16.c,
5488         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
5489         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
5490         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
5491         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
5492         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
5493         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
5494         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
5495         var-tracking.c: Update calls accordingly.
5497 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
5499         PR middle-end/192
5500         PR middle-end/54303
5501         * varasm.c (function_mergeable_rodata_prefix): New function.
5502         (mergeable_string_section): Use it.
5503         (mergeable_constant_section): Use it.
5505 2015-05-07  Jeff Law  <law@redhat.com>
5507         PR target/39726
5508         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5509         simplifier to narrow arithmetic.
5510         * generic-match-head.c: (types_match, single_use): New functions.
5511         * gimple-match-head.c: (types_match, single_use): New functions.
5513 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5515         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
5516         rtx type.
5518 2015-05-07  Richard Biener  <rguenther@suse.de>
5520         PR tree-optimization/66002
5521         * passes.def: Schedule another pass_merge_phi after ifcombine, right
5522         before phiopt.
5524 2015-05-07  Marek Polacek  <polacek@redhat.com>
5525             Martin Uecker  <uecker@eecs.berkeley.edu>
5527         * doc/invoke.texi: Document -fsanitize=bounds-strict.
5528         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
5529         into SANITIZE_NONDEFAULT.
5530         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
5532 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
5534         PR target/66015
5535         * config/alpha/alpha.c (alpha_override_options_after_change): New.
5536         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
5537         (alpha_override_options): Move align_loops, align_jumps and
5538         align_functions handling into alpha_override_options_after_change.
5540 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
5541             Chris Jones  <chrisj@nvidia.com>
5542             Joshua Conner  <jconner@nvidia.com>
5544         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
5545         linking of crtfastmath.o.
5546         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
5548 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
5550         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
5551         (cstore<mode>4_unsigned_imm): New expander.
5552         (cstore<mode>4): Remove empty constraint strings.  Use the new
5553         expanders.
5555 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
5557         PR target/64208
5558         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
5559         alternatives.
5561 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5563         * config/aarch64/geniterators.sh: Use standard BRE in sed.
5565 2015-05-06  Alan Modra  <amodra@gmail.com>
5567         PR target/66033
5568         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
5569         (UNSPEC_NOP): Define.
5570         (reload_vsx_from_gpr<mode>): Add missing DONE.
5571         (reload_gpr_from_vsx<mode>): Likewise.
5572         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
5573         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
5575 2015-05-06  Christian Bruel  <christian.bruel@st.com>
5577         PR target/66015
5578         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
5579         align_jumps, align_functions into aarch64_override_options_after_change.
5581 2015-05-06  Richard Biener  <rguenther@suse.de>
5583         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
5584         vect_transform_slp_perm_load to check if we support a permutation
5585         for basic-block vectorization.
5587 2015-05-06  Nick Clifton  <nickc@redhat.com>
5589         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
5590         used, even if it is not being used as a frame pointer.
5592 2015-05-05  Jason Merrill  <jason@redhat.com>
5594         * dwarf2out.c (gen_member_die): Don't emit anything for an
5595         anonymous class constructor.
5597 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
5599         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
5600         that it reflects the block structure.
5601         (afdo_propagate_edge): Likewise.
5602         (afdo_calculate_branch_prob): Likewise.
5603         (afdo_annotate_cfg): Likewise.
5604         * cfgcleanup.c (equal_different_set_p): Likewise.
5605         (try_crossjump_to_edge): Likewise.
5606         * cgraph.c (cgraph_node::verify_node): Likewise.
5607         * cgraphunit.c (expand_all_functions): Likewise.
5608         * config/i386/i386.c (ix86_expand_copysign): Likewise.
5609         (exact_dependency_1): Likewise.
5610         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
5611         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
5612         * gensupport.c (process_define_subst): Likewise.
5613         * lto-wrapper.c (merge_and_complain): Likewise.
5614         * tree-if-conv.c (if_convertible_bb_p): Likewise.
5615         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
5616         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
5617         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
5618         * tree-vect-loop.c (vectorizable_reduction): Likewise.
5619         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
5620         * tree-vect-stmts.c (vectorizable_shift): Likewise.
5621         * tree-vrp.c (vrp_finalize): Likewise.
5622         * tree.c (variably_modified_type_p): Likewise.
5624 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
5626         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
5627         on darwin12 and later.
5628         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
5629         file to pass -rdynamic on darwin12 and later.
5630         * config/darwin.opt (rdynamic): Add.
5632 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
5634         * doc/extend.texi (C Extensions): Update menu for moved Variable
5635         Attributes and Type Attributes sections.
5637 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
5639         PR target/65990
5640         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
5641         if rep_8byte stringop strategy was specified for 32-bit target.
5643 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
5645         PR target/65915
5646         * config/i386/i386.md (vector convert to float spltiter): Check for
5647         xmm16+, when splitting scalar float conversion.
5648         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
5650 2015-05-05  Nick Clifton  <nickc@redhat.com>
5652         * config/msp430/msp430-opts.h (enum msp430_regions): New.
5653         * config/msp430/msp430.c (msp430_override_options): Complain if
5654         -mcode-region or -mdata-region is used on a non MSP430X.
5655         (msp430_section_attr): New function.  Checks lower, upper and
5656         either attributes.
5657         (msp430_attribute_table): Add lower, upper and either.
5658         (gen_prefix): New function.  Generates a prefix for a section
5659         name.
5660         (msp430_select_section): New function - handles the choice of
5661         section for an object.  Takes into account memory region
5662         attributes and options.
5663         (msp430_function_section): Use gen_prefix.
5664         (TARGET_SECTION_TYPE_FLAGS): Define.
5665         (msp430_section_type_flags): New function.
5666         (TARGET_ASM_UNIQUE_SECTION): Define.
5667         (msp430_unique_section): New function.
5668         (msp430_output_aligned_decl_common): New function.
5669         (msp430_do_not_relax_short_jumps): New function.
5670         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
5671         Define.
5672         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5673         * config/msp430/msp430-protos.h
5674         (msp430_do_not_relax_short_jumps): New prototype.
5675         (msp430_output_aligned_decl_common): New prototype.
5676         * config/msp430/msp430.md (length): New attribute.
5677         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
5678         then use a long code sequence for short jumps.
5679         * config/msp430/msp430.opt (mcode-region): New.
5680         (mdata-region): New.
5681         * doc/invoke.texi: Document new options.
5682         * doc/extend.texi: Document new attributes.
5684 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
5686         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
5687         (tune_params): Add field branch_costs.
5688         (aarch64_branch_cost): Declare.
5689         * gcc/config/aarch64.c (generic_branch_cost): New.
5690         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
5691         (cortexa53_tunings): Likewise.
5692         (cortexa57_tunings): Likewise.
5693         (thunderx_tunings): Likewise.
5694         (xgene1_tunings): Likewise.
5695         (aarch64_branch_cost): Define.
5696         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
5698 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
5700         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
5701         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
5702         * config/i386/i386.md: Ditto.
5703         * config/i386/winnt.c: Ditto.
5705 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
5707         * doc/extend.texi (__atomic Builtins): Move implementation details
5708         to the end of the description, rewrite opening paragraphs, state
5709         difference with __sync builtins, state C11/C++11 assumptions,
5710         weaken itemized descriptions, add explanation of memory model
5711         behaviour, expand description of compare-exchange, simplify text.
5713 2015-05-05  Renlin Li  <renlin.li@arm.com>
5715         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
5717 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
5719         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
5720         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
5721         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
5722         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
5723         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
5724         * configure: Regenerate.
5725         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
5726         * doc/install.texi (aarch64*-*-*): Document new
5727         --enable-fix-cortex-a53-843419 option.
5728         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
5729         and -mno-fix-cortex-a53-843419 options.
5731 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
5733         PR target/65871
5734         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
5736 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
5738         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
5739         fix overactive TYPE_MIN_VALUE check and add FIXME for type
5740         compatibility problems.
5742 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
5744         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
5745         constraints.
5746         (cbranchsi4_reg): New.
5747         * config/microblaze/microblaze.c
5748         (microblaze_expand_conditional_branch_reg): New.
5749         * config/microblaze/microblaze-protos.h
5750         (microblaze_expand_conditional_branch_reg): New prototype.
5752 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
5754         * config/microblaze/microblaze.md (peephole2): New.
5756 2015-05-04  Jeff Law  <law@redhat.com>
5758         Revert:
5759         2015-05-04  Jeff Law  <law@redhat.com>
5761         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5762         simplifier to narrow arithmetic.
5763         * generic-match-head.c: (types_match, single_use): New functions.
5764         * gimple-match-head.c: (types_match, single_use): New functions.
5766 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5768         PR target/65987
5769         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
5770         (split_branches): Likewise.
5772 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
5774         * common.opt (fdelete-null-pointer-checks): Init to -1.
5775         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
5776         override flag_delete_null_pointer_checks default.
5777         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
5778         behavior re address zero.  Better document target-specific behavior.
5779         (-fisolate-errneous-paths-dereference): Mention relationship to
5780         -fdelete-null-pointer-checks.
5782 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
5784         PR tree-optimization/65984
5785         * ubsan.c: Include tree-cfg.h.
5786         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
5787         stmt_could_throw_p test, rename can_throw variable to ends_bb.
5789 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
5791         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
5792         to CONST_DOUBLE_P predicate.
5793         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
5794         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
5795         allow only operands that satisfy standard_sse_constant_p predicate.
5796         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
5797         to CONST_DOUBLE_P predicate.
5799 2015-05-04  Jeff Law  <law@redhat.com>
5801         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5802         simplifier to narrow arithmetic.
5803         * generic-match-head.c: (types_match, single_use): New functions.
5804         * gimple-match-head.c: (types_match, single_use): New functions.
5806 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
5808         * config/arm/arm.c: Restore bootstrap.
5810 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
5812         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
5813         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
5814         as CONST_WIDE_INT, not CONST_DOUBLE.
5815         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
5816         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
5817         (ix86_find_base_term): Do not check for CONST_DOUBLE.
5818         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
5819         (ix86_build_signbit_mask): Rewrite using wide ints.
5820         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
5821         (ix86_rtx_costs): Handle CONST_WIDE_INT.
5822         (find_constant): Ditto.
5823         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
5824         using gen_int_mode.
5825         * config/i386/predicates.md (x86_64_immediate_operand)
5826         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
5827         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
5828         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
5829         (const0_operand): Also match const_wide_int.
5830         (constm1_operand): Ditto.
5831         (const1_operand): Ditto.
5833 2015-05-04  Richard Biener  <rguenther@suse.de>
5835         PR tree-optimization/65965
5836         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
5837         store groups at gaps.
5839 2015-05-04  Richard Biener  <rguenther@suse.de>
5841         PR tree-optimization/65935
5842         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
5843         then make sure to apply that swapping to the IL.
5845 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
5847         * Makefile.in (PATCHLEVEL_c): New variable.
5848         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
5849         expand the same way as if DEVPHASE_c was non-empty.
5851 2015-05-04  Kai Tietz  <ktietz@redhat.com>
5853         PR target/65559
5854         * lto-wrapper.c (run_gcc): Open filename
5855         in binary-mode.
5857 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
5859         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
5860         sections up in file, to immediately after the Function Attributes
5861         section.
5863 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
5865         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
5867 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5869         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
5870         (insert_partition_copy_on_edge): Adjust.
5871         (insert_rtx_to_part_on_edge): Likewise.
5872         (insert_part_to_rtx_on_edge): Likewise.
5874 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5876         * function.c (set_return_jump_label): Change type of argument to
5877         rtx_insn *.
5878         * function.h (set_return_jump_label): Adjust.
5880 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5882         * reload.h (struct reg_equivs_t): Change type of init to
5883         rtx_insn *.
5884         * ira.c (fix_reg_equiv_init): Adjust.
5885         * reload1.c (eliminate_regs_1): Likewise.
5886         (init_eliminable_invariants): Likewise.
5888 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5890         * cselib.c (fp_setter_insn): Take a rtx_insn *.
5891         * cselib.h (fp_setter_insn): Adjust.
5893 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5895         * recog.c (struct validate_replace_src_data): Change type of
5896         insn field to rtx_insn *.
5897         (validate_replace_src_group): Change type of argument to rtx_insn *.
5898         * recog.h (validate_replace_src_group): Adjust.
5900 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5902         * haifa-sched.c: Change the type of some variables to rtx_insn *.
5903         * sched-deps.c: Likewise.
5904         * sched-int.h: Likewise.
5905         * sched-rgn.c: Likewise.
5906         * sel-sched.c: Likewise.
5908 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5910         to rtx_insn *.
5911         * config/i386/i386.c: Change the type of some arguments to
5912         rtx_insn *.
5913         * config/arm/arm.c: Likewise.
5915 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5917         * lra-constraints.c: Change type of some arguments to rtx_insn *.
5919 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5921         * regcprop.c (kill_autoinc_value): Change type of argument to
5922         rtx_insn *.
5924 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5926         * genrecog.c (print_subroutine): Adjust.
5927         * recog.c (get_bool_attr_mask_uncached): Likewise.
5928         * recog.h (struct recog_data_d): Change the type of insn to
5929         rtx_insn *.
5931 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5933         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
5935 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5937         * df-problems.c (df_set_note): Change type of argument to
5938         rtx_insn *.
5940 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5942         * builtins.c (expand_builtin_trap): Change type of local
5943         variable to rtx_insn *.
5944         (add_sched_insns_for_speculation): Likewise.
5945         (ix86_emit_save_regs): Likewise.
5946         (get_scratch_register_on_entry): Likewise.
5947         (ix86_emit_restore_reg_using_pop): Likewise.
5948         (ix86_emit_leave): Likewise.
5949         (ix86_emit_restore_regs_using_mov): Likewise.
5950         (ix86_expand_epilogue): Likewise.
5951         Likewise.
5952         (rl78_alloc_physical_registers_umul): Likewise.
5953         * cselib.c (discard_useless_locs): Likewise.
5954         (cselib_invalidate_regno): Likewise.
5955         (cselib_invalidate_mem): Likewise.
5956         * function.c (expand_function_start): Likewise.
5957         (emit_use_return_register_into_block): Likewise.
5958         * gcse.c: Likewise.
5959         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
5960         * ifcvt.c (noce_get_alt_condition): Likewise.
5961         * loop-doloop.c (doloop_condition_get): Likewise.
5962         * lra-constraints.c (inherit_in_ebb): Likewise.
5963         * modulo-sched.c (sms_schedule_by_order): Likewise.
5964         * recog.c (next_insn_tests_no_inequality): Likewise.
5965         * reorg.c (emit_delay_sequence): Likewise.
5966         (update_reg_dead_notes): Likewise.
5967         (fix_reg_dead_note): Likewise.
5968         (fill_slots_from_thread): Likewise.
5969         (delete_computation): Likewise.
5971 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
5973         * doc/extend.texi (Variable Attributes): Add menu and proper
5974         @nodes to subsections.  Move Microsoft Windows attributes to
5975         their own subsection.
5976         (Type Attributes): Reorganize introduction to remove duplicate
5977         list of attributes.  Add menu and proper @nodes to subsections.
5978         Alphabetize the main table of common attributes.
5980 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
5982         * match.pd: New simplification patterns.
5983         (x + (x & 1))  -> ((x + 1) & ~1)
5984         (x & ~(x & y)) -> ((x & ~y))
5985         (x | ~(x | y)) -> ((x | ~y))
5987 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5989         * target.def (attribute_table): Mention that struct attribute_spec
5990         is defined in tree-core.h rather than tree.h
5991         * doc/tm.texi: Regenerate.
5993 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
5995         * genrecog.c (test): Rename to rtx_test.  Update rest of file
5996         accordingly.
5998 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6000         PR translation/65959
6001         * params.h (DEFPARAM): Rename msgid to nocmsgid.
6003 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
6005         * gcc/config/aarch64/aarch64-protos.h (tune_params):
6006         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
6007         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
6008         Return value depending on target.
6009         (generic_tunings): Initialize new target settings.
6010         (cortexa53_tunings): Likewise.
6011         (cortexa57_tunings): Likewise.
6012         (thunderx_tunings): Likewise.
6013         (xgene1_tunings): Likewise.
6015 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
6017         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
6018         Make Cortex-A53 shift costs more accurate.
6020 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6022         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
6023         UNSIGNED_FLOAT.
6025 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
6027         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
6028         Calculate cost of op0 and op1 in PLUS and MINUS cases.
6030 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6032         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
6033         Add cost of op0 in the compare-with-fpzero case.
6035 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
6037         * builtins.c (fold_builtin_1): Remove spurious second
6038         semicolon.
6039         * cgraph.h (symtab_node::get_availability): Likewise.
6040         * opts.c (common_handle_option): Remove spurious second semicolon.
6041         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
6042         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6044 2015-04-30  Caroline Tice  <cmtice@google.com>
6046         PR gcov-profile/65929
6047         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
6048         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
6049         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
6050         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
6051         * doc/tm.texi: Regenerate.
6052         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
6053         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
6054         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
6055         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
6057 2015-04-30  Marek Polacek  <polacek@redhat.com>
6059         * varasm.c (handle_cache_entry): Fix logic.
6061 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6063         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
6064         (*extrsi5_insn_uxtw_alt): Likewise.
6065         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
6066         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
6067         operations.
6069 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6071         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
6072         fabd in ABS case.
6074 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6076         * config/aarch64/aarch64.md
6077         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
6078         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
6079         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
6080         appropriately.  Handle alternative EON form.
6082 2015-04-30  Renlin Li  <renlin.li@arm.com>
6084         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
6085         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
6087 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
6089         PR ipa/65873
6090         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
6091         -fstrict-aliasing boundaries.
6093 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6095         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
6096         and [SU]MNEGL patterns.
6098 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6100         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
6101         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
6102         combined arithmetic-shift ops.  Properly handle all shift and extend
6103         operations that can occur in combination with PLUS/MINUS.
6104         Rename maybe_fma to compound_p.
6105         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
6106         arithmetic and shift operations.
6108 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6110         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
6111         rather than arith_shift cost when costing ADD/MINUS of an
6112         extended value.
6114 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
6116         PR lto/65948
6117         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
6118         to itself.
6120 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
6122         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
6123         are for the same position.
6125 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
6127         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
6128         vectorize_loops.
6129         (vectorize_loops): Use it.
6131 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
6133         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
6134         for aggregate types.
6135         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
6136         type to be non_ODR.
6137         * tree.c (need_assembler_name_p): Compute mangled name for
6138         non-fundamental types and integer types.
6140 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
6142         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
6143         manual swaps.
6144         * expr.c (expand_expr_real_2): Likewise.
6146 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
6148         * tree.c (build_common_builtin_nodes): Do not build
6149         __builtin_alloca_with_align as equivalent of library alloca.
6151 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
6153         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
6154         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
6155         bugus variants.
6156         * tree.c: Include print-tree.h and ipa-utils.h
6157         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
6158         (free_lang_data_in_cgraph): Call verify_type.
6159         (verify_type_variant): New function.
6160         (verify_type): New function.
6161         * tree.h (verify_type): Declare.
6163 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
6165         * config/mips/mips-cpus.def: (mips4): Change default processor
6166         from PROCESSOR_R8000 to PROCESSOR_R10000.
6168 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
6170         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
6171         la/jalr instead of jal.
6173 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
6175         PR target/65871
6176         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
6177         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
6178         (setcc+movzbl peephole2): Check also clobbered reg.
6179         (setcc+andl peephole2): Ditto.
6181 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6183         PR libgomp/65099
6184         * config/nvptx/mkoffload.c (target_ilp32): New variable.
6185         (main): Set it depending on "-foffload-abi=[...]".
6186         (compile_native, main): Use it to pass "-m32" or "-m64" to the
6187         compiler.
6189 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
6191         PR target/65770
6192         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
6193         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
6194         Flip lane index back at assembly time for bigendian.
6196 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6198         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
6199         * gimplify.c (gimplify_omp_workshare): Use it.
6201 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
6203         * Makefile.in (build/genrecog.o): Depend on inchash.h.
6204         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
6205         build/inchash.o
6206         * genrecog.c: Rewrite most of the code except for the third page.
6208 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
6210         * inchash.h, inchash.c: Include bconfig.h for build objects.
6211         * Makefile.in (build/inchash.o): New rule.
6213 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
6215         PR target/65924
6216         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
6217         number in type attribute expression.
6219 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
6221         * loop-iv.c (canon_condition): Generalize to all types of integer
6222         constant.
6224 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
6226         * gimple-walk.c: Prune duplicate or unneeded includes.
6227         (walk_gimple_asm): Only call parse_input_constraint or
6228         parse_output_constraint if their findings are used.
6229         Honour parse_input_constraint and parse_output_constraint
6230         result.
6232 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
6234         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
6236 2015-04-29  Tom de Vries  <tom@codesourcery.com>
6238         PR tree-optimization/65893
6239         * passes.def (pass_all_optimizations): Move pass_stdarg to after
6240         pass_dce.
6242 2015-04-29  Richard Biener  <rguenther@suse.de>
6244         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6245         compute GROUP_SIZE for basic-block SLP.
6246         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
6247         take into account gaps.
6248         (vect_get_mask_element): Properly reject references to previous
6249         vectors.
6250         (vect_transform_slp_perm_load): Likewise.
6252 2015-04-29  Christian Bruel  <christian.bruel@st.com>
6254         PR target/64835
6255         * config/i386/i386.c (ix86_default_align): New function.
6256         (ix86_override_options_after_change): Call ix86_default_align.
6257         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
6258         (ix86_override_options_after_change): New function.
6260 2015-04-28  Jeff Law  <law@redhat.com>
6262         * tree-ssa-dom.c (record_equality); Fix comment typos.
6264 2015-04-28  Tom de Vries  <tom@codesourcery.com>
6266         PR tree-optimization/65887
6267         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
6269 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
6271         * doc/extend.texi (Declaring Attributes of Functions): Split into
6272         subsections by target.  Alphabetize the table of common attributes.
6273         Rewrite some of the introductory text to reflect the new structure.
6274         Update some cross-references to point to the new subsections.
6275         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
6276         duplicate copies in the discussion of function, label, and type
6277         attributes.
6279 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
6281         PR bootstrap/65910
6282         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
6284 2015-04-28  Jason Merrill  <jason@redhat.com>
6286         PR c++/65734
6287         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
6288         (finalize_type_size): Respect TYPE_USER_ALIGN.
6289         (layout_type) [ARRAY_TYPE]: Likewise.
6291 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
6293         * config/arm/arm.md (*arm_movt): Fix type attribute.
6294         (*cmpsi_shiftsi): Likewise.
6295         (*cmpsi_shiftsi_swp): Likewise.
6296         (*movsicc_insn): Likewise.
6297         (*cond_move): Likewise.
6298         (*if_plus_move): Likewise.
6299         (*if_move_plus): Likewise.
6300         (*if_arith_move): Likewise.
6301         (*if_move_arith): Likewise.
6302         (*if_shift_move): Likewise.
6303         (*if_move_shift): Likewise.
6304         (*arm_movtas_ze): Likewise.
6305         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
6306         redundancy and type attribute.
6307         (*thumb2_movsi_insn): Fix type attribute.
6308         (*thumb2_addsi_short): Likewise.
6309         (thumb2_addsi3_compare0): Likewise.
6310         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
6311         attributes accordingly.
6313 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6315         PR other/65911
6316         * function.c (pad_to_arg_alignment): Add parentheses.
6318 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
6320         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
6321         libgcc/config/frv/elf-lib.h.
6323 2015-04-28  Tom de Vries  <tom@codesourcery.com>
6325         * tree-call-cdce.c: Fix example in header comment.
6327 2015-04-28  Richard Biener  <rguenther@suse.de>
6329         PR tree-optimization/62283
6330         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
6331         fails fatally and we are vectorizing a basic-block simply
6332         cause the child to be constructed piecewise.
6333         (vect_analyze_slp_cost_1): Adjust.
6334         (vect_detect_hybrid_slp_stmts): Likewise.
6335         (vect_bb_slp_scalar_cost): Likewise.
6336         (vect_get_constant_vectors): For piecewise constructed
6337         constants place them after the last def.
6338         (vect_get_slp_defs): Adjust.
6339         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
6340         externals for basic-block vectorization.
6342 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6344         PR target/63503
6345         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
6346         aarch64-*-*.
6347         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
6348         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
6349         (AARCH64_TUNE_FMA_STEERING): Likewise.
6350         * config/aarch64/aarch64-cores.def: Set
6351         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
6352         FMUL/FMADD instructions.
6353         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
6354         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
6355         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
6356         * config/aarch64/cortex-a57-fma-steering.h: New file.
6357         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6359 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
6361         * gensupport.c (std_preds): Add missing codes to address_operand entry.
6363 2015-04-28  Richard Biener  <rguenther@suse.de>
6365         PR tree-optimization/65851
6366         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
6367         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
6368         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
6369         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
6370         (ccp_visit_phi_node): Adjust.
6371         (evaluate_stmt): For simplifications to SSA names return its
6372         lattice value if that isn't VARYING.  Return immediately when
6373         simplified to a constant.
6374         (visit_assignment): Adjust.
6375         (ccp_visit_stmt): Likewise.
6377 2015-04-28  Tom de Vries  <tom@codesourcery.com>
6379         PR tree-optimization/65818
6380         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
6381         evaluated.
6383 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6385         * calls.c (save_fixed_argument_area): Don't check
6386         ARGS_GROW_DOWNWARD with the preprocessor.
6387         (restore_fixed_argument_area): Likewise.
6388         (mem_overlaps_already_clobbered_arg_p): Likewise.
6389         (check_sibcall_argument_overlap): Likewise.
6390         (expand_call): Likewise.
6391         (emit_library_call_value_1): Likewise.
6392         (store_one_arg): Likewise.
6393         * function.c (assign_parms): Likewise.
6394         (locate_and_pad_parm): Likewise.
6395         (pad_to_arg_alignment): Likewise.
6396         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6398 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6400         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
6401         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
6402         * calls.c (save_fixed_argument_area): Don't chekc if
6403         ARGS_GROW_DOWNWARD is defined.
6404         (restore_fixed_argument_area): Likewise.
6405         (mem_overlaps_already_clobbered_arg_p): Likewise.
6406         (check_sibcall_argument_overlap): Likewise.
6407         (expand_call): Likewise.
6408         (emit_library_call_value_1): Likewise.
6409         (store_one_arg): Likewise.
6410         * function.c (assign_parms): Likewise.
6411         (locate_and_pad_parm): Likewise.
6412         (pad_to_arg_alignment): Likewise.
6413         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6415 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6417         * defaults.h (gen_epilogue): New function.
6418         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
6419         defined.
6420         * cfgrtl.c (cfg_layout_finalize): Likewise.
6421         * df-scan.c: Likewise.
6422         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6423         (reposition_prologue_and_epilogue_notes): Likewise.
6424         * reorg.c (find_end_label): Likewise.
6425         * toplev.c: Likewise.
6427 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6429         * bb-reorder.c (HAVE_return): Don't check if its undefined.
6430         * defaults.h (gen_simple_return): New function.
6431         (gen_simple_return): Likewise.
6432         (HAVE_return): Add default definition to false.
6433         (HAVE_simple_return): Likewise.
6434         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
6435         HAVE_return and HAVE_simple_return are defined.
6436         * function.c (gen_return_pattern): Likewise.
6437         (convert_jumps_to_returns): Likewise.
6438         (thread_prologue_and_epilogue_insns): Likewise.
6439         * reorg.c (find_end_label): Likewise.
6440         (dbr_schedule): Likewise.
6441         * shrink-wrap.c: Likewise.
6442         * shrink-wrap.h: Likewise.
6444 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6446         * defaults.h (EPILOGUE_USES): Add default definition of false.
6447         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
6448         * resource.c (init_resource_info): Likewise.
6450 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6452         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
6453         to false.
6454         * dwarf2out.c (field_byte_offset): REmove check if
6455         PCC_BITFIELD_TYPE_MATTERS is defined.
6456         * stor-layout.c (layout_decl): Likewise.
6457         (update_alignment_for_field): Likewise.
6458         (place_field): Likewise.
6460 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6462         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
6463         true.
6464         * regrename.c (check_new_reg_p): Remove check if
6465         HARD_REGNO_RENAME_OK is defined.
6466         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
6468 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6470         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
6471         * cse.c (fold_rtx): Likewise.
6472         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
6473         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
6474         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
6475         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
6476         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
6477         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
6478         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
6479         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
6480         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
6481         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
6482         * Likewise.
6483         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
6484         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
6485         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
6486         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
6487         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
6488         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
6489         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
6490         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
6491         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
6492         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
6493         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
6494         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
6495         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
6496         * doc/tm.texi: Regenerate.
6497         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
6498         either true or false.
6500 2015-04-27  Jeff Law  <law@redhat.com>
6502         PR tree-optimization/65217
6503         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
6504         of them has a single use, make sure it is the LHS of the implied
6505         copy.
6507 2015-04-28  Alan Modra  <amodra@gmail.com>
6509         PR target/65810
6510         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
6511         (offsettable_ok_by_alignment): Use minimum of decl and toc
6512         pointer alignment.  Replace dead code with assertion.
6513         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
6514         case if size exceeds toc pointer alignment.
6515         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
6516         (rs6000_emit_move): Likewise.
6517         * configure.ac: Add linker toc pointer alignment check.
6518         * configure: Regenerate.
6519         * config.in: Regenerate.
6521 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
6523         * config.gcc: Add h8300-*-linux.
6524         * config/h8300/linux.h: New.
6525         * config/h8300/t-linux: New.
6526         * config/h8300/h8300.c (h8300_option_override): Normal mode
6527         is not supported for h8300-*-linux.
6528         (h8300_file_start): Target priority change.
6529         (get_shift_alg): Likewise.
6530         (h8300_shift_need_scratch_p): Likewise.
6531         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6532         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
6534 2015-04-27  Caroline Tice  <cmtice@google.com>
6536         * final.c (final_scan_insn):  Output cold_function_name as function
6537         type.
6538         * varasm.c (cold_function_name):  Make global.
6539         (assemble_start_function):  Re-set cold_function_name.
6540         (assemble_end_function): Output cold partition size.
6541         * varasm.h (cold_function_name):  Declare global.
6543 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
6545         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
6546         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
6547         constraint.
6548         (*movxi_internal_avx512f): Ditto.
6549         (define_split): Check for xmm16+, when splitting scalar float_extend.
6550         (*extendsfdf2_mixed): Use "v" constraint.
6551         (define_split): Check for xmm16+, when splitting scalar float_truncate.
6552         (*truncdfsf_fast_sse): Use "v" constraint.
6553         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
6554         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
6555         (define_peephole2): Check for xmm16+, when converting scalar
6556         float_truncate.
6557         (define_peephole2): Check for xmm16+, when converting scalar
6558         float_extend.
6559         (*fop_<mode>_comm_mixed): Use "v" constraint.
6560         (*fop_<mode>_comm_sse): Ditto.
6561         (*fop_<mode>_1_mixed): Ditto.
6562         (*sqrt<mode>2_sse): Ditto.
6563         (*ieee_s<ieee_maxmin><mode>3): Ditto.
6565 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6567         * combine.c (simplify_if_then_else): Use std::swap instead
6568         of manually swapping.
6569         (known_cond): Likewise.
6570         (simplify_comparison): Likewise.
6572 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
6574         PR target/64579
6575         * config/rs6000/htm.md: Remove all define_expands.
6576         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
6577         UNSPECV_HTM_TABORTWCI): Remove.
6578         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
6579         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
6580         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
6581         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
6582         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
6583         tabortwci_internal): Remove define_insns.
6584         (tabort<wd>c, tabort<wd>ci): New define_insns.
6585         (tabort): Use gpc_reg_operand.
6586         (tcheck): Remove operand.
6587         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
6588         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
6589         expected value.
6590         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
6591         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
6592         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
6593         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
6594         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
6595         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
6596         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
6597         (tcheck): Remove builtin argument.
6598         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
6599         not TARGET_64BIT.
6600         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
6601         tabortdc and tabortdci builtins when not in 64-bit mode.
6602         Modify code to handle the loss of the HTM define_expands.
6603         Emit code to copy the CR register to TARGET.
6604         (htm_init_builtins): Modify code to handle the loss of the HTM
6605         define_expands.
6606         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
6607         (RS6000_BTC_64BIT): Likewise.
6608         (RS6000_BTC_CR): New macro.
6609         * doc/extend.texi: Update documentation for htm builtins.
6611 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6613         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
6614         of manually swapping.
6615         (simplify_associative_operation): Likewise.
6616         (simplify_binary_operation): Likewise.
6617         (simplify_plus_minus): Likewise.
6618         (simplify_relational_operation): Likewise.
6619         (simplify_ternary_operation): Likewise.
6621 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
6623         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
6624         (xs_hi_nonmemory_operand): Remove error.
6625         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
6626         general_operand rather than xs_hi_general_operand.
6628 2015-04-27  Richard Biener  <rguenther@suse.de>
6630         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
6631         (record_equivalences_from_stmt): Valueize rhs.
6632         (record_equality): Canonicalize x and y order via
6633         tree_swap_operands_p.  Do not swap operands for same loop depth.
6635 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
6637         PR target/65296
6638         PR target/65895
6639         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
6640         Add hint how to use own spec file.
6642 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
6644         PR tree-optimization/65875
6645         * tree-vrp.c (update_value_range): If in is_new case setting
6646         old_vr to VR_VARYING, also set new_vr to it.  Remove
6647         old_vr->type == VR_VARYING test.
6648         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
6649         SSA_PROP_INTERESTING if update_value_range returned true,
6650         but new range is VR_VARYING.
6652 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6654         * combine.c (sign_extend_short_imm): New.
6655         (set_nonzero_bits_and_sign_copies): Use above new function for sign
6656         extension of src short immediate.
6657         (reg_nonzero_bits_for_combine): Likewise for tem.
6659 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
6661         * stor-layout.c (self_referential_component_ref_p): New predicate.
6662         (copy_self_referential_tree_r): Use it.
6663         (self_referential_size): Punt for simple operations directly involving
6664         self-referential component references.
6665         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
6667 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
6669         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
6671 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
6673         * vec.h (vec): Make splice arguments const.  Update definitions
6674         accordingly.
6676 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
6678         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
6679         alternatives.
6681 2015-04-26  Tom de Vries  <tom@codesourcery.com>
6683         PR tree-optimization/65826
6684         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
6686 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
6688         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
6689         (*madd3<mode>): Ditto.
6690         (*msub4<mode>): Ditto.
6691         (*msub3<mode>): Ditto.
6692         (*nmadd4<mode>): Ditto.
6693         (*nmadd3<mode>): Ditto.
6694         (*nmadd4<mode>_fastmath): Ditto.
6695         (*nmadd3<mode>_fastmath): Ditto.
6696         (*nmsub4<mode>): Ditto.
6697         (*nmsub3<mode>): Ditto.
6698         (*nmsub4<mode>_fastmath): Ditto.
6699         (*nmsub3<mode>_fastmath): Ditto.
6701 2015-04-24  Jason Merrill  <jason@redhat.com>
6703         PR c++/50800
6704         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
6705         down when building TYPE_CANONICAL.
6706         (build_pointer_type_for_mode): Likewise.
6708 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
6710         * genrecog.c (validate_pattern): Check matching constraint refers
6711         to a lower numbered operand.
6713 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6715         PR target/65849
6716         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
6717         save to independent variables use the Save attribute.  This will
6718         allow these options to be modified with the #pragma/attribute
6719         target support.
6720         (-mallow-movmisalign): Likewise.
6721         (-mallow-df-permute): Likewise.
6722         (-msched-groups): Likewise.
6723         (-malways-hint): Likewise.
6724         (-malign-branch-targets): Likewise.
6725         (-mvectorize-builtins): Likewise.
6726         (-msave-toc-indirect): Likewise.
6728         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
6729         can be set via the #pragma/attribute target support.
6730         (rs6000_opt_vars): Likewise.
6731         (rs6000_inner_target_options): If VSX was set, also set
6732         -mno-avoid-indexed-addresses.
6734 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6736         * config/arm/iterators.md (shiftable_ops): Rename to...
6737         (SHIFTABLE_OPS): ... This.  Update use in comments.
6738         (ior_xor): Rename to...
6739         (IOR_XOR): ... This.
6740         (vqh_ops): Rename to...
6741         (VQH_OPS): ... This.
6742         (vqhs_ops): Rename to...
6743         (VQHS_OPS): ... This.
6744         (rshifts): Rename to...
6745         (RSHIFTS): ... This.
6746         (returns): Rename to...
6747         (RETURNS): ... This.
6748         * config/arm/arm.md: Update uses of the above.
6749         * config/arm/neon.md: Likewise.
6751 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6753         * config.host (case ${host}): Add aarch64*-*-linux case.
6754         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
6755         fields to all the cores.
6756         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
6757         Add MCPU_MTUNE_NATIVE_SPECS.
6758         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
6759         field to all extensions.
6760         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
6761         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
6762         Adjust definition of AARCH64_OPT_EXTENSION.
6763         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
6764         (MCPU_MTUNE_NATIVE_SPECS): Define.
6765         * config/aarch64/driver-aarch64.c: New file.
6766         * config/aarch64/x-arch64: New file.
6767         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
6768         -mtune and -march.
6770 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
6771             Wei Mi  <wmi@google.com>
6773         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
6774         * config/i386/i386.c (extract_base_offset_in_addr): New function.
6775         (ix86_operands_ok_for_move_multiple): Ditto.
6776         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
6777         (movlpd/movhpd to movupd peephole2): Ditto.
6779 2015-04-24  Marek Polacek  <polacek@redhat.com>
6781         PR c/61534
6782         * input.h (from_macro_expansion_at): Define.
6784         PR c/63357
6785         * doc/invoke.texi: Update description of -Wlogical-op.
6787 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6789         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
6790         ternary operator in fprintf and harmonize spacing.
6792 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
6794         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
6795         Mark operand1 commutative.
6797 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
6799         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
6800         input operands in memory.
6801         (*vec_concatv2si_sse4_1): Ditto.
6802         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
6803         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
6804         register_operand.
6805         (vec_extract_hi_v32hi): Ditto.
6806         (vec_extract_hi_v64hi): Ditto.
6807         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6809 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6810             Steven Bosscher <steven@gcc.gnu.org>
6812         PR rtl-optimization/34503
6813         * cprop.c (cprop_reg_p): New.
6814         (hash_scan_set): Use above function to check if register can be
6815         propagated.
6816         (find_avail_set): Return up to two sets, one whose source is a
6817         register and one whose source is a constant.  Sets are returned in an
6818         array passed as parameter rather than as a return value.
6819         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
6820         sets returned by find_avail_set, starting with the one whose source is
6821         a constant. Use cprop_reg_p to check if register can be propagated.
6822         (do_local_cprop): Use cprop_reg_p to check if register can be
6823         propagated.
6824         (implicit_set_cond_p): Likewise.
6826 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6828         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
6829         (sem_function::equals): IGNORED_NODES parameter is now unused;
6830         update call of equals_private.
6831         (sem_function::equals_private): Do not call equals_wpa; skip
6832         gimple body matching if there is no body.
6833         (sem_function::init): Add logic to hash tthunk info.
6834         (sem_function::parse): Also parse thunks.
6835         * ipa-icf.h (equals_private): Update declaration.
6837 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6839         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
6840         asterisk from name so this can be generated directly.
6841         (*altivec_stvx_<mode>_internal): Likewise.
6842         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
6843         that this is never called during or after reload/lra.
6844         (rs6000_frame_related): Remove split_reg
6845         argument and logic that references it.
6846         (emit_frame_save): Remove last parameter from call to
6847         rs6000_frame_related.
6848         (rs6000_emit_prologue): Remove last parameter from eight calls to
6849         rs6000_frame_related.  Force generation of stvx instruction for
6850         Altivec register saves.  Remove split_reg handling, which is no
6851         longer needed.
6852         (rs6000_emit_epilogue):  Force generation of lvx instruction for
6853         Altivec register restores.
6855 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6857         * config/rs6000/rs6000.opt (mcrypto): Change option description to
6858         match category changes in ISA 2.07B.
6860 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6862         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
6863         iterators.
6864         (cmp_op, cmp_type): New code attributes.
6865         (NEON_VCMP, NEON_VACMP): New int iterators.
6866         (cmp_op_unsp): New int attribute.
6867         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
6868         (neon_vceq<mode>): Delete.
6869         (neon_vc<cmp_op><mode>_insn): New pattern.
6870         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
6871         (neon_vcgeu<mode>): Delete.
6872         (neon_vcle<mode>): Likewise.
6873         (neon_vclt<mode>: Likewise.
6874         (neon_vcage<mode>): Likewise.
6875         (neon_vcagt<mode>): Likewise.
6876         (neon_vca<cmp_op><mode>): New define_expand.
6877         (neon_vca<cmp_op><mode>_insn): New pattern.
6878         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
6880 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6882         * tree.h (attribute_value_equal): Declare.
6883         * tree.c (attribute_value_equal): Export.
6885 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6887         * ipa-icf.c (sem_item::compare_attributes): New function.
6888         (sem_item::compare_referenced_symbol_properties): Compare variable
6889         attributes.
6890         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
6891         (sem_function::param_used_p): New function.
6892         (sem_function::equals_wpa): Fix attribute comparsion; match
6893         parameter type codes; do not compare paremter flags when
6894         they are not used; compare edge flags; compare indirect calls.
6895         (sem_item::update_hash_by_addr_refs): Hash reference type.
6896         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
6897         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
6898         reference use type.
6899         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
6900         * ipa-icf.h (compare_attributes, param_used_p): Declare.
6902 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6904         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
6905         cleanup.
6906         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
6907         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
6908         (sem_item::compare_referenced_symbol_properties): New.
6909         (sem_item::hash_referenced_symbol_properties): New.
6910         (sem_item::compare_cgraph_references): Rename to ...
6911         (sem_item::compare_symbol_references): ... this one; use
6912         compare_referenced_symbol_properties.
6913         (sem_function::equals_wpa): Do not compare
6914         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
6915         DECL_IS_OPERATOR_NEW; compare pointer sizes.
6916         (sem_item::update_hash_by_addr_refs): Call
6917         hash_referenced_symbol_properties.
6918         (sem_item::update_hash_by_local_refs): Cleanup.
6919         (sem_function::merge): Do not mix up symbol properties.
6920         (sem_variable::equals_wpa): Use compare_symbol_references.
6921         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
6922         (sem_item::hash_referenced_symbol_properties): New.
6923         (sem_item::compare_symbol_references): New.
6924         (sem_item::compare_cgraph_references): Remove.
6926 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
6928         PR target/26702
6929         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
6930         Emit size of local.
6932 2015-04-23  Nick Clifton  <nickc@redhat.com>
6934         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
6935         ATTRIBUTE_UNUSED to x parameter.
6936         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
6938 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6940         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
6941         TARGET_CRYPTO to TARGET_P8_VECTOR>
6942         (crypto_vpermxor_<mode>): Likewise.
6943         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
6944         (BU_CRYPTO_3A): Likewise.
6945         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
6946         (BU_CRYPTO_OVERLOAD_3A): New #define.
6947         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
6948         (VPMSUMH): Likewise.
6949         (VPMSUMW): Likewise.
6950         (VPMSUMD): Likewise.
6951         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
6952         (VPERMXOR_V4SI): Likewise.
6953         (VPERMXOR_V8HI): Likewise.
6954         (VPERMXOR_V16QI): Likewise.
6955         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
6956         BU_CRYPTO_OVERLOAD_2A.
6957         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
6958         BU_CRYPTO_OVERLOAD_3A.
6959         * config/rs6000/rs6000.opt (mcrypto): Change description of
6960         option.
6962 2015-04-23  Richard Biener  <rguenther@suse.de>
6964         * passes.def: Remove copy propagation passes run directly after CCP.
6965         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
6966         SSA names.
6967         (ccp_visit_phi_node): Rework to handle first executable edge
6968         specially.
6970 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
6972         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6973         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
6974         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
6975         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
6976         (thumb_legimitimize_reload_address): Remove.
6977         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
6978         Remove.
6979         (thumb_legimitimize_reload_address): Remove.
6981 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6983         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
6985 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6987         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
6988         MAX_LDM_STM_OPS.
6989         (store_multiple): Likewise.
6991 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6993         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
6994         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
6995         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
6996         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
6997         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
6998         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
6999         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
7000         Specify issue_rate value.
7001         (arm_issue_rate): Look up issue rate from tuning structs. Remove
7002         large switch statement.
7003         (arm_marvell_pj4_tune): New struct.
7004         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
7005         struct.
7007 2015-04-23  Richard Biener  <rguenther@suse.de>
7009         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
7010         (vect_find_last_store_in_slp_instance): Rename to ...
7011         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
7012         (vect_analyze_slp_cost_1): Use vector_load for constant defs
7013         and vec_construct for external defs when estimating prologue cost.
7014         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
7015         Compute costs here only when vectorizing loops.
7016         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
7017         have been determined.
7018         (vect_schedule_slp_instance): Simplify vectorized code placement
7019         and prepare for in-BB external defs.
7020         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
7021         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
7022         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
7023         guard.
7024         (vect_model_load_cost): Likewise.
7025         (vectorizable_store): Instead add it here.
7026         (vectorizable_load): Likewise.
7027         (vect_is_simple_use): Dump def type textually.
7029 2015-04-23  Richard Biener  <rguenther@suse.de>
7031         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
7032         * cfgloop.c (verify_loop_structure): Verify the root loop node.
7033         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
7034         instead of get_eh_region_from_lp_number.
7035         * loop-init.c (fix_loop_structure): If we removed a loop, reset
7036         the SCEV cache.
7038 2015-04-23  Anton Blanchard  <anton@samba.org>
7040         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
7041         need for -mprofile-kernel to save LR to stack.
7043 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7045         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
7046         adjustments.
7047         (insn_is_swappable_p): Return 1 for a convert from double to
7048         single precision when all of its uses are splats of BE element
7049         zero.
7051 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
7053         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
7055 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7057         PR target/65456
7058         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
7059         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
7060         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
7061         option.
7062         (rs6000_builtin_mask_for_load): Return 0 for targets with
7063         efficient unaligned VSX accesses so that the vectorizer will use
7064         direct unaligned loads.
7065         (rs6000_builtin_support_vector_misalignment): Always return true
7066         for targets with efficient unaligned VSX accesses.
7067         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
7068         stores on targets with efficient unaligned VSX accesses is almost
7069         always the same as the cost of an aligned load or store, so model
7070         it that way.
7071         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
7072         unaligned vectors if we have efficient unaligned VSX accesses.
7073         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
7074         undocumented option.
7076 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7078         Revert:
7079         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
7081         * config.gcc (LIBC_MUSL): New tm_defines macro.
7082         * config/linux.h (OPTION_MUSL): Define.
7083         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7084         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7085         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7087         * config/linux.opt (mmusl): New option.
7088         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7089         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7091         * configure: Regenerate.
7093 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
7095         * config.gcc (LIBC_MUSL): New tm_defines macro.
7096         * config/linux.h (OPTION_MUSL): Define.
7097         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7098         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7099         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7101         * config/linux.opt (mmusl): New option.
7102         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7103         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7105         * configure: Regenerate.
7107 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
7109         * doc/invoke.texi (-fsanitize-sections): Update description.
7110         * asan.c (set_sanitized_sections): Parse incoming arg.
7111         (section_sanitized_p): Support wildcards.
7113 2015-04-22  Tom de Vries  <tom@codesourcery.com>
7115         PR tree-optimization/65823
7116         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
7117         equality between ap_copy and ap.
7119 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7121         PR target/47098
7122         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
7124 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7126         PR target/47122
7127         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
7129 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7131         PR target/55144
7132         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
7133         remove already contained t-files.
7135 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7137         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
7138         Remove unneeded forward declarations.
7139         (suitable_for_tail_call_opt_p): Commentary typo fix.
7141 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7143         * varasm.c (emit_bss): Remove redundant guard.
7145 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7147         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
7149 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7151         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
7153 2015-04-22  Hale Wang  <hale.wang@arm.com>
7154             Terry Guo  <terry.guo@arm.com>
7156         PR rtl-optimization/64818
7157         * combine.c (can_combine_p): Don't combine user-specified
7158         register if it is in an asm input.
7160 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
7162         PR ipa/65076
7163         * passes.def (early_optimizations): Add pass_dse.
7165 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7167         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
7168         * reorg.c (redundant_insn): Remove ifdef
7169         INSN_REFERENCES_ARE_DELAYED.
7170         * resource.c (mark_referenced_resources): Likewise.
7172 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7174         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
7175         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
7176         * resource.c (mark_set_resources): Likewise.
7178 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7180         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
7181         * cfgcleanup.c (flow_find_cross_jump): Likewise.
7182         (flow_find_head_matching_sequence): Likewise.
7183         (try_head_merge_bb): Likewise.
7184         * combine.c (can_combine_p): Likewise.
7185         (try_combine): Likewise.
7186         (distribute_notes): Likewise.
7187         * df-problems.c (can_move_insns_across): Likewise.
7188         * final.c (final): Likewise.
7189         * gcse.c (insert_insn_end_basic_block): Likewise.
7190         * ira.c (find_moveable_pseudos): Likewise.
7191         * reorg.c (try_merge_delay_insns): Likewise.
7192         (fill_simple_delay_slots): Likewise.
7193         (fill_slots_from_thread): Likewise.
7194         * sched-deps.c (sched_analyze_2): Likewise.
7196 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7198         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
7199         PIC_OFFSET_TABLE_REGNUM.
7201 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7203         * alias.c (init_alias_target): Remove ifdef
7204         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
7205         * df-scan.c (df_insn_refs_collect): Likewise.
7206         (df_get_regular_block_artificial_uses): Likewise.
7207         (df_get_eh_block_artificial_uses): Likewise.
7208         (df_get_entry_block_def_set): Likewise.
7209         (df_get_exit_block_use_set): Likewise.
7210         * emit-rtl.c (gen_rtx_REG): Likewise.
7211         * ira.c (ira_setup_eliminable_regset): Likewise.
7212         * reginfo.c (init_reg_sets_1): Likewise.
7213         * regrename.c (rename_chains): Likewise.
7214         * reload1.c (reload): Likewise.
7215         (eliminate_regs_in_insn): Likewise.
7216         * resource.c (mark_referenced_resources): Likewise.
7217         (init_resource_info): Likewise.
7219 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7221         * defaults.h (MASK_RETURN_ADDR): New definition.
7222         * except.c (expand_builtin_extract_return_addr): Remove ifdef
7223         MASK_RETURN_ADDR.
7225 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7227         * defaults.h (RETURN_ADDR_OFFSET): New definition.
7228         * except.c (expand_builtin_extract_return_addr): Remove ifdef
7229         RETURN_ADDR_OFFSET.
7230         (expand_builtin_frob_return_addr): Likewise.
7232 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7234         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
7235         (try_redirect_by_replacing_jump): Likewise.
7236         (rtl_tidy_fallthru_edge): Likewise.
7237         * combine.c (insn_a_feeds_b): Likewise.
7238         (find_split_point): Likewise.
7239         (simplify_set): Likewise.
7240         * cprop.c (cprop_jump): Likewise.
7241         * cse.c (cse_extended_basic_block): Likewise.
7242         * df-problems.c (can_move_insns_across): Likewise.
7243         * function.c (emit_use_return_register_into_block): Likewise.
7244         * haifa-sched.c (sched_init): Likewise.
7245         * ira.c (find_moveable_pseudos): Likewise.
7246         * loop-invariant.c (find_invariant_insn): Likewise.
7247         * lra-constraints.c (curr_insn_transform): Likewise.
7248         * postreload.c (reload_combine_recognize_const_pattern):
7249         * Likewise.
7250         * reload.c (find_reloads): Likewise.
7251         * reorg.c (delete_scheduled_jump): Likewise.
7252         (steal_delay_list_from_target): Likewise.
7253         (steal_delay_list_from_fallthrough): Likewise.
7254         (redundant_insn): Likewise.
7255         (fill_simple_delay_slots): Likewise.
7256         (fill_slots_from_thread): Likewise.
7257         (delete_computation): Likewise.
7258         * sched-rgn.c (add_branch_dependences): Likewise.
7260 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7262         * genconfig.c (main): Always define HAVE_cc0.
7263         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
7264         HAVE_cc0.
7265         * cfgcleanup.c (flow_find_cross_jump): Likewise.
7266         (flow_find_head_matching_sequence): Likewise.
7267         (try_head_merge_bb): Likewise.
7268         * cfgrtl.c (rtl_merge_blocks): Likewise.
7269         (try_redirect_by_replacing_jump): Likewise.
7270         (rtl_tidy_fallthru_edge): Likewise.
7271         * combine.c (do_SUBST_MODE): Likewise.
7272         (insn_a_feeds_b): Likewise.
7273         (combine_instructions): Likewise.
7274         (can_combine_p): Likewise.
7275         (try_combine): Likewise.
7276         (find_split_point): Likewise.
7277         (subst): Likewise.
7278         (simplify_set): Likewise.
7279         (distribute_notes): Likewise.
7280         * cprop.c (cprop_jump): Likewise.
7281         * cse.c (cse_extended_basic_block): Likewise.
7282         * df-problems.c (can_move_insns_across): Likewise.
7283         * final.c (final): Likewise.
7284         (final_scan_insn): Likewise.
7285         * function.c (emit_use_return_register_into_block): Likewise.
7286         * gcse.c (insert_insn_end_basic_block): Likewise.
7287         * haifa-sched.c (sched_init): Likewise.
7288         * ira.c (find_moveable_pseudos): Likewise.
7289         * loop-invariant.c (find_invariant_insn): Likewise.
7290         * lra-constraints.c (curr_insn_transform): Likewise.
7291         * optabs.c (prepare_cmp_insn): Likewise.
7292         * postreload.c (reload_combine_recognize_const_pattern):
7293         * Likewise.
7294         * reload.c (find_reloads): Likewise.
7295         (find_reloads_address_1): Likewise.
7296         * reorg.c (delete_scheduled_jump): Likewise.
7297         (steal_delay_list_from_target): Likewise.
7298         (steal_delay_list_from_fallthrough): Likewise.
7299         (try_merge_delay_insns): Likewise.
7300         (redundant_insn): Likewise.
7301         (fill_simple_delay_slots): Likewise.
7302         (fill_slots_from_thread): Likewise.
7303         (delete_computation): Likewise.
7304         (relax_delay_slots): Likewise.
7305         * sched-deps.c (sched_analyze_2): Likewise.
7306         * sched-rgn.c (add_branch_dependences): Likewise.
7308 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7310         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
7311         that is trivially ded on non cc0 targets.
7312         (simplify_set): Likewise.
7313         (mark_used_regs_combine): Likewise.
7314         * cse.c (new_basic_block): Likewise.
7315         (fold_rtx): Likewise.
7316         (cse_insn): Likewise.
7317         (cse_extended_basic_block): Likewise.
7318         (set_live_p): Likewise.
7319         * rtlanal.c (canonicalize_condition): Likewise.
7320         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7322 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7324         * conditions.h: Define macros even if HAVE_cc0 is undefined.
7325         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
7326         * final.c: Likewise.
7327         * jump.c: Likewise.
7328         * recog.c: Likewise.
7329         * recog.h: Declare functions even when HAVE_cc0 is undefined.
7330         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
7332 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7334         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
7335         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
7336         * builtins.c (expand_builtin): Remove check if
7337         EH_RETURN_DATA_REGNO is defined.
7338         * df-scan.c (df_bb_refs_collect): Likewise.
7339         (df_get_exit_block_use_set): Likewise.
7340         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7341         * ira-lives.c (process_bb_node_lives): Likewise.
7342         * lra-lives.c (process_bb_lives): Likewise.
7344 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
7346         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
7347         FIRST_PSEUDO_REG): New.
7348         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
7349         (ARG_POINTER_REGNUM): Define to ARGP_REG.
7350         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
7351         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
7352         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
7353         (FIRST_INT_REG): New.
7354         (LAST_INT_REG): New.
7355         (FIRST_*_REG): Define using *_REG.
7356         (LAST_*_REG): Ditto.
7357         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
7358         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
7359         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
7361 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7363         * expmed.c: (synth_mult): Only assume overlapping
7364         shift with previous steps in alg_sub_t_m2 case.
7366 2015-04-21  Richard Biener  <rguenther@suse.de>
7368         PR tree-optimization/65650
7369         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
7370         transitions involving copies.
7371         (set_lattice_value): Adjust for copy lattice state.
7372         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
7373         if that doesn't dominate the merge point.
7374         (bit_value_unop): Adjust what we treat as varying mask.
7375         (bit_value_binop): Likewise.
7376         (bit_value_assume_aligned): Likewise.
7377         (evaluate_stmt): When we simplified to a SSA name record a copy
7378         instead of dropping to varying.
7379         (visit_assignment): Simplify.
7381         * gimple-match.h (gimple_simplify): Add another callback.
7382         * gimple-fold.c (fold_stmt_1): Adjust caller.
7383         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
7384         for the 2nd callback.
7385         * gimple-match-head.c (gimple_simplify): Add a callback that is
7386         used to valueize the stmt operands and use it that way.
7388 2015-04-21  Richard Biener  <rguenther@suse.de>
7390         PR tree-optimization/65788
7391         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
7393 2015-04-21  Richard Biener  <rguenther@suse.de>
7395         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
7396         vec_construct cost by vec_stmt_cost.
7398 2015-04-21  Richard Biener  <rguenther@suse.de>
7400         * cfghooks.h (create_basic_block): Replace with two overloads
7401         for RTL and GIMPLE.
7402         (split_block): Likewise.
7403         * cfghooks.c (split_block): Rename to ...
7404         (split_block_1): ... this.
7405         (split_block): Add two type-safe overloads for RTL and GIMPLE.
7406         (split_block_after_labels): Call split_block_1.
7407         (create_basic_block): Rename to ...
7408         (create_basic_block_1): ... this.
7409         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
7410         (create_empty_bb): Call create_basic_block_1.
7411         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
7412         split_block_after_labels.
7413         * omp-low.c (expand_parallel_call): Likewise.
7414         (expand_omp_target): Likewise.
7415         (simd_clone_adjust): Likewise.
7416         * tree-chkp.c (chkp_get_entry_block): Likewise.
7417         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
7418         create_basic_block overload.
7419         (cgraph_node::expand_thunk): Likewise.
7420         * tree-cfg.c (make_blocks): Likewise.
7421         (handle_abnormal_edges): Likewise.
7422         * tree-inline.c (copy_bb): Likewise.
7424 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7426         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
7427         New pattern.
7428         (*xor_one_cmplsidi3_ze): Likewise.
7430 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7432         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
7433         use df_remove_problem rather than manually removing problems, leaving
7434         holes in df->problems_in_order[].
7436 2015-04-21  Tom de Vries  <tom@codesourcery.com>
7438         PR tree-optimization/65802
7439         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
7441 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7443         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
7444         Increase to 128.
7445         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
7446         at '.'.  Assert that there's enough space for everything.
7448 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
7450         PR tree-optimization/64950
7451         Revert:
7452         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7454         PR target/41089
7455         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7456         as volatile.
7458 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
7460         PR rtl-optimization/64916
7461         * cfgcleanup.c (values_equal_p): New function.
7462         (can_replace_by): Use it.
7464 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
7466         PR c++/65801
7467         * doc/invoke.texi ([-Wnarrowing]): Update.
7469 2015-04-20  Jeff Law  <law@redhat.com>
7471         PR tree-optimization/65658
7472         * tree-ssa-threadupdate.c (redirection_block_p): Remove
7473         redundant test for GIMPLE_ASSIGN in last change.
7475 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
7477         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
7478         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
7479         (legitimize_tls_address): Ditto.
7480         (ix86_expand_move): Ditto.
7481         (ix86_expand_binary_operator): Remove reload_in_progress checks.
7482         (ix86_expand_unary_operator): Ditto.
7483         * config/i386/predicates.md (index_register_operand): Ditto.
7485 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
7487         * reorg.c (try_merge_delay_insns): Improve correctness checking
7488         for targets with multiple delay slots.
7490 2015-04-20  Jeff Law  <law@redhat.com>
7492         PR tree-optimization/65658
7493         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
7494         statements too.
7496 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
7498         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
7499         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
7500         Delete.
7502 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
7504         PR debug/65807
7505         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
7507 2015-04-20  Richard Biener  <rguenther@suse.de>
7509         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
7510         * gimple-fold.c (gimple_build_valueize): New function.
7511         (gimple_build): Always use gimple_build_valueize as valueize hook.
7513 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
7515         PR target/64134
7516         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
7517         and overwrite variable parts if <= 1/2 the elements are variable.
7519 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
7521         PR rtl-optimization/65805
7522         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
7523         Don't use difference of offset and previous offset if
7524         update_sp_offset is non-zero.
7525         (eliminate_regs_in_insn): Ditto.
7526         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
7527         lra_eliminate_regs_1 call.
7528         * lra-constraints.c (get_equiv_with_elimination): Ditto.
7530 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
7532         * hash-table.h: Remove version of hash_table that stored value_type *.
7533         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
7534         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
7535         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
7536         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
7537         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
7538         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
7539         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
7540         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
7541         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
7542         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
7543         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
7544         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
7545         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
7546         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
7547         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
7548         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
7550 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7551             Jakub Jelinek  <jakub@redhat.com>
7553         PR target/65787
7554         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
7555         subsequent SH_NONE operand does not overwrite an existing *special
7556         value.
7557         (adjust_extract): Handle case where a vec_extract operation is
7558         wrapped in a PARALLEL.
7560 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7562         PR target/65780
7563         * config/i386/i386.c (ix86_binds_local_p): Define only if
7564         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
7566 2015-04-17  Jeff Law  <law@redhat.com>
7568         PR tree-optimization/47679
7569         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
7570         * tree-ssa-scopedtables.c: New file.
7571         * tree-ssa-scopedtables.h: New file.
7572         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
7573         (const_and_copies): Change name/type.
7574         (record_const_or_copy): Move into tree-ssa-scopedtables.c
7575         (record_const_or_copy_1): Similarly.
7576         (restore_vars_to_original_value): Similarly.
7577         (pass_dominator::execute): Create and destroy const_and_copies table.
7578         (thread_across_edge): Update passing of const_and_copies.
7579         (record_temporary_equivalence): Use method calls rather than
7580         manipulating const_and_copies directly.
7581         (record_equality, cprop_into_successor_phis): Similarly.
7582         (dom_opt_dom_walker::before_dom_children): Similarly.
7583         (dom_opt_dom_walker::after_dom_children): Similarly.
7584         (eliminate_redundant_computations): Similarly.
7585         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
7586         (record_temporary_equivalence): Likewise.
7587         (invalidate_equivalences): Likewise.
7588         (record_temporary_equivalences_from_phis): Update due to type
7589         change of const_and_copies.  Use method calls rather than
7590         manipulating the stack directly.
7591         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
7592         (thread_through_normal_block, thread_across_edge): Likewise.
7593         (thread_across_edge): Likewise.
7594         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7595         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
7596         of equiv_stack.
7597         (identify_jump_threads): Update due to type change of equiv_stack.
7598         (finalize_jump_threads): Delete the equiv_stack when complete.
7600 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
7602         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7603         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
7604         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
7606 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
7608         PR target/65535
7609         * config.gcc: Exit with a comment when we do not have a major version
7610         number for the FreeBSD target.
7612 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
7614         PR target/65689
7615         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
7616         maybe_allows_mem bitfields.
7617         (maybe_allows_none_start, maybe_allows_none_end,
7618         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
7619         maybe_allows_mem_end): New variables.
7620         (compute_maybe_allows): New function.
7621         (add_constraint): Use it to initialize maybe_allows_reg and
7622         maybe_allows_mem fields.
7623         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
7624         is_address constraints such that those that allow neither mem nor
7625         reg come first, then those that only allow reg but not mem, then
7626         those that only allow mem but not reg, then the rest.
7627         (write_allows_reg_mem_function): New function.
7628         (write_tm_preds_h): Call it.
7629         * stmt.c (parse_output_constraint, parse_input_constraint): Use
7630         the generated insn_extra_constraint_allows_reg_mem function
7631         instead of always setting *allows_reg = true; *allows_mem = true;
7632         for unknown extra constraints.
7634 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7636         PR target/65780
7637         * output.h (default_binds_local_p_3): New.
7638         * varasm.c (default_binds_local_p_3): Make it public.  Take an
7639         argument to indicate if common symbol may be local.  If common
7640         symbol may be local, treat non-external variable as defined
7641         locally.
7642         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
7643         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
7644         * config/i386/i386.c (ix86_binds_local_p): New.
7645         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
7646         ix86_binds_local_p.
7648 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
7650         PR debug/65771
7651         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
7652         trying mem_loc_descriptor on XEXP (rtl, 0).
7654 2015-04-17  Martin Liska  <mliska@suse.cz>
7656         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
7657         Release symbol_compare_collection.
7658         * ipa-reference.c: Add TODO that a vector should be released.
7660 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
7662         PR target/65296
7663         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
7664         to new AVR-LibC file layout (bug #44574).
7665         (*avrlibc_devicelib): Same.
7666         * config/avr/avr-mcus.def: Adjust comments.
7667         * config/avr/avr.opt (nodevicelib): Adjust help.
7669 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
7671         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
7673 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
7675         PR c++/64527
7676         * gimplify.c (gimplify_init_constructor): Always emit a
7677         side-effecting constructor.
7679 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7681         PR tree-optimization/64950
7682         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
7683         in cfun->curr_properties.
7684         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
7685         if we generate an IFN_VA_ARG.
7686         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
7687         function if PROP_gimple_lva is not set in src function.
7689 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7690             Michael Matz  <matz@suse.de>
7692         PR tree-optimization/64950
7693         * gimple-iterator.c (update_modified_stmts): Remove static.
7694         * gimple-iterator.h (update_modified_stmts): Declare.
7695         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
7696         (gimplify_va_arg_internal): New function.
7697         (gimplify_va_arg_expr): Use IFN_VA_ARG.
7698         * gimplify.h (gimplify_va_arg_internal): Declare.
7699         * internal-fn.c (expand_VA_ARG): New unreachable function.
7700         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
7701         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
7702         (expand_ifn_va_arg): New function.
7703         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
7704         (pass_stdarg::execute): Call expand_ifn_va_arg.
7705         (pass_data_lower_vaarg): New pass_data.
7706         (pass_lower_vaarg): New gimple_opt_pass.
7707         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
7708         (make_pass_lower_vaarg): New function.
7709         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
7710         properties_required field.
7711         * passes.def (all_passes): Add pass_lower_vaarg.
7712         * tree-pass.h (PROP_gimple_lva): Add define.
7713         (make_pass_lower_vaarg): Declare.
7715 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7717         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
7718         * calls.c (call_expr_flags): Same.
7720 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7722         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
7723         (pass_stdarg::execute): ... here.
7725 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7726             Michael Matz  <matz@suse.de>
7728         * tree-cfg.c (make_blocks_1): Factor out of ...
7729         (make_blocks): ... here.
7730         (make_edges_bb): Factor out of ...
7731         (make_edges): ... here.
7732         (gimple_find_sub_bbs): New function.
7733         * tree-cfg.h (gimple_find_sub_bbs): Declare.
7735 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7737         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
7739 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
7741         * asan.c (set_sanitized_sections): New function.
7742         (section_sanitized_p): Ditto.
7743         (asan_protect_global): Optionally sanitize user-defined
7744         sections.
7745         * asan.h (set_sanitized_sections): Declare new function.
7746         * common.opt (fsanitize-sections): New option.
7747         * doc/invoke.texi (-fsanitize-sections): Document new option.
7748         * opts-global.c (handle_common_deferred_options): Handle new
7749         option.
7751 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
7753         PR debug/65771
7754         * dwarf2out.c (loc_list_from_tree): Return NULL
7755         for DEBUG_EXPR_DECL.
7757 2015-04-17  Christian Bruel  <christian.bruel@st.com>
7759         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
7760         same attributes.
7762 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7764         * ira-color.c (setup_left_conflict_sizes_p): Do not process
7765         node itself when computing left conflict subnode size.
7767 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
7769         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
7770         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
7771         *fop_<mode>_1_sse using enabled attribute.  Use
7772         register_mixssei387nonimm_operand operand 1 predicate. Change
7773         alternative 3 constraints from "x" to "v".
7775 2015-04-16  Richard Biener  <rguenther@suse.de>
7777         PR tree-optimization/65774
7778         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
7779         bit-value tracking on.
7781 2015-04-16  Richard Biener  <rguenther@suse.de>
7783         PR tree-optimization/64277
7784         * tree-vrp.c (check_array_ref): Fix anti-range handling,
7785         simplify upper bound handling.
7786         (search_for_addr_array): Simplify.
7787         (check_array_bounds): Handle ADDR_EXPRs here.
7788         (check_all_array_refs): Simplify.
7790 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
7792         * config/i386/i386.c (print_reg): Rewrite function.
7794 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7796         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
7797         Invert the condition.
7799 2015-04-16  Renlin Li  <renlin.li@arm.com>
7801         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
7802         simplifications for UNSIGNED_FLOAT.
7804 2015-04-16  Nick Clifton  <nickc@redhat.com>
7806         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
7807         MUL_UNINIT.
7808         (enum rl78_cpu_type): New.
7809         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
7810         (umulhi3_shift_virt): Remove m constraint from operand 1.
7811         (umulqihi3_virt): Likewise.
7812         * config/rl78/rl78.c (rl78_option_override): Add code to process
7813         -mcpu and -mmul options.
7814         (rl78_alloc_physical_registers): Add code to handle divhi and
7815         divsi valloc attributes.
7816         (set_origin): Likewise.
7817         * config/rl78/rl78.h (RL78_MUL_G14): Define.
7818         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
7819         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
7820         __RL78_Gxx__.
7821         (ASM_SPEC): Pass -mcpu on to assembler.
7822         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
7823         (mulqi3_rl78): Likewise.
7824         (mulhi3_g13): Likewise.
7825         (mulhi3): Generate the G13 or G14 versions of the insn directly.
7826         (mulsi3): Likewise.
7827         (mulhi3_g14): Add clobbers of AX and BC.
7828         (mulsi3_g14): Likewise.
7829         (mulsi3_g13): Likewise.
7830         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
7831         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
7832         * config/rl78/rl78.opt (mmul): Initialise value to
7833         RL78_MUL_UNINIT.
7834         (mcpu): New option.
7835         (m13, m14, mrl78): New option aliases.
7836         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
7837         (MULTILIB_DIRNAMES): Add g13 and g14.
7838         * doc/invoke.texi: Document -mcpu and -mmul options.
7840 2015-04-16  Richard Biener  <rguenther@suse.de>
7842         * tree-ssa-ccp.c (likely_value): See if we have operands that
7843         are marked as never simulate again and return CONSTANT in this
7844         case.
7845         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
7846         not have any operands that will be simulated again as
7847         not being simulated again.
7849 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
7851         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
7852         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
7853         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
7854         attribute.
7855         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
7856         enabled attribute.
7857         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
7858         *float<SWI48:mode><MODEF:mode>2_sse.
7859         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
7860         enabled attribute.
7861         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
7862         enabled attribute.
7864 2015-04-15  Tom de Vries  <tom@codesourcery.com>
7866         PR other/65487
7867         * function.c (push_dummy_function): New function.
7868         (init_dummy_function_start): Use push_dummy_function.
7869         (pop_dummy_function): New function.  Factored out of ...
7870         (expand_dummy_function_end): ... here.
7871         * function.h (push_dummy_function, pop_dummy_function): Declare.
7872         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
7873         pop_dummy_function.
7874         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
7876 2015-04-15  Jeff Law  <law@redhat.com>
7878         PR tree-optimization/47679
7879         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
7880         need for forward declaration in upcoming changes.
7881         (record_conditions, record_edge_info): Likewise.
7883         PR rtl-optimization/42522
7884         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
7885         SIGN_EXTRACT as a whole object rather than simplifying
7886         its operand.
7888 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
7890         PR ipa/65765
7891         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
7892         and GIMPLE_PREDICT use break instead of return true. For
7893         GIMPLE_EH_DISPATCH, compare dispatch region.
7895 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
7897         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
7898         details about the implementation.  Make clear preference for
7899         __atomic builtins.  Reduce possibility of future change.
7901 2015-04-15  Nick Clifton  <nickc@redhat.com>
7903         * config/rx/rx.opt (mallow-string-insns): New option.
7904         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
7905         builtin if string instructions are denied.
7906         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
7907         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
7908         appropriate.
7909         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
7910         * config/rx/rx.md (movstr): Enable pattern only if string
7911         instructions are allowed.
7912         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
7913         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
7914         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
7915         (MULTILIB_DIRNAMES): Add no-strings.
7916         * doc/invoke.texi: Document -mno-allow-string-insns.
7918 2015-04-15  Alan Modra  <amodra@gmail.com>
7920         PR target/65408
7921         PR target/58744
7922         PR middle-end/36043
7923         * calls.c (load_register_parameters): Don't load past end of
7924         mem unless suitably aligned.
7926 2015-04-15  Nick Clifton  <nickc@redhat.com>
7928         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
7929         decrement instruction as being frame related.
7930         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
7931         based addresses.
7932         If zero extending a function address enclose the operation in
7933         %code(...).
7934         (rl78_preferred_reload_class): New function.
7935         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7936         * config/rl78/rl78.md: Remove useless constraints in expanders.
7937         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
7938         (mulhi3_rl78): Likewise.
7939         (mulhi3_g13): Likewise.
7940         (mulsi3_rl78): Likewise.
7941         (es_addr): Move to before the multiply patterns.
7943 2015-04-15  Alan Modra  <amodra@gmail.com>
7945         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
7946         and sequence_stack.  Add seq.
7947         (seq_stack): Delete.
7948         * function.c (prepare_function_start): Don't access x_last_insn.
7949         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
7950         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
7951         * emit_rtl.c (start_sequence, push_topmost_sequence,
7952         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
7953         sequence accessors.
7954         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
7955         remove_insn): Likewise.  Simplify.
7956         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
7957         and pop_topmost_sequence.
7958         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
7959         debug insns.
7960         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
7962 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
7964         PR target/65729
7965         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
7966         the assertiion.
7968 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
7970         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
7971         (LEGACY_INT_REGNO_P): Ditto.
7972         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
7973         (ANY_MASK_REG_P): Remove.
7974         (BND_REG_P): Rename from ANY_BND_REG_P.
7975         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
7976         legacy integer registers.  Do not handle MMX_REG_P in a special way.
7977         Merge 64byte and 32byte SSE handling.
7979 2015-04-14  Nick Clifton  <nickc@redhat.com>
7981         * expr.c (expand_assignment): Force an address offset computation
7982         into a register before changing its mode.
7983         (expand_expr_real_1): Likewise.
7985 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
7987         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
7988         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
7989         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
7990         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
7991         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
7992         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
7993         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
7994         and __aarch64_vget_lane_any.
7996 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
7998         PR rtl-optimization/65761
7999         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
8000         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
8002 2015-04-14  Richard Biener  <rguenther@suse.de>
8004         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
8005         (graphite_can_represent_scev): Use POINTER_TYPE_P.
8007 2015-04-14  Richard Biener  <rguenther@suse.de>
8009         PR tree-optimization/65758
8010         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
8011         against -1.
8012         (ccp_lattice_meet): Likewise.
8013         (bit_value_unop): Likewise.
8014         (bit_value_binop): Likewise.
8015         (bit_value_assume_aligned): Likewise.
8017 2015-04-14  Christian Bruel  <christian.bruel@st.com>
8019         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
8020         function.
8022 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
8024         PR tree-optimization/63387
8025         * match.pd ((x unord x) | (y unord y) -> (x unord y),
8026         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
8028 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
8030         * config/i386/predicates.md (any_QIreg_operand): Rename from
8031         q_regs_operand.  Do not process subregs.
8032         (QIreg_operand): Use QI_REGNO_P predicate.
8033         (ext_QIreg_operand): Ditto.
8034         (ext_register_operand): Ditto.
8035         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
8036         (AND splitters): Ditto.
8037         (AND with -65536 splitter): Add SWI48 mode for operand 0.
8038         (AND with -256 splitter): Use any_QIreg_operand predicate and
8039         SWI248 mode for operand 0.
8040         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
8041         mode for operand 0.
8042         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
8044 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
8046         * doc/plugins.texi: Rewrite first introductory paragraph.
8048 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8050         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
8051         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
8053 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8055         * ipa-profie.c (ipa_profile): Check number of parameters
8056         and possible polymorphic call targets before
8057         devirtualizing.
8059 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
8061         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
8062         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
8064 2015-04-13  Richard Biener  <rguenther@suse.de>
8066         PR tree-optimization/65204
8067         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
8068         takens for bit-CCP.
8070 2015-04-13  Richard Biener  <rguenther@suse.de>
8072         PR target/65660
8073         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
8074         and cond_not_taken_branch_cost to 4 and 2.
8075         (bdver2_cost): Likewise.
8076         (bdver3_cost): Likewise.
8077         (bdver4_cost): Likewise.
8079 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8081         * hash-table.h (hash_table constructor): Add mem stats.
8082         (alloc_entries): Likewise.
8084 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8086         * ipa-cp.c (ipcp_driver): Relase prev_edge.
8087         * passes.c (execute_one_pass): Only add transform if pass has one.
8089 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
8091         * config/i386/i386.c (ix86_option_override_internal): Don't set
8092         -fprefetch-loop-arrays if optimizing for size.
8094 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
8095             Gerald Pfeifer  <gerald@pfeifer.com>
8097         * doc/contrib.texi (Contributors): Add Martin Jambor and
8098         Michael Matz.
8100 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
8102         * BASE-VER: Set to 6.0.0.
8104         PR tree-optimization/65747
8105         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
8106         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
8108 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
8110         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
8111         sentence.  Improve grammar.
8113 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
8115         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
8117 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
8119         PR ipa/65743
8120         * ipa-inline-transform.c (speculation_removed): Remove static var.
8121         (check_speculations): New function.
8122         (clone_inlined_nodes): Do not check spculations.
8123         (inline_call): Call check_speculations.
8124         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
8125         consider non-invariants.
8127 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
8128             Martin Liska  <mliska@suse.cz>
8130         PR ipa/65722
8131         * ipa-icf.c (sem_item::compare_cgraph_references): function and
8132         variable can not match.
8133         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
8134         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
8136 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
8138         PR tree-optimization/65735
8139         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
8140         Remove visited_phis argument, add visited_bbs, avoid recursing into the
8141         same bb rather than just into the same phi node.
8142         (thread_through_normal_block): Adjust caller.
8144 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
8146         * doc/contrib.texi (Contributors): Add Ira Rosen.
8148 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
8150         * gcov.c (find_source): Fix miswording in error message.
8151         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
8152         (ix86_expand_sse_comi_round): Fix typo in error message.
8154 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
8156         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
8158 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
8160         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
8162 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
8164         PR target/65710
8165         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
8166         Print bad_spills_num and insn_pseudos_num.
8168 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8170         PR target/65694
8171         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
8172         when creating +1 values for SImode.
8174 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
8176         PR target/65729
8177         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
8178         assert.
8180 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
8181             Iain Sandoe  <iain@codesourcery.com>
8183         PR target/65351
8184         * configure: Regenerate.
8186 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
8188         PR target/65671
8189         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
8191 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
8193         * doc/contrib.texi (Contributors): Add John Marino.
8195 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
8197         PR tree-optimization/65709
8198         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
8199         TREE_TYPE (TREE_TYPE (t)).
8201 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
8203         PR target/65710
8204         * lra-int.h (lra_bad_spill_regno_start): New.
8205         * lra.c (lra_bad_spill_regno_start): New.
8206         (lra): Set up lra_bad_spill_regno_start.  Set up
8207         lra_constraint_new_regno_start unconditionally.
8208         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
8209         spill preferences.
8211 2015-04-09  Marek Polacek  <polacek@redhat.com>
8212             Jakub Jelinek  <jakub@redhat.com>
8214         PR middle-end/65554
8215         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
8216         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
8217         of STRIP_NOPS.
8219 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
8221         PR rtl-optimization/65693
8222         * combine.c (is_parallel_of_n_reg_sets): Move outside of
8223         #ifndef HAVE_cc0.
8225 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
8227         PR target/65296
8228         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
8229         device specs file if "device-specs%s" didn't resolve to a path.
8231 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
8233         PR target/65676
8234         * config/i386/i386.c (fixup_modeless_constant): New.
8235         (ix86_expand_args_builtin): Fixup modeless constant operand.
8236         (ix86_expand_round_builtin): Ditto.
8237         (ix86_expand_special_args_builtin): Ditto.
8238         (ix86_expand_builtin): Ditto.
8240 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
8242         PR target/65693
8243         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
8244         any pow2 integer in between 2 and 0x80000000U inclusive.
8246 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
8248         PR rtl-optimization/65693
8249         * combine.c (is_parallel_of_n_reg_sets): Change first argument
8250         from an rtx_insn * to an rtx.
8251         (try_combine): Adjust both callers.  Use it once more.
8253 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
8255         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
8256         (chkp_make_static_const_bounds): Search existing
8257         symbol by assembler name.  Use make_decl_one_only.
8258         (chkp_get_zero_bounds_var): Remove node search which
8259         is now performed in chkp_make_static_const_bounds.
8260         (chkp_get_none_bounds_var): Likewise.
8262 2015-04-08  Michael Witten  <mfwitten@gmail.com>
8264         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
8265         to an example.
8267 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8269         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
8271 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
8273         * doc/extend.texi (__sync Builtins): Fix grammar.
8275 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8277         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
8279 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8281         * varasm.c (emit_local): Move definition of align.
8283 2015-04-08  Julian Brown  <julian@codesourcery.com>
8285         * config/nvptx/mkoffload.c (process): Support variable mapping.
8287 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
8289         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
8290         alpha_links **.
8291         (alpha_write_one_linkage): Correct typo.
8293 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
8295         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
8297 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
8299         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
8301 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
8303         * tree-chkp.h (chkp_insert_retbnd_call): New.
8304         * tree-chkp.c (chkp_insert_retbnd_call): New.
8305         * ipa-split.c (insert_bndret_call_after): Remove.
8306         (split_function): Use chkp_insert_retbnd_call.
8307         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
8308         bounds for instrumented functions.
8310 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
8312         PR ipa/65540
8313         * calls.c (initialize_argument_information): When producing tail
8314         call also turn SSA_NAMES passed by references to original PARM_DECLs
8316 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
8318         PR target/65648
8319         * lra-remat.c (do_remat): Process input and non-input insn
8320         registers separately.
8322 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
8324         PR debug/65678
8325         * valtrack.c (debug_lowpart_subreg): New function.
8326         (dead_debug_insert_temp): Use it.
8328         PR middle-end/65680
8329         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
8330         into signed HOST_WIDE_INT the same as negative bit_offset.
8332 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
8334         * ipa-comdats.c (ipa_comdats): Visit all thunks
8335         to set proper comdat group.
8337 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8339         PR target/65489
8340         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
8341         on constants for NEON VSTRUCT modes.
8343 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
8344             Iain Sandoe  <iain@codesourcery.com>
8346         PR target/65351
8347         * configure: Regenerate.
8349 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8351         PR target/65614
8352         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
8353         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
8354         that LFD is used to load double constants instead of LFS.  Add
8355         defaults for all costs structures.  Add comments for missing
8356         initialization fields.
8357         (size32_cost): Likewise.
8358         (size64_cost): Likewise.
8359         (rs64a_cost): Likewise.
8360         (mpccore_cost): Likewise.
8361         (ppc403_cost): Likewise.
8362         (ppc405_cost): Likewise.
8363         (ppc440_cost): Likewise.
8364         (ppc476_cost): Likewise.
8365         (ppc601_cost): Likewise.
8366         (ppc603_cost): Likewise.
8367         (ppc604_cost): Likewise.
8368         (ppc604e_cost): Likewise.
8369         (ppc620_cost): Likewise.
8370         (ppc630_cost): Likewise.
8371         (ppccell_cost): Likewise.
8372         (ppc750_cost): Likewise.
8373         (ppc7450_cost): Likewise.
8374         (ppc8540_cost): Likewise.
8375         (ppce300c2c3_cost): Likewise.
8376         (ppce500mc_cost): Likewise.
8377         (ppce500mc64_cost): Likewise.
8378         (ppce5500_cost): Likewise.
8379         (ppce6500_cost): Likewise.
8380         (titan_cost): Likewise.
8381         (power4_cost): Likewise.
8382         (power6_cost): Likewise.
8383         (power7_cost): Likewise.
8384         (power8_cost): Likewise.
8385         (ppca2_cost): Likewise.
8386         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
8388         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
8389         instead of XXLOR to copy SFmode to clear out dirty bits created
8390         when SFmode denormals are generated.
8391         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
8392         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
8394 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
8396         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
8397         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
8398         * config/aarch64/aarch64-tune.md: Regenerate.
8400 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
8402         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
8403         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
8404         * config/arm/arm-cores.def (exynos-m1): New core.
8405         * config/arm/arm-tune.md: Regenerate.
8406         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
8407         * config/arm/bpabi.h: Likewise.
8409 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
8411         * ipa-cp (set_single_call_flag): Remove too
8412         restrictive assert.
8414 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
8416         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
8417         GOMP_offload_unregister from the destructor.
8419 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
8421         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
8422         flags for instrumentation thunk.
8423         (chkp_produce_thunks): Likewise.
8425 2015-04-05  Martin Liska  <mliska@suse.cz>
8427         PR ipa/65665
8428         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
8429         has computed data structure.
8430         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
8432 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
8434         * invoke.texi (inline-unit-growth): Increase growth to 20%
8435         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
8437 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
8439         PR target/65647
8440         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
8441         value checking.
8442         (lra_rematerialization_iter): New.
8443         * lra.c (lra): Initialize lra_rematerialization_iter.
8444         Stop updating lra_constraint_new_regno_start after switching of
8445         inheritance and rematerialization.
8446         * lra-remat.c (lra_rematerialization_iter): New.
8447         (lra_remat): Add printing pass iteration.  Do rematerialization
8448         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
8450 2015-04-04  Richard Biener  <rguenther@suse.de>
8452         PR tree-optimization/64909
8453         PR tree-optimization/65660
8454         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
8455         to take a cost vector for scalar iteration cost.
8456         (vect_get_single_scalar_iteration_cost): Likewise.
8457         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
8458         Compute the scalar iteration cost into a cost vector.
8459         (vect_get_known_peeling_cost): Use the scalar cost vector to
8460         account for the cost of the peeled iterations.
8461         (vect_estimate_min_profitable_iters): Likewise.
8462         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
8463         Likewise.
8465 2015-04-04  Alan Modra  <amodra@gmail.com>
8467         PR target/65576
8468         PR target/65240
8469         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
8470         0.0 constant unless TARGET_VSX.
8471         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
8472         alternative.
8474 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
8476         PR ipa/65654
8477         * ipa-inline-transform.c (inline_call): Skip sanity check to work
8478         around the ICE
8480 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
8482         PR ipa/65655
8483         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
8484         speculative indirect edges to avoid ordering issue.
8486 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
8488         PR ipa/65076
8489         * ipa-inline.c (edge_badness): Add combined size to the denominator.
8491 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
8493         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
8494         TYPE_ARTIFICIAL on the .omp_data* types.
8496 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
8498         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
8499         instrumentation thunks.
8501 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
8503         * config/i386/i386.c (ix86_expand_call): Avoid nested
8504         PARALLEL in returned call value.
8506 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
8508         * lto-cgraph.c (input_cgraph_1): Always link instrumented
8509         assembler name with original one.
8511 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
8513         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
8515 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
8517         Revert parts of r216820.
8518         * config/i386/i386.md (movqi_internal): Correct type calculation
8519         for alternatives 3 and 5.
8521 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
8523         PR preprocessor/61977
8524         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
8525         predefine __vector/__bool/__pixel macros nor context sensitive
8526         macros for CLK_ASM.
8527         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
8529 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
8531         * config/pa/pa.c (pa_output_move_double): Directly handle register
8532         indexed memory operand.  Simplify handling of scaled register indexed
8533         memory operands.
8535 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
8537         PR driver/65444
8538         * config/i386/linux-common.h (MPX_SPEC): New.
8539         (CHKP_SPEC): Add MPX_SPEC.
8540         * doc/invoke.texi (-fcheck-pointer-boudns): Document
8541         possible issues with '-z bndplt' support in linker.
8543 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
8545         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
8546         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
8547         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
8548         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
8549         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
8551 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
8553         * config/i386/sync.md (UNSPEC_MOVA): Remove.
8554         (atomic_load<mode>): Change operand 0 predicate to
8555         nonimmediate_operand and fix up the destination when needed.
8556         Use UNSPEC_LDA.
8557         (atomic_loaddi_fpu): Use UNSPEC_LDA.
8558         (atomic_store<mode>): Change operand 1 predicate to
8559         nonimmendate_operand and move the source to register when needed.
8560         Use UNSPEC_STA.
8561         (atomic_store<mode>_1): Use UNSPEC_STA.
8562         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
8563         Fix moves from memory operand.  Use UNSPEC_STA.
8565 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8567         * expmed.c (strict_volatile_bitfield_p): Check that the access will
8568         not cross a MODESIZE boundary.
8569         (store_bit_field, extract_bit_field): Added assertions in the
8570         strict volatile bitfields code path.
8572 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
8574         PR target/65624
8575         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
8576         Increase args array size by one to avoid buffer overflow.
8578 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
8580         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8581         split_part.
8582         * ipa-inline.c (edge_badness): Add wrapper penalty.
8583         (sum_callers): Move up.
8584         (inline_small_functions): Set single_caller.
8585         * ipa-inline.h (inline_summary): Add single_caller.
8586         * ipa-split.c (split_function): Set split_part.
8587         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
8588         * cgraph.h (cgraph_node): Add split_part.
8590 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
8592         PR target/58945
8593         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8594         Do not split operands 0 and operands 2 to halfmode.
8595         (atomic_compare_and_swap<mode>): Update for
8596         atomic_compare_and_swap<dwi>_doubleword changes.
8598 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
8600         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
8601         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
8602         no caching is done.
8604 2015-03-31  Martin Liska  <mliska@suse.cz>
8606         PR ipa/65557
8607         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
8608         has already filled up function summary.
8609         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
8611 2015-03-31  Richard Biener  <rguenther@suse.de>
8613         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
8614         of types.
8616 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8618         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
8619         nested functions.
8620         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
8621         (s390_asm_output_function_label): Adapt to new signature of
8622         s390_function_num_hotpatch_hw
8623         Optimise the code generating assembler output.
8624         Add comments to assembler file.
8626 2015-03-31  Richard Biener  <rguenther@suse.de>
8628         PR middle-end/65626
8629         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
8630         of the noreturn call so it is last and cleanup_control_flow_bb
8631         can do the CFG part.
8633 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
8635         PR target/65531
8636         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
8637         same_comdat_group for external symbols.
8638         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
8639         infinite same_comdat_group traversal loop.
8641 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
8643         PR plugins/61176
8644         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
8645         automatically to $headers.
8647 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
8649         PR ipa/65610
8650         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
8651         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
8652         function.
8653         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
8654         Use it.
8655         * ipa-prop.c (param_type_may_change_p): Likewise.
8656         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
8657         (remove_unused_scope_block_p): Add in_ctor_dtor_block
8658         argument.  Before inlining, preserve
8659         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
8660         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
8661         recursive calls.
8662         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
8664 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
8666         PR ipa/65076
8667         * ipa-inline.c (edge_badness): Base denominator on callee's
8668         grwoth squared.
8670 2015-03-27  Martin Jambor  <mjambor@suse.cz>
8672         PR ipa/65478
8673         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
8674         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
8675         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
8676         node_calling_single_call.
8677         * ipa-cp.c (count_callers): New function.
8678         (set_single_call_flag): Likewise.
8679         (initialize_node_lattices): Count callers and set single_flag_call if
8680         necessary.
8681         (incorporate_penalties): New function.
8682         (good_cloning_opportunity_p): Use it, dump new flags.
8683         (propagate_constants_topo): Set node_within_scc flag if appropriate.
8684         * doc/invoke.texi (ipa-cp-recursion-penalty,
8685         ipa-cp-single-call-pentalty): Document.
8687 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
8689         PR ipa/65588
8690         * symtab.c (symtab_node::get_partitioning_class): Register vars
8691         are duplicated.
8692         * varpool.c (symbol_table::output_variables) Do not assemble unefined
8693         decls for non-symbols.
8695 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8697         PR target/65248
8698         * output.h (default_binds_local_p_2): New.
8699         * varasm.c (default_binds_local_p_2): Renamed to ...
8700         (default_binds_local_p_3): This.  Don't return true on protected
8701         data symbol if protected data may be external.
8702         (default_binds_local_p): Use default_binds_local_p_3.
8703         (default_binds_local_p_1): Likewise.
8704         (default_binds_local_p_2): New.
8705         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
8706         default_binds_local_p_2 if TARGET_MACHO is undefined.
8708 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
8710         PR target/65593
8711         * config/i386/i386.c (legitimize_pic_address): If base
8712         is SYMBOL_REF or LABEL_REF using %rip addressing, force
8713         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
8715 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
8717         PR target/65531
8718         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
8719         comdat groups.
8721 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
8723         PR ipa/65600
8724         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
8725         of optimized out indirect call.
8726         (redirect_to_unreachable): Always build symbol table node for
8727         BUILT_IN_UNREACHABLE
8729 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
8731         PR target/65407
8732         * ira-costs.c (record_reg_classes): Process all constraint string
8733         containing 0-9.
8735 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
8737         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
8738         memory_operand.
8740         PR target/65052
8741         * config/c6x/constraints.md (S3): New constraint.
8742         * config/c6x/c6x.md (real_jump): Use it.
8744 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8746         PR middle-end/65595
8747         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
8748         do redirection if the call is not optimized out.
8750 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
8752         PR target/65495
8753         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
8754         (fchkp-check-incomplete-type): Add LTO.
8755         (fchkp-zero-input-bounds-for-main): Likewise.
8756         (fchkp-first-field-has-own-bounds): Likewise.
8757         (fchkp-narrow-bounds): Likewise.
8758         (fchkp-narrow-to-innermost-array): Likewise.
8759         (fchkp-use-static-bounds): Likewise.
8760         (fchkp-use-static-const-bounds): Likewise.
8761         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
8763 2015-03-27  Marek Polacek  <polacek@redhat.com>
8765         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
8767 2015-03-27  Marek Polacek  <polacek@redhat.com>
8769         PR sanitizer/65583
8770         * ubsan.c (ubsan_create_edge): New function.
8771         (instrument_bool_enum_load): Call it.
8772         (instrument_nonnull_arg): Likewise.
8773         (instrument_nonnull_return): Likewise.
8774         (instrument_object_size): Likewise.
8776 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8778         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
8779         auto_vec.
8781 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8783         PR lto/65536
8784         * lto-streamer.h (class lto_location_cache): New.
8785         (struct data_in): Add location_cache.
8786         (lto_input_location): Update prototype.
8787         (stream_input_location_now): New.
8788         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
8789         pointer to location.
8790         (stream_input_location): Update.
8791         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
8792         (warn_odr): Apply location cache before warning.
8793         (lto_input_location): Update prototype.
8794         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
8795         Use stream_input_location_now.
8796         * lto-streamer-in.c (lto_location_cache::current_cache): New static
8797         variable.
8798         (lto_location_cache::cmp_loc): New function.
8799         (lto_location_cache::apply_location_cache): New function.
8800         (lto_location_cache::accept_location_cache): New function.
8801         (lto_location_cache::revert_location_cache): New function.
8802         (lto_location_cache::input_location): New function.
8803         (lto_input_location): Do location caching.
8804         (stream_input_location_now): New function.
8805         (input_eh_region, input_struct_function_base): Use
8806         stream_input_location_now.
8807         (lto_data_in_create): use new.
8808         (lto_data_in_delete): Use delete.
8809         * tree-streamer-in.c (unpack_ts_block_value_fields,
8810         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
8811         lto_input_ts_exp_tree_pointers): Update for cached location api.
8813 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8815         PR ipa/65076
8816         * passes.def: Add pass_nothrow.
8817         * ipa-pure-const.c: (pass_data_nothrow): New.
8818         (pass_nothrow): New.
8819         (pass_nothrow::execute): New.
8820         (make_pass_nothrow): New.
8821         * tree-pass.h (make_pass_nothrow): Declare.
8823 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8825         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
8826         edge to change by speculation resolution or redirection.
8827         (edge_set_predicate): Likewise.
8828         (inline_summary_t::duplicate): Likewise.
8829         (remap_edge_summaries): Likewise.
8831 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8833         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
8834         New macros.
8835         (can_inline_edge_p): Relax option matching for always inline functions.
8837 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
8839         PR target/65561
8840         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
8841         Check operand 4 and operand 0 for equality.
8842         (avx512f_vextract<shuffletype>32x4_1_maskm):
8843         Check operand 6 and operand 0 for equality.
8844         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
8845         for equality.
8846         (vec_extract_hi_<mode>_maskm): Ditto.
8848 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8850         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
8851         dead calls back to live.
8852         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
8853         cross check to ...
8854         (cgraph_node::verify_node): ... here; verify only callee edges,
8855         not caller.
8856         * cif-code.def (CILK_SPAWN): New code.
8858 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8860         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
8861         (edge_set_predicate): Use it to mark unreachable edges.
8862         (inline_summary_t::duplicate): Remove unnecesary code.
8863         (remap_edge_summaries): Likewise.
8864         (dump_inline_summary): Report contains_cilk_spawn.
8865         (compute_inline_parameters): Compute contains_cilk_spawn.
8866         (inline_read_section, inline_write_summary): Stream
8867         contains_cilk_spawn.
8868         * ipa-inline.c (can_inline_edge_p): Do not touch
8869         DECL_STRUCT_FUNCTION that may not be available;
8870         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
8871         remove check for callee_fun->can_throw_non_call_exceptions and
8872         replace it by optimization attribute check; check for flag_exceptions.
8873         * ipa-inline-transform.c (inline_call): Maintain
8874         DECL_FUNCTION_PERSONALITY
8875         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
8877 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
8879         PR tree-optimization/65551
8880         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
8881         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
8883 2015-03-26  Richard Biener  <rguenther@suse.de>
8885         PR middle-end/65555
8886         * tree-cfg.c (verify_gimple_call): Do not require a call to
8887         have no LHS if it wasn't recognized as control altering yet.
8889 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
8891         PR tree-optimization/64715
8892         * passes.def: Add another instance of pass_object_sizes before ccp1.
8893         * tree-object-size.c (pass_object_sizes::execute): In
8894         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
8895         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
8896         __bos result and the computed constant.  Remove redundant
8897         checks, obsoleted by gimple_call_builtin_p test.
8899         * var-tracking.c (variable_tracking_main_1): Don't track
8900         variables for targetm.no_register_allocation targets.
8902 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
8904         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
8905         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
8907 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
8909         PR target/65569
8910         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
8911         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
8912         0.0 is correctly setup.
8913         (extenddftf2_internal): Likewise.
8915 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
8917         PR tree-optimization/65177
8918         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
8919         (bb_in_bbs): New.
8920         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
8921         edges not adjacent on the path to the original code.
8923 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
8925         PR bootstrap/65537
8926         * doc/install.texi (Building a native compiler): Document new
8927         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
8928         configuration assumes that the host supports the linker plugin.
8930 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
8932         PR target/65508
8933         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
8934         chain for generated call.
8936 2015-03-25  Richard Biener  <rguenther@suse.de>
8938         * passes.c (pass_manager::execute_early_local_passes): Guard
8939         execution of pass_chkp_instrumentation_passes with
8940         flag_check_pointer_bounds.
8941         (pass_chkp_instrumentation_passes::gate): Likewise.
8943 2015-03-25  Martin Liska  <mliska@suse.cz>
8945         PR tree-optimization/65538
8946         * symbol-summary.h (function_summary::~function_summary):
8947         Relese memory for allocated summaries.
8948         (function_summary::release): New function.
8950 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
8952         PR lto/65515
8953         * lto-streamer-out.c (DFS::worklist): New struct.
8954         (DFS::worklist_vec): New data member.
8955         (DFS::next_dfs_num): Remove.
8956         (DFS::DFS): Rewritten using worklist instead of recursion,
8957         using most of code from DFS::DFS_write_tree.
8958         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
8959         pass it to DFS_write_tree calls.
8960         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
8961         quick initial checks push it into worklist_vec and return.
8963 2015-03-25  Richard Biener  <rguenther@suse.de>
8965         PR middle-end/65519
8966         * genmatch.c (expr::gen_transform): Re-write to avoid
8967         using gimple_build.
8969 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
8971         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
8973 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
8975         * config/arm/arm.opt (print_tune_info): New option.
8976         * config/arm/arm.c (arm_print_tune_info): New function.
8977         (arm_file_start): Call arm_print_tune_info.
8978         * config/arm/arm-protos.h (struct tune_params): Add comment.
8979         * doc/invoke.texi (@item -mprint-tune-info): New item.
8980         (-mtune): mention it in ARM Option Summary.
8982 2015-03-25  DJ Delorie  <dj@redhat.com>
8984         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
8985         correct clause.
8987 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
8988             Martin Liska  <mliska@suse.cz>
8990         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
8991         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
8992         (sem_item::add_type): New function.
8993         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
8994         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
8995         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
8996         (sem_function::equals_wpa): Fix typo.
8997         * ipa-icf.h (sem_item::add_type): New function.
8998         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
8999         order.
9001 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
9003         PR tree-optimization/65533
9004         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
9005         with swapped operands, call vect_free_slp_tree on
9006         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
9007         vector.
9009 2015-03-24  Richard Biener  <rguenther@suse.de>
9011         PR middle-end/65517
9012         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
9013         for fixup if necessary.
9015 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
9017         * doc/extend.texi (Function Attributes): Add @cindex entries
9018         for all attributes and regularize their format.  Delete text
9019         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
9020         information about "eightbit_data", "tiny_data", and "model"
9021         variable attributes to the Variable Attributes section.  Fix
9022         some obvious typos and copy-editing issues.
9023         (Variable Attributes, Type Attributes): Likewise add/fix
9024         @cindex entries for all attributes.
9026 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
9028         PR target/65523
9029         * tree-chkp.c (chkp_build_returned_bound): Ignore
9030         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
9032 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
9034         PR target/65505
9035         * config/sh/predicates.md (simple_mem_operand,
9036         displacement_mem_operand): Add test for reg.
9037         (short_displacement_mem_operand): Test for displacement_mem_operand
9038         before invoking sh_disp_addr_displacement.
9039         * config/sh/constraints.md (Sdd, Sra): Simplify.
9040         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
9041         Remove redundant displacement_mem_operand tests.
9043 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
9045         PR target/65296
9046         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
9047         the same -mmcu=MCU more than once.
9049 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
9051         PR bootstrap/65522
9052         * ipa-devirt.c: Remove duplicate demangle.h include.
9054         PR target/65504
9055         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
9056         on the pseudo.
9057         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
9058         REG_POINTER on *destptr after adjusting it for prologue size.
9060         PR ipa/65521
9061         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
9062         ultimate_alias_target ()->order ints instead of
9063         ultimate_alias_target () pointers.
9065 2015-03-23  Richard Biener  <rguenther@suse.de>
9067         PR tree-optimization/65518
9068         * tree-vect-stmts.c (vectorizable_load): Reject single-element
9069         interleaving cases we generate absymal code for.
9071 2015-03-23  Richard Biener  <rguenther@suse.de>
9073         PR tree-optimization/65494
9074         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
9075         matches here.
9076         (vect_analyze_slp_instance): But do that here, always and once.
9078 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9080         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
9081         adding T or multiplying by T+1 and subracting T.
9083 2015-03-22  Jeff Law  <law@redhat.com>
9085         PR rtl-optimization/64317
9086         * Makefile.in (OBJS): Add gcse-common.c
9087         * gcse.c: Include gcse-common.h
9088         (struct modify_pair_s): Move structure definition to gcse-common.h
9089         (compute_transp): Move function to gcse-common.c.
9090         (canon_list_insert): Similarly.
9091         (record_last_mem_set_info): Break out some code and put it into
9092         gcse-common.c.  Call into the new common code.
9093         (compute_local_properties): Pass additional arguments to compute_transp.
9094         * postreload-gcse.c: Include gcse-common.h and df.h
9095         (modify_mem_list_set, blocks_with_calls): New variables.
9096         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
9097         (get_bb_avail_insn): Pass in the expression index too.
9098         (alloc_mem): Allocate memory for the new bitmaps and lists.
9099         (free_mem): Free memory for the new bitmaps and lists.
9100         (insert_expr_in_table): Record a bitmap index for each entry we
9101         add to the table.
9102         (record_last_mem_set_info): Call into common code in gcse-common.c.
9103         (get_bb_avail_insn): If no available insn was found in the requested
9104         BB.  If BB has a single predecessor, see if the expression is
9105         transparent in BB and available in that single predecessor.
9106         (compute_expr_transp): New wrapper for compute_transp.
9107         (eliminate_partially_redundant_load): Pass expression's bitmap_index
9108         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
9109         (gcse_after_reload_main): If there are elements in the hash table,
9110         then compute transparency for all the elements in the hash table.
9111         * gcse-common.h: New file.
9112         * gcse-common.c: New file.
9114 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
9116         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
9117         as an adjective.
9118         (System Headers): Likewise.
9119         (Ifdef): Likewise.
9120         (Traditional macros): Likewise.
9121         (Invocation): Likewise.
9122         (Option Index): Likewise.
9123         * doc/cppopts.texi (-M): Likewise.
9124         (-finput-charset): Likewise.
9125         (--help): Likewise.
9126         * doc.invoke.texi (AVR Options): Likewise.
9127         (V850 Options): Likewise.
9129 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
9131         PR ipa/65475
9132         * ipa-devirt.c: Include demangle.h
9133         (odr_type_d): Add field rtti_broken.
9134         (odr_subtypes_equivalent_p): Do not require name to match.
9135         (compare_virtual_tables): Fix typo; if type already has ODR violation,
9136         bypass the tests; be ready for function referneces in vtables that are
9137         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
9138         (warn_odr): Give up for nameless types.
9139         (warn_types_mismatch): Report mismatch in mangled names;
9140         report mismatch in anonymous namespaces; look into component types to
9141         give useful error; report when mismatch is dragged in from other ODR
9142         type.
9143         (odr_types_equivalent_p): Match types for being polymorphic; avoid
9144         duplicated diagnostics.
9145         (add_type_duplicate): Reorder checks so more informative ones come
9146         first; fix typo; do not output "the extra base is defined here" when
9147         we did not warn.
9148         (BINFO_N_BASE_BINFOS): Relax sanity check.
9150 2015-03-22  Martin Liska  <mliska@suse.cz>
9151             Jakub Jelinek  <jakub@redhat.com>
9153         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
9154         masks that can potentially include a builtin.
9155         (ix86_add_new_builtins): Introduce fast filter for isa values
9156         that cannot trigger builtin inclusion.
9158 2015-03-22  Martin Liska  <mliska@suse.cz>
9160         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
9161         (sem_item::update_hash_by_local_refs): Likewise.
9162         (sem_variable::get_hash): Empty line is fixed.
9163         (sem_item_optimizer::execute): Include adding of hash references.
9164         (sem_item_optimizer::update_hash_by_addr_refs): New function.
9165         (sem_item_optimizer::build_hash_based_classes): Use local hash.
9166         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
9167         (sem_item::update_hash_by_local_refs): Likewise.
9169 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
9171         PR ipa/65502
9172         * ipa-comdats.c (enqueue_references): Walk through thunks.
9173         (ipa_comdats): Likewise.
9174         (set_comdat_group_1): New function.
9176 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
9178         PR ipa/65475
9179         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
9180         non-polymorphic
9182 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
9183             Gerald Pfeifer  <gerald@pfeifer.com>
9185         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
9187 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9188             Sandra Loosemore  <sandra@codesourcery.com>
9190         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
9191         function parameter declaration.
9192         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
9193         Update arguments to nios2_adjust_call_address().
9194         (sibcall_internal): Rename from *sibcall.
9195         (sibcall_value_internal): Rename from *sibcall_value.
9196         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
9197         (nios2_large_got_address): Add target temp reg parameter.
9198         (nios2_got_address): Adjust call to nios2_large_got_address, add
9199         force_reg around it.
9200         (nios2_load_pic_address): Add target temp reg parameter, replace call
9201         to nios2_got_address with corresponding code.
9202         (nios2_legitimize_constant_address): Update call to
9203         nios2_load_pic_address.
9204         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
9205         to use temp reg for PIC loading purposes.
9206         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
9207         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9208         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
9210 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
9212         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
9213         usage of "the @option{...}".
9214         (-Wopenmp-simd): Likewise.
9215         (-fsanitize-recover): Likewise.
9216         (-fsanitize-undefined-trap-on-error): Likewise.
9217         (-flto): Likewise.
9218         (tracer-dynamic-coverage-feedback): Likewise.
9219         (reorder-block-duplicate-feedback): Likewise.
9220         (loop-unroll-jam-size): Likewise.
9221         (-B): Likewise.
9222         (-I-): Likewise.
9223         (-mabs=legacy): Likewise.
9224         (-mupper-regs-df): Likewise.
9225         (-mupper-regs-sf): Likewise.
9226         (-mpointers-to-nested-functions): Likewise.
9228 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
9230         * doc/extend.texi (Cilk Plus Builtins): Add markup.
9232 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
9234         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
9235         additional index entries and cross-references.
9236         (-fchkp-check-incomplete-type): Likewise.
9237         (-fchkp-first-field-has-own-bounds): Likewise.
9238         (-fchkp-narrow-to-innermost-array): Likewise.
9239         (-fchkp-use-fast-string-functions): Likewise.
9240         (-fchkp-use-nochk-string-functions): Likewise.
9241         (-fchkp-use-static-const-bounds): Likewise.
9242         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
9243         (-fchkp-instrument-marked-only): Likewise.
9244         (-fchkp-use-wrappers): Likewise.
9245         (-static-libmpx): Likewise.
9246         (-static-libmpxwrappers): Likewise.
9247         * doc/extend.texi (bnd_legacy): Likewise.
9248         (bnd_instrument): Likewise.
9249         (bnd_variable_size): Likewise.
9250         (Pointer Bounds Checker builtins): Likewise.
9252 2015-03-21  Tom de Vries  <tom@codesourcery.com>
9254         PR tree-optimization/65458
9255         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
9256         * cgraph.h (cgraph_node): Add parallelized_function field.
9257         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
9258         (input_overwrite_node): Read parallelized_function field.
9259         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
9260         parallelized_function on cgraph_node for child_fn.
9261         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
9262         Remove include of gt-tree-parloops.h.
9263         (parallelized_functions): Remove static variable.
9264         (parallelized_function_p): Rewrite using parallelized_function field of
9265         cgraph_node.
9266         (create_loop_fn): Remove adding to parallelized_functions.
9267         * Makefile.in (GTFILES): Remove tree-parloops.c
9269 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
9271         PR rtl-optimization/64366
9272         * lra.c (lra_update_insn_regno_info): Consider regs in
9273         CALL_INSN_FUNCTION_USAGE memory.
9275 2015-03-20  Richard Biener  <rguenther@suse.de>
9277         PR middle-end/64715
9278         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
9279         for type comparison and gcc_checking_assert.
9280         (chrec_fold_plus_poly_poly): Likewise.
9281         (chrec_fold_multiply_poly_poly): Likewise.
9282         (chrec_convert_1): Likewise.
9283         * gimplify.c (gimplify_expr): Remove premature folding of
9284         &X + CST to &MEM[&X, CST].
9286 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
9288         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
9289         already is final.
9290         (ipa_inline): Recompute inline_failed codes.
9291         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
9292         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
9293         CIF_FINAL_ERROR.
9295 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
9297         PR rtl-optimization/60851
9298         * recog.c (constrain_operands): Accept a pseudo register before reload
9299         for LRA enabled targets.
9301 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
9303         PR target/65240
9304         * config/rs6000/predicates.md (easy_fp_constant): Remove special
9305         -ffast-math handling that kept non-0 constants live in the RTL
9306         until reload.  Remove logic testing the number of instructions it
9307         took to create a constant in a GPR that was never used, due to a
9308         test for soft-float earlier.
9309         (memory_fp_constant): Delete, no longer used.
9311         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
9312         alternatives for loading non-0 constants into GPRs for hard
9313         floating point that is no longer needed due to changes in
9314         easy_fp_constant.  Add support for loading 0.0 into GPRs.
9315         (mov<mode>_hardfloat32): Likewise.
9316         (mov<mode>_hardfloat64): Likewise.
9317         (mov<mode>_64bit_dm): Likewise.
9318         (movtd_64bit_nodm): Likewise.
9319         (pre-reload move FP constant define_split): Delete define_split,
9320         since it is no longer used.
9321         (extenddftf2_internal): Remove GHF constraints that are not valid
9322         for extenddftf2.
9324 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
9326         PR rtl-optimization/63491
9327         * lra-constraints.c (check_and_process_move): Use src instead of
9328         sreg.  Remove some dead code.
9330 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
9332         PR ipa/65380
9333         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
9334         (sem_variable::merge): Likewise.
9336 2015-03-19  Martin Liska  <mliska@suse.cz>
9338         PR ipa/65465
9339         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
9340         all fields of cgraph_thunk_info.
9342 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
9344         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
9345         clone instrumented thunks.
9347 2015-03-19  Richard Biener  <rguenther@suse.de>
9349         Revert
9350         2015-03-10  Richard Biener  <rguenther@suse.de>
9352         PR middle-end/63155
9353         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
9354         * tree-ssa-coalesce.c: Include timevar.h.
9355         (attempt_coalesce): Handle graph being NULL.
9356         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
9357         Split out abnormal coalescing to ...
9358         (perform_abnormal_coalescing): ... this function.
9359         (coalesce_ssa_name): Perform abnormal coalescing without computing
9360         live/conflict.
9361         (verify_ssa_coalescing_worker): New function.
9362         (verify_ssa_coalescing): Likewise.
9364 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9365             Jakub Jelinek  <jakub@redhat.com>
9367         PR sanitizer/65400
9368         * tsan.c (instrument_gimple): Clear tail call flag on
9369         calls.
9371 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
9373         PR sanitizer/65400
9374         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
9375         call in the return bb.
9376         (find_split_points): Add RETURN_BB argument, don't call
9377         find_return_bb.
9378         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
9379         if true append TSAN_FUNC_EXIT internal call after the call to
9380         the split off function.
9381         (execute_split_functions): Call find_return_bb here.
9382         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
9383         Adjust find_split_points and split_function calls.
9385 2015-03-18  DJ Delorie  <dj@redhat.com>
9387         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
9388         (iorqi3_virt): Likewise.
9390 2015-03-18  Tom de Vries  <tom@codesourcery.com>
9392         * tree-parloops.c (parallelize_loops): Make static.
9393         * tree-parloops.h (parallelize_loops): Remove extern declaration.
9395 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
9397         PR middle-end/64491
9398         Revert:
9399         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
9401         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
9402         condition would be removed due to undefined behaviour.
9404 2015-03-18  Martin Liska  <mliska@suse.cz>
9406         PR ipa/65432
9407         * cgraph.c (cgraph_node::get_create): Remove unnecessary
9408         xstrdup_for_dump wrapper.
9409         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
9410         sem_item::name.
9411         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
9412         with xstrdup_for_dump.
9413         (sem_variable::equals): Likewise.
9414         (sem_item_optimizer::read_section): Use symtab_node::name instead of
9415         sem_item::name.
9416         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
9417         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
9418         symtab_node::asm_name with xstrdup_for_dump.
9419         (congruence_class::dump): Use symtab_node::name instead of
9420         sem_item::name.
9421         * ipa-icf.h (symtab_node::name): Remove.
9422         (symtab_node::asm_name): Likewise.
9424 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
9426         PR tree-optimization/65450
9427         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
9428         function.
9429         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
9430         it instead of duplicate_ssa_name_ptr_info.
9432         PR target/65222
9433         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
9435 2015-03-18  Richard Biener  <rguenther@suse.de>
9437         * tree-data-ref.h (struct access_matrix): Remove.
9438         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
9439         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
9440         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
9441         (am_vector_index_for_loop): Likewise.
9442         (struct data_reference): Remove access_matrix member.
9443         (DR_ACCESS_MATRIX): Remove.
9444         (lambda_vector_new): Add comment.
9445         (lambda_matrix_new): Use XOBNEWVEC.
9447 2015-03-18  Richard Biener  <rguenther@suse.de>
9449         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
9450         (pass_ch::execute): Cleanup the CFG only if we did sth.
9451         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
9453 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9455         * expmed.c (synth_mult): Use std::swap instead of manually
9456         swapping algorithms.
9458 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
9460         PR target/65078
9461         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
9463 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
9465         PR target/65296
9466         * config/avr/avr.opt (-nodevicelib): New option.
9467         * doc/invoke.texi (AVR Options): Document it.
9468         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
9469         libgcc.a, libc.a, libm.a.
9470         * config/avr/specs.h: Same.
9471         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
9472         which don't (directly) depend on the device.  Print more help.
9473         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
9474         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
9475         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
9476         case of an error.
9477         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
9478         for specs file name.
9479         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
9480         * config/avr/avr-mcus.def: Adjust initializers and comments.
9482 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
9484         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
9485         DECL_ONE_ONLY to check if decl is one only.
9486         * ipa-split.c (consider_split): Limit splitt of one only functions.
9488 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
9490         PR tree-optimization/65427
9491         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
9492         functions.
9493         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
9495 2015-03-16  Marek Polacek  <polacek@redhat.com>
9497         * cgraph.h (add_new_static_var): Remove declaration.
9498         * varpool.c (add_new_static_var): Remove function.
9500 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
9502         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
9503         instead of vec<tree> * with vec_alloc and release for args.
9504         Adjust all users.
9506         PR middle-end/65431
9507         * omp-low.c (delete_omp_context): Only splay_tree_delete
9508         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
9509         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
9511 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
9513         PR sanitizer/64820
9514         * cfgexpand.c (align_base): New function.
9515         (alloc_stack_frame_space): Call it.
9516         (expand_stack_vars): Align prev_frame to be sure
9517         data->asan_vec elements aligned properly.
9519 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
9521         PR middle-end/65409
9522         * expr.c (store_field): Do not do a direct block copy if the source is
9523         a PARALLEL with BLKmode.
9525 2015-03-16  Tom de Vries  <tom@codesourcery.com>
9527         PR middle-end/65414
9528         Revert:
9529         2015-03-12  Tom de Vries  <tom@codesourcery.com>
9531         PR rtl-optimization/64895
9532         * lra-lives.c (check_pseudos_live_through_calls): Use
9533         actual_call_used_reg_set instead of call_used_reg_set, if available.
9535 2015-03-16  Alan Modra  <amodra@gmail.com>
9537         PR target/63150
9538         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
9539         Modify Z->r bswapdi splitter to use dest in place of scratch.
9540         In r->Z and Z->r bswapdi splitter rename word_high, word_low
9541         to word1, word2 and rearrange logic to suit.
9542         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
9543         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
9544         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
9545         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
9546         early clobber.
9548 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
9550         PR tree-optimization/65369
9551         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
9552         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
9553         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
9555         PR tree-optimization/65418
9556         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
9557         are casts in the first PLUS_EXPR operand, ensure tbias and
9558         *totallowp are in the inner type.
9560         PR rtl-optimization/65401
9561         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
9562         argument.  If true, adjust_address_nv of x with big-endian
9563         correction for the mode widening to GET_MODE (y).
9564         (make_field_assignment): Don't do MEM mode widening here.
9565         Use MEM_P instead of GET_CODE == MEM.
9567 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
9569         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
9570         the external decls.
9572 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9574         PR target/64600
9575         * config/arm/arm.c (arm_gen_constant, AND case): Use
9576         ARM_SIGN_EXTEND when constructing AND mask.
9578 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9580         * graph.c (print_graph_cfg): Make function names visible and append
9581         parenthesis to it.  Also make groups of basic blocks belonging to the
9582         same function visible.
9584 2015-03-12  Richard Biener  <rguenther@suse.de>
9586         PR middle-end/44563
9587         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
9588         to avoid quadratic behavior with inline expansion splitting blocks.
9589         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
9590         with the successor if the predecessor will be merged with it.
9591         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
9592         entry block with its successor.
9594 2015-03-13  Richard Biener  <rguenther@suse.de>
9596         PR middle-end/44563
9597         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
9598         (cleanup_tree_cfg_1): Do not call it.
9599         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
9600         (fixup_noreturn_call): Mark the stmt as control altering.
9601         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
9602         here.
9603         (pass_data_fixup_cfg): Produce a dump file.
9604         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
9605         (need_noreturn_fixup): New global.
9606         (pass_dominator::execute): Fixup queued noreturn calls.
9607         (optimize_stmt): Queue calls that became noreturn for fixup.
9608         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
9609         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
9610         (el_to_fixup): New global.
9611         (eliminate_dom_walker::before_dom_childre): Queue calls that
9612         became noreturn for fixup.
9613         (eliminate): Fixup queued noreturn calls.
9614         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
9615         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
9616         (substitute_and_fold_dom_walker::before_dom_children): Queue
9617         alls that became noreturn for fixup.
9618         (substitute_and_fold): Fixup queued noreturn calls.
9620 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
9622         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
9623         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
9624         are building; for methods check ODR type of class they belong to if
9625         they may lead to a polymorphic call.
9626         (sem_function::compare_polymorphic_p): Be bit smarter about testing
9627         when function may lead to a polymorphic call.
9628         (sem_function::compare_type_list): Remove.
9629         (sem_variable::equals): Update use of compatible_types_p.
9630         (sem_variable::parse_tree_refs): Remove.
9631         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
9632         cdtor.
9633         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
9634         matching here.
9635         (func_checker::compatible_polymorphic_types_p): Break out from ...
9636         (unc_checker::compatible_types_p): ... here.
9637         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
9638         Declare.
9639         (unc_checker::compatible_types_p): Update.
9640         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
9641         Remove.
9643 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9645         PR rtl-optimization/65235
9646         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
9647         When first element of vec_concat is const_int, calculate its size
9648         using second element.
9650 2015-03-12  Richard Biener  <rguenther@suse.de>
9652         PR middle-end/65270
9653         * fold-const.c (operand_equal_p): Fix ordering of resetting
9654         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
9656 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9658         * config/s390/s390.c (s390_reorg): Move code to output nops after label
9659         to s390_reorg ().
9660         (s390_asm_output_function_label): Likewise.
9661         * config/s390/s390.c (s390_asm_output_function_label):
9662         Fix function label alignment with -mhtopatch.
9663         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
9664         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
9665         ("nop_2_byte"): New define_insn.
9666         ("nop_4_byte"): Likewise.
9667         ("nop_6_byte"): Likewise.
9668         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
9669         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
9671 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
9673         PR target/65103
9674         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
9675         register.
9677 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
9679         PR target/65044
9680         * toplev.c (process_options): Restrict Pointer Bounds Checker
9681         usage with Address Sanitizer.
9683 2015-03-12  Richard Biener  <rguenther@suse.de>
9685         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
9686         to split on.
9687         * omp-low.c (expand_omp_taskreg): Split block before removing
9688         the stmt.
9689         (expand_omp_target): Likewise.
9690         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
9691         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
9692         stmt to split_block.
9694 2015-03-12  Tom de Vries  <tom@codesourcery.com>
9696         PR rtl-optimization/64895
9697         * lra-lives.c (check_pseudos_live_through_calls): Use
9698         actual_call_used_reg_set instead of call_used_reg_set, if available.
9700 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
9702         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
9703         (cgraph_node::remove): Likewise.
9704         (cgraph_node::get_untransformed_body): Likewise.
9705         * varpool.c (varpool_node::remove): Likewise.
9706         (varpool_node::get_constructor): Add sanity check.
9708 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
9710         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
9711         old GCC versions.
9712         (-fabi-compat-version): Likewise.
9713         (-ffriend-injection): Likewise.
9714         (-Wdeclaration-after-statement): Likewise.
9715         (-fomit-frame-pointer): Likewise.
9716         (-ftree-coalesce-inlined-vars): Likewise.
9717         (-fvisibility=): Likewise.
9718         * doc/extend.texi (Typeof): Likewise.
9719         (Zero Length): Likewise.
9720         (Escaped Newlines): Likewise.
9721         (Compound Literals): Likewise.
9722         (Function Attributes): Likewise.
9723         (Label Attributes): Likewise.
9724         (Type Attributes): Likewise.
9725         (Function Names): Likewise.
9726         (Other Builtins): Likewise.
9727         (Function Specific Option Pragmas): Likewise.
9728         (C++ Interface): Likewise.
9730 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
9732         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
9734 2015-03-11  Marek Polacek  <polacek@redhat.com>
9736         PR tree-optimization/65388
9737         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
9739 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
9741         PR target/65296
9742         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
9743         * configure: Regenerate.
9744         * config.in: Regenerate.
9745         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
9746         [-mn-flash]: Document it.
9747         [__AVR_ARCH__]: Document avrtiny.
9749         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
9750         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
9751         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
9753 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9755         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
9757 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9759         PR target/65242
9760         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
9761         allow reloads of PLUS in floating point/VSX registers.
9763 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
9765         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
9766         crypto_sha256_fast.
9767         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
9769 2015-03-11  Richard Biener  <rguenther@suse.de>
9771         PR tree-optimization/65310
9772         * tree-sra.c (build_ref_for_offset): Also preserve larger
9773         alignment.
9775 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
9777         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
9779 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9781         PR target/65368
9782         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
9783         new define_expand.
9784         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
9786 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
9788         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
9789         (sem_function::equals_wpa): ... here.
9791 2015-03-10  Marek Polacek  <polacek@redhat.com>
9792             Jakub Jelinek  <jakub@redhat.com>
9794         PR sanitizer/65367
9795         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
9796         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
9797         separately.
9799 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9801         PR target/65286
9802         * config/rs6000/t-linux: For powerpc64* target set
9803         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
9805 2015-03-10  Richard Biener  <rguenther@suse.de>
9807         PR middle-end/44563
9808         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
9809         for redirect_all_calls.
9811 2015-03-10  Marek Polacek  <polacek@redhat.com>
9813         * gdbinit.in (pcfun): Define and document.
9815 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
9817         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
9818         of libgomp-plugin.h.
9819         (find_target_compiler): Support a case when the path to gcc is
9820         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
9821         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
9822         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
9823         libgomp-plugin.h.
9824         (main): Use GCC_INSTALL_NAME as target_driver_name.
9825         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
9826         define.
9827         (mkoffload.o): Remove obsolete include path and defines.
9828         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
9830 2015-03-10  Richard Biener  <rguenther@suse.de>
9832         PR middle-end/63155
9833         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
9834         * tree-ssa-coalesce.c: Include timevar.h.
9835         (attempt_coalesce): Handle graph being NULL.
9836         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
9837         Split out abnormal coalescing to ...
9838         (perform_abnormal_coalescing): ... this function.
9839         (coalesce_ssa_name): Perform abnormal coalescing without computing
9840         live/conflict.
9841         (verify_ssa_coalescing_worker): New function.
9842         (verify_ssa_coalescing): Likewise.
9844 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
9846         PR target/65296
9847         * config.gcc (extra_options) [avr]: Remove.
9848         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
9849         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
9850         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
9852         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
9853         (-mmcu=): Add Var and MissingArgError properties.
9854         (-march=): Remove.
9855         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
9856         * config/avr/t-multilib: Regenerate.
9857         * config/avr/specs.h: New file.
9858         * config/avr/driver-avr.c: New file.
9859         * config/avr/genopt.sh: Remove file.
9860         * config/avr/avr-tables.opt: Remove file.
9861         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
9862         * config/avr/avr-c.c: Same.
9863         * avr-arch.h: Same.
9864         (avr_current_device): Remove proto.
9865         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
9866         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
9867         (EXTRA_SPEC_FUNCTIONS): Define.
9868         (avr_devicespecs_file): New specs function proto.
9869         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
9870         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
9871         (avr_current_device): Remove definition and usage.
9872         (avr_set_core_architecture): New static function.
9873         (avr_option_override): Use it.
9874         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
9875         (mcu_name): New static array.
9876         (comparator, avr_archs_str, avr_mcus_str): New static functions.
9877         (avr_inform_devices, avr_inform_core_architectures): New functions.
9878         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
9879         (avrlibc.h) [WITH_AVRLIBC]: Include.
9880         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
9881         (print_mcu): Rewrite from scratch.
9882         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
9883         Forward to avr-specific specs defined in device-specs file.
9884         * config/avr/t-avr (driver-avr.o): New rule.
9885         (avr-devices.o): Depend on avr-arch.h.
9886         (avr-mcus): No more depend on avr-tables.opt.
9887         (avr-tables.opt): Remove rule.
9888         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
9890 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
9892         * c-family/c.opt (fchkp-use-wrappers): New.
9893         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
9894         (chkp_wrap_function): New.
9895         (chkp_build_instrumented_fndecl): Support wrapped
9896         functions.
9897         * doc/invoke.texi (-fcheck-pointer-bounds): New.
9898         (-fchkp-check-incomplete-type): New.
9899         (-fchkp-first-field-has-own-bounds): New.
9900         (-fchkp-narrow-bounds): New.
9901         (-fchkp-narrow-to-innermost-array): New.
9902         (-fchkp-optimize): New.
9903         (-fchkp-use-fast-string-functions): New.
9904         (-fchkp-use-nochk-string-functions): New.
9905         (-fchkp-use-static-bounds): New.
9906         (-fchkp-use-static-const-bounds): New.
9907         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
9908         (-fchkp-check-read): New.
9909         (-fchkp-check-write): New.
9910         (-fchkp-store-bounds): New.
9911         (-fchkp-instrument-calls): New.
9912         (-fchkp-instrument-marked-only): New.
9913         (-fchkp-use-wrappers): New.
9914         (-static-libmpx): New.
9915         (-static-libmpxwrappers): New.
9917 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
9919         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
9920         (CHKP_SPEC): Add wrappers library.
9921         * c-family/c.opt (static-libmpxwrappers): New.
9923 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
9925         * config/i386/linux-common.h (LIBMPX_LIBS): New.
9926         (LIBMPX_SPEC): New.
9927         (CHKP_SPEC): New.
9928         * gcc.c (CHKP_SPEC): New.
9929         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
9930         * c-family/c.opt (static-libmpx): New.
9932 2015-03-10  Richard Biener  <rguenther@suse.de>
9934         PR middle-end/44563
9935         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
9936         for compare_type.
9937         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
9938         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
9939         (cgraph_add_edge_to_call_site_hash): Likewise.
9940         (cgraph_node::get_edge): Likewise.
9941         (cgraph_edge::set_call_stmt): Likewise.
9942         (cgraph_edge::remove_caller): Likewise.
9944 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
9946         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
9947         (callee_saved_gpr_regs_size): ... this.
9948         (callee_saved_regs_first_regno): Rename to ...
9949         (callee_saved_first_gpr_regno): ... this.
9950         (callee_saved_regs_last_regno) Rename to ...
9951         (callee_saved_last_gpr_regno): ... this.
9952         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
9953         variables.
9954         (nds32_initial_elimination_offset): Likewise.
9955         (nds32_expand_prologue): Likewise.
9956         (nds32_expand_epilogue): Likewise.
9957         (nds32_expand_prologue_v3push): Likewise.
9958         (nds32_expand_epilogue_v3pop): Likewise.
9959         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
9960         Adjust renamed variables.
9961         (nds32_output_stack_pop): Likewise.
9963 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9965         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
9966         code in comment.
9968 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9970         PR rtl-optimization/65321
9971         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
9972         than shift mode.
9973         * var-tracking.c (use_narrower_mode): Likewise.
9975 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
9977         PR tree-optimization/65355
9978         * varasm.c (notice_global_symbol): Do not produce RTL.
9979         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
9980         anchor.
9981         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
9982         check for section anchors.
9984 2015-03-10  Alan Modra  <amodra@gmail.com>
9986         PR target/65286
9987         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
9988         to be single-arch by default.  Set cpu_is_64bit for powerpc64
9989         given --with-cpu=native.
9990         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
9991         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
9992         and powerpc64le.
9993         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
9994         rs6000_isa_flags rather than TARGET_64BIT.
9996 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
9997             Kaz Kojima  <kkojima@gcc.gnu.org>
9999         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
10001 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
10003         PR lto/65361
10004         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
10005         on a TREE_BINFO, instead use BINFO_TYPE.
10007 2015-03-09  Richard Biener  <rguenther@suse.de>
10009         PR middle-end/65270
10010         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
10011         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
10012         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
10013         of that.  When comparing dereferences compare alignment.
10014         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
10016 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
10018         * ipa-inline-analysis.c (check_callers): Check
10019         node->can_remove_if_no_direct_calls_and_refs_p.
10020         (growth_likely_positive): Reorganize to call
10021         can_remove_if_no_direct_calls_p later.
10022         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
10023         will_be_removed_from_program_if_no_direct_calls_p): Add
10024         will_inline parameter.
10025         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
10026         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
10027         Handle inliner case correctly.
10029 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10031         PR tree-optimization/63743
10032         * cfgexpand.c (reorder_operands): Also reorder if only second operand
10033         had its definition forwarded by TER.
10035 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
10037         PR lto/65316
10038         * ipa-utils.h (types_odr_comparable): Add strict argument.
10039         * ipa-devirt.c: Fix whitespace;
10040         (odr_hasher): Remove.
10041         (odr_name_hasher, odr_vtable_hasher): New hashers.
10042         (can_be_name_hashed_p): New predicate.
10043         (hash_type_name): remove.
10044         (hash_odr_name): New.
10045         (odr_name_hasher::hash): new.
10046         (can_be_vtable_hashed_p): New.
10047         (hash_odr_vtable): New.
10048         (odr_vtable_hasher::hash): New.
10049         (types_same_for_odr): Add strict parameter.
10050         (types_odr_comparable): Likewise.
10051         (odr_name_hasher::equal): New.
10052         (odr_vtable_hasher::equal): New.
10053         (odr_name_hasher::remove): New.
10054         (odr_hash_type): Change to hash_table<odr_name_hasher>.
10055         (odr_vtable_hash_type): New.
10056         (odr_vtable_hash): New.
10057         (odr_subtypes_equivalent_p): Do strict comparsion.
10058         (add_type_duplicate): Merge type names; cleanup; avoid type
10059         duplicates.
10060         (register_odr_type): Initialize vtable hash.
10061         (build_type_inheritance_graph): Likewise
10062         (get_odr_type): Reorg to use two hashes.
10063         (dump_possible_polymorphic_call_targets): Move sanity check after debug
10064         output.
10065         (ipa_devirt): Dump type_inheritance_graph.
10066         (types_same_for_odr): Add strict mode.
10068 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10070         PR ipa/65334
10071         * cgraph.h (symtab_node): Add definition_alignment,
10072         can_increase_alignment_p and increase_alignment.
10073         * symtab.c (symtab_node::can_increase_alignment_p,
10074         increase_alignment_1, symtab_node::increase_alignment,
10075         symtab_node::definition_alignment): New.
10076         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
10077         can_increase_alignment_p.
10078         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
10079         * tree-vect-stmts.c (ensure_base_align): Likewise.
10080         * varasm.c (function_section_1): Use definition_alignment.
10081         (assemble_start_function): Likewise.
10082         (emit_local): likewise.
10083         (build_constant_desc): Likewsie.
10084         (output_constant_def_contents): Likewise.
10085         (place_block_symbol): Likewise.
10086         (output_object_block): Likewise.
10088 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10090         PR ipa/65316
10091         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
10092         when outputting debug.
10094 2015-03-07  Marek Polacek  <polacek@redhat.com>
10095             Martin Uecker  <uecker@eecs.berkeley.edu>
10097         PR sanitizer/65280
10098         * doc/invoke.texi: Update description of -fsanitize=bounds.
10100 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
10102         * tree-ssa-phiopt.c (neg_replacement): Remove.
10103         (tree_ssa_phiopt_worker): Remove negate optimization.
10105 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10107         PR ipa/65302
10108         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
10110 2015-03-06  Richard Biener  <rguenther@suse.de>
10112         PR middle-end/64928
10113         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
10114         and liveout_obstack members.
10115         (calculate_live_on_exit): Remove.
10116         (calculate_live_ranges): Change declaration.
10117         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
10118         (new_tree_live_info): Adjust.
10119         (calculate_live_ranges): Delete livein when not wanted.
10120         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
10121         Deal with partly deleted live info.
10122         (loe_visit_block): Remove temporary bitmap by using
10123         bitmap_ior_and_compl_into.
10124         (live_worklist): Adjust accordingly.
10125         (calculate_live_on_exit): Make static.
10126         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
10127         we do not need livein.
10129 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
10131         * real.c (real_from_string): Fix typo in assertion.
10133 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
10135         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
10136         the patch.
10138 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
10140         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
10142 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
10144         PR target/64342
10145         * lra-assigns.c (find_hard_regno_for): Rename to
10146         find_hard_regno_for_1.  Add a new parameter.
10147         (find_hard_regno_for): New function using find_hard_regno_for_1.
10149 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10151         PR rtl-optimization/65067
10152         * expmed.c (store_bit_field, extract_bit_field): Reworked the
10153         strict volatile bitfield handling.
10155 2015-03-05  Martin Liska  <mliska@suse.cz>
10157         PR ipa/65318
10158         * ipa-icf.c (sem_variable::equals): Compare variables types.
10160 2015-03-05  Richard Henderson  <rth@redhat.com>
10162         PR target/65121
10163         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
10164         correctly check weak symbol binding.
10166 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
10168         PR middle-end/65315
10169         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
10170         needed alignment.
10172 2015-03-05  Martin Liska  <mliska@suse.cz>
10174         * ipa-inline.c (inline_small_functions): Set default value to
10175         prevent warning during bootstrap.
10176         * tree.h: Add pragma guard that ignores false positives during
10177         bootstrap.
10179 2015-03-05  Richard Biener  <rguenther@suse.de>
10181         PR tree-optimization/65310
10182         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
10183         Properly preserve alignment of the base of the access.
10185 2015-03-05  Richard Biener  <rguenther@suse.de>
10187         PR ipa/65270
10188         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
10189         Compare dependence info.
10191 2015-03-05  Richard Biener  <rguenther@suse.de>
10193         PR middle-end/65233
10194         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
10195         tree-into-ssa.h.
10196         (walk_ssa_copies): Revert last chage.  Instead do not walk
10197         SSA names registered for SSA update.
10199 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
10201         PR ipa/65270
10202         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
10203         vtable references for their containing type.
10204         (sem_function::equals_wpa): Compare TYPE_RESTRICT
10205         and type attributes.
10207 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
10209         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
10210         before negating it.
10211         * stor-layout.c (finalize_record_size): Revert latest change.
10213 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
10215         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
10217 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
10219         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
10220         for correct comdat handling.
10221         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
10222         Likewise.
10223         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
10224         (used_from_object_file_p_worker): Remove.
10225         (cgraph_node::only_called_directly_or_alised): Add
10226         used_from_object_file_p.
10227         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
10228         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
10229         can_remove_if_no_direct_calls_and_refs_p.
10231 2015-03-04  Nick Clifton  <nickc@redhat.com>
10233         * config/rl78/rl78.h (enum reg_class): Remove real registers from
10234         General register class.
10235         * config/rl78/rl78-real.md: Replace general register constraints
10236         with real+virtual register constraints.
10238 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10240         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
10241         from checking for -mhtm option.
10243 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
10245         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
10246         (struct ipa_sra_check_caller_data): Add has_thunk field.
10247         (ipa_sra_check_caller): Check for thunk.
10248         (ipa_sra_preliminary_function_checks): Give up on function with
10249         thunks.
10250         (ipa_early_sra): Use call_for_symbol_and_aliases.
10252 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10254         PR target/65249
10255         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
10256         called for __stack_chk_guard symbol.
10258 2015-03-03  DJ Delorie  <dj@redhat.com>
10260         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
10261         inc/dec.
10262         (*addhi3_real): Likewise.
10263         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
10264         pattern to match incrementing memory.
10265         * config/rl78/predicates.md (rl78_1_2_operand): New.
10266         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
10267         it's the same and only mem.
10268         (rl78_alloc_physical_registers_op2): If there's effectively only
10269         one MEM, transcode it into HL.
10270         (rl78_far_p): Reject addresses that aren't legitimate.
10272 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
10274         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
10275         negating it.
10277         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
10279 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
10281         Implement call0 ABI for xtensa
10282         * config/xtensa/constraints.md ("a" constraint): Include stack
10283         pointer in case of call0 ABI.
10284         ("q" constraint): Make empty in case of call0 ABI.
10285         ("D" constraint): Include stack pointer in case of call0 ABI.
10286         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
10287         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
10288         prototypes.
10289         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
10290         variable.
10291         (xtensa_regno_to_class): Make it a local variable in the
10292         function xtensa_regno_to_class.
10293         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
10294         macro, function prototype and implementation.
10295         (reg_nonleaf_alloc_order): Make it a local variable in the
10296         function order_regs_for_local_alloc.
10297         (xtensa_conditional_register_usage): New function.
10298         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
10299         (xtensa_valid_move): Allow direct moves to stack pointer
10300         register in call0 ABI.
10301         (xtensa_setup_frame_addresses): Only spill register windows in
10302         windowed ABI.
10303         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
10304         call0 ABI respectively.
10305         (xtensa_function_arg_1): Only mark a7 register for copying in
10306         windowed ABI.
10307         (xtensa_call_save_reg): New function.
10308         (compute_frame_size): Add space for callee saved register
10309         storage to the frame size in call0 ABI.
10310         (xtensa_expand_prologue): Generate code to set up stack frame
10311         and save callee-saved registers in call0 ABI.
10312         (xtensa_expand_epilogue): New function.
10313         (xtensa_set_return_address): New function.
10314         (xtensa_return_addr): Calculate return address in call0 ABI.
10315         (xtensa_builtin_saveregs): Only mark a7 register for copying and
10316         emit copying code in windowed ABI.
10317         (order_regs_for_local_alloc): Add preferred register allocation
10318         order for non-leaf function in call0 ABI.
10319         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
10320         (xtensa_asm_trampoline_template): Add trampoline generation for
10321         call0 ABI.
10322         (xtensa_trampoline_init): Add trampoline initialization for
10323         call0 ABI.
10324         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
10325         functions.
10326         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
10327         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
10328         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
10329         ABI call-used registers.
10330         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
10331         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
10332         call0 ABI.
10333         (REG_CLASS_CONTENTS): Include all registers into the preferred
10334         reload registers set, adjust the set in the
10335         xtensa_conditional_register_usage.
10336         (xtensa_regno_to_class): Drop variable declaration.
10337         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
10338         function.
10339         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
10340         respectively.
10341         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
10342         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
10343         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
10344         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
10345         location in call0 ABI.
10346         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
10347         stack adjustment size when handling exception.
10348         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
10349         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
10350         definitions.
10351         ("return" pattern): Generate ret.n/ret in call0 ABI.
10352         ("epilogue" pattern): Expand epilogue.
10353         ("nonlocal_goto" pattern): Use default in call0 ABI.
10354         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
10355         emit eh_set_a0_* depending on ABI.
10356         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
10357         ("eh_set_a0_call0", "blockage"): New patterns.
10359 2015-03-03  Martin Liska  <mliska@suse.cz>
10361         PR ipa/65287
10362         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
10364 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10366         PR 65138/target
10367         * config/rs6000/rs6000-tables.opt: Regenerate table.
10369 2015-03-03  Renlin Li  <renlin.li@arm.com>
10371         * doc/md.texi (@item ^): Change ? into ^.
10373 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
10375         * doc/tm.texi: Regenerated.
10377 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
10379         * builtins.c (expand_builtin_return_addr): Add
10380         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
10381         surrounding #ifdef.
10382         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
10383         definition to 1.
10384         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
10385         Likewise.
10386         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
10387         undefined.
10388         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
10389         paragraph.
10391 2015-03-03  Martin Jambor  <mjambor@suse.cz>
10392             Eric Botcazou  <ebotcazou@adacore.com>
10394         * tree-sra.c (ipa_sra_check_caller_data): New type.
10395         (has_caller_p): Removed.
10396         (ipa_sra_check_caller): New function.
10397         (ipa_sra_preliminary_function_checks): Use it.
10399 2015-03-03  Martin Liska  <mliska@suse.cz>
10401         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
10402         instead of if branch.
10404 2015-03-03  Martin Liska  <mliska@suse.cz>
10406         PR ipa/65282
10407         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
10409 2015-03-23  Jeff Law  <law@redhat.com>
10411         PR tree-optimization/65241
10412         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
10413         hash table if INSERT is true.
10415 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
10417         PR target/65296
10418         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
10420 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
10422         PR target/64331
10423         * config/avr/avr.c (context.h, tree-pass.h): Include them.
10424         (avr_pass_data_recompute_notes): New static variable.
10425         (avr_pass_recompute_notes): New class.
10426         (avr_register_passes): New static function.
10427         (avr_option_override): Call it.
10429 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
10431         Fix various problems with specs file generation.
10433         PR target/65296
10434         * config.gcc (extra_gcc_objs) [avr]: Remove.
10435         * config/avr/driver-avr.c: Remove file.
10436         * config/avr/t-avr (driver-avr.o): Remove rule.
10437         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
10438         INCLUDES to build.  Depend on TM_H.
10439         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
10440         build warnings.  Fix non-matching types and non-existing %-codes.
10441         (tm.h): Include.
10442         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
10443         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
10444         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
10445         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
10446         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
10447         (LIBGCC_SPEC): Remove definitions.
10449 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
10451         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
10452         to create a register in testing mode.
10454 2015-03-03  Martin Liska  <mliska@suse.cz>
10455             Jan Hubicka  <hubicka@ucw.cz>
10457         PR ipa/65263
10458         * cgraph.c (cgraph_node::has_thunk_p): New function.
10459         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
10460         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
10461         (sem_function::merge): Assert is changed.
10463 2015-03-03  Martin Liska  <mliska@suse.cz>
10464             Martin Jambor  <mjambor@suse.cz>
10466         PR ipa/65087
10467         * ipa-icf.c (sem_item_optimizer::execute): Change function
10468         return value to boolean.
10469         (sem_item_optimizer::merge_classes): Likewise.
10470         (ipa_icf_driver): Return TODO_remove_functions in case there's
10471         a merge operation processed.
10472         * ipa-icf.h: Change function return value to boolean.
10474 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10476         PR 65138/target
10477         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
10478         processor type for 64-bit little endian PowerPC.
10480         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
10481         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
10482         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
10483         printing built-in mask so it does not pass NULL pointers.
10485         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
10486         -mcpu=powerpc64le.
10488 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
10490         PR target/58158
10491         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
10492         !ISA_HAS_FP_CONDMOVE.
10494 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
10496         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
10497         reload_completed.
10499 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
10501         * doc/invoke.texi (Options for Code Generation Conventions):
10502         Fix URL of DSO paper.
10504 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
10506         PR ipa/65130
10507         * ipa-inline.c (check_callers): Looks for recursion.
10508         (inline_to_all_callers): Give up on uninlinable or recursive edges.
10509         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
10510         summary of inline clones.
10511         (do_estimate_growth_1): Fix recursion check.
10513 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
10515         PR ipa/64988
10516         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
10517         comdat groups.
10519 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
10520             Aldy Hernandez  <aldyh@redhat.com>
10522         PR lto/65276
10523         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
10524         when checking TYPE_BINFO.
10526 2015-03-02  Richard Biener  <rguenther@suse.de>
10528         PR ipa/65270
10529         * ipa-icf-gimple.c: Include builtins.h.
10530         (func_checker::compare_memory_operand): Compare base alignment.
10532 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10534         PR target/65184
10535         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
10536         are never passed by reference.
10538 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10540         PR target/65183
10541         * tree-chkp.c (chkp_check_lower): Don't check against
10542         zero bounds for already instrumented functions.
10543         (chkp_check_upper): Likewise.
10544         (chkp_fini): Clean pass local data to avoid wrong reusage.
10546 2015-02-28  Martin Liska  <mliska@suse.cz>
10547             Jan Hubicka  <hubicka@ucw.cz>
10549         * ipa-icf.c (sem_variable::equals): Improve debug output;
10550         get variable constructor.
10551         (sem_variable::parse): Do not filter out too early; give up on
10552         volatile and register vars.
10553         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
10554         variables.
10555         * ipa-icf.h (sem_variable::init): Do not set ctor.
10556         (sem_variable::ctor): Remove.
10558 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
10560         PR middle-end/65233
10561         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
10563 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10565         * ipa-icf.c: Include stor-layout.h
10566         (sem_function::compare_cgraph_references): Rename to ...
10567         (sem_item::compare_cgraph_references): ... this one.
10568         (sem_variable::equals_wpa): New function
10569         (sem_variable::equals): Do not check stuff already verified by
10570         equals_wpa.
10571         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
10572         * ipa-icf.h (sem_item): Add compare_cgraph_references.
10573         (sem_function): Remove compare_cgraph_references.
10574         (sem_variable): Turns equals_wpa into non-inline.
10576 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10578         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
10579         (sem_item::add_expr): New function.
10580         (sem_function::hash_stmt): Handle operands of most statements.
10581         (sem_variable::get_hash): Hash the actual constructor.
10582         * ipa-icf.h (sem_item): Add add_expr.
10583         (sem_function): Update prototype of hash_stmt
10585 2015-02-28  Martin Liska  <mliska@suse.cz>
10586             Jan Hubicka  <hubicka@ucw.cz>
10588         PR ipa/65245
10589         * ipa-icf-gimple.c (func_checker::compare_function_decl):
10590         Remove.
10591         (func_checker::compare_variable_decl): Skip symtab vars.
10592         (func_checker::compare_cst_or_decl): Update.
10593         * ipa-icf.c (sem_function::parse): Do not consider aliases.
10594         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
10595         use correct symtab predicates.
10596         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
10597         (sem_variable::parse):  Update comment.
10598         (sem_item_optimizer::build_graph): Consider ultimate aliases
10599         for references.
10601 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10603         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
10604         of OBJ_TYPE_REF.
10606 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10608         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
10609         (sem_variable::merge) Likewise.
10611 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10613         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
10614         target; also match flag_ipa_devirt.
10616 2015-03-01  Martin Liska  <mliska@suse.cz>
10617             Jan Hubicka  <hubicka@ucw.cz>
10619         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
10620         Validate variable alignment.
10621         * ipa-icf.c (sem_function::equals_private): Be more precise
10622         about non-common function attributes.
10623         (sem_variable::equals): Likewise.
10625 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10627         PR ipa/65237
10628         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
10629         across COMDAT group boundary.
10631 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10633         PR ipa/65232
10634         * ipa-icf.c (clear_decl_rtl): New function.
10635         (sem_function::merge): Clear RTL before forming alias.
10636         (sem_variable::merge): Clear RTL before forming alias.
10638 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
10640         PR ipa/65236
10641         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
10643 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
10645         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
10646         to neon_to_gp<q>.
10648 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
10650         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
10651         a typo in the description.
10653 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
10655         PR target/64317
10656         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
10657         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
10658         * lra-constraints.c: Include "params.h".
10659         (EBB_PROBABILITY_CUTOFF): Use
10660         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
10661         (lra_inheritance): Use '<' instead of '<=' for
10662         EBB_PROBABILITY_CUTOFF.
10663         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
10664         Document change.
10666 2015-02-27  Martin Liska  <mliska@suse.cz>
10668         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
10669         vector length condition.
10671 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
10673         * doc/extend.texi (x86 transactional memory intrinsics):
10674         Reorganize discussion of _xbegin.  Clarify that the return
10675         value is a bit mask.  Expand example and move to end of section.
10677 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
10678             Aldy Hernandez  <aldyh@redhat.com>
10680         PR rtl-optimization/65220
10681         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
10683 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
10685         PR target/65032
10686         * lra-remat.c (update_scratch_ops): New.
10687         (do_remat): Call it.
10688         * lra.c (lra_register_new_scratch_op): New. Take code from ...
10689         (remove_scratches): ... here.
10690         * lra-int.h (lra_register_new_scratch_op): New prototype.
10692 2015-02-27  Marek Polacek  <polacek@redhat.com>
10694         PR c/65040
10695         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
10696         -Wformat-signedness anymore.
10698 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10700         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
10701         function.
10702         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
10704 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10706         * config/s390/s390.c (enum s390_builtin):
10707         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
10708         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
10709         (s390_init_builtins): Generate new builtin functions.
10710         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
10711         (s390_sfpc, s390_efpc): New pattern definitions.
10713 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10715         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
10716         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
10717         (s390_builtin_decls): New array.
10718         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
10719         (s390_builtin_decl): New function.
10720         (TARGET_BUILTIN_DECL): Define macro.
10722 2015-02-27  Richard Biener  <rguenther@suse.de>
10724         PR middle-end/63175
10725         * builtins.c (get_object_alignment_2): Make sure to re-apply
10726         the ANDed mask after recursing to its operand gets us a new
10727         misalignment bit position.
10729 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
10730             Martin Liska  <mliska@suse.cz>
10732         PR bootstrap/65150
10733         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
10734         Use address_matters_p.
10735         (redirect_all_callers, set_addressable): New functions.
10736         (sem_function::merge): Reorganize and fix merging issues.
10737         (sem_variable::merge): Likewise.
10738         (sem_variable::compare_sections): Remove.
10739         * common.opt (fmerge-all-constants, fmerge-constants): Remove
10740         Optimization flag.
10741         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
10742         redirect them.
10743         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
10744         decl is used.
10745         (address_matters_1): New function.
10746         (symtab_node::address_matters_p): New function.
10747         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
10748         check for merged flag.
10749         * cgraph.h (address_matters_p): Declare.
10750         (symtab_node::address_taken_from_non_vtable_p): Remove.
10751         (symtab_node::address_can_be_compared_p): New method.
10752         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
10753         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
10754         Remove.
10755         (comdat_can_be_unshared_p_1) Use address_matters_p.
10756         (update_vtable_references): Fix formating.
10757         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
10758         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
10759         * cgraphclones.c: Preserve merged and icf_merged flags.
10761 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
10763         * doc/extend.texi (Function Attributes): Fix spelling and typos.
10764         (Label Attributes): Likewise.
10765         (Cilk Plus Builtins): Likewise.
10766         (ARC SIMD Built-in Functions): Likewise.
10767         (ARM C Language Extensions (ACLE)): Likewise.
10768         (PowerPC Built-in Functions): Likewise.
10769         (PowerPC Hardware Transactional Memory Built-in Functions):
10770         Likewise.
10772 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
10774         PR tree-optimization/65216
10775         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
10776         new stmt and new SSA_NAME for lhs whenever the arguments have
10777         changed and weren't just swapped.  Fix comment typo.
10779         PR tree-optimization/65215
10780         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
10781         for PDP endian targets.
10782         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
10783         Fix up formatting issues.
10784         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
10785         size is smaller than the original, adjust MEM_REF offset by the
10786         difference of sizes.  Use is_gimple_mem_ref_addr instead of
10787         is_gimple_min_invariant test to avoid adding address temporaries.
10789 2015-02-26  Martin Liska  <mliska@suse.cz>
10790             Jan Hubicka  <hubicka@ucw.cz>
10792         PR ipa/64693
10793         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
10794         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
10795         (sem_item_optimizer::process_cong_reduction): Include division by
10796         sensitive references.
10797         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
10798         * ipa-ref.c (ipa_ref::address_matters_p): New function.
10799         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
10801 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
10803         PR target/65192
10804         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
10805         Remove.
10806         * config/avr/avr.c: Same.
10807         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
10808         Refuse any constant address not in 0..0xbf.
10809         * config/avr/avr.md (*mov<mode>, *movsf): Remove
10810         tiny_valid_direct_memory_access_range from insn conditions.
10811         (mov<mode>): Don't special-case expansion of avrtiny addresses.
10813 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
10815         PR target/61142
10816         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
10817         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
10818         * config/sh/predicates.md (const_logical_operand): New predicate.
10819         * config/sh/sh.md: Add new peephole2 patterns.
10821 2015-02-26  Marek Polacek  <polacek@redhat.com>
10823         PR ipa/65008
10824         * ipa-inline.c (early_inliner): Recompute inline parameters.
10826 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10828         PR target/65171
10829         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
10830         instructions with TImode operands are included in the analysis.
10832 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
10834         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
10835         of an EDGE_FSM_THREAD.
10837 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10839         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
10841 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
10843         PR debug/46102
10844         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
10846 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
10848         PR tree-optimization/65048
10849         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
10850         (thread_through_all_blocks): Call valid_jump_thread_path.
10851         Remove invalid FSM jump-thread paths.
10853 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
10855         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
10856         (ipa_write_optimization_summaries): Likewise.
10857         * tree-streamer.h: Include data-streamer.h.
10858         (streamer_mode_table): Declare extern variable.
10859         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
10860         * lto-streamer-out.c (lto_output_init_mode_table,
10861         lto_write_mode_table): New functions.
10862         (produce_asm_for_decls): Call lto_write_mode_table when streaming
10863         offloading LTO.
10864         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
10865         (lto_create_simple_input_block): Add mode_table argument to the
10866         lto_input_block constructors.
10867         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
10868         Likewise.
10869         * data-streamer-in.c (string_for_index): Likewise.
10870         * ipa-inline-analysis.c (inline_read_section): Likewise.
10871         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
10872         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10873         * lto-streamer-in.c (lto_read_body_or_constructor,
10874         lto_input_toplevel_asms): Likewise.
10875         (lto_input_mode_table): New function.
10876         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
10877         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
10878         Use bp_pack_machine_mode.
10879         * real.h (struct real_format): Add name field.
10880         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
10881         (class lto_input_block): Add mode_table member.
10882         (lto_input_block::lto_input_block): Add mode_table_ argument,
10883         initialize mode_table.
10884         (struct lto_file_decl_data): Add mode_table field.
10885         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
10886         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
10887         unpack_ts_decl_common_value_fields,
10888         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
10889         * tree-streamer.c (streamer_mode_table): New variable.
10890         * real.c (ieee_single_format, mips_single_format,
10891         motorola_single_format, spu_single_format, ieee_double_format,
10892         mips_double_format, motorola_double_format,
10893         ieee_extended_motorola_format, ieee_extended_intel_96_format,
10894         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
10895         ibm_extended_format, mips_extended_format, ieee_quad_format,
10896         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
10897         decimal_single_format, decimal_double_format, decimal_quad_format,
10898         ieee_half_format, arm_half_format, real_internal_format): Add name
10899         field.
10900         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
10902 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
10904         PR target/65161
10905         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
10906         reordering for selective scheduling.
10908 2015-02-26  Terry Guo  <terry.guo@arm.com>
10910         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
10911         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
10912         (arm_arch_no_volatile_ce): Declare new global variable.
10913         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
10914         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
10915         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
10916         (TARGET_NO_VOLATILE_CE): New macro.
10917         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
10918         volatile memory access in IT block
10920 2015-02-25  Kai Tietz  <ktietz@redhat.com>
10922         PR tree-optimization/61917
10923         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
10924         that reduc_def_stmt is null.
10926 2015-02-25  Martin Liska  <mliska@suse.cz>
10928         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
10929         hard register variables.
10931 2015-02-25  Kai Tietz  <ktietz@redhat.com>
10933         PR target/64212
10934         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
10935         (symtab::noninterposable_alias): Likewise.
10937 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
10939         PR target/65167
10940         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
10941         bounds registers.
10942         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
10944 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
10946         PR target/64997
10947         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
10948         as split condition; force split via '#' in output pattern.
10950 2015-02-25  Richard Biener  <rguenther@suse.de>
10951             Kai Tietz  <ktietz@redhat.com>
10953         PR tree-optimization/61917
10954         * tree-vect-loop.c (vectorizable_reduction): Allow
10955         vect_internal_def without reduction to exit graceful.
10957 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
10959         PR target/65196
10960         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
10961         only with NONDEBUG_INSN_P.
10963 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
10965         Use variadic macros with avr-log.c.
10967         * config/avr/avr-protos.h (avr_vdump): New prototype.
10968         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
10969         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
10970         * config/avr/avr-log.c: Adjust comments.
10971         (avr_vdump): New function.
10972         (avr_vadump): Pass caller as 2nd argument instead of format string.
10973         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
10974         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
10976 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
10978         PR lto/64374
10979         * target.def (target_option_stream_in): New target hook.
10980         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
10981         targetm.target_option.post_stream_in if non-NULL.
10982         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
10983         * doc/tm.texi: Updated.
10984         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
10985         function.
10986         (TARGET_OPTION_POST_STREAM_IN): Redefine.
10988 2015-02-24  Jeff Law  <law@redhat.com>
10990         PR target/65117
10991         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
10992         of operand 0 and operand 2.
10993         (zero_cost_loop_end, loop_end): Similarly.
10995 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
10997         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
10998         CXX_MEM_STAT_INFO.
11000 2015-02-24  DJ Delorie  <dj@redhat.com>
11002         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
11003         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
11004         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
11005         instead of hardcoding SImode.
11007 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
11009         * omp-low.c (create_omp_child_function): Tag entrypoint
11010         functions with a special attribute.
11012 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11014         PR target/65058
11015         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
11017 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
11019         PR rtl-optimization/65123
11020         * lra-remat.c (operand_to_remat): Check hard regs in insn
11021         definition too.
11023 2015-02-24  Nick Clifton  <nickc@redhat.com>
11025         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
11026         to the assembler.
11028 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
11030         PR libgomp/64625
11031         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
11032         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
11033         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
11034         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
11035         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
11036         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
11037         (BUILT_IN_GOACC_PARALLEL): Specify as
11038         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
11039         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
11040         * builtin-types.def
11041         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11042         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11043         Remove function types.
11044         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
11045         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11046         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11047         New function types.
11049 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
11051         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
11053 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
11055         PR tree-optimization/65170
11056         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
11057         if val[1] < 0, clear also val[2] and return 3.
11059 2015-02-24  Alan Modra  <amodra@gmail.com>
11061         PR target/65172
11062         * config/rs6000/rs6000.c (get_memref_parts): Only return true
11063         when *base is a reg.  Handle nested plus addresses.  Simplify
11064         pre_modify test.
11066 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
11068         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
11069         use natural alignment when optimizing for size.
11071 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
11073         PR target/65153
11074         * config/sh/sh.md (movsicc_true+3): Remove peephole.
11075         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
11076         * config/sh/sh.c (replace_n_hard_rtx): Remove.
11078 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
11080         PR fortran/63427
11081         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
11082         too big for a wide_int.  Implement missing wrapping operation.
11084 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
11086         PR target/65163
11087         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
11088         instead of const_int 4294901760.
11090 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
11092         * config/avr/t-avr: Fix typo in comment.
11094 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
11096         * doc/rtl.texi (fma): Clarify documentation.
11098 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
11100         PR debug/58123
11101         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
11102         over input_location.
11104 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
11106         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
11107         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
11108         restrict alignments to absolute_biggest_alignment.
11109         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
11110         Define.
11111         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
11112         * doc/tm.texi: Regenerate.
11113         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
11115 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
11117         PR target/64172
11118         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
11120 2015-02-20  Richard Biener  <rguenther@suse.de>
11122         PR tree-optimization/65136
11123         * tree-ssa-propagate.c: Include cfgloop.h.
11124         (replace_phi_args_in): Avoid replacing loop latch edge PHI
11125         arguments with constants.
11127 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
11128             Martin Liska  <mliska@suse.cz>
11130         PR target/63892
11131         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
11132         don't try to create_thunk if stdarg_p.  If
11133         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
11134         redirect_callers if possible.
11135         (sem_item_optimizer::execute): Call unregister_hooks here...
11136         (ipa_icf_driver): ... instead of here.
11138 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11140         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
11141         Mark operand 0 as earlyclobber in 2nd alternative.
11142         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
11143         Write negated shift amount into QI lowpart operand 0 and use it
11144         in the shift step.
11145         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
11147 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
11149         * cgraph.h (clone_function_name_1): Declare.
11150         * cgraphclones.c (clone_function_name_1): New function.
11151         (clone_function_name): Use it.
11152         * lto-partition.c: Include "stringpool.h".
11153         (must_not_rename, maybe_rewrite_identifier)
11154         (validize_symbol_for_target): New static functions.
11155         (privatize_symbol_name): Use must_not_rename.
11156         (promote_symbol): Call validize_symbol_for_target.
11157         (lto_promote_cross_file_statics): Likewise.
11158         (lto_promote_statics_nonwpa): Likewise.
11160 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
11162         PR target/64452
11163         * config/avr/avr.md (pushhi_insn): New insn.
11164         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
11166 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
11167             Jakub Jelinek  <jakub@redhat.com>
11169         * tree-streamer.c (preload_common_nodes): Don't preload
11170         TI_VA_LIST* for offloading.
11171         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
11172         in_lto_p.
11174 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
11176         * config/pa/pa.c (pa_emit_move_sequence): Always force
11177         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
11178         note on insn.
11180         * config/pa/pa.c (pa_reloc_rw_mask): New function.
11181         (TARGET_ASM_RELOC_RW_MASK): Define.
11182         (pa_cannot_force_const_mem): Revert previous change.
11184 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
11185             Jan Hubicka  <hubicka@ucw.cz>
11187         PR ipa/65028
11188         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
11189         across jump functions.
11191 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
11193         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
11195 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
11197         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
11199 2015-02-19  Richard Henderson  <rth@redhat.com>
11201         PR middle-end/65074
11202         * varasm.c (default_binds_local_p_2): Don't test node->definition;
11203         test DECL_EXTERNAL independent of symtab_node.
11205 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
11207         PR lto/65012
11208         * varpool.c (varpool_node::get_constructor): Return early
11209         if this->lto_file_data is NULL.
11211 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11213         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
11214         (rank_for_schedule_debug): Update.
11215         (ready_sort): Make static.  Move sorting logic to ...
11216         (ready_sort_debug, ready_sort_real): New static functions.
11217         (schedule_block): Sort both debug insns and real insns in preparation
11218         for ready list trimming.  Improve debug output.
11219         * sched-int.h (ready_sort): Remove global declaration.
11221 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
11223         * ipa-icf.c (sem_function::equals_private): Adjust.
11224         (sem_function::bb_dict_test): Take a vec<int> * instead of
11225         auto_vec<int>.
11226         * ipa-icf.h (bb_dict_test): Likewise.
11228 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
11230         PR gcov-profile/64634
11231         * tree-eh.c (frob_into_branch_around): Fix up typos
11232         in function comment.
11233         (lower_catch): Put eh_seq resulting from EH lowering of
11234         the cleanup sequence after the cleanup rather than before it.
11236 2015-02-18  Tom de Vries  <tom@codesourcery.com>
11238         * common.opt (fstdarg-opt): New option.
11239         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
11240         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
11241         (@item -fstdarg-opt): New item.
11243 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11245         PR target/65064
11246         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
11247         for common symbols.
11249 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
11251         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
11252         insn-modes.h.
11253         (ALL_HOST_OBJS): Add mkoffload.o.
11254         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
11256 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
11258         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
11259         (compare_virtual_tables): Be smarter about skipping typeinfos;
11260         do sane output on virtual table table mismatch.
11261         (warn_odr): Be ready for forward declarations of enums;
11262         output sane info on base mismatch and virtual table mismatch.
11263         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
11264         when only one type is polymorphic.
11265         (get_odr_type): Fix hashtable corruption.
11266         (dump_odr_type): Dump mangled names.
11268 2015-02-18  Richard Biener  <rguenther@suse.de>
11270         PR tree-optimization/65063
11271         * tree-predcom.c (determine_unroll_factor): Return 1 if we
11272         have replaced looparound PHIs.
11274 2015-02-18  Martin Liska  <mliska@suse.cz>
11276         * lto-streamer.c (lto_streamer_init): Encapsulate
11277         streamer_check_handled_ts_structures with checking macro.
11279 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
11281         PR ipa/65087
11282         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
11283         section if !implicit_section.
11284         (cgraph_node::create_version_clone_with_body): Likewise.
11285         * trans-mem.c (ipa_tm_create_version): Likewise.
11287 2015-02-18  Richard Biener  <rguenther@suse.de>
11289         PR tree-optimization/62217
11290         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
11291         into BIVs.
11293 2015-02-18  Marek Polacek  <polacek@redhat.com>
11295         PR sanitizer/65081
11296         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
11297         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
11298         is in range [-16K, -1].  Don't issue run-time error if
11299         (ptr > ptr + offset).
11301 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
11303         * doc/install.texi (nvptx-*-none): New section.
11304         * doc/invoke.texi (Nvidia PTX Options): Likewise.
11305         * config/nvptx/nvptx.opt: Update.
11307         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
11308         (access_check): New functions, copied from
11309         config/i386/intelmic-mkoffload.c.
11310         (main): For non-installed testing, look in all COMPILER_PATHs for
11311         GCC_INSTALL_NAME.
11313         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
11315 2015-02-18  Andrew Pinski  <apinski@cavium.com>
11316             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11318         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
11319         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
11321 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
11323         * ipa-visibility.c (function_and_variable_visibility): Only
11324         check locality if node is not already local.
11325         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
11326         call_for_symbol_and_aliases instead of
11327         call_for_symbol_thunks_and_aliases.
11328         (ipa_inline): Likewise.
11329         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11330         first walk aliases.
11331         * ipa.c (symbol_table::remove_unreachable_nodes): Use
11332         call_for_symbol_and_aliases.
11333         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
11334         (ipa_propagate_frequency_1): Use it; use opt_for_fn
11335         (ipa_propagate_frequency): Update.
11336         (ipa_profile): Add opt_for_fn gueards.
11338 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
11340         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
11341         * doc/invoke.texi (SH options): Document it.
11342         * config/sh/sh.c (sh_insn_length_adjustment): Check
11343         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
11345 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
11347         * common.opt (fipa-cp-alignment): New.
11348         * ipa-cp.c (ipcp_store_alignment_results): Check
11349         flag_ipa_cp_alignment.
11350         * opts.c (default_options_table): Enable -fipa-cp-alignment for
11351         -O2.
11352         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
11353         * doc/invoke.texi: Document -fipa-cp-alignment.
11355 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
11357         PR target/64793
11358         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
11359         to nil.  Adjust comments.
11361 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
11363         * ipa-visibility.c (function_and_variable_visibility): Only
11364         check locality if node is not already local.
11365         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
11366         call_for_symbol_and_aliases instead of
11367         call_for_symbol_thunks_and_aliases.
11368         (ipa_inline): Likewise.
11369         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11370         first walk aliases.
11371         * ipa.c (symbol_table::remove_unreachable_nodes): Use
11372         call_for_symbol_and_aliases.
11373         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
11374         (ipa_propagate_frequency_1): Use it; use opt_for_fn
11375         (ipa_propagate_frequency): Update.
11376         (ipa_profile): Add opt_for_fn guards.
11378 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11380         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
11381         skipping of "strange" tokens.
11383 2015-02-17  Jeff Law  <law@redhat.com>
11385         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
11386         obsolete comment.
11388 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
11390         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
11391         as forcing a HARD_DEP between instructions, thereby
11392         disallowing rewriting to break dependencies.
11394 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
11396         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
11397         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
11398         variables in boundary that have no inlitalizer encoded and are
11399         not aliases.
11400         * varasm.c (default_binds_local_p_2): External definitions do not
11401         count as definitions here.
11403 2015-02-16  Jeff Law  <law@redhat.com>
11405         PR tree-optimization/64823
11406         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
11407         statements.
11408         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
11409         threading through blocks with PHIs, but no statements.
11410         (thread_through_normal_block): Distinguish between blocks where
11411         we did not process all the statements and blocks with no statements.
11413 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
11414             James Greenhalgh  <james.greenhalgh@arm.com>
11416         PR ipa/64963
11417         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
11418         section if not linkonce.  Fix up formatting.
11419         (cgraph_node::create_version_clone_with_body): Copy section.
11420         * trans-mem.c (ipa_tm_create_version): Likewise.
11422 2015-02-16  Richard Biener  <rguenther@suse.de>
11424         PR tree-optimization/65077
11425         * tree-ssa-structalias.c (get_constraint_for_1): Handle
11426         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
11427         (find_func_aliases): Allow float values to carry pointers again.
11429 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11431         * doc/install.texi (Specific): Reorder targets list to put
11432         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
11433         from the top menu.
11435 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11436             David Edelsohn  <dje.gcc@gmail.com>
11438         PR target/65058
11439         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
11440         mapping class to external variable or function reference.
11441         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
11442         mapping class.
11444 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
11446         PR target/53348
11447         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
11448         ASM_WEAKEN_DECL if defined.
11450 2015-02-16  Richard Biener  <rguenther@suse.de>
11452         PR lto/65015
11453         * varasm.c (default_file_start): For LTO produced units
11454         emit <artificial> as file directive.
11456 2015-02-16  Richard Biener  <rguenther@suse.de>
11458         PR tree-optimization/63593
11459         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
11460         stmts and releasing SSA names until...
11461         (execute_pred_commoning): ... after processing all chains.
11463 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
11465         PR ipa/65059
11466         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
11467         external functions.
11469 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
11471         * doc/bugreport.texi: Adjust section titles throughout the file
11472         to use "Title Case".
11473         * doc/extend.texi: Likewise.
11474         * doc/gcov.texi: Likewise.
11475         * doc/implement-c.texi: Likewise.
11476         * doc/implement-cxx.texi: Likewise.
11477         * doc/invoke.texi: Likewise.
11478         * doc/objc.texi: Likewise.
11479         * doc/standards.texi: Likewise.
11480         * doc/trouble.texi: Likewise.
11482 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
11484         * cgraph.h (symtab_node::has_aliases_p): Simplify.
11485         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
11486         * tree.c (lookup_binfo_at_offset): Make static.
11487         (get_binfo_at_offset): Do not shadow offset; add explanatory
11488         comment.
11490 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
11492         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
11493         for all floading point loads and stores except those using a register
11494         index address.
11495         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
11496         to a register.
11498 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
11500         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
11501         (do_estimate_growth_1): Record if any uninlinable edge was seen.
11502         (estimate_growth): Handle uninlinable edges correctly.
11503         (check_callers): New.
11504         (growth_likely_positive): Handle aliases correctly.
11506 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
11508         * ipa-chkp.c: Use iterate_direct_aliases.
11509         * symtab.c (resolution_used_from_other_file_p): Move inline.
11510         (symtab_node::create_reference): Fix formating.
11511         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
11512         (symtab_node::iterate_reference): Move inline.
11513         (symtab_node::iterate_referring): Move inline.
11514         (symtab_node::iterate_direct_aliases): Move inline.
11515         (symtab_node::used_from_object_file_p_worker): Inline into ...
11516         (symtab_node::used_from_object_file_p): ... this one; move inline.
11517         (symtab_node::call_for_symbol_and_aliases): Move inline;
11518         use iterate_direct_aliases.
11519         (symtab_node::call_for_symbol_and_aliases_1): New method.
11520         (cgraph_node::call_for_symbol_and_aliases): Move inline;
11521         use iterate_direct_aliases.
11522         (cgraph_node::call_for_symbol_and_aliases_1): New method.
11523         (varpool_node::call_for_node_and_aliases): Rename to ...
11524         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
11525         use iterate_direct_aliases.
11526         (varpool_node::call_for_symbol_and_aliases_1): New method.
11527         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
11528         (ipa_discover_readonly_nonaddressable_var): Update.
11529         * ipa-devirt.c: Fix formating.
11530         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
11531         Move inline.
11532         (cgraph_node::call_for_symbol_and_aliases): Move inline.
11533         (cgraph_node::call_for_symbol_and_aliases_1): New function..
11534         * cgraph.h (used_from_object_file_p_worker): Remove.
11535         (resolution_used_from_other_file_p): Move inline.
11536         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
11537         (symtab_node::iterate_reference): Move inline.
11538         (symtab_node::iterate_referring): Move inline.
11539         (symtab_node::iterate_direct_aliases): Move inline.
11540         (symtab_node::used_from_object_file_p_worker): Inline into ...
11541         (symtab_node::used_from_object_file_p): Move inline.
11542         * tree-emutls.c (ipa_lower_emutls): Update.
11543         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
11544         (varpool_node::call_for_node_and_aliases): Remove.
11546 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
11548         PR tree-optimization/62209
11549         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
11550         op == range->exp, insert seq and gimplified code after labels
11551         instead of after the phi.
11553 2015-02-13  Jeff Law  <law@redhat.com>
11555         PR bootstrap/65060
11556         Revert my change for tree-optimization/64823.
11558 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
11560         PR tree-optimization/65053
11561         * tree-ssa-phiopt.c (value_replacement): When moving assign before
11562         cond, either reset VR on lhs or set it to phi result VR.
11564 2015-02-13  Jeff Law  <law@redhat.com>
11566         PR tree-optimization/64823
11567         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
11568         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
11569         threading through blocks with PHIs, but no statements.
11570         (thread_through_normal_block): Distinguish between blocks where
11571         we did not process all the statements and blocks with no statements.
11573         PR rtl-optimization/47477
11574         * match.pd (convert (plus/minus (convert @0) (convert @1): New
11575         simplifier to narrow arithmetic.
11577 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
11579         PR ipa/65028
11580         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
11581         polymorphic call info when type is not known to be preserved.
11583 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
11585         PR ipa/65028
11586         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
11587         (inline_call): Use it.
11589 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
11591         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
11592         GOMP_DEVICE_NVIDIA_PTX.
11594 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
11596         PR ipa/65034
11597         * stmt.c (emit_case_nodes): Use void_type_node instead of
11598         NULL_TREE as LABEL_DECL type.
11600 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
11602         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
11603         constraints.
11604         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
11605         symbolic references to data to be forced to constant memory on the
11606         SOM target.
11608 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11610         PR tree-optimization/65002
11611         * tree-cfg.c (pass_data_fixup_cfg): Don't update
11612         SSA on start.
11613         * tree-sra.c (some_callers_have_no_vuse_p): New.
11614         (ipa_early_sra): Reject functions whose callers
11615         assume function is read only.
11617 2015-02-13  Richard Biener  <rguenther@suse.de>
11619         PR lto/65015
11620         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
11621         for LTO produced CUs.
11623 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
11625         PR tree-optimization/64705
11626         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
11627         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
11628         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
11629         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
11630         expand_simple_operations.
11632 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
11633             Richard Henderson  <rth@redhat.com>
11635         PR rtl/32219
11636         * cgraphunit.c (cgraph_node::finalize_function): Set definition
11637         before notice_global_symbol.
11638         (varpool_node::finalize_decl): Likewise.
11639         * varasm.c (default_binds_local_p_2): Rename from
11640         default_binds_local_p_1, add weak_dominate argument.  Use direct
11641         returns instead of assigning to local variable.  Unify varpool and
11642         cgraph paths via symtab_node.  Reject undef weak variables before
11643         testing visibility.  Reorder tests for simplicity.
11644         (default_binds_local_p): Use default_binds_local_p_2.
11645         (default_binds_local_p_1): Likewise.
11646         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
11647         via symtab_node.
11648         (default_elf_asm_output_external): Emit visibility when specified.
11650 2015-02-13  Alan Modra  <amodra@gmail.com>
11652         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
11653         code setting up r11 for out-of-line fp restore.
11655 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
11657         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
11658         (muser-mode): Likewise.
11660 2015-02-13  Alan Modra  <amodra@gmail.com>
11662         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
11663         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
11665 2015-02-12  David Howells  <dhowells@redhat.com>
11667         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
11668         warning.
11669         * tree-ssa-uninit.c (dump_predicates): Likewise.
11670         * opts.c (print_filtered_help): Likewise.
11672 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
11674         * dwarf2out.c (output_die): Use "%s", name instead of name to
11675         avoid -Wformat-security warning.
11677         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
11678         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
11679         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
11680         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
11682 2015-02-12  Jason Merrill  <jason@redhat.com>
11684         * common.opt (-flifetime-dse): New.
11686 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
11688         PR sanitizer/65019
11689         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
11691         PR tree-optimization/65014
11692         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
11693         use original second operand of arg0 or arg1 instead of
11694         that adjusted by STRIP_NOPS.
11696 2015-02-11  Jeff Law  <law@redhat.com>
11698         PR target/63347
11699         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
11700         that needs to be queued, just queue it for a single cycle.
11702 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
11704         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
11705         bodies of thunks; comment on why.
11706         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
11707         symbols are extern.
11709 2015-02-11  Richard Henderson  <rth@redhat.com>
11711         PR sanitize/65000
11712         * tree-eh.c (mark_reachable_handlers): Mark source and destination
11713         regions of __builtin_eh_copy_values.
11715 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11717         PR middle-end/65003
11718         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
11719         ultimate alias is MEM with SYMBOL_REF satisfying
11720         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
11721         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
11723 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
11725         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
11726         "diagnostic-core.h".
11727         (main): Initialize progname, and call diagnostic_initialize.
11729         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
11730         instead of __OPENMP_TARGET__.
11732         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
11733         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
11734         hard-coding PTX_ID.
11736 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
11738         * doc/sourcebuild.texi (pie_enabled): Document.
11740 2015-02-11  Martin Liska  <mliska@suse.cz>
11742         PR ipa/64813
11743         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
11744         a return value for call to a function that is noreturn.
11746 2015-02-11  Richard Biener  <rguenther@suse.de>
11748         PR lto/65015
11749         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
11750         and -fresolution.
11752 2015-02-11  Andrew Pinski  <apinski@cavium.com>
11754         PR target/64893
11755         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11756         Change the first argument type to size_type_node and add another
11757         size_type_node.
11758         (aarch64_simd_expand_builtin): Handle the new argument to
11759         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
11760         print an out when the first two arguments are not
11761         nonzero integer constants.
11762         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
11763         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
11765 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11767         PR target/61925
11768         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
11769         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
11770         (ix86_set_current_function): Rewritten.
11771         (ix86_add_new_builtins): Temporarily clear current_target_pragma
11772         when creating builtin fndecls.
11774 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
11776         PR ipa/65005
11777         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
11778         function.
11779         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
11780         have no comdat group.
11781         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
11782         (lto_output_varpool_node): Always output alias info.
11783         (output_refs): Output refs of boundary aliases, too.
11784         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
11785         (output_symtab): Output call eges in thunks in boundary.
11786         (get_alias_symbol): Remove.
11787         (input_node, input_varpool_node): Do not special case weakrefs.
11788         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
11789         alias and thunks targets in the boundary; do not take removed symbols
11790         from their comdat groups.
11791         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
11792         (cgraph_node::global_info): Remove.
11793         (cgraph_node::rtl_info): Look through aliases and thunks.
11794         * cgrpah.h (global_info): Remove.
11795         (non_local_p): Remove.
11797 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
11798             Sandra Loosemore  <sandra@codesourcery.com>
11800         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
11801         to inline asm.  List dialects in proper order.
11803 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
11804             Sandra Loosemore  <sandra@codesourcery.com>
11806         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
11808 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
11810         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
11811         modified) reference to Solaris.
11813 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
11815         * doc/extend.texi (Extended Asm): Fix typos.
11817 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
11819         PR sanitizer/65004
11820         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
11822 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
11824         PR target/64661
11825         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11826         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11827         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
11828         * config/sh/constraints.md (Ara, Add): New constraints.
11829         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
11830         predicates.
11831         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
11832         atomic_mem_operand_0.  Don't use force_reg on the memory address.
11833         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
11834         Sra constraint.  Convert to insn_and_split.  Add workaround for
11835         PR 64974.
11836         (atomic_compare_and_swap<mode>_hard): Copy to
11837         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
11838         Use atomic_mem_operand_0 predicate.
11839         (atomic_compare_and_swap<mode>_soft_gusa,
11840         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
11841         AraAdd constraints.
11842         (atomic_compare_and_swap<mode>_soft_tcb,
11843         atomic_compare_and_swap<mode>_soft_imask,
11844         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
11845         atomic_mem_operand_0 predicate and SraSdd constraints.
11846         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
11847         constraint.
11848         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
11849         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
11850         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
11851         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
11852         force_reg on the memory address.
11853         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
11854         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
11855         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
11856         atomic_mem_operand_1 predicate and Sra constraint.
11857         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
11858         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
11859         Use atomic_mem_operand_1 predicate.
11860         (atomic_<fetchop_name><mode>_hard): Copy to
11861         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
11862         Use atomic_mem_operand_1 predicate.
11863         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
11864         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
11865         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
11866         insn_and_split.  Use atomic_mem_operand_1 predicate.
11867         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
11868         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
11869         Use atomic_mem_operand_1 predicate.
11870         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
11871         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
11872         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
11873         in generated insn with original mem operand before emitting the insn.
11874         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
11875         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
11876         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
11877         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
11878         Use atomic_mem_operand_1 predicate and AraAdd constraints.
11879         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
11880         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
11881         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
11882         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
11883         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
11884         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
11885         atomic_not_fetch<mode>_soft_tcb,
11886         atomic_<fetchop_name>_fetch<mode>_soft_imask,
11887         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
11888         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
11889         Use atomic_mem_operand_1 predicate and SraSdd constraints.
11891 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
11893         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
11894         and 3 earlyclobber operands.
11896 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
11898         * common.opt (fstack-reuse): Mark as optimization.
11900 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
11902         PR ipa/64982
11903         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
11905 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
11907         PR tree-optimization/64326
11908         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
11910 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
11912         PR gcov-profile/61889
11913         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
11915 2015-02-10  Richard Biener  <rguenther@suse.de>
11917         PR tree-optimization/64995
11918         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
11919         value we use is final.
11920         (visit_reference_op_store): Always valueize op.
11921         (visit_use): Properly valueize vuses.
11923 2015-02-10  Richard Biener  <rguenther@suse.de>
11925         PR tree-optimization/64909
11926         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
11927         pass a scalar-stmt count estimate to the cost model.
11928         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
11930 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
11932         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
11933         enabled by default together with var-tracking.
11935 2015-02-10  Nick Clifton  <nickc@redhat.com>
11937         * config/rl78/rl78.c: Remove DIV attribute code accidentally
11938         included in previous rl78 commit.
11940 2015-02-10  Richard Biener  <rguenther@suse.de>
11942         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
11943         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
11944         return the bitpack.
11946 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
11948         PR gcov-profile/61889
11949         * config.in: regenerate.
11950         * configure.in: Likewise.
11951         * configure.ac: Check for ftw.h.
11952         * gcov-tool.c: Check for ftw.h before using nftw.
11954 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
11956         PR lto/64076
11957         * ipa-visibility.c (update_visibility_by_resolution_info): Only
11958         assert when not in lto mode.
11960 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11962         * ira-color.c (setup_left_conflict_sizes_p): Simplify
11963         initialization/assignment of conflict_size.
11965 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
11967         PR ipa/64978
11968         * ipa-cp.c (gather_caller_stats): Skip thunks.
11969         (propagate_constants_topo): Skip aliases.
11971 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11973         PR target/64761
11974         * config/sh/sh.c (sh_option_override): Don't change
11975         -freorder-blocks-and-partition to -freorder-blocks even when
11976         unwinding is enabled.
11977         (sh_can_follow_jump): Return false if the followee jump is
11978         a crossing jump when -freorder-blocks-and-partition is specified.
11979         * config/sh/sh.md (*jump_compact_crossing): New insn.
11981 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
11982             Kaz Kojima  <kkojima@gcc.gnu.org>
11984         PR target/64761
11985         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
11986         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
11987         (sh_can_redirect_branch): Rename to ...
11988         (sh_can_follow_jump): ... this.  Constify argument types.
11989         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
11990         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
11991         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
11992         * doc/tm.texi: Regenerate.
11994 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
11996         PR sanitizer/64981
11997         * builtins.c (expand_builtin): Call targetm.expand_builtin
11998         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
12000 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12002         PR ipa/61548
12003         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
12005 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12007         PR ipa/63566
12008         * ipa-icf.c (set_local): New function.
12009         (sem_function::merge): Use it.
12011 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12013         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
12014         (add_type_duplicate): Fix comparison of BINFOs.
12016 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12018         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
12019         on getting VOID pointer.
12021 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
12023         PR target/64979
12024         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
12025         va_list escapes.
12027 2015-02-09  Richard Biener  <rguenther@suse.de>
12029         * genmatch.c (replace_id): Copy expr_type.
12031 2015-02-09  Richard Biener  <rguenther@suse.de>
12033         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
12034         (streamer_write_tree_bitfields): Declare.
12035         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
12036         properly unpack padding.
12037         (unpack_value_fields): Inline ...
12038         (streamer_read_tree_bitfields): ... here.
12039         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
12040         and properly add padding bits.
12041         (streamer_pack_tree_bitfields): Fold into ...
12042         (streamer_write_tree_bitfields): ... this new function,
12043         exposing the bitpack object.
12044         * lto-streamer-out.c (lto_write_tree_1): Call
12045         streamer_write_tree_bitfields.
12047 2015-02-09  Richard Biener  <rguenther@suse.de>
12049         PR tree-optimization/54000
12050         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
12051         (struct ivopts_data): Add loop_loc member.
12052         (tree_ssa_iv_optimize_loop): Dump loop location.
12053         (create_new_ivs): Likewise, also dump number of IVs generated.
12055 2015-02-09  Martin Liska  <mliska@suse.cz>
12057         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
12058         just if not yet registered.
12059         (ipa_icf_generate_summary): Register callgraph hooks.
12061 2015-02-08  Andrew Pinski  <apinski@cavium.com>
12063         * config/aarch64/aarch64.c (gty_dummy): Delete.
12065 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12067         PR ipa/63566
12068         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
12069         (cgraph_node::local_p): Remove thunk related FIXME.
12071 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12073         PR ipa/63566
12074         * i386.c (ix86_function_regparm): Look through aliases to see if callee
12075         is local and optimized.
12076         (ix86_function_sseregparm): Likewise; also use target's SSE math
12077         settings; error out instead of silently generating wrong code
12078         on mismatches.
12079         (init_cumulative_args): Look through aliases.
12081 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12083         PR ipa/63566
12084         * ipa-split.c (execute_split_functions): Split if function has aliases.
12086 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
12088         PR ipa/63566
12089         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
12090         aliases before trying to expand it.
12091         (cgraph_node::expand_thunk): Fix formating.
12093 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
12095         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
12096         (Using Assembly Language with C): Expand introduction.
12097         (Basic Asm): Copy-edit.  Add more information about uses of
12098         basic asm.
12099         (Extended Asm): Copy-edit.  Document new escape syntax and
12100         %l[label] syntax.
12101         (Global Reg Vars): Copy-edit.
12102         (Local Reg Vars): Likewise.
12104 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
12106         PR debug/2714
12107         PR bootstrap/64256
12108         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
12109         (DBX_CONTIN_CHAR): Define.
12111 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
12112             Brian Rzycki  <b.rzycki@samsung.com>
12114         PR tree-optimization/64878
12115         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
12116         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
12117         Stop recursion at loop phi nodes after having visited a loop phi node.
12119 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
12121         * toplev.c (process_options): Change flag_ipa_ra before creating
12122         optimization_{default,current}_node.
12124         PR ipa/64896
12125         * cgraphunit.c (cgraph_node::expand_thunk): If
12126         restype is not is_gimple_reg_type nor the thunk_fndecl
12127         returns aggregate_value_p, set restmp to a temporary variable
12128         instead of resdecl.
12130 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
12132         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
12134 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12136         PR target/64205
12137         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
12138         add a general secondary reload handler for SDmode, unless we have
12139         both read/write support for SDmode.
12141 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
12143         PR middle-end/64937
12144         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
12145         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
12146         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
12147         1 before, push it to abstract_vec.
12148         (dwarf2out_abstract_function): Adjust caller.  Don't call
12149         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
12150         DECL_ABSTRACT_P flags for all abstract_vec elts.
12152 2015-02-06  Renlin Li  <renlin.li@arm.com>
12154         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
12155         complex gimple.
12156         * tree-ssa.c (execute_update_addresses_taken): Likewise.
12158 2015-02-06  Jeff Law  <law@redhat.com>
12160         PR target/64889
12161         * config/h8300/h8300.c (push): New argument "in_prologue".
12162         Pass "in_prologue" along to "F".
12163         (h8300_push_pop): Corresponding changes.
12164         (h8300_expand_prologue): Likewise.
12165         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
12167 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
12169         PR rtl-optimization/64957
12170         PR debug/64817
12171         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
12172         IOR rather than for AND.
12174 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12176         PR target/62631
12177         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
12178         of shift-add and (add + shift) operations.  Rename local variable.
12180 2015-02-05  Jeff Law  <law@redhat.com>
12182         PR target/17306
12183         * config/h8300/constraints.md (U): Correctly dectect
12184         "eightbit_data" memory addresses.
12185         * config/h8300/h8300.c (eightbit_constant_address_p): Also
12186         handle (const (plus (symbol_ref (x)))) where x is declared
12187         as an 8-bit data memory address.
12188         * config/h8300/h8300.md (call, call_value): Correctly detect
12189         "funcvec" functions.
12191         PR target/43264
12192         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
12193         24 to 28 bits for the H8/300.
12195 2015-02-06  Alan Modra  <amodra@gmail.com>
12197         PR target/64876
12198         * config/rs6000/rs6000.c (chain_already_loaded): New function.
12199         (rs6000_call_aix): Use it.
12201 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
12203         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
12204         check.
12206 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
12208         * config/h8300/constraints.md ("U" constraint): Use strict
12209         variant of REG_OK_FOR_BASE_P after reload has started.
12211 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
12213         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
12214         define to zero if !TARGET_NEON.
12215         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
12217 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12218             Trevor Saunders  <tsaunders@mozilla.com>
12220         PR ipa/61548
12221         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
12223 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12225         PR ipa/61548
12226         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
12227         when removing varpool nodes.
12229 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12231         PR ipa/61548
12232         * varpool.c (varpool_node::remove): Fix order of variables.
12234 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12236         PR ipa/64686
12237         * ipa-inline.c (inline_small_functions): Fix ordering issue between
12238         speculation resolution and key updates.
12240 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12242         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
12243         about not letting any speculative edges unupdated.
12245 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12247         PR gcov/64123
12248         * gcov-io.c (gcov_var): Export.
12250 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12252         PR middle-end/64922
12253         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
12254         edges that become speculative.
12256 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
12258         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
12259         or DW_LANG_Fortran08.
12260         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
12261         DW_LANG_Fortran08.
12262         (gen_compile_unit_die): Handle "GNU Fortran2003" and
12263         "GNU Fortran2008" language strings.
12264         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
12265         * langhooks.h (lang_GNU_Fortran): New prototype.
12266         * langhooks.c (lang_GNU_Fortran): New function.
12267         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
12268         lang_GNU_Fortran.
12270 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
12272         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
12273         (RTX_OK_FOR_OLO10_P): Likewise.
12275 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
12277         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
12279 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
12281         PR middle-end/64922
12282         * gimple.c: Include gimple-ssa.h.
12283         (maybe_remove_unused_call_args): New function.
12284         * gimple.h (maybe_remove_unused_call_args): Declare.
12285         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12286         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12287         * gimple-fold.c (gimple_fold_call): Likewise.
12289 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
12291         PR rtl-optimization/64905
12292         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
12293         pointer alignment if it isn't needed.
12295 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
12297         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
12298         cortex-a72.cortex-a53.
12299         * config/aarch64/aarch64-tune.md: Regenerate.
12300         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
12302 2015-02-04  Nick Clifton  <nickc@redhat.com>
12304         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
12305         inside a MEM.
12307 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
12309         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
12310         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
12311         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
12312         of DEF_BUILTIN.
12313         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
12314         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
12315         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
12316         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
12317         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
12318         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
12319         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
12320         * tree-core.h (enum built_in_function): In between
12321         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
12322         for builtins that use DEF_BUILTIN_CHKP macro.
12324 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
12326         PR debug/64817
12327         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
12328         operands for tcc_comparison exprs.  Fix typos.
12330         PR debug/64817
12331         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
12332         of two XORs that have an intervening AND or IOR.
12334         PR debug/64817
12335         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
12336         simplification of XOR of AND to not allocate new rtx before
12337         committing to a simplification.
12339 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12341         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
12342         manual swaps in all peepholes.
12344 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12346         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
12347         of manual swapping implementation.
12348         (aarch64_expand_vec_perm_const_1): Likewise.
12350 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
12352         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
12353         (generic_addrcost_table): Remove NAMED_PARAM.
12354         (cortexa57_addrcost_table): Likewise.
12355         (xgene1_addrcost_table): Likewise.
12356         (generic_regmove_table): Likewise.
12357         (cortexa53_regmove_table): Likewise.
12358         (xgene1_regmove_table): Likewise.
12359         (generic_vector_table): Likewise.
12360         (cortexa57_vector_table): Likewise.
12361         (xgene1_vector_table): Likewise.
12362         (generic_tunings): Likewise.
12363         (cortexa53_tunings): Likewise.
12364         (cortexa57_tunings): Likewise.
12365         (xgene1_tunings): Likewise.
12367 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
12369         * config/arm/arm-cores.def: Add cortex-a72 and
12370         cortex-a72.cortex-a53.
12371         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
12372         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
12373         * config/arm/arm-tune.md: Regenerate.
12374         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
12375         "cortex-a72.cortex-a53".
12376         * doc/invoke.texi (ARM Options/-mtune): Likewise.
12378 2015-02-04  Nick Clifton  <nickc@redhat.com>
12380         PR target/64408
12381         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
12382         of accepted codes.
12383         (nonimmediate_di_operand): Likewise.
12385         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
12386         prefixes of known F5 using MSP430 MCUs.
12388 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12390         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
12391         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
12392         instead of __builtin_sqrt.
12394 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
12396         * varasm.c (do_assemble_alias): Follow transparent alias
12397         chain for target.
12398         (default_assemble_visibility): Follow transparent alias
12399         chain for decl name.
12401 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12403         PR middle-end/62103
12404         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
12405         to compute size of referenced value in the constant case.
12407 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
12409         PR rtl-optimization/64756
12410         * cse.c (invalidate_dest): New function.
12411         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
12412         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
12413         invalidate and do not record it.
12415 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
12417         PR target/64660
12418         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
12419         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
12420         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
12421         atomic_nand<mode>_soft_tcb): New insns.
12422         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
12423         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
12424         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
12425         Split into atomic_not_fetchsi_hard if operands[0] is unused.
12426         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
12427         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
12428         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
12429         atomic_not<mode>_hard if operands[0] is unused.
12430         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
12431         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
12432         if operands[0] is unused.
12433         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
12434         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
12435         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
12436         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
12437         unused.
12438         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
12439         into atomic_not<mode>_soft_tcb if operands[0] is unused.
12440         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
12441         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
12442         if operands[0] is unused.
12443         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
12444         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
12445         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
12446         atomic_nand_fetchsi_hard if operands[0] is unused.
12447         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
12448         atomic_nand<mode>_hard if operands[0] is unused.
12449         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
12450         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
12451         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
12452         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
12453         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
12454         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
12455         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
12456         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
12457         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
12458         atomic_not<mode>_hard if operands[0] is unused.
12459         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
12460         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
12461         unused.
12462         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
12463         into atomic_not<mode>_soft_tcb if operands[0] is unused.
12464         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
12465         atomic_nand<mode>_hard if operands[0] is unused.
12466         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
12467         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
12469 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
12471         PR jit/64810
12472         * Makefile.in (GCC_OBJS): Add gcc-main.o.
12473         * gcc-main.c: New file, containing "main" taken from gcc.c.
12474         * gcc.c (do_self_spec): Free decoded_options.
12475         (class driver): Move declaration to gcc.h.
12476         (main): Move declaration and implementation to new file
12477         gcc-main.c.
12478         (driver_get_configure_time_options): New function.
12479         * gcc.h (class driver): Move this declaration here, from
12480         gcc.c.
12481         (driver_get_configure_time_options): New declaration.
12483 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
12485         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
12486         cross-module inlining.
12487         * cgraph.h (cgraph_node): Add flag merged.
12488         * ipa-icf.c (sem_function::merge): Maintain it.
12490 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
12492         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
12493         instead of OBJECT_P.
12495 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
12497         PR target/62631
12498         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
12499         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
12500         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
12501         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
12503 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
12505         PR other/63504
12506         * combine.c (reg_n_sets_max): New variable.
12507         (can_change_dest_mode, reg_nonzero_bits_for_combine,
12508         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
12509         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
12510         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
12511         (rest_of_handle_combine): Initialize reg_n_sets_max.
12513 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
12515         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
12516         if some always_inline was inlined, apply changes before inlining
12517         heuristically.
12519 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
12521         PR jit/64810
12522         * config/arm/arm.c (arm_option_override): Set
12523         arm_selected_arch/cpu/tune to NULL on entry.
12525 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
12526             Andrew Pinski  <pinskia@gcc.gnu.org>
12527             Jakub Jelinek  <jakub@gcc.gnu.org>
12529         PR target/64231
12530         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
12531         integer typing for small model. Use IN_RANGE.
12533 2015-02-02  Richard Biener  <rguenther@suse.de>
12535         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
12536         * tree-vrp.c (vrp_valueize_1): Likewise.
12538 2015-02-02  Alan Modra  <amodra@gmail.com>
12540         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
12541         than mem for toc_restore.
12542         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
12543         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
12544         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
12546 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
12548         PR target/64047
12549         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
12550         explicit default options.
12552 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
12554         PR ipa/64872
12555         * ipa-utils.c (ipa_merge_profiles): Add release argument.
12556         * ipa-icf.c (sem_function::merge): Do not release body when merging.
12557         * ipa-utils.h (ipa_merge_profiles): Update prototype.
12559 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
12561         PR debug/64817
12562         * cfgexpand.c (deep_ter_debug_map): New variable.
12563         (avoid_deep_ter_for_debug): New function.
12564         (expand_debug_expr): If TERed SSA_NAME is in
12565         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
12566         instead of trying to expand SSA_NAME's def stmt.
12567         (expand_debug_locations): When expanding debug bind
12568         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
12569         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
12570         value.
12571         (pass_expand::execute): Call avoid_deep_ter_for_debug on
12572         all debug bind stmts.  Delete deep_ter_debug_map after
12573         expand_debug_location if non-NULL and clear it.
12575 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
12577         PR target/64851
12578         * config/sh/sync.md (atomic_fetch_notsi_hard,
12579         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
12580         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
12581         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
12582         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
12583         atomic_not_fetch<mode>_soft_imask): New insns.
12585 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12587         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
12588         (rank_for_schedule_debug): Split from ...
12589         (rank_for_schedule): ... this.
12590         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
12591         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
12593 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
12595         * doc/md.texi (Machine Constraints): Alphabetize table by target.
12596         * doc/extend.texi (x86 Variable Attributes): Move section to
12597         correct alphabetization after renaming.
12598         (x86 Type Attributes): Likewise.
12599         (Target Builtins): Re-alphabetize menu.
12600         (x86 Built-in Functions): Move section to correct alphabetization
12601         after renaming.
12602         (x86 transactional memory intrinsics): Likewise.
12603         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
12604         and x86 Windows Options in table and menu.
12605         (x86 Options): Move section to correct alphabetization after
12606         renaming.
12607         (x86 Windows Options): Likewise.
12609 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
12611         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
12612         preferred names of the architecture and its 32- and 64-bit
12613         variants.
12614         * doc/invoke.texi: Likewise.
12615         * doc/md.texi: Likewise.
12617 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
12619         PR target/64882
12620         * config/i386/predicates.md (address_no_seg_operand): Reject
12621         non-CONST_INT_P operands in invalid mode.
12623 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
12625         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
12626         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
12627         * config/i386/predicates.md (address_no_seg_operand): Call
12628         address_operand with VOIDmode.
12629         (vsib_address_operand): Ditto.
12630         (address_mpx_no_base_operand): Ditto.
12631         (address_mpx_no_index_operand): Ditto.
12633 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12635         PR target/64688
12636         * lra-constraints.c (original_subreg_reg_mode): New.
12637         (simplify_operand_subreg): Try to simplify subreg of const.  Use
12638         original_subreg_reg_mode for it.
12639         (swap_operands): Update original_subreg_reg_mode.
12640         (curr_insn_transform): Set up original_subreg_reg_mode.
12642 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
12644         PR target/64617
12645         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
12646         function.
12647         (process_alt_operands): Use it.
12648         (curr_insn_transform): Check the optional reload pseudo class is
12649         ok for the mode.
12651 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
12653         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
12654         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
12655         prototype.
12656         * toplev.h (init_asm_output): Update comment on use of
12657         UNKNOWN_LOCATION with fatal_error.
12658         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
12659         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
12660         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
12661         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
12662         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
12663         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
12664         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
12665         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
12666         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
12667         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
12668         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
12669         fatal_error changed to pass input_location as first argument.
12671 2015-01-30  Martin Liska  <mliska@suse.cz>
12673         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
12674         in #pragma GCC diagnostic guards.
12676 2015-01-30  Richard Biener  <rguenther@suse.de>
12678         PR tree-optimization/64829
12679         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
12680         not add a widening conversion pattern but hand off extra
12681         widenings to callers.
12682         (vect_recog_widen_mult_pattern): Handle extra widening produced
12683         by vect_handle_widen_op_by_const.
12684         (vect_recog_widen_shift_pattern): Likewise.
12685         (vect_pattern_recog_1): Remove excess vertical space in dumping.
12686         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
12687         (vect_init_vector_1): Likewise.
12688         (vect_get_vec_def_for_operand): Likewise.
12689         (vect_finish_stmt_generation): Likewise.
12690         (vectorizable_load): Likewise.
12691         (vect_analyze_stmt): Likewise.
12692         (vect_is_simple_use): Likewise.
12694 2015-01-29  Jeff Law  <law@redhat.com>
12696         * combine.c (try_combine): Fix typo in comment.
12698 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
12700         PR target/64580
12701         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
12702         (rs6000_stack_info): Add assert.
12703         (rs6000_output_savres_externs): New function, split off from...
12704         (rs6000_output_function_prologue): ... here.  Do not call it for
12705         thunks.
12707 2015-01-29  Jeff Law  <law@redhat.com>
12709         PR target/15184
12710         * combine.c (try_combine): If I0 is a memory load and I3 a store
12711         to a related address, increase the "goodness" of doing a 4-insn
12712         combination with I0-I3.
12713         (make_field_assignment): Handle SUBREGs in the ior+and case.
12715 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
12717         PR tree-optimization/64746
12718         * tree-if-conv.c (mask_exists): New function.
12719         (predicate_mem_writes): Save created mask with given size for further
12720         use.
12721         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
12722         (ifcvt_repair_bool_pattern): Collect all statements that are root
12723         of bool pattern and use iterative algorithm to remove multiple uses
12724         of predicates, display number of required iterations.
12726 2015-01-29  Richard Biener  <rguenther@suse.de>
12728         PR tree-optimization/64853
12729         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
12730         stmt will get simulated again.
12731         * tree-ssa-ccp.c (valueize_op_1): Likewise.
12733 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12735         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
12736         return_in_pc.  Remove redundant assignments.
12737         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
12738         (arm_expand_epilogue): Don't compare boolean with true in if condition.
12740 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
12742         * config/i386/i386.c (ix86_mode_after): Make static.
12744 2015-01-29  Richard Biener  <rguenther@suse.de>
12746         PR tree-optimization/64844
12747         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
12748         dump cost model analysis.
12749         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12750         Do not register adjusted load/store costs here.
12752 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12753             Uros Bizjak  <ubizjak@gmail.com>
12755         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
12756         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
12757         using x86_use_pseudo_pic_reg.
12758         * config/i386/i386.c (ix86_conditional_register_usage): Remove
12759         support for fixed PIC register.
12760         (ix86_use_pseudo_pic_reg): Not static any more.
12762 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12764         PR middle-end/64805
12765         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
12766         to avoid error in cgraph node verification.
12768 2015-01-29  Marek Polacek  <polacek@redhat.com>
12770         * doc/standards.texi: Reflect that the default for C is gnu11.
12772 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12774         PR target/64761
12775         * reorg.c (switch_text_sections_between_p): New function.
12776         (relax_delay_slots): Call it when testing if the jump insn
12777         is removable.  Use targetm.can_follow_jump when testing if
12778         the conditional branch can follow an unconditional jump.
12780 2015-01-27  Caroline Tice  <cmtice@google.com>
12782         Committing VTV Cywin/Ming patch for Patrick Wollgast
12783         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
12784         if -fvtable-verify=preinit/std is used.
12785         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
12786         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
12787         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
12788         if -fvtable-verify=preinit/std is used.
12789         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
12790         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
12791         if -fvtable-verify=preinit/std is used.
12792         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
12793         * config/i386/mingw32.h (LIB_SPEC): Likewise.
12794         * varasm.c (assemble_variable): Add code to properly set the comdat
12795         section and name for the .vtable_map_vars section in case the
12796         target is PE or COFF.
12798 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
12800         PR ipa/64801
12801         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
12802         make sane BB profile.
12803         (cgraph_node::expand_thunk): Make sane BB profile.
12804         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
12805         * cgraph.h (init_lowered_empty_function): Update prototype.
12806         * config/i386/i386.c (make_resolver_func): Update call.
12807         * predict.c (gate): Disable branch prediction pass if
12808         profile is already there.
12810 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
12812         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
12813         * opth-gen.awk: Likewise.
12814         * common.opt: Mark flag_fp_contract_mode as Optimization.
12816 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12818         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
12819         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
12821 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
12823         PR target/64659
12824         * config/sh/predicates.md (atomic_arith_operand,
12825         atomic_logical_operand): Remove.
12826         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
12827         (atomic_arith_operand_0): New predicate.
12828         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
12829         Use atomic_arith_operand_0 for input values.
12830         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
12831         atomic_compare_and_swap<mode>_soft_gusa,
12832         atomic_compare_and_swap<mode>_soft_tcb,
12833         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
12834         arith_reg_operand instead of register_operand.
12835         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
12836         atomic_arith_operand_0 for newval input.
12837         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12838         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
12839         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
12840         arith_reg_operand instead of register_operand.
12841         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
12842         fetchop_predicate_1, fetchop_constraint_1_llcs,
12843         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
12844         fetchop_constraint_1_imask): New code iterator attributes.
12845         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
12846         register_operand.  Use fetchop_predicate_1.
12847         (atomic_fetch_<fetchop_name>si_hard,
12848         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
12849         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
12850         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
12851         and arith_reg_operand instead of register_operand.  Use
12852         fetchop_predicate_1, fetchop_constraint_1_gusa.
12853         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
12854         and arith_reg_operand instead of register_operand.  Use
12855         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
12856         to allow R0 usage.
12857         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
12858         and arith_reg_operand instead of register_operand.  Use
12859         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
12860         to allow R0 usage.
12861         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
12862         register_operand.  Use atomic_logical_operand_1.
12863         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
12864         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
12865         arith_reg_operand instead of register_operand.
12866         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
12867         Use arith_reg_dest and arith_reg_operand instead of register_operand.
12868         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
12869         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
12870         register_operand.  Use fetchop_predicate_1.
12871         (atomic_<fetchop_name>_fetchsi_hard,
12872         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
12873         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12874         fetchop_constraint_1_llcs.
12875         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
12876         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12877         fetchop_constraint_1_gusa.
12878         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
12879         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12880         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
12881         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
12882         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12883         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
12884         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
12885         register_operand.  Use atomic_logical_operand_1.
12886         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
12887         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
12888         arith_reg_operand instead of register_operand.
12889         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
12890         arith_reg_operand instead of register_operand.  Use logical_operand
12891         and K08.  Adjust asm sequence to allow R0 usage.
12892         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
12893         arith_reg_operand instead of register_operand.  Use logical_operand
12894         and K08.
12896 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
12898         PR other/63504
12899         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
12900         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
12901         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
12902         only get_full_len HOST_WIDE_INTs from get_val () array rather than
12903         all bits in *val_wide.
12905 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
12907         * varpool.c (tls_model_names): Fix names.
12908         (varpool_node::dump): Dump tls- prefix for tls models.
12910 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
12911             Bernd Schmidt  <bernds@codesourcery.com>
12912             Nathan Sidwell  <nathan@codesourcery.com>
12914         * config/nvptx/mkoffload.c: New file.
12915         * config/nvptx/t-nvptx: Add build rules for it.
12916         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
12917         (extra_programs): Add mkoffload.
12918         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
12919         function.
12920         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
12922 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
12924         PR middle-end/64809
12925         * cfgexpand.c (reorder_operands): Skip debug gimples.
12927 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
12929         PR tree-optimization/64277
12930         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
12931         range info when possible to refine estimation.
12933 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12935         PR tree-optimization/64718
12936         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
12937         be a 16bit unsigned integer when n->range is 16.
12938         (bswap_replace): Convert src to that type if necessary for all bswap
12939         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
12940         set in pass_optimize_bswap::execute ().
12942 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
12944         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
12945         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
12946         integer and floating point variants.
12947         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
12949 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
12951         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
12952         for all vector modes.
12954 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
12956         PR bootstrap/64612
12957         * doc/sourcebuild.texi (comdat_group): Document.
12959 2015-01-28  Terry Guo  <terry.guo@arm.com>
12961         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
12963 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
12965         * toplev.c (print_version): Add param "show_global_state", and
12966         only print GGC and plugin information if it is true.
12967         (init_asm_output): Pass in "true" for the new param when calling
12968         print_version.
12969         (process_options): Likewise.
12970         (toplev::main): Likewise.
12971         * toplev.h (print_version): Add new param to decl.
12973 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
12975         PR ipa/60871
12976         PR ipa/64139
12977         * tree.c (lookup_binfo_at_offset): New function.
12978         (get_binfo_at_offset): Use it.
12980 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
12982         PR ipa/64282
12983         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
12984         on vtable being vtable.
12986 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12988         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
12989         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
12990         -mhotpatch= option.
12991         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
12992         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
12993         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
12994         Renamed.
12995         (s390_hotpatch_trampoline_halfwords_max): Renamed.
12996         (s390_hotpatch_hw_max): New name.
12997         (s390_hotpatch_trampoline_halfwords): Renamed.
12998         (s390_hotpatch_hw_before_label): New name.
12999         (get_hotpatch_attribute): Removed.
13000         (s390_hotpatch_hw_after_label): New name.
13001         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
13002         attribute.
13003         (s390_attribute_table): Ditto.
13004         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
13005         (s390_function_num_hotpatch_hw): New name.
13006         Remove special handling of inline functions and hotpatching.
13007         Return number of nops before and after the function label.
13008         (s390_can_inline_p): Removed.
13009         (s390_asm_output_function_label): Emit a configurable number of nops
13010         after the function label.
13011         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
13012         (TARGET_CAN_INLINE_P) Removed.
13013         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
13015 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13016             Jiong Wang  <jiong.wang@arm.com>
13018         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
13019         of scratch reg.
13020         (cb<optab><mode>1): Likewise.
13021         * config/aarch64/iterators.md (bcond): New define_code_attr.
13023 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13025         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
13026         memory accesses.
13028 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13030         * config/s390/s390.c (s390_register_move_cost): Increase costs for
13031         FPR->GPR moves.
13033 2015-01-27  Richard Biener  <rguenther@suse.de>
13035         * tree-vrp.c (update_value_range): Intersect the range with
13036         old recorded SSA name range information.
13038 2015-01-27  Nick Clifton  <nickc@redhat.com>
13040         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
13041         BC, DE and HL registers directly, not via AX.
13042         When decrementing the stack pointer by a large amount, transfer SP
13043         into AX and perform the subtraction there.
13044         (rl78_expand_epilogue): Perform the inverse of the above
13045         enhancements.
13047 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13049         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
13051 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
13052             Yury Gribov  <y.gribov@samsung.com>
13054         PR ubsan/64741
13055         * ubsan.c (ubsan_source_location): Refactor code.
13056         (ubsan_type_descriptor): Update type size. Refactor code.
13058 2015-01-27  Richard Biener  <rguenther@suse.de>
13060         PR tree-optimization/56273
13061         PR tree-optimization/59124
13062         PR tree-optimization/64277
13063         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
13064         from the first VRP pass.
13066 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
13068         PR ipa/64776
13069         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
13070         handle the first argument in the same loop as all the other arguments.
13072         PR rtl-optimization/61058
13073         * jump.c (cleanup_barriers): Update basic block boundaries
13074         if BLOCK_FOR_INSN is non-NULL on PREV.
13076 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
13078         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
13079         bounds narrowing, already instrumented calls and calls to
13080         not instrumentable functions.
13082 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
13084         PR tree-optimization/64807
13085         * wide-int.cc (wi::divmod_internal): Clear
13086         b_dividend[dividend_blocks_needed].
13088 2015-01-26  DJ Delorie  <dj@redhat.com>
13090         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
13091         volatile memory references.
13093 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
13095         PR target/49263
13096         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
13097         remove_insn.
13098         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
13099         shifts if it already fits into K08.
13101 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
13103         PR ipa/64730
13104         * ipa-inline.c (inline_small_functions): Print "unknown" even
13105         if edge->call_stmt is non-NULL, but has builtins or unknown
13106         location.
13108         PR middle-end/64421
13109         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
13110         with asterisk, skip the first character.
13112 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13114         PR target/64806
13115         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
13116         order change.
13118 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
13120         PR target/64795
13121         * config/i386/i386.md (*movdi_internal): Also check operand 0
13122         to determine TYPE_LEA operand.
13123         (*movsi_internal): Ditto.
13125 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
13127         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
13128         OPTION_MASK_QUAD_MEMORY_ATOMIC.
13130 2015-01-26  Renlin Li  <renlin.li@arm.com>
13132         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
13133         the comment.
13134         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
13135         for higher part.
13137 2015-01-26  Richard Biener  <rguenther@suse.de>
13139         PR middle-end/64764
13140         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
13141         combining two BIT_AND_EXPR predicates.
13143 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13145         PR bootstrap/64754
13146         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
13148 2015-01-26  Terry Guo  <terry.guo@arm.com>
13150         * config/arm/arm.c (arm_file_start): Update the assignment of
13151         Tag_ABI_HardFP_use.
13153 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
13155         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
13156         pipeline model.
13157         config/arm/arm.md: Include the new Cortex-A57 model.
13158         (generic_sched): Don't use generic_sched when tuning for
13159         Cortex-A57.
13161 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
13162             Uros Bizjak  <ubizjak@gmail.com>
13164         * config/i386/i386.c (get_builtin_code_for_version): Add
13165         support for BMI and BMI2 multiversion functions.
13167 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13169         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
13170         (extract_bit_field): Likewise.
13171         (extract_low_bits): Likewise.
13172         (expand_mult): Likewise.
13173         (expand_mult_highpart_adjust): Likewise.
13175 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13177         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
13178         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
13179         * config/i386/i386.c (processor_model): Add
13180         M_INTEL_COREI7_BROADWELL.
13181         (arch_names_table): Add "broadwell".
13183 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
13185         PR target/49263
13186         PR target/53987
13187         PR target/64345
13188         PR target/59533
13189         PR target/52933
13190         PR target/54236
13191         PR target/51244
13192         * config/sh/sh-protos.h
13193         (sh_extending_set_of_reg::can_use_as_unextended_reg,
13194         sh_extending_set_of_reg::use_as_unextended_reg,
13195         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
13196         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
13197         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
13198         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
13199         (sh_treg_insns): New class.
13200         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
13201         (scope_counter): New class.
13202         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
13203         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
13204         sh_extending_set_of_reg::can_use_as_unextended_reg,
13205         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
13206         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
13207         sh_split_treg_set_expr): New functions.
13208         (addsubcosts): Handle treg_set_expr.
13209         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
13210         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
13211         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
13212         (sh_insn_operands_modified_between_p): Make non-static.
13213         * config/sh/predicates.md (zero_extend_movu_operand): Allow
13214         simple_mem_operand in addition to displacement_mem_operand.
13215         (zero_extend_operand): Don't allow zero_extend_movu_operand.
13216         (treg_set_expr, treg_set_expr_not_const01,
13217         arith_reg_or_treg_set_expr): New predicates.
13218         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
13219         arith_or_int_operand instead of logical_operand.  Convert to
13220         insn_and_split.  Try to optimize constant operand in splitter.
13221         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
13222         (*tstqi_t_zero): Delete.
13223         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
13224         (tstsi_t_and_not): Delete.
13225         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
13226         Convert to insn_and_split.
13227         (unnamed split, tstsi_t_zero_extract_xor,
13228         tstsi_t_zero_extract_subreg_xor_little,
13229         tstsi_t_zero_extract_subreg_xor_big): Delete.
13230         (*tstsi_t_shift_mask): New insn_and_split.
13231         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
13232         to recombine with surrounding insns when splitting.
13233         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
13234         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
13235         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
13236         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
13237         (*cbranch_div0s: Delete.
13238         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
13239         Try to recombine with surrounding insns when splitting.  Add operand
13240         order variants.
13241         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
13242         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
13243         *addc_r_r_msb, *addc_2r_msb): Delete.
13244         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
13245         order variant.
13246         (*addc_negreg_t): New insn_and_split.
13247         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
13248         Try to recombine with surrounding insns when splitting.
13249         Add operand order variants.
13250         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
13251         insn_and_split patterns.
13252         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
13253         surrounding insns when splitting.
13254         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
13255         (*rotcl): Likewise.  Add zero_extract variant.
13256         (*ashrsi2_31): New insn_and_split.
13257         (*negc): Convert to insn_and_split.  Use treg_set_expr.
13258         (*zero_extend<mode>si2_disp_mem): Update comment.
13259         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
13260         condition.
13261         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
13262         with surrounding insns when splitting.
13263         (any_treg_expr_to_reg): New insn_and_split.
13264         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
13265         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
13266         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
13267         *zero_extract_2): New single bit zero extract patterns.
13268         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
13269         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
13270         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
13271         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
13272         set destination.
13273         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
13274         register_operand for set source.
13276 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
13278         * i386.opt (prefetch_sse): New targetsave.
13279         * i386.c (ix86_function_specific_save): Save prefetch_sse.
13280         (ix86_function_specific_restore): Restore prefetch_sse and initialize
13281         ix86_cost/ix86_tune_cost.
13283 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
13285         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
13286         Support the JIT by using 0 as the language type.
13288 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
13290         PR target/64317
13291         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
13292         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
13293         (mark_regno_live, process_bb_lives): Pass new parameter value to
13294         make_hard_regno_born.
13296 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13298         PR rtl-optimization/63637
13299         PR rtl-optimization/60663
13300         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
13301         if elt->cost is MAX_COST for ASM_OPERANDS.
13302         (find_sets_in_insn): Fix up comment typo.
13303         (cse_insn): Don't set src_volatile for all non-volatile
13304         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
13305         or with "memory" clobber.  Set elt->cost to MAX_COST
13306         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
13307         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
13309 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
13311         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
13312         alternative 1.
13314 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
13316         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
13317         libgcc/config/i386/elf-lib.h.
13319 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13321         PR driver/64737
13322         * gcc.c (print_configuration): Don't print a blank line at the end
13323         here...
13324         (run_attempt): ... but here unstead.
13326         PR middle-end/64734
13327         * omp-low.c (scan_sharing_clauses): Don't ignore
13328         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
13329         on target data/update constructs.
13331 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13333         PR target/50928
13334         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
13335         (DEBUG_RELOAD): Removed define.
13336         (m32c_limit_reload_class): Enable traces with if DEBUG0.
13337         (m32c_function_arg): Added a type cast.
13338         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
13339         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
13340         * config/m32c/bitops.md (andqi3_16): Likewise.
13341         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
13342         (push_a01_l): Likewise.
13344 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
13346         PR jit/64721
13347         * main.c (main): Construct toplev instances with init_signals=true.
13348         * toplev.c (general_init): Add param "init_signals", and use it to
13349         conditionalize the calls to signal and host_hooks.extra_signals.
13350         (toplev::toplev): Add param "init_signals".
13351         (toplev::main): When invoking general_init, pass m_init_signals
13352         to control whether signal-handlers are installed.
13353         * toplev.h (toplev::toplev): Add param "init_signals".
13354         (toplev::m_init_signals): New field.
13356 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
13358         PR jit/64722
13359         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
13360         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
13361         latter may be affected by the former (e.g. on i686).
13363 2015-01-23  Martin Liska  <mliska@suse.cz>
13365         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
13366         false positive during profiledbootstrap.
13368 2015-01-23  Tom de Vries  <tom@codesourcery.com>
13370         PR libgomp/64672
13371         * lto-opts.c (lto_write_options): Output non-explicit conservative
13372         -fno-openacc.
13373         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
13374         (append_compiler_options): Pass -fopenacc through.
13376 2015-01-23  Tom de Vries  <tom@codesourcery.com>
13378         PR libgomp/64707
13379         * lto-opts.c (lto_write_options): Output non-explicit conservative
13380         -fno-openmp.
13381         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
13382         (append_compiler_options): Pass -fopenmp through.
13384 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13386         PR debug/64511
13387         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
13388         GTY markup.
13390         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
13391         * diagnostic.def (DK_ICE_NOBT): New kind.
13392         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
13393         like DK_ICE, but never print backtrace.
13394         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
13395         (internal_error_no_backtrace): New function.
13396         * gcc.c (execute): Use internal_error_no_backtrace instead of
13397         internal_error.
13399 2015-01-22  Jeff Law  <law@redhat.com>
13401         PR target/52076
13402         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
13403         improve code density for small immediate to memory case.
13404         (insv): Better handle bitfield assignments when the field is
13405         being set to all ones.
13406         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
13407         operand predicate.
13409 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13410             Jakub Jelinek  <jakub@redhat.com>
13412         PR middle-end/64729
13413         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
13414         for !TARGET_LIBC_PROVIDES_SSP version and
13415         -fstack-protector-{all,strong,explicit} otherwise.
13416         * config/freebsd.h (LINK_SSP_SPEC): Handle
13417         -fstack-protector-{strong,explicit}.
13419 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
13420             H.J. Lu  <hongjiu.lu@intel.com>
13422         PR ipa/64694
13423         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
13424         heap.
13426 2015-01-22  Wei Mi  <wmi@google.com>
13428         PR rtl-optimization/64557
13429         * dse.c (record_store): Call get_addr for mem_addr.
13430         (check_mem_read_rtx): Likewise.
13432 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13434         * fold-const.c (const_binop): Add early return for non-tcc_binary.
13436 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
13438         * toplev.c (init_local_tick): Process the failure when read
13439         fails for random_seed.
13441         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
13442         'pretty_name' to avoid memory overflow.
13444 2015-01-22  Richard Biener  <rguenther@suse.de>
13446         PR middle-end/64728
13447         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
13448         abnormal coalescing on undefined SSA names.
13450 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
13452         PR target/64688
13453         PR target/64477
13454         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
13455         for alternative 3.
13456         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
13458 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
13460         PR middle-end/63325
13461         * fold-const.c (fold_checksum_tree): Don't include value of
13462         expr->decl_with_vis.symtab_node in the checksum.
13464 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13466         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
13468 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
13470         PR driver/64690
13471         * gcc.c (insert_comments): New function.
13472         (try_generate_repro): Call it.
13473         (append_text): Removed.
13475 2015-01-22  Richard Biener  <rguenther@suse.de>
13477         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
13478         with IL incompatible options.  Properly honor user optimize
13479         attributes.
13481 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
13483         PR rtl-optimization/64682
13484         * combine.c (distribute_notes): When moving a death note for
13485         a register that is set in the new I2, make sure to put it
13486         before that new I2.
13488 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
13490         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
13491         not TARGET_DEFAULT.
13493 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
13495         PR debug/64511
13496         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
13497         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
13498         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
13500         PR sanitizer/64706
13501         * doc/invoke.texi (-fsanitize=vptr): Document.
13503         PR rtl-optimization/62078
13504         * dse.c: Include cfgcleanup.h.
13505         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
13506         anything call purge_all_dead_edges and cleanup_cfg at the end
13507         of the pass.
13509 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
13511         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
13512         edges.
13514 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13516         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
13517         decl attribute.
13519 2015-01-21  David Sherwood  <david.sherwood@arm.com>
13520             Tejas Belagod <Tejas.Belagod@arm.com>
13522         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
13523         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
13524         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
13525         Removed.
13527 2015-01-21  David Sherwood  <david.sherwood@arm.com>
13528             Tejas Belagod <Tejas.Belagod@arm.com>
13530         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
13531         (aarch64_reverse_mask): New decls.
13532         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
13533         (insn_count): New mode_attr.
13534         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
13535         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
13536         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
13537         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
13538         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
13539         (aarch64_simd_st4): New patterns.
13540         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
13541         (aarch64_reverse_mask): New functions.
13543 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
13545         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
13546         Declare.
13547         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
13548         addressing modes for BE.
13549         (aarch64_print_operand): Add 'R' specifier.
13550         (aarch64_simd_disambiguate_copy): Delete.
13551         (aarch64_simd_emit_reg_reg_move): New function.
13552         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
13553         in define_splits for structural moves.
13554         (mov<mode>): Use less restrictive predicates.
13555         (*aarch64_mov<mode>): Simplify and only allow for LE.
13556         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
13558 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
13560         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
13562 2015-01-21  Richard Henderson  <rth@redhat.com>
13564         PR target/64669
13565         * ccmp.c (used_in_cond_stmt_p): Remove.
13566         (expand_ccmp_expr): Don't use it.
13568 2015-01-21  Nick Clifton  <nickc@redhat.com>
13570         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
13571         PARALLELs.
13573 2015-01-21  Richard Biener  <rguenther@suse.de>
13575         PR middle-end/64313
13576         * tree-core.h (builtin_info, builtin_info_type): Turn from
13577         an object with two arrays into an array of an object with
13578         decl and two flags, implicit_p and declared_p.
13579         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
13580         set_builtin_decl, set_builtin_decl_implicit_p,
13581         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
13582         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
13583         * builtins.c (builtin_info): Adjust.
13584         * gimplify.c (gimplify_addr_expr): References to builtins
13585         that have been declared by the user makes them eligible for
13586         use by the compiler.  Call set_builtin_decl_implicit_p on them.
13588 2015-01-20  Jeff Law  <law@redhat.com>
13590         PR target/59946
13591         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
13592         allow pc-relative addresses in operand predicates or constraints.
13594 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
13596         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
13597         neon on aarch32 processors for stringops.
13599 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13601         PR ipa/63576
13602         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
13604 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13606         PR lto/45375
13607         * ipa-inline.c: Include lto-streamer.h
13608         (report_inline_failed_reason): Output source file differences and
13609         flags on optimization/target node mismatch.
13610         (can_inline_edge_p): Consider caller to be the outer inline function;
13611         be less restrictive about matching opimize and optimize_size attributes.
13612         (inline_account_function_p): Break out from ...
13613         (inline_small_functions): ... here.
13614         * ipa-inline-transform.c (clone_inlined_nodes): Use
13615         inline_account_function_p.
13616         (inline_call): Use optimize attribution; use inline_account_function_p.
13617         (inline_transform): Use opt_for_fn.
13618         * ipa-inline.h (inline_account_function_p): Declare.
13620 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
13622         PR debug/64663
13623         * dwarf2out.c (decl_piece_node): Don't put bitsize into
13624         mode if bitsize <= 0.
13625         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
13626         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
13627         sizes and positions.
13629 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
13631         * config/nios2/nios2.c (nios2_asm_file_end): Implement
13632         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
13633         needed.
13634         (TARGET_ASM_FILE_END): Define.
13636 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13638         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
13639         (struct tune_params): Use the enum.
13640         * arm.c (arm_*_tune): Update.
13641         (arm_option_override): Update.
13643 2015-01-20  Richard Biener  <rguenther@suse.de>
13645         PR ipa/64684
13646         * ipa-reference.c (add_static_var): Inline ...
13647         (analyze_function): ... here after splitting out from ...
13648         (is_proper_for_analysis): ... this.
13650 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
13652         PR target/64149
13653         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
13654         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
13655         replace the conditional with it's true branch.
13656         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
13657         (arm_lra_p): Remove.
13659 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13661         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
13663 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13665         * config/tilegx/mul-tables.c: Move symtab.h include after
13666         coretypes.h include.
13667         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
13668         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
13669         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
13670         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
13671         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
13673 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
13675         PR bootstrap/64676
13676         Revert:
13677         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
13679         PR rtl-optimization/64081
13680         * loop-iv.c (def_pred_latch_p): New function.
13681         (latch_dominating_def): Allow specific cases with non-single
13682         definitions.
13683         (iv_get_reaching_def): Likewise.
13684         (check_complex_exit_p): New function.
13685         (check_simple_exit): Use check_complex_exit_p to allow certain cases
13686         with exits not executing on any iteration.
13688 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13690         PR lto/45375
13691         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
13692         to set branch cost.
13694 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13696         PR lto/45375
13697         * i386.c (gate): Check flag_expensive_optimizations and
13698         optimize_size.
13699         (ix86_option_override_internal): Drop optimize_size condition
13700         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
13701         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
13702         MASK_PREFER_AVX128.
13703         (ix86_avx256_split_vector_move_misalign,
13704         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
13705         * sse.md (all uses of TARGET_PREFER_AVX128): Add
13706         optimize_insn_for_speed_p check.
13708 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
13710         * config/mips/mips.h (FP_ASM_SPEC): New define.
13711         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
13712         instead.
13714 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
13716         PR target/53988
13717         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
13718         nullptr for insn when reaching the first insn.
13719         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
13720         (sh_insn_operands_modified_between_p): Add nullptr check.
13721         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
13722         sign extending mem load if the insn contains any UNSPEC or
13723         UNSPEC_VOLATILE.
13725 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13727         * params.def (inline-unit-growth): Drop to 15%.
13728         * invoke.texi (inline-unit-growth): Document change.
13730 2015-01-19  Martin Liska  <mliska@suse.cz>
13732         PR ipa/64668
13733         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
13734         function for second argument of OBJ_TYPE_REF.
13736 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13738         PR ipa/64218
13739         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
13740         whether function is an alias.
13742 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13744         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
13745         cases.
13747 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
13749         PR rtl-optimization/64671
13750         * lra-remat.c (operand_to_remat): Don't consider jump and call
13751         insns.
13753 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
13755         PR target/59828
13756         * config/rs6000/default64.h: Include rs6000-cpus.def.
13757         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
13758         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
13759         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
13760         and POWER8.
13761         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
13762         POWER8.
13763         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
13764         pseudo-op to specify assembler dialect.
13766 2015-01-19  Martin Liska  <mliska@suse.cz>
13768         PR ipa/64664
13769         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
13770         Handle safe potentially removed nodes during filtering.
13772 2015-01-19  Martin Liska  <mliska@suse.cz>
13774         * doc/extend.texi (no_icf): Add new attribute description.
13775         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
13776         where the pass attempts to merge a function with no_icf attribute.
13778 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13780         PR target/64532
13781         * doc/md.texi (ARM Options): Document register constraints.
13783 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
13784             Andrew Pinski  <apinski@cavium.com>
13786         PR target/64304
13787         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
13788         (ashl<mode>3): Don't expand if operands[2] is not constant.
13790 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13792         PR target/64448
13793         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
13794         Match xor-and-xor RTL pattern.
13796 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
13798         PR rtl-optimization/64081
13799         * loop-iv.c (def_pred_latch_p): New function.
13800         (latch_dominating_def): Allow specific cases with non-single
13801         definitions.
13802         (iv_get_reaching_def): Likewise.
13803         (check_complex_exit_p): New function.
13804         (check_simple_exit): Use check_complex_exit_p to allow certain cases
13805         with exits not executing on any iteration.
13807 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
13809         * common.opt (fgraphite): Fix a typo.
13811 2015-01-19  Felix Yang  <felix.yang@huawei.com>
13813         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
13814         pattern.
13815         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
13816         uminp, smax_nanp, smin_nanp): New builtins.
13817         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
13818         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
13819         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
13820         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
13821         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
13822         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
13823         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
13824         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
13825         vpminnms_f32): Rewrite using builtin functions.
13827 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
13829         PR libgomp/64625
13830         * omp-low.c (offload_symbol_decl): Remove variable.
13831         (get_offload_symbol_decl): Remove function.
13832         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
13833         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
13834         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
13835         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
13836         BUILT_IN_GOACC_UPDATE don't pass it at all.
13838 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13840         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
13841         callers.
13843 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13845         * ipa-chkp.c (chkp_produce_thunks): Add early param
13846         to split thunks production into two passes.  Keep
13847         'always_inline' function bodies after the first pass.
13848         (pass_data_ipa_chkp_early_produce_thunks): New.
13849         (pass_ipa_chkp_early_produce_thunks): New.
13850         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
13851         chkp_produce_thunks signature.
13852         (make_pass_ipa_chkp_early_produce_thunks): New.
13853         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
13854         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
13855         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
13857 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
13859         * cgraph.c (cgraph_node::dump): Dump profile flags.
13861 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
13863         PR target/64652
13864         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
13865         reg appear first in the parallel.
13867 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
13869         * ipa-reference.c (set_reference_optimization_summary,
13870         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
13871         disabled.
13872         (ignore_module_statics): New static var.
13873         (propagate_bits): If ipa-reference is disabled, do not look into local
13874         properties.
13875         (analyze_function): Disable analysis when ipa_reference is disabled.
13876         (generate_summary): Do not dump when reference is disabled;
13877         collect vars accessed from functions with ipa-reference disabled.
13878         (get_read_write_all_from_node): When ipa-reference is disabled, use the
13879         node flags.
13880         (gate): Enable for LTO.
13881         (ignore_edge_p): New function.
13882         (propagate): Skip functions w/o ipa-reference analysis.
13883         * optc-save-gen.awk: Handle optimize_debug correctly.
13884         * opth-gen.awk: Likewise.
13885         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
13886         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
13887         fira-share-save-slots, fira-share-spill-slots,
13888         fmodulo-sched-allow-regmoves, fpartial-inlining,
13889         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
13890         ftracer, ftree-parallelize-loops, fassociative-math,
13891         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
13892         Optimization
13893         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
13894         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
13895         Optimization.
13896         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
13897         Fix for IPA.
13899 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
13901         PR ipa/64378
13902         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
13903         flag correctly.
13904         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
13906 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
13908         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
13909         Remove duplicate option listings.
13911 2015-01-18  Felix Yang  <felix.yang@huawei.com>
13913         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
13914         (autofdo_source_profile::get_callsite_total_count,
13915         function_instance::get_function_instance_by_decl,
13916         string_table::get_index, string_table::get_index_by_decl,
13917         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
13918         Fix comment typos. Reformatting and minor code rearrangement.
13920 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13922         * config/rs6000/rs6000.md (probe_stack): Delete.
13923         (probe_stack_address): New.
13925 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13927         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
13928         to test for 32-bit ABIs, not !TARGET_POWERPC64.
13930 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13932         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
13933         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
13934         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
13935         snafu.
13936         (rs6000_libcall_value): Use the new function.
13938 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
13940         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
13942 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13944         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
13945         implement a more precise life analysis for it during backward scan.
13947 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
13949         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
13951 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
13953         PR rtl-optimization/52773
13954         * calls.c (emit_library_call_value): When pushing arguments use
13955         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
13956         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
13957         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
13959 2015-01-17  Jeff Law  <law@redhat.com>
13961         PR rtl-optimization/32790
13962         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
13963         not ZERO_EXTEND in SET_DESTs.
13965 2015-01-17  Alan Modra  <amodra@gmail.com>
13967         * cprop.c (do_local_cprop): Revert last change.
13969 2015-01-16  DJ Delorie  <dj@redhat.com>
13970             Nick Clifton  <nickc@redhat.com>
13972         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
13973         (addhi3_real): Likewise.  Fix [HL+0] syntax.
13974         (subqi3_real): Likewise.
13975         (subhi3_real): Likewise.
13976         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
13977         (cbranchhi4_real): Likewise.
13978         (cbranchhi4_real_inverted): Likewise.
13979         (cbranchsi4_real_lt): Likewise.
13980         (cbranchsi4_real_ge): Likewise.
13981         (cbranchsi4_real_ge): Likewise.
13982         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
13983         (sub<mode>3_virt): Likewise.
13984         (cbranchqi4_virt): Likewise.
13985         (cbranchhi4_virt): Likewise.
13986         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
13987         always use '[reg+imm]' even when imm is zero.
13988         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
13989         (rl78_general_operand): New.
13990         (rl78_nonimmediate_operand): New.
13991         (rl78_nonfar_operand): Use them.
13992         (rl78_nonfar_nonimm_operand): Likewise.
13993         (rl78_stack_based_mem): Fix.
13994         * config/rl78/constraints.md (Ibqi): New.
13995         (IBqi): New.
13996         (Wsa): New.
13997         (Wsf): New.
13998         (Cs1): Fix.
13999         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
14000         (iorqi3): Likewise.
14001         (xorqi3): Likewise.
14002         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
14004         * config/rl78/constrains (Qs8): New constraint.
14005         * config/rl78/rl78.c (rl78_flags_already_set): New function.
14006         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
14007         * config/rl78/rl78-real.md (update_Z): New attribute.
14008         Update patterns to set it.
14009         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
14010         shorter compare and branch sequence can be used.
14011         (cbranchhi4_real): Likewise.
14012         (cbranchhi4_real_inverted): Likewise.
14014         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
14015         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
14016         address space.
14017         * config/rl78/rl78.c (rl78_get_name_encoding): New.
14018         (rl78_option_override): Allow -mes0 only if C.
14019         (characterize_address): Support subregs of symbol_refs.
14020         (rl78_addr_space_address_mode): Move.  Add __near.
14021         (rl78_far_p): Likewise.
14022         (rl78_addr_space_pointer_mode): Likewise.
14023         (rl78_as_legitimate_address): Likewise.
14024         (rl78_addr_space_subset_p): Likewise.
14025         (rl78_addr_space_convert): Likewise.
14026         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
14027         symbols with -mes0.
14028         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
14029         addressing.
14030         (rl78_alloc_physical_registers_op1): Change logic to prefer
14031         symbol[BC] addressing.
14032         (frodata_section): New.
14033         (rl78_asm_init_sections): Initialize it.
14034         (rl78_select_section): Put __far readonly symbols in .frodata.
14035         (rl78_make_type_far): New.
14036         (rl78_insert_attributes): Force all readonly symbols to be
14037         __far when -mes0.
14038         (rl78_asm_out_integer): New.
14039         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
14040         * config/rl78/rl78.opt (-mes0): New.
14042         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
14043         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
14044         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14045         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
14046         (rl78_saddr_p): New.
14047         (rl78_output_aligned_common): New.
14048         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
14049         (rl78_handle_saddr_attribute): New.
14050         (rl78_handle_naked_attribute): New.
14051         (rl78_attribute_table): Add saddr.
14052         (rl78_print_operand_1): Don't print '!' on saddr operands.
14053         (rl78_print_operand_1): Strip encodings.
14054         (rl78_sfr_p): New.
14055         (rl78_strip_name_encoding): New.
14056         (rl78_attrlist_to_encoding): New.
14057         (rl78_encode_section_info): New.
14058         (rl78_asm_init_sections): New.
14059         (rl78_select_section): New.
14060         (rl78_output_labelref): New.
14061         (rl78_output_aligned_common): New.
14062         (rl78_asm_out_integer): New.
14063         (rl78_asm_ctor_dtor): New.
14064         (rl78_asm_constructor): New.
14065         (rl78_asm_destructor): New.
14067         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
14068         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
14069         (transcode_memory_rtx): Update.
14070         (rl78_expand_epilogue): Use A_REG instead of 0.
14072 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14074         * config/arm/arm-protos.h (struct tune_params): New field
14075         sched_autopref_queue_depth.
14076         * config/arm/arm.c (sched-int.h): Include header.
14077         (arm_first_cycle_multipass_dfa_lookahead_guard,)
14078         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
14079         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
14080         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
14081         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
14082         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
14083         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
14084         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
14085         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
14086         * config/arm/t-arm (arm.o): Update.
14087         * haifa-sched.c (update_insn_after_change): Update.
14088         (rank_for_schedule): Use auto-prefetcher model, if requested.
14089         (autopref_multipass_init): New static function.
14090         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
14091         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
14092         variable for debug dumps.
14093         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
14094         (autopref_multipass_dfa_lookahead_guard): New global function that
14095         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
14096         (init_h_i_d): Update.
14097         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
14098         * sched-int.h (enum autopref_multipass_data_status): New const enum.
14099         (autopref_multipass_data_): Structure for auto-prefetcher data.
14100         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
14101         (struct _haifa_insn_data:autopref_multipass_data): New field.
14102         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
14103         (autopref_multipass_dfa_lookahead_guard): Declare.
14105 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14107         * rtlanal.c (get_base_term): Handle SCRATCH.
14109 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14111         * config/aarch64/aarch64.c
14112         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
14113         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14114         * config/arm/arm.c
14115         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
14116         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14118 2015-01-17  Alan Modra  <amodra@gmail.com>
14120         * cprop.c (do_local_cprop): Disallow replacement of fixed
14121         hard registers.
14123 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14125         PR target/62066
14126         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
14127         early return 0.
14129 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14131         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
14132         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
14134 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14136         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
14137         * config/arm/thumb1.md: ... Here.
14139 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14141         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
14142         TImode for TARGET_32BIT.
14144 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14146         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
14147         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
14148         as ...
14149         (rs6000_abi_word_mode): New function.
14151 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14153         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
14154         instead of UNITS_PER_WORD to describe the size of stack slots.
14156 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14158         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
14159         as rs6000_promote_function_mode.  Move comment to there.
14160         (rs6000_promote_function_mode): New function.
14162 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
14164         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
14165         -mpowerpc64 is active.
14167 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
14169         PR middle-end/64353
14170         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
14171         virtuals on start.
14173 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
14175         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
14176         introduced in revision 219724.
14178 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14179             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14181         PR target/64263
14182         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
14183         destination is not a GP reg.
14184         (*movdi_aarch64): Likewise.
14186 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
14188         PR target/64623
14189         * config/rs6000/default64.h: Revert ISA change.
14191 2015-01-16  Richard Biener  <rguenther@suse.de>
14193         PR middle-end/64614
14194         * tree-ssa-uninit.c: Include tree-cfg.h.
14195         (MAX_SWITCH_CASES): New define.
14196         (convert_control_dep_chain_into_preds): Handle switch statements.
14197         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
14198         (normalize_one_pred_1): Do not split bit-manipulations.
14199         Record (x & CST).
14201 2015-01-16  Richard Biener  <rguenther@suse.de>
14203         PR tree-optimization/64568
14204         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
14205         complex load rewriting for TARGET_MEM_REFs.
14207 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
14209         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
14211 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
14213         PR target/64149
14214         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
14215         variable.
14216         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
14217         (aarch64_lra_p): Remove.
14219 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
14221         PR target/64363
14222         * ipa-chkp.h (chkp_instrumentable_p): New.
14223         * ipa-chkp.c: Include tree-inline.h.
14224         (chkp_instrumentable_p): New.
14225         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
14226         Fix processing of not instrumentable functions.
14227         (chkp_versioning): Use chkp_instrumentable_p. Warn about
14228         not instrumentable functions.
14229         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
14230         chkp_instrumentable_p.
14231         * tree-inline.h (copy_forbidden): New.
14232         * tree-inline.c (copy_forbidden): Not static anymore.
14234 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14236         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
14237         ptr1, ptr2 unused.
14239 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14241         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
14242         type OP_OUT to OP_INOUT.
14244 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14246         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
14247         (high x) y) to y if x and y have the same base.
14249 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
14251         * config/arm/cortex-a57.md: New.
14252         * config/aarch64/aarch64.md: Include it.
14253         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
14254         * config/aarch64/aarch64-tune.md: Regenerate.
14256 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14258         PR target/64015
14259         * ccmp.c (expand_ccmp_next): New function.
14260         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
14261         and compare insn sequence.
14262         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
14263         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
14264         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
14265         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
14266         (*ccmp_ior): Changed to ccmp_ior<mode>.
14267         (cmp<mode>): New pattern.
14268         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
14269         parameters.
14270         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
14272 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
14274         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
14275         _mm256_bsrli_epi128): New.
14276         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
14278 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
14280         * expmed.c (store_bit_field_using_insv): Improve warning message.
14281         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
14283 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
14285         PR rtl-optimization/64011
14286         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
14287         there is partial overflow.
14289 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14291         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
14292         prototype.
14293         (nds32_expand_epilogue_v3pop): Likewise.
14294         * config/nds32/nds32.md (sibcall): Define this for sibling call
14295         optimization.
14296         (sibcall_register): Likewise.
14297         (sibcall_immediate): Likewise.
14298         (sibcall_value): Likewise.
14299         (sibcall_value_register): Likewise.
14300         (sibcall_value_immediate): Likewise.
14301         (sibcall_epilogue): Likewise.
14302         (epilogue): Pass false to indicate this is not a sibcall epilogue.
14303         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
14304         (nds32_expand_epilogue_v3pop): Likewise.
14306 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14308         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
14309         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
14310         (return_internal): New.
14311         (return): Define this named pattern.
14312         (simple_return): Define this named pattern.
14313         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
14314         pattern instead of unspec_volatile_func_return.
14315         (nds32_expand_epilogue_v3pop): Likewise.
14316         (nds32_can_use_return_insn): New function.
14318 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14320         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
14321         * config/nds32/nds32.md (pop25return): New.
14322         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
14323         pop25return pattern.
14325 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14327         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
14328         -mforbid-fp-as-gp, and -mex9 options.
14330 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
14332         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
14333         remove -mgp-direct option.
14335 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14337         * doc/invoke.texi (--param early-inlining-insns): Update default value.
14338         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
14340 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14342         * ipa-inline.c (inline_small_functions): Work around hints
14343         cache issue.
14345 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
14347         PR target/59710
14348         * doc/invoke.texi (Option Summary): Document new Nios II
14349         -mgpopt= syntax.
14350         (Nios II Options): Likewise.
14351         * config/nios2/nios2.opt: Add -mgpopt= option support.
14352         Modify existing -mgpopt and -mno-gpopt options to be aliases.
14353         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
14354         * config/nios2/nios2.c (nios2_option_override): Adjust
14355         -mgpopt defaulting.
14356         (nios2_in_small_data_p): Return true for explicit small data
14357         sections even with -G0.
14358         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
14359         option choices.
14361 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14363         PR ipa/64612
14364         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
14365         of comdat locals.
14366         (inline_call): Fix removal of aliases.
14368 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
14370         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
14371         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
14372         * opts.c (common_handle_option): Add -fsanitize=vptr.
14373         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
14374         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
14375         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
14376         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
14377         (ubsan_expand_vptr_ifn): New prototype.
14378         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
14379         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
14380         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
14381         expand_LOOP_VECTORIZED): Make argument nameless, remove
14382         ATTRIBUTE_UNUSED.
14383         (expand_UBSAN_VPTR): New function.
14384         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
14385         in fn spec.
14386         (UBSAN_VPTR): New internal function.
14387         * sanopt.c (tree_map_traits): Renamed to ...
14388         (sanopt_tree_map_traits): ... this.
14389         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
14390         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
14391         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
14392         (maybe_optimize_ubsan_vptr_ifn): New function.
14393         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
14394         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
14395         -fsanitize=vptr.
14396         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
14397         internal calls like pure functions for aliasing, even when they
14398         have other side-effects that prevent making them ECF_PURE.
14399         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
14400         (ubsan_expand_vptr_ifn): New function.
14402 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14404         PR rtl-optimization/64110
14405         * stmt.c (parse_output_constraint): Process '^' and '$'.
14406         (parse_input_constraint): Ditto.
14407         * lra-constraints.c (process_alt_operands): Process the new
14408         constraints.
14409         * ira-costs.c (record_reg_classes): Process the new constraint
14410         '^'.
14411         * genoutput.c (indep_constraints): Add '^' and '$'.
14412         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
14413         * doc/md.texi: Add description of the new constraints.
14415 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
14416             Bernd Schmidt  <bernds@codesourcery.com>
14417             Cesar Philippidis  <cesar@codesourcery.com>
14418             James Norris  <jnorris@codesourcery.com>
14419             Tom de Vries  <tom@codesourcery.com>
14420             Ilmir Usmanov  <i.usmanov@samsung.com>
14421             Dmitry Bocharnikov  <dmitry.b@samsung.com>
14422             Evgeny Gavrin  <e.gavrin@samsung.com>
14423             Jakub Jelinek  <jakub@redhat.com>
14425         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
14426         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
14427         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
14428         New function types.
14429         * builtins.c: Include "gomp-constants.h".
14430         (expand_builtin_acc_on_device): New function.
14431         (expand_builtin, is_inexpensive_builtin): Handle
14432         BUILT_IN_ACC_ON_DEVICE.
14433         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
14434         New macros.
14435         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
14436         flag_openmp.
14437         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
14438         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
14439         i386/intelmic-offload.h.
14440         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
14441         to libgomp and its dependencies.
14442         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
14443         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
14444         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
14445         * config/ia64/hpux.h (LIB_SPEC): Likewise.
14446         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14447         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
14448         * doc/generic.texi: Update for OpenACC changes.
14449         * doc/gimple.texi: Likewise.
14450         * doc/invoke.texi: Likewise.
14451         * doc/sourcebuild.texi: Likewise.
14452         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14453         GF_OMP_FOR_KIND_OACC_LOOP.
14454         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
14455         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
14456         GF_OMP_TARGET_KIND_OACC_UPDATE,
14457         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
14458         Dump more data.
14459         * gimple.c: Update comments for OpenACC changes.
14460         * gimple.def: Likewise.
14461         * gimple.h: Likewise.
14462         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
14463         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
14464         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
14465         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
14466         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
14467         appropriate place.
14468         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
14469         * gimplify.c: Include "gomp-constants.h".
14470         Update comments for OpenACC changes.
14471         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
14472         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
14473         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
14474         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
14475         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
14476         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
14477         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
14478         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
14479         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
14480         OMP_CLAUSE_SEQ.
14481         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
14482         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
14483         OMP_CLAUSE_SET_MAP_KIND.
14484         (gimplify_oacc_cache): New function.
14485         (gimplify_omp_for): Handle OACC_LOOP.
14486         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
14487         OACC_DATA.
14488         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
14489         OACC_EXIT_DATA, OACC_UPDATE.
14490         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
14491         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
14492         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
14493         (gimplify_body): Consider flag_openacc next to flag_openmp.
14494         * lto-streamer-out.c: Include "gomp-constants.h".
14495         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
14496         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
14497         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
14498         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
14499         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
14500         (BUILT_IN_ACC_ON_DEVICE): New builtins.
14501         * omp-low.c: Include "gomp-constants.h".
14502         Update comments for OpenACC changes.
14503         (struct omp_context): Add reduction_map, gwv_below, gwv_this
14504         members.
14505         (extract_omp_for_data, use_pointer_for_field, install_var_field)
14506         (new_omp_context, delete_omp_context, scan_sharing_clauses)
14507         (create_omp_child_function, scan_omp_for, scan_omp_target)
14508         (check_omp_nesting_restrictions, lower_reduction_clauses)
14509         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
14510         Update for OpenACC changes.
14511         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
14512         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
14513         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
14514         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
14515         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
14516         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
14517         OMP_CLAUSE_MAP_*.
14518         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14519         Handle GF_OMP_FOR_KIND_OACC_LOOP.
14520         (expand_omp_target, lower_omp_target): Handle
14521         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
14522         GF_OMP_TARGET_KIND_OACC_UPDATE,
14523         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
14524         GF_OMP_TARGET_KIND_OACC_DATA.
14525         (pass_expand_omp::execute, execute_lower_omp)
14526         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
14527         flag_openmp.
14528         (offload_symbol_decl): New variable.
14529         (oacc_get_reduction_array_id, oacc_max_threads)
14530         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
14531         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
14532         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
14533         (oacc_gimple_assign, oacc_initialize_reduction_data)
14534         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
14535         functions.
14536         (is_targetreg_ctx): Remove function.
14537         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
14538         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
14539         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
14540         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
14541         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
14542         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
14543         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
14544         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
14545         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
14546         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
14547         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
14548         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
14549         * tree-core.h: Update comments for OpenACC changes.
14550         (enum omp_clause_map_kind): Remove.
14551         (struct tree_omp_clause): Change type of map_kind member from enum
14552         omp_clause_map_kind to unsigned char.
14553         * tree-inline.c: Update comments for OpenACC changes.
14554         * tree-nested.c: Likewise.  Include "gomp-constants.h".
14555         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
14556         (convert_tramp_reference_stmt, convert_gimple_call): Update for
14557         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
14558         OMP_CLAUSE_SET_MAP_KIND.
14559         * tree-pretty-print.c: Include "gomp-constants.h".
14560         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
14561         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
14562         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
14563         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
14564         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
14565         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
14566         instead of OMP_CLAUSE_MAP_*.
14567         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
14568         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
14569         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
14570         * tree-streamer-in.c: Include "gomp-constants.h".
14571         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
14572         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
14573         * tree-streamer-out.c: Include "gomp-constants.h".
14574         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
14575         OMP_CLAUSE_MAP_*.
14576         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
14577         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
14578         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
14579         * tree.c (omp_clause_num_ops): Update accordingly.
14580         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
14581         Likewise.
14582         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
14583         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
14584         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
14585         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
14586         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
14587         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
14588         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
14589         (OMP_CLAUSE_SET_MAP_KIND): New macro.
14590         * varpool.c (varpool_node::get_create): Consider flag_openacc next
14591         to flag_openmp.
14592         * config/i386/intelmic-offload.h: New file.
14593         * config/nvptx/offload.h: Likewise.
14595 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14597         * explow.h: Remove duplicate contents.
14598         * dojump.h: Likewise.
14600 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
14602         * arm.c (arm_xgene_tune): Add default initializer for instruction
14603         fusion.
14605 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
14607         PR ipa/64068
14608         PR ipa/64559
14609         * ipa.c (symbol_table::remove_unreachable_nodes):
14610         Do not put abstract origins into boundary.
14612 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
14614         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
14615         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
14617 2015-01-15  Steve Ellcey  <sellcey@mips.com>
14619         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
14620         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
14621         builtins.def, and chkp-builtins.def.
14623 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
14625         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
14626         ISA 2.7 (POWER8).
14628 2015-01-15  Richard Biener  <rguenther@suse.de>
14630         PR tree-optimization/61743
14631         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
14632         information on PHIs for some simple cases.
14634 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
14636         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
14637         Include xgene1.md.
14638         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
14639         * config/arm/arm-cores.def (xgene1): New entry.
14640         * config/arm/arm-tables.opt: Regenerate.
14641         * config/arm/arm-tune.md: Regenerate.
14642         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
14644 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
14646         * tree-if-conv.c: Include hash-map.h.
14647         (aggressive_if_conv): New variable.
14648         (fold_build_cond_expr): Add simplification of non-zero condition.
14649         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
14650         destination block is not always executed.
14651         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
14652         than two predecessors if AGGRESSIVE_IF_CONV is true.
14653         (if_convertible_stmt_p): Fix commentary.
14654         (all_preds_critical_p): New function.
14655         (has_pred_critical_p): New function.
14656         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
14657         BB can have more than two predecessors and all incoming edges can be
14658         critical.
14659         (predicate_bbs): Skip predication for loop exit block, use build2_loc
14660         to compute predicate for true edge.
14661         (find_phi_replacement_condition): Delete this function.
14662         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
14663         Allow interchange PHI arguments if EXTENDED is false.
14664         Change check that block containing reduction statement candidate
14665         is predecessor of phi-block since phi may have more than two arguments.
14666         (phi_args_hash_traits): New helper structure.
14667         (struct phi_args_hash_traits): New type.
14668         (phi_args_hash_traits::hash): New function.
14669         (phi_args_hash_traits::equal_keys): New function.
14670         (gen_phi_arg_condition): New function.
14671         (predicate_scalar_phi): Add handling of phi nodes with more than two
14672         arguments, delete COND and TRUE_BB arguments, insert body of
14673         find_phi_replacement_condition to predicate ordinary phi nodes.
14674         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
14675         delete call of find_phi_replacement_condition and invoke
14676         predicate_scalar_phi with two arguments.
14677         (insert_gimplified_predicates): Add assert that non-predicated block
14678         don't have statements to insert.
14679         (ifcvt_split_critical_edges): New function.
14680         (ifcvt_split_def_stmt): Likewise.
14681         (ifcvt_walk_pattern_tree): Likewise.
14682         (stmt_is_root_of_bool_pattern): Likewise.
14683         (ifcvt_repair_bool_pattern): Likewise.
14684         (ifcvt_local_dce): Likewise.
14685         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
14686         is copy of inner or outer loop force_vectorize field, invoke
14687         ifcvt_split_critical_edges, ifcvt_local_dce and
14688         ifcvt_repair_bool_pattern for aggressive if-conversion.
14690 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
14692         * config/aarch64/aarch64.md: Include xgene1.md.
14693         * config/aarch64/xgene1.md: New file.
14695 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
14697         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
14698         xgene1 (APM XGene-1) core definition.
14699         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
14700         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
14701         * doc/invoke.texi: Document -mcpu=xgene1.
14703 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14705         * dojump.h: New header file.
14706         * explow.h: Likewise.
14707         * expr.h: Remove includes.
14708         Move expmed.c prototypes to expmed.h.
14709         Move dojump.c prototypes to dojump.h.
14710         Move alias.c prototypes to alias.h.
14711         Move explow.c prototypes to explow.h.
14712         Move calls.c prototypes to calls.h.
14713         Move emit-rtl.c prototypes to emit-rtl.h.
14714         Move varasm.c prototypes to varasm.h.
14715         Move stmt.c prototypes to stmt.h.
14716         (saved_pending_stack_adjust): Move to dojump.h.
14717         (adjust_address): Move to explow.h.
14718         (adjust_address_nv): Move to emit-rtl.h.
14719         (adjust_bitfield_address): Likewise.
14720         (adjust_bitfield_address_size): Likewise.
14721         (adjust_bitfield_address_nv): Likewise.
14722         (adjust_automodify_address_nv): Likewise.
14723         * explow.c (expr_size): Move to expr.c.
14724         (int_expr_size): Likewise.
14725         (tree_expr_size): Likewise.
14726         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14727         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
14728         * genemit.c (main): Generate includes statistics.h, real.h,
14729         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
14730         stmt.h.
14731         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
14732         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
14733         explow.h, emit-rtl.h, stmt.h.
14734         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
14735         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
14736         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
14737         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
14738         emit-rtl.h, varasm.h, stmt.h.
14739         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
14740         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
14741         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
14742         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
14743         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
14744         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
14745         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
14746         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
14747         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
14748         tm.h tree.h varasm.h vec.h wide-int.h.
14749         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14750         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
14751         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
14752         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
14753         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
14754         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
14755         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
14756         * loop-iv.c: Likewise.
14757         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
14758         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
14759         statistics.h stmt.h tree.h varasm.h wide-int.h.
14760         * lra-constraints.c: Likewise.
14761         * lra-eliminations.c: Likewise.
14762         * lra-lives.c: Likewise.
14763         * lra-remat.c: Likewise.
14764         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14765         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
14766         statistics.h stmt.h tree.h varasm.h wide-int.h.
14767         * hw-doloop.c: Likewise.
14768         * ira-color.c: Likewise.
14769         * ira-emit.c: Likewise.
14770         * loop-doloop.c: Likewise.
14771         * loop-invariant.c: Likewise.
14772         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14773         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
14774         statistics.h stmt.h tree.h varasm.h wide-int.h.
14775         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
14776         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
14777         statistics.h stmt.h tree.h varasm.h wide-int.h.
14778         * combine-stack-adj.c: Likewise.
14779         * cse.c: Likewise.
14780         * ddg.c: Likewise.
14781         * ifcvt.c: Likewise.
14782         * ira-costs.c: Likewise.
14783         * jump.c: Likewise.
14784         * lra-coalesce.c: Likewise.
14785         * lra-spills.c: Likewise.
14786         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14787         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
14788         stmt.h varasm.h wide-int.h.
14789         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14790         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
14791         varasm.h.
14792         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
14793         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
14794         statistics.h stmt.h varasm.h wide-int.h.
14795         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
14796         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
14797         varasm.h wide-int.h.
14798         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
14799         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14800         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
14801         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
14802         statistics.h stmt.h.
14803         * config/tilepro/tilepro.c: Likewise.
14804         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
14805         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
14806         * config/pdp11/pdp11.c: Likewise.
14807         * config/xtensa/xtensa.c: Likewise.
14808         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
14809         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
14810         varasm.h.
14811         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14812         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
14813         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
14814         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14815         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
14816         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
14817         * rtl-chkp.c: Likewise.
14818         * tree-chkp-opt.c: Likewise.
14819         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
14820         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
14821         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
14822         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14823         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
14824         statistics.h stmt.h.
14825         * tree-vect-data-refs.c: Likewise.
14826         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
14827         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14828         rtl.h statistics.h stmt.h varasm.h.
14829         * internal-fn.c: Likewise.
14830         * ipa-icf-gimple.c: Likewise.
14831         * lto-section-out.c: Likewise.
14832         * tree-data-ref.c: Likewise.
14833         * tree-nested.c: Likewise.
14834         * tree-outof-ssa.c: Likewise.
14835         * tree-predcom.c: Likewise.
14836         * tree-pretty-print.c: Likewise.
14837         * tree-scalar-evolution.c: Likewise.
14838         * tree-ssa-strlen.c: Likewise.
14839         * tree-vect-loop.c: Likewise.
14840         * tree-vect-patterns.c: Likewise.
14841         * tree-vect-slp.c: Likewise.
14842         * tree-vect-stmts.c: Likewise.
14843         * tsan.c: Likewise.
14844         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14845         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
14846         stmt.h.
14847         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
14848         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14849         statistics.h stmt.h varasm.h.
14850         * loop-unroll.c: Likewise.
14851         * ubsan.c: Likewise.
14852         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
14853         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
14854         stmt.h varasm.h.
14855         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14856         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
14857         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
14858         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
14859         statistics.h stmt.h.
14860         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
14861         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
14862         statistics.h stmt.h varasm.h.
14863         * gimple-match-head.c: Likewise.
14864         * lto-cgraph.c: Likewise.
14865         * lto-section-in.c: Likewise.
14866         * lto-streamer-in.c: Likewise.
14867         * lto-streamer-out.c: Likewise.
14868         * tree-affine.c: Likewise.
14869         * tree-cfg.c: Likewise.
14870         * tree-cfgcleanup.c: Likewise.
14871         * tree-if-conv.c: Likewise.
14872         * tree-into-ssa.c: Likewise.
14873         * tree-ssa-alias.c: Likewise.
14874         * tree-ssa-copyrename.c: Likewise.
14875         * tree-ssa-dse.c: Likewise.
14876         * tree-ssa-forwprop.c: Likewise.
14877         * tree-ssa-live.c: Likewise.
14878         * tree-ssa-math-opts.c: Likewise.
14879         * tree-ssa-pre.c: Likewise.
14880         * tree-ssa-sccvn.c: Likewise.
14881         * tree-tailcall.c: Likewise.
14882         * tree-vect-generic.c: Likewise.
14883         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14884         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
14885         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14886         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
14887         * varasm.c: Likewise.
14888         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14889         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
14890         varasm.h.
14891         * init-regs.c: Likewise.
14892         * ira.c: Likewise.
14893         * omp-low.c: Likewise.
14894         * stack-ptr-mod.c: Likewise.
14895         * tree-ssa-reassoc.c: Likewise.
14896         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14897         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
14898         varasm.h.
14899         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14900         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
14901         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14902         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
14903         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14904         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
14905         * tree-ssa-phiopt.c: Likewise.
14906         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14907         fixed-value.h hashtab.h real.h statistics.h stmt.h.
14908         * config/fr30/fr30.c: Likewise.
14909         * config/frv/frv.c: Likewise.
14910         * expr.c: Likewise.
14911         * final.c: Likewise.
14912         * optabs.c: Likewise.
14913         * passes.c: Likewise.
14914         * simplify-rtx.c: Likewise.
14915         * stmt.c: Likewise.
14916         * toplev.c: Likewise.
14917         * var-tracking.c: Likewise.
14918         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14919         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14920         * lower-subreg.c: Likewise.
14921         * postreload-gcse.c: Likewise.
14922         * ree.c: Likewise.
14923         * reginfo.c: Likewise.
14924         * store-motion.c: Likewise.
14925         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14926         fixed-value.h hashtab.h real.h stmt.h varasm.h.
14927         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14928         fixed-value.h hashtab.h statistics.h stmt.h.
14929         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14930         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
14931         * except.c: Likewise.
14932         * explow.c: Likewise.
14933         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14934         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
14935         varasm.h.
14936         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14937         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
14938         * tree-ssa-structalias.c: Likewise.
14939         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14940         fixed-value.h insn-config.h real.h statistics.h.
14941         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14942         fixed-value.h insn-config.h real.h statistics.h stmt.h.
14943         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14944         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
14945         * cfgbuild.c: Likewise.
14946         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14947         fixed-value.h real.h rtl.h statistics.h stmt.h.
14948         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14949         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14950         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14951         fixed-value.h real.h statistics.h stmt.h.
14952         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14953         fixed-value.h real.h statistics.h stmt.h varasm.h.
14954         * cprop.c: Likewise.
14955         * modulo-sched.c: Likewise.
14956         * postreload.c: Likewise.
14957         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
14958         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
14959         statistics.h stmt.h varasm.h.
14960         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
14961         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14962         rtl.h statistics.h stmt.h varasm.h.
14963         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
14964         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
14965         varasm.h.
14966         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
14967         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
14968         varasm.h.
14969         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
14970         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
14971         varasm.h.
14972         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
14973         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14974         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14975         function.h real.h statistics.h stmt.h varasm.h.
14976         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14977         insn-config.h real.h statistics.h stmt.h.
14978         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14979         statistics.h stmt.h.
14980         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
14981         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
14982         statistics.h stmt.h varasm.h.
14983         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
14984         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
14985         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14986         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
14987         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
14988         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
14989         statistics.h stmt.h varasm.h.
14990         * ipa-polymorphic-call.c: Likewise.
14991         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
14992         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14993         statistics.h stmt.h.
14994         * config/c6x/c6x.c: Likewise.
14995         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
14996         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14997         statistics.h stmt.h varasm.h.
14998         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
14999         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
15000         stmt.h varasm.h.
15001         * ipa-split.c: Likewise.
15002         * tree-eh.c: Likewise.
15003         * tree-ssa-dce.c: Likewise.
15004         * tree-ssa-loop-niter.c: Likewise.
15005         * tree-vrp.c: Likewise.
15006         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
15007         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
15008         stmt.h.
15009         * config/nds32/nds32-fp-as-gp.c: Likewise.
15010         * config/nds32/nds32-intrinsic.c: Likewise.
15011         * config/nds32/nds32-isr.c: Likewise.
15012         * config/nds32/nds32-md-auxiliary.c: Likewise.
15013         * config/nds32/nds32-memory-manipulation.c: Likewise.
15014         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15015         * config/nds32/nds32-predicates.c: Likewise.
15016         * config/nds32/nds32.c: Likewise.
15017         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
15018         fixed-value.h hashtab.h real.h statistics.h.
15019         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
15020         fixed-value.h hashtab.h real.h statistics.h stmt.h.
15021         * config/arm/arm.c: Likewise.
15022         * config/avr/avr.c: Likewise.
15023         * config/bfin/bfin.c: Likewise.
15024         * config/h8300/h8300.c: Likewise.
15025         * config/i386/i386.c: Likewise.
15026         * config/ia64/ia64.c: Likewise.
15027         * config/iq2000/iq2000.c: Likewise.
15028         * config/m32c/m32c.c: Likewise.
15029         * config/m32r/m32r.c: Likewise.
15030         * config/m68k/m68k.c: Likewise.
15031         * config/mcore/mcore.c: Likewise.
15032         * config/mep/mep.c: Likewise.
15033         * config/mips/mips.c: Likewise.
15034         * config/mn10300/mn10300.c: Likewise.
15035         * config/moxie/moxie.c: Likewise.
15036         * config/pa/pa.c: Likewise.
15037         * config/rl78/rl78.c: Likewise.
15038         * config/rx/rx.c: Likewise.
15039         * config/s390/s390.c: Likewise.
15040         * config/sh/sh.c: Likewise.
15041         * config/sparc/sparc.c: Likewise.
15042         * config/spu/spu.c: Likewise.
15043         * config/stormy16/stormy16.c: Likewise.
15044         * config/v850/v850.c: Likewise.
15045         * config/vax/vax.c: Likewise.
15046         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
15047         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
15048         * config/msp430/msp430.c: Likewise.
15049         * predict.c: Likewise.
15050         * value-prof.c: Likewise.
15051         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
15052         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
15053         * config/microblaze/microblaze.c: Likewise.
15054         * config/nios2/nios2.c: Likewise.
15055         * config/rs6000/rs6000.c: Likewise.
15056         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
15057         insn-config.h real.h rtl.h statistics.h stmt.h.
15058         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
15059         insn-config.h real.h statistics.h stmt.h.
15060         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
15061         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
15062         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
15063         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
15064         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
15065         fixed-value.h real.h statistics.h stmt.h.
15066         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
15067         fixed-value.h statistics.h stmt.h.
15068         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
15069         stmt.h.
15071 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
15073         * gengtype.c (create_user_defined_type): Workaround
15074         -Wmaybe-uninitialized false positives.
15075         * cse.c (fold_rtx): Likewise.
15076         * loop-invariant.c (gain_for_invariant): Likewise.
15078 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15080         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
15081         set the memory attributes in all cases but clear MEM_EXPR if need be.
15083 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
15085         PR tree-optimization/64434
15086         * cfgexpand.c (reorder_operands): New function.
15087         (expand_gimple_basic_block): Insert call of reorder_operands if
15088         optimized is true.
15090 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
15092         * config/mips/micromips.md (*swp): Remove explicit parallel.
15093         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
15094         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
15095         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
15096         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
15097         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
15098         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
15099         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
15100         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
15101         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
15102         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
15103         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
15104         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
15105         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
15106         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
15107         (mips_wrdsp): Likewise.
15108         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
15109         parallel.
15110         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
15111         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
15112         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
15113         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
15114         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
15115         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
15116         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
15117         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
15118         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
15120 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
15122         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
15123         (mips_print_operand): Support 'y' to print exact log2 in decimal
15124         of a const_int.
15125         * config/mips/mips.h (ISA_HAS_LSA): New define.
15126         (ISA_HAS_DLSA): Likewise.
15127         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
15128         * config/mips/predicates.md (const_immlsa_operand): New predicate.
15130 2015-01-15  Martin Liska  <mliska@suse.cz>
15132         PR target/64377
15133         * optc-save-gen.awk: Add support for array types.
15135 2015-01-15  Richard Biener  <rguenther@suse.de>
15137         PR middle-end/64365
15138         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
15139         for MEM_REF access functions with the same base can never partially
15140         overlap.
15142 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
15144         * common.opt: New option -fstack-protector-explicit.
15145         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
15146         (stack_protect_decl_phase): Handle stack_protect attribute for
15147         explicit stack protection requests.
15148         (expand_used_vars): Similarly.
15149         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
15150         * doc/extend.texi: Add documentation for "stack_protect" attribute.
15151         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
15153 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
15155         PR target/53988
15156         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
15157         reg-reg copies.
15158         (sh_extending_set_of_reg): New struct.
15159         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
15160         sh_remove_reg_dead_or_unused_notes): New Declarations.
15161         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
15162         sh_find_extending_set_of_reg, sh_split_tst_subregs,
15163         sh_extending_set_of_reg::use_as_extended_reg): New functions.
15164         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
15165         convert to insn_and_split and use new function sh_split_tst_subregs.
15167 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
15169         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
15170         option.
15171         (Optimization Options): Move -fuse-ld documentation to...
15172         (Link Options): ...here.
15174 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
15176         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
15177         offsets.
15178         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
15179         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
15180         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
15181         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
15182         instead of ZR for the memory operand of LL/SC.
15183         (compare_and_swap_12, sync_add<mode>): Likewise.
15184         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
15185         (sync_new_<optab>_12, sync_nand_12): Likewise.
15186         (sync_old_nand_12, sync_new_nand_12): Likewise.
15187         (sync_sub<mode>, sync_old_add<mode>): Likewise.
15188         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
15189         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
15190         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
15191         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
15192         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
15193         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
15194         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
15195         * doc/md.texi (ZC): Update description.
15197 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
15199         * builtins.c (expand_builtin_atomic_exchange): Remove error when
15200         memory model is CONSUME.
15201         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
15202         expand_builtin_atomic_store): Change invalid memory model errors to
15203         warnings.
15204         (expand_builtin_atomic_clear): Change invalid model errors to warnings
15205         and issue warning for CONSUME.
15207 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
15209         * lto-cgraph: Update function comments for
15210         lto_symtab_encoder_encode_*.
15212 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
15214         * Makefile.in (site.exp): Do not set ENABLE_LTO.
15216 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
15218         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
15219         * lto-cgraph.c (select_what_to_stream): Remove argument, use
15220         lto_stream_offload_p instead.
15221         * lto-streamer.h (select_what_to_stream): Remove argument.
15222         * passes.c (ipa_write_summaries): Likewise.
15223         * tree-pass.h (ipa_write_summaries): Likewise.
15225 2015-01-14  Richard Biener  <rguenther@suse.de>
15227         PR tree-optimization/59354
15228         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
15229         groups larger than the slp group size as having gaps.
15231 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
15233         PR middle-end/59448
15234         * builtins.c (get_memmodel): Promote consume to acquire always.
15236 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
15238         PR target/64386
15239         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
15240         V32HImode.
15242 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
15244         PR target/64393
15245         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
15246         Enable AVX512BW.
15247         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
15248         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
15249         AVX512VBMI, as it implies AVX512BW.
15251 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
15253         PR target/64387
15254         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
15255         (vec_unpacks_hi_v16sf): Ditto.
15257 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15259         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
15260         is not available.
15262 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15264         * doc/invoke.texi (mapcs): Mention deprecation.
15265         (mapcs-frame): Likewise.
15267 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15269         PR target/64453
15270         * config/arm/arm.c (callee_saved_reg_p): Define.
15271         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
15272         register is callee saved instead of !call_used_regs[reg].
15273         (thumb1_compute_save_reg_mask): Likewise.
15275 2015-01-14  Hale Wang  <hale.wang@arm.com>
15277         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
15278         Cortex-M7.
15280 2015-01-14  Richard Biener  <rguenther@suse.de>
15282         PR lto/64415
15283         * tree-inline.c (insert_debug_decl_map): Check destination
15284         function MAY_HAVE_DEBUG_STMTS.
15285         (insert_init_debug_bind): Likewise.
15286         (insert_init_stmt): Remove redundant check.
15287         (remap_gimple_stmt): Drop debug stmts if the destination
15288         function has var-tracking assignments disabled.
15290 2015-01-14  Martin Liska  <mliska@suse.cz>
15292         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
15293         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
15295 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15297         PR target/64460
15298         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
15299         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
15301 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
15303         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
15304         level from an ARCH; do not inject the default.
15305         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
15306         MIPS_ISA_LEVEL_SPEC.
15307         (MIPS_ISA_NAN2008_SPEC): Update comment.
15308         (BASE_DRIVER_SELF_SPECS): Likewise.
15309         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
15310         MIPS_DEFAULT_ISA_LEVEL_SPEC.
15311         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
15312         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
15313         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
15315 2015-01-14  Richard Biener  <rguenther@suse.de>
15317         PR tree-optimization/64493
15318         PR tree-optimization/64495
15319         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
15320         assign the proper vectorized PHI to the inner loop exit PHIs.
15322 2015-01-14  Joey Ye  <joey.ye@arm.com>
15324         * config/arm/arm.c (arm_compute_save_reg_mask):
15325         Do not save lr in case of tail call.
15326         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
15328 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
15330         * tree-vrp.c (check_array_ref): Emit more warnings
15331         for warn_array_bounds >= 2.
15332         * common.opt: New option -Warray-bounds=.
15333         * doc/invoke.texi: Document -Warray-bounds=.
15335 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
15337         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
15338         (mforbid-fp-as-gp): Remove.
15339         (mex9): Remove.
15340         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
15341         (nds32_symbol_load_store_p): Remove.
15342         (nds32_fp_as_gp_check_available): Clean up implementation.
15343         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
15344         cases.
15345         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
15346         fp-as-gp and ex9 cases.
15348 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
15350         * tree-profile.c (init_ic_make_global_vars): Drop workaround
15351         for bintuils bug 14342.
15352         (init_ic_make_global_vars): Likewise.
15353         (gimple_init_edge_profiler): Likewise.
15354         (gimple_gen_ic_func_profiler): Likewise.
15356 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15358         * ipa-inline.c (inline_small_functions): Swap the operands in
15359         enum.
15361 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
15363         PR ipa/64481
15364         * ipa-inline-analysis.c (node_growth_cache): Remove.
15365         (initialize_growth_caches): Do not initialize it.
15366         (free_growth_caches): Do not free it.
15367         (do_estimate_growth): Rename to ...
15368         (estimate_growth): ... this one; drop growth cache code.
15369         (growth_likely_positive): Always go the heuristics way.
15370         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
15371         (reset_edge_caches): Do not reset node growth.
15372         (heap_edge_removal_hook): Do not maintain cache.
15373         (inline_small_functions): Likewise; strenghten sanity check.
15374         (ipa_inline): Do not maintain caches.
15375         * ipa-inline.h (node_growth_cache): Remove.
15376         (do_estimate_growth): Remove to ...
15377         (estimate_growth): this one; remove inline version.
15378         (reset_node_growth_cache): Remove.
15380 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
15382         PR ipa/64565
15383         * ipa-inline.c (inline_small_functions): Update callee keys after
15384         resolving speculation
15385         (inline_small_functions): Always check monotonicity of the queue.
15387 2015-01-13  Marek Polacek  <polacek@redhat.com>
15389         PR middle-end/64391
15390         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
15392 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
15394         PR rtl-optimization/64286
15395         * ree.c (combine_reaching_defs): Move part of comment earlier,
15396         remove !SCALAR_INT_MODE_P check.
15397         (add_removable_extension): Don't add vector mode
15398         extensions if all uses of the source register aren't the same
15399         vector extensions.
15401 2015-01-13  Renlin Li  <renlin.li@arm.com>
15403         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
15404         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
15406 2015-01-13  Martin Liska  <mliska@suse.cz>
15408         * ipa-icf.c (sem_function::equals_private): Call new functions
15409         cl_target_option_print_diff and cl_optimization_print_diff.
15410         * optc-save-gen.awk (cl_target_option_print_diff): New function.
15411         (cl_optimization_print_diff): Likewise.
15412         * opth-gen.awk: Likewise.
15414 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
15416         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
15417         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
15418         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
15419         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
15420         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
15421         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
15423 2015-01-13  Andrew Pinski  <apinski@cavium.com>
15425         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
15426         instead of src mode.
15428 2015-01-13  Richard Biener  <rguenther@suse.de>
15430         PR lto/64373
15431         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
15432         DECL_CONTEXT.
15434 2015-01-13  Andrew Pinski  <apinski@cavium.com>
15436         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
15437         volatile mems.
15438         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15440 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
15442         PR middle-end/63974
15443         * cfgexpand.c (expand_computed_goto): Don't call
15444         convert_memory_address here.
15446 2015-01-13  Richard Biener  <rguenther@suse.de>
15448         PR tree-optimization/64406
15449         * tree-loop-distibution.c (pass_loop_distribution::execute):
15450         Reset the SCEV hashtable if we distributed anything.
15452 2015-01-13  Richard Biener  <rguenther@suse.de>
15454         PR tree-optimization/64404
15455         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
15456         SLP types for CSEd loads.
15458 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15460         PR tree-optimization/64436
15461         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
15462         merge of two symbolic numbers for a bitwise OR to ...
15463         (perform_symbolic_merge): This. Also fix computation of the range and
15464         end of the symbolic number corresponding to the result of a bitwise OR.
15466 2015-01-13  Richard Biener  <rguenther@suse.de>
15468         PR tree-optimization/64568
15469         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
15470         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
15472 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
15474         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
15475         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
15477 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
15479         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
15480         target-specific symbol_ref flag.
15481         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
15482         resides in rodata section.
15483         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
15484         (nds32_encode_section_info): New function.
15486 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
15488         * config/nds32/nds32.md (call): Use pseudo instruction bal which
15489         clobbers TA_REGNUM if large code model is specified.
15490         (call_register): Likewise.
15491         (call_immediate): Likewise.
15492         (call_value): Likewise.
15493         (call_value_register): Likewise.
15494         (call_value_immediate): Likewise.
15496 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
15498         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
15499         (TARGET_CMODEL_MEDIUM): New macro.
15500         (TARGET_CMODEL_LARGE): New macro.
15501         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
15502         code model setting in assembly code.
15504 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
15506         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
15507         Remove MASK_GP_DIRECT flag.
15508         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
15509         one of the multilib default options.
15510         * config/nds32/nds32.opt (mgp-direct): Remove.
15511         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
15512         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
15514 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
15516         * config/nds32/nds32.opt (mcmodel): Add new option.
15517         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
15518         to describe code model.
15520 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
15522         PR target/64479
15523         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
15525 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15527         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
15528         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
15529         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
15530         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
15531         __builtin_sh_set_fpscr.
15533 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15535         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
15536         after a funtion name just to indicate it is a function.
15537         ([-fsanitize-undefined-trap-on-error]): Likewise.
15538         ([-fdbg-cnt=]): Likewise.
15539         ([-mmemcpy]): Likewise.
15540         ([-mflush-func]): Likewise.
15541         ([-msynci]): Likewise.
15543 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15545         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
15546         example.
15548 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
15550         PR tree-optimization/64563
15551         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
15552         instead of != VR_VARYING.
15554         PR target/64513
15555         * config/i386/i386.c (ix86_expand_prologue): Add
15556         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
15558         PR tree-optimization/64454
15559         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
15560         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
15561         for signed or [0, op1 - 1] for unsigned modulo.
15562         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
15563         even if op1 does not satisfy integer_pow2p.
15565         PR other/64370
15566         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
15568 2015-01-12  Jeff Law  <law@redhat.com>
15570         PR target/64461
15571         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
15572         (trunchiqi2, truncsihi2): Similarly.
15574         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
15575         rather than calling F.
15577 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15579         * tsan.c (instrument_expr): Use force_gimple_operand.
15580         Use may_be_nonaddressable_p instead of is_gimple_addressable.
15582 2015-01-12  Richard Biener  <rguenther@suse.de>
15584         PR tree-optimization/64530
15585         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
15586         back dr1.
15588 2015-01-12  Richard Biener  <rguenther@suse.de>
15590         PR middle-end/64357
15591         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
15592         latches properly.
15594 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15596         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
15597         Cortex-A17 tuning parameters.
15598         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
15600 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15602         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
15603         * config/arm/arm.c (arm_macro_fusion_p): New function.
15604         (arm_macro_fusion_pair_p): Likewise.
15605         (TARGET_SCHED_MACRO_FUSION_P): Define.
15606         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
15607         (ARM_FUSE_NOTHING): Likewise.
15608         (ARM_FUSE_MOVW_MOVT): Likewise.
15609         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
15610         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
15611         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
15612         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
15613         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
15614         arm_cortex_a5_tune): Specify fuseable_ops value.
15616 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
15618         PR bootstrap/64561
15619         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
15620         test for PIE with copy reloc.
15621         * configure: Regenerated.
15623 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15625         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
15626         in gen_rtx_REG.
15627         (arm_tls_descseq_addr): Likewise.
15628         (arm_gen_movmemqi): Likewise.
15629         (arm_expand_epilogue_apcs_frame): Likewise.
15630         (arm_expand_epilogue): Likewise.
15631         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
15632         in gen_rtx_REG.
15634 2015-01-12  Martin Liska  <mliska@suse.cz>
15636         PR ipa/64550
15637         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
15638         volatility for correct operands.
15640 2015-01-12  Martin Liska  <mliska@suse.cz>
15642         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
15643         that a function is not leaf.
15644         (sem_function::compare_polymorphic_p): Likewise.
15646 2015-01-12  Martin Liska  <mliska@suse.cz>
15648         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
15649         that a function is not leaf.
15650         (sem_function::compare_polymorphic_p): Likewise.
15652 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15654         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
15655         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
15656         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
15657         fold-const.h, tree-check.h.
15659 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
15661         PR ipa/63967
15662         PR ipa/64425
15663         * ipa-inline.c (compute_uninlined_call_time,
15664         compute_inlined_call_time): Use counts for extra precision when
15665         needed possible.
15666         (big_speedup_p): Fix formating.
15667         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
15668         (relative_time_benefit): Remove.
15669         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
15670         merge guessed and read profile paths.
15671         (inline_small_functions): Count only !optimize_size functions into
15672         initial size; be more lax about sanity check when profile is used;
15673         be sure to update inlined function profile when profile is read.
15675 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
15677         PR ipa/63470
15678         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
15679         cost when edge becomes direct.
15680         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
15681         is resolved or when introducing new speculation.
15683 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
15685         PR ipa/64551
15686         PR ipa/64552
15687         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
15688         '||' to fix typo issue.
15690         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
15691         accept and return NULL.
15693 2015-01-12  Martin Liska  <mliska@suse.cz>
15695         * cgraph.c (cgraph_edge::remove_callee): Move function to header
15696         file for being inlined.
15697         (cgraph_set_edge_callee): Delete.
15698         (cgraph_edge::redirect_callee): Move function to header file
15699         for being inlined.
15700         (cgraph_edge::make_direct): Use new function.
15701         (cgraph_edge::dump_edge_flags): New function created from
15702         static dump_edge_flags function.
15703         (cgraph_node::dump): Use new function.
15704         (cgraph_edge::verify_count_and_frequency): New function created
15705         from verify_edge_count_and_frequency.
15706         (cgraph_edge::verify_corresponds_to_fndecl): New function created
15707         from verify_edge_corresponds_to_fndecl.
15708         (verify_edge_corresponds_to_fndecl): Delete.
15709         (cgraph_node::verify_node): Use new function.
15710         * cgraph.h (cgraph_edge::set_callee): New function.
15711         (cgraph_edge::dump_edge_flags): Likewise.
15712         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
15714 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
15716         * ipa-utils.c (estimate_function_body_sizes): Do not
15717         free node params when called late with early=true.
15719 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
15721         * doc/md.texi (Instruction Patterns): Rewrite text for
15722         clarity.
15723         (Example): Likewise.
15725 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
15727         * doc/invoke.texi (Option Summary): Break long lines.
15728         [(-fdiagnostics-color)]: Put long literal in @smallexample
15729         instead of inline.
15730         [(-fsanitize-recover)]: Likewise.
15731         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
15732         [(-ffast-math)]: Likewise.
15733         [(--param max-inline-insns-recursive)]: Likewise.
15734         [(--param max-inline-recursive-depth)]: Likewise.
15735         [(-mno-text-section-literals)]: Likewise.
15737 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15739         * doc/install.texi: Update for libgomp being renamed from "GNU
15740         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
15741         Runtime Library".
15742         * doc/sourcebuild.texi: Likewise.
15744 2015-01-10  Anthony Green  <green@moxielogic.com>
15746         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
15747         mul.x availability for moxiebox configuration.
15749 2015-01-09  Anthony Green  <green@moxielogic.com>
15751         * config/moxie/moxie.md: Tabify assembly output.
15753 2015-01-09  Anthony Green  <green@moxielogic.com>
15755         * config/moxie/moxie.md (CC_REG): Correct register definition.
15757 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
15759         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
15760         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
15761         of log files.
15763 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
15765         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
15767 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
15768             Jakub Jelinek  <jakub@redhat.com>
15770         PR middle-end/64412
15771         * lto-streamer.h (lto_stream_offload_p): New declaration.
15772         * lto-streamer.c (lto_stream_offload_p): New variable.
15773         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
15774         at the same time as section_name_prefix.
15775         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
15776         if lto_stream_offload_p.
15777         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
15778         stream TREE_TARGET_OPTION if lto_stream_offload_p.
15779         (write_ts_function_decl_tree_pointers): Don't
15780         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
15781         * tree-streamer-in.c (unpack_value_fields): Don't stream
15782         TREE_TARGET_OPTION in if ACCEL_COMPILER.
15783         (lto_input_ts_function_decl_tree_pointers): Don't stream
15784         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
15785         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
15786         instead of section_name_prefix string comparisons.
15788 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
15790         PR rtl-optimization/64536
15791         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
15792         tablejumps.
15794 2015-01-09  Michael Collison  <michael.collison@linaro.org>
15796         PR tree-optimization/64322
15797         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
15798         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
15800 2015-01-09  Tom de Vries  <tom@codesourcery.com>
15802         PR rtl-optimization/64539
15803         * regcprop.c (kill_clobbered_values): Factor out of ...
15804         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
15805         instead of note_stores with kill_clobbered_value.
15807 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
15809          * ginclude/unwind-arm-common.h: Revert previous commit.
15811 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
15813         * config.gcc (arm*-*-freebsd*): New configuration.
15814         * config/arm/freebsd.h: New file.
15815         * config.host: Add extra components for arm*-*-freebsd*.
15816         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
15817         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
15819 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15821         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
15822         for -mcpu=e6500.
15823         * config/rs6000/t-rtems: Add e6500 multilibs.
15825 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15827         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
15828         MPC8540.
15830 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15832         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
15833         MULTILIB_EXCEPTIONS.
15835 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15837         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
15838         MULTILIB_EXCEPTIONS.
15840 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15842         * config/arm/t-rtems-eabi: Rename to...
15843         * config/arm/t-rtems: ...this.
15844         * config/arm/rtems-eabi.h: Rename to...
15845         * config/arm/rtems.h: ...this.
15846         * config.gcc (arm*-*-rtems*): Reflect changes above.
15848 2015-01-09  Richard Biener  <rguenther@suse.de>
15850         PR tree-optimization/64410
15851         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
15852         on the LHS.
15853         (execute_update_addresses_taken): Deal with that.
15854         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
15855         loads/stores for complex variables.
15857 2015-01-09  Martin Liska  <mliska@suse.cz>
15859         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
15860         name comparison.
15861         (func_checker::compare_memory_operand): New function.
15862         (func_checker::compare_operand): Split case to newly
15863         added functions.
15864         (func_checker::compare_cst_or_decl): New function.
15865         (func_checker::compare_gimple_call): Identify
15866         memory operands.
15867         (func_checker::compare_gimple_assign): Likewise.
15868         * ipa-icf-gimple.h: New function.
15870 2015-01-09  Martin Liska  <mliska@suse.cz>
15872         PR ipa/64503
15873         * sreal.c (sreal::dump): Change unsigned format to signed for
15874         m_exp value.
15875         (sreal::to_double): Replace exp2 with scalbln.
15877 2015-01-09  Martin Liska  <mliska@suse.cz>
15879         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
15880         * ipa-icf.c (sem_function::equals_private): Add support for target and
15881         (sem_item_optimizer::merge_classes): Remove redundant function
15882         optimization flags comparison.
15883         * tree.h (target_opts_for_fn): New function.
15885 2015-01-09  Tom de Vries  <tom@codesourcery.com>
15887         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
15889 2015-01-09  Kito Cheng  <kito@0xlab.org>
15891         PR rtl-optimization/64348
15892         * lra-constraints.c (split_reg): Fix caller-save store/restore
15893         instruction generation.
15895 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
15897         PR gcov-profile/61790
15898         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
15899         long long.  Fallback to int64_t if host doesn't have long long and
15900         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
15902 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
15904         PR tree-optimization/63989
15905         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
15906         from 1000 to 10000.
15907         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
15908         (get_stridx): If we don't have a record for certain SSA_NAME,
15909         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
15910         constant offset, call get_stridx_plus_constant.
15911         (get_stridx_plus_constant): New function.
15912         (zero_length_string): Don't use get_stridx here.
15914         PR target/55023
15915         PR middle-end/64388
15916         * dse.c (struct insn_info): Mention frame_read set also
15917         before reload for tail calls on some targets.
15918         (scan_insn): Revert 2014-12-22 change.  Set frame_read
15919         also before reload for tail calls if
15920         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
15921         instead of add_non_frame_wild_read for non-const/memset
15922         tail calls after reload.
15924 2015-01-08  Jason Merrill  <jason@redhat.com>
15926         * ubsan.c (do_ubsan_in_current_function): New.
15927         (pass_ubsan::gate): Use it.
15928         * ubsan.h: Declare it.
15929         * convert.c (convert_to_integer): Use it.
15931 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
15933         PR target/64338
15934         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
15935         compare_code when it is unconditionally overwritten afterwards.
15936         Use ix86_reverse_condition instead of reverse_condition.  Don't
15937         change code if *reverse_condition* returned UNKNOWN and don't
15938         swap ct/cf and negate diff in that case.
15940 2015-01-08  Mike Stump  <mikestump@comcast.net>
15942         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
15943         (pass_tsan_O0::gate): Likewise.
15944         * extend.texi (Function Attributes): Add no_sanitize_thread
15945         documentation.
15947 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15949         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
15950         for registering builtins.
15951         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
15952         add -fopenmp to the argv_obstack used when invoking
15953         compile_for_target.
15955         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
15956         add "-m32" or "-m64" to argv_obstack.
15957         (generate_host_descr_file): Likewise, when invoking host_compiler.
15958         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
15959         ld.
15961 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
15963         * config/sh/sh-mem.cc: Use constant as second operand when emitting
15964         tstsi_t insns.
15966 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
15968         PR target/55212
15969         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
15970         constant load if constant operand fits into I08.
15972 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
15974         PR sanitizer/64336
15975         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
15976         and TREE_THIS_VOLATILE for MEM_REFs.
15977         (build5_stat): Fix up initialization of TREE_READONLY and
15978         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
15980 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15982         PR target/64533
15983         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
15984         of r for the second alternative of the destination operand.
15986 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
15988         PR target/36557
15989         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
15991 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15993         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
15994         keywords.
15995         ([-fivar-visibility], [-fvisibility]): Likewise.
15997 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15999         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
16000         the file where @code, @command, etc is more appropriate.
16002 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
16004         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
16005         of -mrecip= documentation.
16007 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16009         PR target/64505
16010         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
16011         correct reload handler if -m32 -mpowerpc64 is used.
16013 2015-01-06  Tom de Vries  <tom@codesourcery.com>
16015         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
16017 2015-01-08  Christian Bruel  <christian.bruel@st.com>
16019         PR target/64507
16020         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
16022 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16024         PR tree-optimization/63259
16025         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
16026         if optab exists for 16bit byteswap.
16028 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
16030         * opts.c (common_handle_option): Add support for
16031         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
16032         * doc/invoke.texi: Document -fno-sanitize=all,
16033         -f{,no-}sanitize-recover=all.  Document that
16034         -fsanitize=float-cast-overflow is not enabled
16035         by -fsanitize=undefined.  Fix up documentation
16036         of -f{,no-}sanitize-recover.
16038 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
16040         * config.gcc: Add Visium support.
16041         * configure.ac: Likewise.
16042         * configure: Regenerate.
16043         * doc/extend.texi (interrupt attribute): Add Visium.
16044         * doc/invoke.texi: Document Visium options.
16045         * doc/install.texi: Document Visium target.
16046         * doc/md.texi: Document Visium constraints.
16047         * common/config/visium: New directory.
16048         * config/visium: Likewise.
16050 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
16052         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
16053         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
16055 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
16057         * combine.c (combine_validate_cost): Do not count the cost of a
16058         split I2 twice.  Do not display it twice in the dump, either.
16060 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16062         Revert parts of r219199.
16063         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
16064         <inttypes.h>.
16065         ([-Wtraditional]): Restore markup on <limits.h>.
16067 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
16069         PR c++/31397
16070         * doc/invoke.texi: Document -Wsuggest-override.
16072 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
16074         PR rtl-optimization/64287
16075         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
16076         (process_options): Disable flag_ipa_ra if profiling.
16078 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16080         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
16082 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
16084         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
16085         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
16086         put under #if TARGET_LOOPS guard.
16088 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
16090         * config/i386/i386.c (output_387_binary_op): Use std::swap.
16092 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
16094         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
16095         * rtl.h (refers_to_regno_p): Add overload.
16096         * cse.c: Use it.
16097         * bt-load.c: Likewise.
16098         * combine.c: Likewise.
16099         * df-scan.c: Likewise.
16100         * sched-deps.c: Likewise.
16101         * config/s390/s390.c: Likewise.
16102         * config/m32r/m32r.c: Likewise.
16103         * config/rs6000/spe.md: Likewise.
16104         * config/rs6000/rs6000.c: Likewise.
16105         * config/pa/pa.c: Likewise.
16106         * config/stormy16/stormy16.c: Likewise.
16107         * config/cris/cris.c: Likewise.
16108         * config/arc/arc.md: Likewise.
16109         * config/arc/arc.c: Likewise.
16110         * config/sh/sh.md: Likewise.
16111         * config/sh/sh.c: Likewise.
16112         * config/frv/frv.c: Likewise.
16114 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16116         PR sanitizer/64265
16117         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
16118         call as cleanup of the whole body.
16119         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
16120         * tsan.c (replace_func_exit): New function.
16121         (instrument_func_exit): Moved earlier.
16122         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
16123         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
16124         been found.
16125         (tsan_pass): Don't call instrument_func_exit.
16126         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
16127         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
16128         inlining.
16130         PR sanitizer/64344
16131         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
16132         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
16133         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
16134         if the result is integer_zerop, return NULL_TREE.
16135         * convert.c (convert_to_integer): Pass expr as ARG.
16137         PR tree-optimization/64465
16138         * tree-inline.c (redirect_all_calls): During inlining
16139         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
16140         changed the stmt to a non-throwing call.
16142 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16144         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
16145         etc markup throughout the file.
16147 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16149         Enable experimental TSAN support for Ada.
16150         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
16152 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16154         PR tree-optimization/64494
16155         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
16156         clear SSA_NAME_ANTI_RANGE_P flag.
16158 2015-01-05  Marek Polacek  <polacek@redhat.com>
16160         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
16162 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16164         Update copyright years.
16166         * gcc.c (process_command): Update copyright notice dates.
16167         * gcov-dump.c: Ditto.
16168         * gcov.c: Ditto.
16169         * doc/cpp.texi: Bump @copying's copyright year.
16170         * doc/cppinternals.texi: Ditto.
16171         * doc/gcc.texi: Ditto.
16172         * doc/gccint.texi: Ditto.
16173         * doc/gcov.texi: Ditto.
16174         * doc/install.texi: Ditto.
16175         * doc/invoke.texi: Ditto.
16177         * auto-profile.c, auto-profile.h: Fix up Copyright line.
16179 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
16181         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
16182         verb tense, etc.
16183         ([-fvtable-verify], [-fvtv-debug]): Likewise.
16184         ([-Wabi]): Likewise.
16185         ([-fmessage-length]): Likewise.
16186         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
16187         ([-Wno-discarded-qualifiers]): Likewise.
16188         ([-Wnodiscarded-array-qualifiers]): Likewise.
16189         ([-Wno-virtual-move-assign]): Likewise.
16190         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
16191         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
16192         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
16193         ([-fsanitize-undefined-trap-on-error]): Likewise.
16194         ([-floop-interchange]): Likewise.
16195         ([-ftree-coalesce-inlined-vars]): Likewise.
16196         ([-fvect-cost-model]): Likewise.
16197         ([-flto]): Likewise.
16198         ([--param]): Likewise.
16199         (Spec Files): Likewise.
16200         ([-mstrict-align]): Likewise.
16201         ([-mfix-cortex-a53-835769]): Likewise.
16202         ([-march], [-mtune]): Likewise.
16203         ([-mpic-register]): Likewise.
16204         ([-munaligned-access]): Likewise.
16205         ([-msp8]): Likewise.
16206         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
16207         (AVR Built-in Macros): Likewise.
16208         ([-mpreferred-stack-boundary]): Likewise.
16209         ([-mtune-crtl]): Likewise.
16210         ([-mashf]): Likewise.
16211         ([-mmcu=]): Likewise.
16212         ([-minrt]): Likewise.
16213         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
16214         ([-mupper-regs]): Likewise.
16215         ([-matomic-model]): Likewise.
16216         ([-mdiv]): Likewise.
16217         ([-mzdcbranch]): Likewise.
16218         ([-mdisable-callt]): Likewise.
16219         ([-msoft-float]): Likewise.
16220         ([-m8byte-align]): Likewise.
16221         ([-fstack-reuse]): Likewise.
16223 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16225         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
16226         Fix markup, light copy-editing.
16227         ([-fauto-profile]): Rewrite to fix formatting and content
16228         problems.
16230 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16232         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
16233         Copy-edit description.
16234         ([-fisolate-erroneous-paths-attribute]): Likewise.
16235         * common.opt (fisolate-erroneous-paths-dereference):
16236         Copy-edit description.
16237         (fisolate-erroneous-paths-attribute): Likewise.
16239 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16241         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
16242         tidy grammar.
16244 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16246         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
16247         ([-fvtv-debug]): Likewise.
16248         ([-Wc++-compat]): Likewise.
16249         ([-Wc++11-compat]): Likewise.
16250         ([-Wc++14-compat]): Likewise.
16251         ([-Wno-sized-deallocation]): Likewise.
16252         ([-femit-class-debug-always]): Likewise.
16253         ([-femit-struct-debug-detailed]): Likewise.
16254         ([-fno-keep-inline-dllexport]): Likewise.
16255         ([-fira-algorithm]): Likewise.
16256         ([-fira-region]): Likewise.
16257         ([-flra-remat]): Likewise.
16258         ([-fipa-ra]): Likewise.
16259         ([-fhoist-adjacent-loads]): Likewise.
16260         ([-fisolate-erroneous-paths-dereference]): Likewise.
16261         ([-fisolate-erroneous-paths-attribute]): Likewise.
16262         ([-ftree-switch-conversion]): Likewise.
16263         ([-ftree-tail-merge]): Likewise.
16264         ([-ftree-loop-if-convert]): Likewise.
16265         ([-ftree-loop-if-convert-stores]): Likewise.
16266         ([-ftree-loop-distribution]): Likewise.
16267         ([-ftree-loop-distribute-patterns]): Likewise.
16268         ([-flto-compression-level]): Likewise.
16269         ([-flto-report]): Likewise.
16270         ([-flto-report-wpa]): Likewise.
16271         ([-fuse-linker-plugin]): Likewise.
16272         ([-mfix-cortex-a53-835769]): Likewise.
16273         ([-mno-fix-cortex-a53-835769]): Likewise.
16274         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
16275         explicit listing; add a note to the discussion indicating they
16276         exist.  Reorder table to group similar options.  Add missing
16277         @opindex entries.  Add @need commands throughout the table to
16278         allow it to be split across multiple pages.
16279         ([-m8bit-idiv]): Fix @opindex.
16280         ([-mavx256-split-unaligned-load]): Likewise.
16281         ([-mavx256-split-unaligned-store]): Likewise.
16282         ([-mstack-protector-guard]): Likewise.
16283         ([-mcpu=]): Likewise.
16284         ([-mcpu]): Likewise.
16285         ([-mpointer-size=]): Likewise.
16287 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
16289         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
16290         instead of `m' constraint.  Likewise for unnamed movb comparison
16291         patterns using reg_before_reload_operand predicate.
16292         * config/pa/predicates.md (reg_before_reload_operand): Tighten
16293         predicate to reject register index and LO_SUM DLT memory forms
16294         after reload.
16296 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16298         * doc/invoke.texi (Option Summary): Fix spelling of
16299         -fdevirtualize-at-ltrans.
16300         ([-fdevirtualize]): Fix markup.
16301         ([-fdevirtualize-speculatively]): Fix typo.
16302         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
16303         implementor-speaky.
16304         * common.opt (fdevirtualize-at-ltrans): Likewise.
16305         * ipa-devirt.c: Fix typos in comments throughout the file.
16306         (ipa_devirt): Fix typos in format strings for dump output.
16308 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
16310         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
16311         discussion of defaults, light copy-editing.
16313 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16315         * tsan.c (instrument_expr): corrected previous checkin.
16317 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16319         Instrument bit field and unaligned accesses for TSAN.
16320         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
16321         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
16322         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
16323         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
16324         unaligned memory regions.
16326 2015-01-01  Anthony Green  <green@moxielogic.com>
16328         * config/moxie/predicates.md (moxie_general_movsrc_operand):
16329         Restrict move source register offsets to 16 bits.
16331 Copyright (C) 2015 Free Software Foundation, Inc.
16333 Copying and distribution of this file, with or without modification,
16334 are permitted in any medium without royalty provided the copyright
16335 notice and this notice are preserved.