Fix try_transform_to_exit_first_loop_alt
[official-gcc.git] / gcc / ChangeLog
blobe33780fe9428e7bfb1922476eaa5502a8f323907
1 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3         PR tree-optimization/66442
4         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
5         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
6         if the loop latch is not a singleton.  Use
7         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9 2015-06-08  Marek Polacek  <polacek@redhat.com>
11         PR sanitizer/66452
12         * toplev.c (check_global_declaration): Don't warn about artificial
13         decls.
15 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17         PR tree-optimization/66436
18         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
19         dump file.
20         * gimplify.c: Add tree-dump.h include.
21         (gimplify_function_tree): Dump function to gimple dump file.
22         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23         dump file.
25 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27         PR tree-optimization/66435
28         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
29         function.
31 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
33         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
34         of ptr_type_node to not be ptr_to_node.
35         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
36         TREE_TYPE of pointers.
37         * gimple-expr.c (useless_type_conversion): Reorder the check for
38         function pointers and TYPE_CANONICAL.
40 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
42         PR bootstrap/66319
43         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
44         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
45         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
46         later.
47         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
48         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
49         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
50         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
51         and non iso if unix2003.
53 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
55         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
57 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
59         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
60         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
61         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
62         except.c, final.c, function.c, gcse-common.c, genemit.c,
63         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
64         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
65         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
66         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
67         more derived ones.
69 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
71         * combine.c (combine_split_insns): Remove cast.
72         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
73         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
74         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
75         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
76         * genemit.c (gen_split): Change return type of generated functions to
77         rtx_insn.
78         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
79         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
80         gen_peephole2_* functions.
81         (print_subroutine, main): Likewise.
82         * recog.c (peephole2_optimize): Remove cast.
83         (peep2_next_insn): Promote return type to rtx_insn.
84         * recog.h (peep2_next_insn): Fix prototype.
85         * rtl.h (try_split, split_insns): Likewise.
87 2015-06-06  DJ Delorie  <dj@redhat.com>
89         * config/msp430/msp430.c (msp430_asm_integer): Support addition
90         and subtraction too.
92 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
94         PR target/66410
95         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
96         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
97         instead of Snd.  Disparage Sid/z alternative with '^'.
99 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
101         * dwarf2out.c: Remove deferred_locations*.
102         (dwarf2_debug_hooks): Add early_finish hook.
103         Remove global_decl hook.
104         Add early_global_decl and late_global_decl hook.
105         New global early_dwarf.
106         New structure set_early_dwarf.
107         (output_die): Indicate whether a DIE was generated early
108         when generating assembly with -dA.
109         (struct limbo_die_struct): Document created_for field.
110         Remove file_table_last_lookup.
111         (remove_AT): Return TRUE if successful.
112         (remove_child_TAG): Clear die_parent.
113         (reparent_child): New function abstracted from...
114         (splice_child_die): ...here.
115         (new_die): ICE if a DIE ends up in limbo too late.
116         (check_die): New.
117         (defer_location): Remove.
118         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
119         (fill_variable_array_bounds): New.
120         (decl_start_label): Call fill_variable_array_bounds.
121         (gen_formal_parameter_die): Rewrite to reuse previously generated
122         DIEs.
123         (gen_subprogram_die): Same.
124         (gen_variable_die): Same.
125         (gen_const_die): Same.
126         (gen_label_die): Same.
127         (gen_lexical_block_die): Same.
128         (decl_will_get_specification_p): New.
129         (local_function_static): New.
130         (gen_struct_or_union_type_die): Fill in variable-length fields.
131         (gen_typedef_die): Fill in variable-length typedefs.
132         (gen_tagged_type_die): Gracefully return on error_mark_node.
133         Handle re-entrancy.
134         (gen_type_die_with_usage): Handle variable-length types.
135         Remove duplicate code for ARRAY_TYPE case.
136         (process_scope_var): Only process imported modules during early
137         dwarf.
138         (dwarf2out_early_global_decl): New.
139         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
140         (dwarf2out_type_decl): Set early_dwarf while calling
141         dwarf2out_decl.
142         (dwarf2out_decl): Verify that we did not recreate a previously
143         generated DIE.
144         Do not return on DECL_EXTERNALs in VAR_DECLs.
145         Abstract some code to local_function_static.
146         (lookup_filename): Remove use of file_table_last_lookup.
147         Gracefully exit on missing file_name.
148         (dwarf2out_finish): Verify limbo list.
149         Remove deferred_locations_list use.
150         Move deferred_asm_name and limbo flushing to...
151         (dwarf2out_early_finish): ...here.  New.
152         (dwarf2out_c_finalize): Remove set of deferred_location_list,
153         deferred_asm_name, and file_table_last_lookup.
154         * cgraph.h (referred_to_p): Add default argument.
155         * cgraphunit.c (referred_to_p): Add and handle include_self
156         argument.
157         (analyze_functions): Add first_time argument.
158         Call check_global_declaration for all symbols.
159         Call late_global_decl for nodes for moribund nodes.
160         (finalize_compilation_unit): Add new argument to
161         analyze_functions.
162         Call early_global_decl for functions.
163         Call early_finish debug hook.
164         * dbxout.c (dbxout_early_global_decl): New.
165         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
166         (dbx_debug_hooks): Add new hooks.
167         (xcoff_debug_hooks): Same.
168         * debug.c (do_nothing_debug_hooks): Add early_finish field.
169         Add early and late debug hooks.
170         Remove global_decl hook.
171         * debug.h (struct gcc_debug_hooks): Add early_finish,
172         early_global_decl, and late_global_decl fields.
173         Remove global_decl field.
174         Document gcc_debug_hooks.
175         * gengtype.c (output_typename): Remove.
176         * godump.c (go_early_global_decl): New.
177         (go_late_global_decl): New.
178         (go_global_decl): Remove.
179         (dump_go_spec_init): Remove global_decl.  Add
180         {early,late}_global_decl.
181         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
182         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
183         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
184         (write_global_declarations): Remove.
185         (global_decl_processing): New.
186         * langhooks.h (struct lang_hooks_for_decls): Remove
187         final_write_globals field.
188         Add post_compilation_parsing_cleanups field.
189         * passes.c (rest_of_decl_compilation): Call early_global_decl.
190         * sdbout.c: Add early and late_global_decl hooks.  Remove
191         sdbout_global_decl hook.
192         Add early_finish field for sdb_debug_hooks.
193         (sdbout_global_decl): Remove.
194         (sdbout_early_global_decl): New.
195         (sdbout_late_global_decl): New.
196         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
197         * toplev.c (check_global_declaration): Rename from
198         check_global_declaration_1.
199         Adapt to use symtab infrastructure.
200         (check_global_declarations): Remove.
201         (emit_debug_global_declarations): Remove.
202         (compile_file): Remove call to final_write_globals langhook.
203         Run the actual compilation process.
204         Perform any post compilation parser cleanups.
205         Generate late debug info.
206         * toplev.h (check_global_declaration): New.
207         (check_global_declaration_1): Remove.
208         (check_global_declarations): Remove.
209         (write_global_declarations): Remove.
210         (emit_debug_global_declarations): Remove.
211         (global_decl_processing): New.
212         * tree-core.h (struct tree_block): Add DIE field.
213         * tree.h (BLOCK_DIE): New.
214         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
215         throughout.
216         (vmsdbgout_early_global_decl): New.
217         (vmsdbgout_late_global_decl): New.
218         Add early_finish debug hook field to vmsdbg_debug_hooks.
219         Remove vmsdbgout_decl to vmsdbgout_function_decl.
220         Add early and late_global_decl debug hooks.
222 2015-06-05  Julian Brown  <julian@codesourcery.com>
223             Sandra Loosemore  <sandra@codesourcery.com>
225         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
226         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
227         to print-sysroot-suffix.sh script.
229 2015-06-05  Tom de Vries  <tom@codesourcery.com>
231         merge from gomp4 branch:
232         2015-05-28  Tom de Vries  <tom@codesourcery.com>
234         PR tree-optimization/65443
235         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
236         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
237         (try_transform_to_exit_first_loop_alt): New function.
238         (transform_to_exit_first_loop): Use
239         try_transform_to_exit_first_loop_alt.
241 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
243         * builtins.c (expand_builtin_atomic_compare_exchange): Call
244         emit_cmp_and_jump_insns with the mode of target.
246 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
248         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
250 2015-06-04  DJ Delorie  <dj@redhat.com>
252         * config/msp430/msp430.md (movsi_s): New.  Special case for
253         storing a 20-bit symbol into a 32-bit register.
254         * config/msp430/msp430.c (msp430_subreg): Add support for it.
255         * config/msp430/predicates.md (msp430_symbol_operand): New.
257 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
259         * c-family/c-common.c (noplt): New attribute.
260         (handle_noplt_attribute): New handler.
261         * calls.c (prepare_call_address): Check for noplt
262         attribute.
263         * config/i386/i386.c (ix86_expand_call): Check
264         for noplt attribute.
265         (ix86_nopic_noplt_attribute_p): New function.
266         (ix86_output_call_insn): Output indirect call for non-pic
267         no plt calls.
268         * doc/extend.texi (noplt): Document new attribute.
269         * doc/invoke.texi: Document new attribute.
271 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
273         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
274         real.h, and fixed-value.h when included in host source files.
275         * double-int.h: Remove redundant #includes listed above.
276         * fixed-value.h: Likewise.
277         * real.h: Likewise.
278         * wide-int.h: Likewise.
279         * inchash.h: Likewise.
280         * rtl.h: Add some include files When included from a generator file.
281         * target.h: Remove wide-int.h and insn-modes.h from the include list.
282         * internal-fn.h: Don't include coretypes.h.
283         * alias.c: Adjust includes for restructured coretypes.h.
284         * asan.c: Likewise.
285         * attribs.c: Likewise.
286         * auto-inc-dec.c: Likewise.
287         * auto-profile.c: Likewise.
288         * bb-reorder.c: Likewise.
289         * bt-load.c: Likewise.
290         * builtins.c: Likewise.
291         * caller-save.c: Likewise.
292         * calls.c: Likewise.
293         * ccmp.c: Likewise.
294         * cfg.c: Likewise.
295         * cfganal.c: Likewise.
296         * cfgbuild.c: Likewise.
297         * cfgcleanup.c: Likewise.
298         * cfgexpand.c: Likewise.
299         * cfghooks.c: Likewise.
300         * cfgloop.c: Likewise.
301         * cfgloop.h: Likewise.
302         * cfgloopanal.c: Likewise.
303         * cfgloopmanip.c: Likewise.
304         * cfgrtl.c: Likewise.
305         * cgraph.c: Likewise.
306         * cgraphbuild.c: Likewise.
307         * cgraphclones.c: Likewise.
308         * cgraphunit.c: Likewise.
309         * cilk-common.c: Likewise.
310         * combine-stack-adj.c: Likewise.
311         * combine.c: Likewise.
312         * compare-elim.c: Likewise.
313         * convert.c: Likewise.
314         * coverage.c: Likewise.
315         * cppbuiltin.c: Likewise.
316         * cprop.c: Likewise.
317         * cse.c: Likewise.
318         * cselib.c: Likewise.
319         * data-streamer-in.c: Likewise.
320         * data-streamer-out.c: Likewise.
321         * data-streamer.c: Likewise.
322         * dbxout.c: Likewise.
323         * dce.c: Likewise.
324         * ddg.c: Likewise.
325         * debug.c: Likewise.
326         * df-core.c: Likewise.
327         * df-problems.c: Likewise.
328         * df-scan.c: Likewise.
329         * df.h: Likewise.
330         * dfp.c: Likewise.
331         * dojump.c: Likewise.
332         * dominance.c: Likewise.
333         * domwalk.c: Likewise.
334         * double-int.c: Likewise.
335         * dse.c: Likewise.
336         * dumpfile.c: Likewise.
337         * dwarf2asm.c: Likewise.
338         * dwarf2cfi.c: Likewise.
339         * dwarf2out.c: Likewise.
340         * dwarf2out.h: Likewise.
341         * emit-rtl.c: Likewise.
342         * et-forest.c: Likewise.
343         * except.c: Likewise.
344         * explow.c: Likewise.
345         * expmed.c: Likewise.
346         * expr.c: Likewise.
347         * final.c: Likewise.
348         * fixed-value.c: Likewise.
349         * fold-const.c: Likewise.
350         * function.c: Likewise.
351         * fwprop.c: Likewise.
352         * gcc-plugin.h: Likewise.
353         * gcse.c: Likewise.
354         * generic-match-head.c: Likewise.
355         * ggc-page.c: Likewise.
356         * gimple-builder.c: Likewise.
357         * gimple-expr.c: Likewise.
358         * gimple-fold.c: Likewise.
359         * gimple-iterator.c: Likewise.
360         * gimple-low.c: Likewise.
361         * gimple-match-head.c: Likewise.
362         * gimple-pretty-print.c: Likewise.
363         * gimple-ssa-isolate-paths.c: Likewise.
364         * gimple-ssa-strength-reduction.c: Likewise.
365         * gimple-streamer-in.c: Likewise.
366         * gimple-streamer-out.c: Likewise.
367         * gimple-streamer.h: Likewise.
368         * gimple-walk.c: Likewise.
369         * gimple.c: Likewise.
370         * gimplify-me.c: Likewise.
371         * gimplify.c: Likewise.
372         * godump.c: Likewise.
373         * graph.c: Likewise.
374         * graphite-blocking.c: Likewise.
375         * graphite-dependences.c: Likewise.
376         * graphite-interchange.c: Likewise.
377         * graphite-isl-ast-to-gimple.c: Likewise.
378         * graphite-optimize-isl.c: Likewise.
379         * graphite-poly.c: Likewise.
380         * graphite-scop-detection.c: Likewise.
381         * graphite-sese-to-poly.c: Likewise.
382         * graphite.c: Likewise.
383         * haifa-sched.c: Likewise.
384         * hooks.h: Likewise.
385         * hw-doloop.c: Likewise.
386         * ifcvt.c: Likewise.
387         * incpath.c: Likewise.
388         * init-regs.c: Likewise.
389         * internal-fn.c: Likewise.
390         * ipa-chkp.c: Likewise.
391         * ipa-comdats.c: Likewise.
392         * ipa-cp.c: Likewise.
393         * ipa-devirt.c: Likewise.
394         * ipa-icf-gimple.c: Likewise.
395         * ipa-icf.c: Likewise.
396         * ipa-inline-analysis.c: Likewise.
397         * ipa-inline-transform.c: Likewise.
398         * ipa-inline.c: Likewise.
399         * ipa-polymorphic-call.c: Likewise.
400         * ipa-profile.c: Likewise.
401         * ipa-prop.c: Likewise.
402         * ipa-pure-const.c: Likewise.
403         * ipa-ref.c: Likewise.
404         * ipa-reference.c: Likewise.
405         * ipa-split.c: Likewise.
406         * ipa-utils.c: Likewise.
407         * ipa-visibility.c: Likewise.
408         * ipa.c: Likewise.
409         * ira-build.c: Likewise.
410         * ira-color.c: Likewise.
411         * ira-conflicts.c: Likewise.
412         * ira-costs.c: Likewise.
413         * ira-emit.c: Likewise.
414         * ira-lives.c: Likewise.
415         * ira.c: Likewise.
416         * jump.c: Likewise.
417         * langhooks.c: Likewise.
418         * lcm.c: Likewise.
419         * loop-doloop.c: Likewise.
420         * loop-init.c: Likewise.
421         * loop-invariant.c: Likewise.
422         * loop-iv.c: Likewise.
423         * loop-unroll.c: Likewise.
424         * lower-subreg.c: Likewise.
425         * lra-assigns.c: Likewise.
426         * lra-coalesce.c: Likewise.
427         * lra-constraints.c: Likewise.
428         * lra-eliminations.c: Likewise.
429         * lra-lives.c: Likewise.
430         * lra-remat.c: Likewise.
431         * lra-spills.c: Likewise.
432         * lra.c: Likewise.
433         * lto-cgraph.c: Likewise.
434         * lto-compress.c: Likewise.
435         * lto-opts.c: Likewise.
436         * lto-section-in.c: Likewise.
437         * lto-section-out.c: Likewise.
438         * lto-streamer-in.c: Likewise.
439         * lto-streamer-out.c: Likewise.
440         * lto-streamer.c: Likewise.
441         * mcf.c: Likewise.
442         * mode-switching.c: Likewise.
443         * modulo-sched.c: Likewise.
444         * omega.c: Likewise.
445         * omp-low.c: Likewise.
446         * optabs.c: Likewise.
447         * opts-global.c: Likewise.
448         * passes.c: Likewise.
449         * plugin.c: Likewise.
450         * postreload-gcse.c: Likewise.
451         * postreload.c: Likewise.
452         * predict.c: Likewise.
453         * print-rtl.c: Likewise.
454         * print-tree.c: Likewise.
455         * profile.c: Likewise.
456         * real.c: Likewise.
457         * realmpfr.c: Likewise.
458         * realmpfr.h: Likewise.
459         * recog.c: Likewise.
460         * ree.c: Likewise.
461         * reg-stack.c: Likewise.
462         * regcprop.c: Likewise.
463         * reginfo.c: Likewise.
464         * regrename.c: Likewise.
465         * regs.h: Likewise.
466         * regstat.c: Likewise.
467         * reload.c: Likewise.
468         * reload1.c: Likewise.
469         * reorg.c: Likewise.
470         * resource.c: Likewise.
471         * rtl-chkp.c: Likewise.
472         * rtlanal.c: Likewise.
473         * rtlhooks.c: Likewise.
474         * sanopt.c: Likewise.
475         * sched-deps.c: Likewise.
476         * sched-ebb.c: Likewise.
477         * sched-rgn.c: Likewise.
478         * sched-vis.c: Likewise.
479         * sdbout.c: Likewise.
480         * sel-sched-dump.c: Likewise.
481         * sel-sched-ir.c: Likewise.
482         * sel-sched.c: Likewise.
483         * sese.c: Likewise.
484         * shrink-wrap.c: Likewise.
485         * shrink-wrap.h: Likewise.
486         * simplify-rtx.c: Likewise.
487         * stack-ptr-mod.c: Likewise.
488         * statistics.c: Likewise.
489         * stmt.c: Likewise.
490         * stor-layout.c: Likewise.
491         * store-motion.c: Likewise.
492         * stringpool.c: Likewise.
493         * symtab.c: Likewise.
494         * target-globals.c: Likewise.
495         * targhooks.c: Likewise.
496         * toplev.c: Likewise.
497         * tracer.c: Likewise.
498         * trans-mem.c: Likewise.
499         * tree-affine.c: Likewise.
500         * tree-affine.h: Likewise.
501         * tree-browser.c: Likewise.
502         * tree-call-cdce.c: Likewise.
503         * tree-cfg.c: Likewise.
504         * tree-cfgcleanup.c: Likewise.
505         * tree-chkp-opt.c: Likewise.
506         * tree-chkp.c: Likewise.
507         * tree-chrec.c: Likewise.
508         * tree-complex.c: Likewise.
509         * tree-data-ref.c: Likewise.
510         * tree-dfa.c: Likewise.
511         * tree-diagnostic.c: Likewise.
512         * tree-dump.c: Likewise.
513         * tree-eh.c: Likewise.
514         * tree-emutls.c: Likewise.
515         * tree-if-conv.c: Likewise.
516         * tree-inline.c: Likewise.
517         * tree-into-ssa.c: Likewise.
518         * tree-iterator.c: Likewise.
519         * tree-loop-distribution.c: Likewise.
520         * tree-nested.c: Likewise.
521         * tree-nrv.c: Likewise.
522         * tree-object-size.c: Likewise.
523         * tree-outof-ssa.c: Likewise.
524         * tree-parloops.c: Likewise.
525         * tree-phinodes.c: Likewise.
526         * tree-predcom.c: Likewise.
527         * tree-pretty-print.c: Likewise.
528         * tree-pretty-print.h: Likewise.
529         * tree-profile.c: Likewise.
530         * tree-scalar-evolution.c: Likewise.
531         * tree-sra.c: Likewise.
532         * tree-ssa-address.c: Likewise.
533         * tree-ssa-alias.c: Likewise.
534         * tree-ssa-ccp.c: Likewise.
535         * tree-ssa-coalesce.c: Likewise.
536         * tree-ssa-copy.c: Likewise.
537         * tree-ssa-copyrename.c: Likewise.
538         * tree-ssa-dce.c: Likewise.
539         * tree-ssa-dom.c: Likewise.
540         * tree-ssa-dse.c: Likewise.
541         * tree-ssa-forwprop.c: Likewise.
542         * tree-ssa-ifcombine.c: Likewise.
543         * tree-ssa-live.c: Likewise.
544         * tree-ssa-loop-ch.c: Likewise.
545         * tree-ssa-loop-im.c: Likewise.
546         * tree-ssa-loop-ivcanon.c: Likewise.
547         * tree-ssa-loop-ivopts.c: Likewise.
548         * tree-ssa-loop-manip.c: Likewise.
549         * tree-ssa-loop-niter.c: Likewise.
550         * tree-ssa-loop-prefetch.c: Likewise.
551         * tree-ssa-loop-unswitch.c: Likewise.
552         * tree-ssa-loop.c: Likewise.
553         * tree-ssa-loop.h: Likewise.
554         * tree-ssa-math-opts.c: Likewise.
555         * tree-ssa-operands.c: Likewise.
556         * tree-ssa-phiopt.c: Likewise.
557         * tree-ssa-phiprop.c: Likewise.
558         * tree-ssa-pre.c: Likewise.
559         * tree-ssa-propagate.c: Likewise.
560         * tree-ssa-reassoc.c: Likewise.
561         * tree-ssa-sccvn.c: Likewise.
562         * tree-ssa-scopedtables.c: Likewise.
563         * tree-ssa-sink.c: Likewise.
564         * tree-ssa-strlen.c: Likewise.
565         * tree-ssa-structalias.c: Likewise.
566         * tree-ssa-tail-merge.c: Likewise.
567         * tree-ssa-ter.c: Likewise.
568         * tree-ssa-threadedge.c: Likewise.
569         * tree-ssa-threadupdate.c: Likewise.
570         * tree-ssa-uncprop.c: Likewise.
571         * tree-ssa-uninit.c: Likewise.
572         * tree-ssa.c: Likewise.
573         * tree-ssanames.c: Likewise.
574         * tree-stdarg.c: Likewise.
575         * tree-streamer-in.c: Likewise.
576         * tree-streamer-out.c: Likewise.
577         * tree-streamer.c: Likewise.
578         * tree-switch-conversion.c: Likewise.
579         * tree-tailcall.c: Likewise.
580         * tree-vect-data-refs.c: Likewise.
581         * tree-vect-generic.c: Likewise.
582         * tree-vect-loop-manip.c: Likewise.
583         * tree-vect-loop.c: Likewise.
584         * tree-vect-patterns.c: Likewise.
585         * tree-vect-slp.c: Likewise.
586         * tree-vect-stmts.c: Likewise.
587         * tree-vectorizer.c: Likewise.
588         * tree-vrp.c: Likewise.
589         * tree.c: Likewise.
590         * tsan.c: Likewise.
591         * ubsan.c: Likewise.
592         * valtrack.c: Likewise.
593         * value-prof.c: Likewise.
594         * var-tracking.c: Likewise.
595         * varasm.c: Likewise.
596         * varpool.c: Likewise.
597         * vmsdbgout.c: Likewise.
598         * vtable-verify.c: Likewise.
599         * web.c: Likewise.
600         * wide-int-print.cc: Likewise.
601         * wide-int-print.h: Likewise.
602         * wide-int.cc: Likewise.
603         * xcoffout.c: Likewise.
604         * config/aarch64/aarch64-builtins.c: Likewise.
605         * config/aarch64/aarch64.c: Likewise.
606         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
607         * config/alpha/alpha.c: Likewise.
608         * config/arc/arc.c: Likewise.
609         * config/arm/aarch-common.c: Likewise.
610         * config/arm/arm-builtins.c: Likewise.
611         * config/arm/arm-c.c: Likewise.
612         * config/arm/arm.c: Likewise.
613         * config/avr/avr-c.c: Likewise.
614         * config/avr/avr-log.c: Likewise.
615         * config/avr/avr.c: Likewise.
616         * config/bfin/bfin.c: Likewise.
617         * config/c6x/c6x.c: Likewise.
618         * config/cr16/cr16.c: Likewise.
619         * config/cris/cris.c: Likewise.
620         * config/darwin-c.c: Likewise.
621         * config/darwin.c: Likewise.
622         * config/default-c.c: Likewise.
623         * config/epiphany/epiphany.c: Likewise.
624         * config/epiphany/mode-switch-use.c: Likewise.
625         * config/epiphany/resolve-sw-modes.c: Likewise.
626         * config/fr30/fr30.c: Likewise.
627         * config/frv/frv.c: Likewise.
628         * config/ft32/ft32.c: Likewise.
629         * config/glibc-c.c: Likewise.
630         * config/h8300/h8300.c: Likewise.
631         * config/i386/i386-c.c: Likewise.
632         * config/i386/i386.c: Likewise.
633         * config/i386/msformat-c.c: Likewise.
634         * config/i386/winnt-cxx.c: Likewise.
635         * config/i386/winnt-stubs.c: Likewise.
636         * config/i386/winnt.c: Likewise.
637         * config/ia64/ia64-c.c: Likewise.
638         * config/ia64/ia64.c: Likewise.
639         * config/iq2000/iq2000.c: Likewise.
640         * config/lm32/lm32.c: Likewise.
641         * config/m32c/m32c-pragma.c: Likewise.
642         * config/m32c/m32c.c: Likewise.
643         * config/m32r/m32r.c: Likewise.
644         * config/m68k/m68k.c: Likewise.
645         * config/mcore/mcore.c: Likewise.
646         * config/mep/mep-pragma.c: Likewise.
647         * config/mep/mep.c: Likewise.
648         * config/microblaze/microblaze-c.c: Likewise.
649         * config/microblaze/microblaze.c: Likewise.
650         * config/mips/mips.c: Likewise.
651         * config/mmix/mmix.c: Likewise.
652         * config/mn10300/mn10300.c: Likewise.
653         * config/moxie/moxie.c: Likewise.
654         * config/msp430/msp430-c.c: Likewise.
655         * config/msp430/msp430.c: Likewise.
656         * config/nds32/nds32-cost.c: Likewise.
657         * config/nds32/nds32-fp-as-gp.c: Likewise.
658         * config/nds32/nds32-intrinsic.c: Likewise.
659         * config/nds32/nds32-isr.c: Likewise.
660         * config/nds32/nds32-md-auxiliary.c: Likewise.
661         * config/nds32/nds32-memory-manipulation.c: Likewise.
662         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
663         * config/nds32/nds32-predicates.c: Likewise.
664         * config/nds32/nds32.c: Likewise.
665         * config/nios2/nios2.c: Likewise.
666         * config/nvptx/nvptx.c: Likewise.
667         * config/pa/pa.c: Likewise.
668         * config/pdp11/pdp11.c: Likewise.
669         * config/rl78/rl78-c.c: Likewise.
670         * config/rl78/rl78.c: Likewise.
671         * config/rs6000/rs6000-c.c: Likewise.
672         * config/rs6000/rs6000.c: Likewise.
673         * config/rx/rx.c: Likewise.
674         * config/s390/s390-c.c: Likewise.
675         * config/s390/s390.c: Likewise.
676         * config/sh/sh-c.c: Likewise.
677         * config/sh/sh-mem.cc: Likewise.
678         * config/sh/sh.c: Likewise.
679         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
680         * config/sh/sh_treg_combine.cc: Likewise.
681         * config/sol2-c.c: Likewise.
682         * config/sol2-cxx.c: Likewise.
683         * config/sol2-stubs.c: Likewise.
684         * config/sol2.c: Likewise.
685         * config/sparc/sparc-c.c: Likewise.
686         * config/sparc/sparc.c: Likewise.
687         * config/spu/spu-c.c: Likewise.
688         * config/spu/spu.c: Likewise.
689         * config/stormy16/stormy16.c: Likewise.
690         * config/tilegx/mul-tables.c: Likewise.
691         * config/tilegx/tilegx-c.c: Likewise.
692         * config/tilegx/tilegx.c: Likewise.
693         * config/tilepro/mul-tables.c: Likewise.
694         * config/tilepro/tilepro-c.c: Likewise.
695         * config/tilepro/tilepro.c: Likewise.
696         * config/v850/v850-c.c: Likewise.
697         * config/v850/v850.c: Likewise.
698         * config/vax/vax.c: Likewise.
699         * config/visium/visium.c: Likewise.
700         * config/vms/vms-c.c: Likewise.
701         * config/vms/vms.c: Likewise.
702         * config/vxworks.c: Likewise.
703         * config/winnt-c.c: Likewise.
704         * config/xtensa/xtensa.c: Likewise.
705         * common/config/bfin/bfin-common.c: Likewise.
707 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
709         * tree.h (tree_code_for_canonical_type_merging): New function.
710         * tree.c (gimple_canonical_types_compatible_p): Use
711         tree_code_for_canonical_type_merging..
713 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
715         PR c++/66192
716         PR target/66200
717         * doc/tm.texi: Regenerate.
718         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
719         * target.def (TARGET_RELAXED_ORDERING): Likewise.
720         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
721         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
722         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
723         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
724         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
725         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
726         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
728 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
730         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
731         register fma steering pass.
732         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
733         AARCH64_TUNE_FMA_STEERING.
735 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
737         * tree.c (verify_type_variant): Verify that type and variant is
738         compatible.
739         (gimple_canonical_types_compatible_p): Look for main variants.
741 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
743         * config.gcc (powerpc*-*-*): Add support for a new configure
744         option --with-advance-toolchain=<xxx> which overrides using the
745         default header files, libraries and dynamic linker.
747         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
748         specs to support the configure --with-advance-toolchain=<xxx>
749         option.
750         (INCLUDE_EXTRA_SPEC): Likewise.
751         (LINK_OS_EXTRA_SPEC32): Likewise.
752         (LINK_OK_EXTRA_SPEC64): Likewise.
753         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
754         (DYNAMIC_LINKER_PREFIX): Likewise.
755         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
756         toolchain support.
757         (GLIBC_DYNAMIC_LINKER32): Likewise.
758         (GLIBC_DYNAMIC_LINKER64): Likewise.
759         (LINK_OS_LINUX_SPEC32): Likewise.
760         (LINK_OS_LINUX_SPEC64): Likewise.
762         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
763         configuration option.
765 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
767         PR target/66275
768         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
769         to determine current function ABI.
770         (ix86_function_value_regno_p): Ditto.
772 2015-06-03  Martin Liska  <mliska@suse.cz>
774         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
775         * bitmap.h (struct bitmap_usage): Likewise.
776         * ggc-common.c (struct ggc_usage): Likewise.
777         * mem-stats.h (struct mem_location): Likewise.
778         (struct mem_usage): Likewise.
779         * vec.c (struct vec_usage): Likewise.
781 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
783         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
784         -Bsymbolic.
786 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
788         * doc/plugins.texi (enum plugin_event): New event.
789         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
790         and PLUGIN_FINISH_FUNCTION.
791         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
792         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
794 2015-06-03  Richard Biener  <rguenther@suse.de>
796         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
797         compute GROUP_GAP for the first element.
798         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
799         on in-group gaps.
801 2015-06-03  Nick Clifton  <nickc@redhat.com>
803         * config/rl78/rl78-real.md: Add peepholes to avoid a register
804         copy when calling a function.
805         * config/rl78/rl78.c (need_to_save): Do not push the frame
806         pointer in an interrupt handler prologue if it is never used.
808 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
810         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
812 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
814         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
815         reference when cloning alias node.
817 2015-06-03  Martin Liska  <mliska@suse.cz>
819         * alloc-pool.h (struct pool_usage): Correct space padding.
820         * ggc-page.c (ggc_print_statistics): Align columns in a report.
821         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
822         * tree.c (dump_tree_statistics): Align columns in a report.
824 2015-06-03  Martin Liska  <mliska@suse.cz>
826         * alloc-pool.c (allocate_pool_descriptor): Remove.
827         (struct pool_output_info): Likewise.
828         (print_alloc_pool_statistics): Likewise.
829         (dump_alloc_pool_statistics): Likewise.
830         * alloc-pool.h (struct pool_usage): New struct.
831         (pool_allocator::initialize): Change usage of memory statistics
832         to a new interface.
833         (pool_allocator::release): Likewise.
834         (pool_allocator::allocate): Likewise.
835         (pool_allocator::remove): Likewise.
836         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
837         for a pool allocator.
838         * mem-stats.h (struct mem_location): Add new ctor.
839         (struct mem_usage): Add counter for number of
840         instances.
841         (mem_alloc_description::register_descriptor): New overload of
842         * mem-stats.h (mem_location::to_string): New function.
843         * bitmap.h (struct bitmap_usage): Use this new function.
844         * ggc-common.c (struct ggc_usage): Likewise.
845         the function.
847 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
849         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
850         of GCC_INSN_FLAGS_H block.
852 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
854         * explow.c (plus_constant): Update check after force_const_mem call
855         to see if the value returned is not a NULL_RTX.
857 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
859         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
860         remove instumentation thunks calling reachable functions.
861         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
862         * lto/lto-partition.c (privatize_symbol_name_1): New.
863         (privatize_symbol_name): Privatize both decl and orig_decl
864         names for instrumented functions.
865         * cgraph.c (cgraph_node::verify_node): Add transparent
866         alias chain check for instrumented node.
868 2015-06-03  Marek Polacek  <polacek@redhat.com>
870         PR c/64223
871         PR c/29358
872         * tree.c (attribute_value_equal): Handle attribute format.
873         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
875 2015-06-03  Richard Biener  <rguenther@suse.de>
877         PR tree-optimization/63916
878         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
879         Forward-propagate non-invariant addresses by splicing their
880         reference ops if the result isn't going to be used by PRE.
881         (vn_reference_lookup_3): Remove pointless assert.
883 2015-06-03  Richard Biener  <rguenther@suse.de>
885         PR tree-optimization/66375
886         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
887         add to the evolution before following SSA edges.
889 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
891         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
892         (dump_use, dump_cand, find_induction_variables): Pass new argument
893         to dump_iv.
894         (record_use): Preserve the ssa name information in IV.
896 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
898         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
899         NO_MODE_TEST.
900         (add_mode_tests): Don't add mode tests if the predicate only
901         accepts scalar constant integers.  Otherwise, allow the mode
902         of "op" to be VOIDmode if the predicate does accept such integers.
904 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
906         PR target/66258
907         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
908         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
909         (aarch64_secondary_reload): Likewise
910         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
911         to !TARGET_FLOAT.
912         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
913         Likewise.
915 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
916             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
918         PR target/65768
919         * cprop.c (try_replace_reg): Check cost of constants before propagating.
921 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
923         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
924         provide access to the IBM extended double floating point mode if
925         long double is IEEE 128-bit floating point.
926         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
927         point if long double is the IBM extended double type.
929         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
930         enable adding IEEE 128-bit floating point support.
931         (-mfloat128-software): Likewise.
932         (-mfloat128-sw): Likewise.
934         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
935         128-bit floating point types to occupy any register if
936         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
937         -mfloat128-software is enabled.
938         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
939         support.
940         (rs6000_option_override_internal): Add -mfloat128-* support.
941         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
943         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
944         and float128 type nodes.
945         (ieee128_float_type_node): Likewise.
946         (ibm128_float_type_node): Likewise.
948 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
950         PR target/66136
951         * config/aarch64/geniterators.sh: Rewrite in awk.
953 2015-06-02  Martin Liska  <mliska@suse.cz>
955         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
956         values to avoid -Wmaybe-uninitialized errors.
958 2015-06-02  Richard Biener  <rguenther@suse.de>
960         PR debug/65549
961         * dwarf2out.c (lookup_context_die): New function.
962         (resolve_addr): Avoid forcing a full DIE for the
963         target of a DW_TAG_GNU_call_site during late compilation.
964         Instead create a stub DIE without a type if we have a
965         context DIE present.
967 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
969         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
971 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
973         PR tree-optimization/48052
974         * cfgloop.h (struct control_iv): New.
975         (struct loop): New field control_ivs.
976         * tree-ssa-loop-niter.c : Include "stor-layout.h".
977         (number_of_iterations_lt): Set no_overflow information.
978         (number_of_iterations_exit): Init control iv in niter struct.
979         (record_control_iv): New.
980         (estimate_numbers_of_iterations_loop): Call record_control_iv.
981         (loop_exits_before_overflow): New.  Interface factored out of
982         scev_probably_wraps_p.
983         (scev_probably_wraps_p): Factor loop niter related code into
984         loop_exits_before_overflow.
985         (free_numbers_of_iterations_estimates_loop): Free control ivs.
986         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
988 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
990         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
991         the target doesn't belong to the current function.
993 2015-06-02  Marek Polacek  <polacek@redhat.com>
995         PR middle-end/66345
996         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
997         get_maxval_strlen does not produce an INTEGER_CST.
999 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
1001         * config/arc/constraints.md: Use lower-case names in match_code.
1002         * config/mmix/constraints.md: Likewise.
1004 2015-06-02  Richard Biener  <rguenther@suse.de>
1006         PR tree-optimization/65961
1007         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
1008         check and clarify dump message.
1009         (vect_build_slp_tree): If all children are built up from scalars
1010         build up the parent from scalars instead.
1011         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
1013 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1015         PR other/65366
1016         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
1017         instead of print ... .
1019 2015-06-02  Alan Modra  <amodra@gmail.com>
1021         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
1022         2014-08-11 change.
1024 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
1026         PR tree-optimization/52563
1027         PR tree-optimization/62173
1028         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
1029         (alloc_iv, set_iv): New parameter.
1030         (determine_biv_step): Delete.
1031         (find_bivs): Inline original determine_biv_step.  Pass new
1032         argument to set_iv.
1033         (idx_find_step): Use no_overflow information for conversion.
1034         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
1035         resolve_mixers handle folded_casts.
1036         (instantiate_scev_name): Change bool parameter to bool pointer.
1037         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
1038         (instantiate_array_ref, instantiate_scev_not): Ditto.
1039         (instantiate_scev_3, instantiate_scev_2): Ditto.
1040         (instantiate_scev_1, instantiate_scev_r): Ditto.
1041         (instantiate_scev_convert, ): Change parameter.  Pass argument
1042         to chrec_convert_aggressive.
1043         (instantiate_scev): Change argument.
1044         (resolve_mixers): New parameter and set it.
1045         (scev_const_prop): New argument.
1046         * tree-scalar-evolution.h (resolve_mixers): New parameter.
1047         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
1048         of chrec_conert_1.
1049         (chrec_convert): New parameter.  Move definition below.
1050         (chrec_convert_aggressive): New parameter and set it.  Call
1051         convert_affine_scev.
1052         * tree-chrec.h (chrec_convert): New parameter.
1053         (chrec_convert_aggressive): Ditto.
1055 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1057         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
1058         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
1059         the LHS of a no-return call if its type has variable size.
1060         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1061         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
1063 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
1065         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
1066         * config.in: Regenerate.
1068 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
1070         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1071         consecutive accesses within outer-loop with force_vectorize
1072         for references with zero step in inner-loop.
1074 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
1076         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
1077         rather than from gcc/build directory.
1079 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
1081         PR target/65697
1082         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
1083         for __sync memory models, emit initial loads and final barriers as
1084         appropriate.
1086 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
1088         PR target/65697
1089         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
1090         (aarch64_split_atomic_op): Check for __sync memory models, emit
1091         appropriate initial loads and final barriers.
1093 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
1095         * Makefile.in: Fix gcov dependencies that should
1096         not point to a build folder.
1098 2015-06-01  Richard Biener  <rguenther@suse.de>
1100         Revert
1101         2015-05-29  Richard Biener  <rguenther@suse.de>
1103         PR tree-optimization/66314
1104         * tree-ssa-threadupdate.c (create_block_for_threading): Add
1105         parameter that says which loop the new block belongs to.
1106         (ssa_create_duplicates): Blocks duplicated for the threaded
1107         path belong to the loop of the thread destination.
1109 2015-06-01  Martin Liska  <mliska@suse.cz>
1111         * sched-deps.c: Include pool-alloc.h before
1112         cselib.h header file is included.
1114 2015-06-01  Richard Biener  <rguenther@suse.de>
1116         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
1117         functions.
1119 2015-06-01  Martin Liska  <mliska@suse.cz>
1121         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
1122         a function local variable.
1124 2015-06-01  Martin Liska  <mliska@suse.cz>
1126         * alloc-pool.c (create_alloc_pool): Remove.
1127         (empty_alloc_pool): Likewise.
1128         (free_alloc_pool): Likewise.
1129         (free_alloc_pool_if_empty): Likewise.
1130         (pool_alloc): Likewise.
1131         (pool_free): Likewise.
1132         * alloc-pool.h: Remove old declarations.
1134 2015-06-01  Martin Liska  <mliska@suse.cz>
1136         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
1137         (ira_create_object): Likewise.
1138         (ira_create_allocno): Likewise.
1139         (ira_create_live_range): Likewise.
1140         (copy_live_range): Likewise.
1141         (ira_finish_live_range): Likewise.
1142         (ira_free_allocno_costs): Likewise.
1143         (finish_allocno): Likewise.
1144         (finish_allocnos): Likewise.
1145         (initiate_prefs): Likewise.
1146         (ira_create_pref): Likewise.
1147         (finish_pref): Likewise.
1148         (finish_prefs): Likewise.
1149         (initiate_copies): Likewise.
1150         (ira_create_copy): Likewise.
1151         (finish_copy): Likewise.
1152         (finish_copies): Likewise.
1153         (finish_prefs): Likewise.
1155 2015-06-01  Martin Liska  <mliska@suse.cz>
1157         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
1158         (allocate_and_init_ipcp_value): Likewise.
1159         (ipcp_lattice::add_value): Likewise.
1160         (merge_agg_lats_step): Likewise.
1161         (ipcp_driver): Likewise.
1162         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
1163         (ipa_free_all_structures_after_iinln): Likewise.
1164         * ipa-prop.h: Likewise.
1166 2015-06-01  Martin Liska  <mliska@suse.cz>
1168         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
1169         pool allocator.
1170         (set_hint_predicate): Likewise.
1171         (inline_summary_alloc): Likewise.
1172         (reset_inline_edge_summary): Likewise.
1173         (reset_inline_summary): Likewise.
1174         (set_cond_stmt_execution_predicate): Likewise.
1175         (set_switch_stmt_execution_predicate): Likewise.
1176         (compute_bb_predicates): Likewise.
1177         (estimate_function_body_sizes): Likewise.
1178         (inline_free_summary): Likewise.
1180 2015-06-01  Martin Liska  <mliska@suse.cz>
1182         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
1183         (ipa_edge_duplication_hook): Likewise.
1184         (ipa_free_all_structures_after_ipa_cp): Likewise.
1185         (ipa_free_all_structures_after_iinln): Likewise.
1187 2015-06-01  Martin Liska  <mliska@suse.cz>
1189         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
1190         (ipa_profile_generate_summary): Likewise.
1191         (ipa_profile_read_summary): Likewise.
1192         (ipa_profile): Likewise.
1194 2015-06-01  Martin Liska  <mliska@suse.cz>
1196         * tree-ssa-structalias.c (new_var_info): Use new type-based
1197         pool allocator.
1198         (new_constraint): Likewise.
1199         (init_alias_vars): Likewise.
1200         (delete_points_to_sets): Likewise.
1202 2015-06-01  Martin Liska  <mliska@suse.cz>
1204         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
1205         (free_strinfo): Likewise.
1206         (pass_strlen::execute): Likewise.
1208 2015-06-01  Martin Liska  <mliska@suse.cz>
1210         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
1211         pool allocator.
1212         (vn_reference_insert_pieces): Likewise.
1213         (vn_phi_insert): Likewise.
1214         (visit_reference_op_call): Likewise.
1215         (copy_phi): Likewise.
1216         (copy_reference): Likewise.
1217         (process_scc): Likewise.
1218         (allocate_vn_table): Likewise.
1219         (free_vn_table): Likewise.
1221 2015-06-01  Martin Liska  <mliska@suse.cz>
1223         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
1224         pool allocator.
1225         (add_repeat_to_ops_vec): Likewise.
1226         (get_ops): Likewise.
1227         (maybe_optimize_range_tests): Likewise.
1228         (init_reassoc): Likewise.
1229         (fini_reassoc): Likewise.
1231 2015-06-01  Martin Liska  <mliska@suse.cz>
1233         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
1234         pool allocator.
1235         (bitmap_set_new): Likewise.
1236         (get_or_alloc_expr_for_constant): Likewise.
1237         (get_or_alloc_expr_for): Likewise.
1238         (phi_translate_1): Likewise.
1239         (compute_avail): Likewise.
1240         (init_pre): Likewise.
1241         (fini_pre): Likewise.
1243 2015-06-01  Martin Liska  <mliska@suse.cz>
1245         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
1246         (delete_dep_node): Likewise.
1247         (create_deps_list): Likewise.
1248         (free_deps_list): Likewise.
1249         (sched_deps_init): Likewise.
1250         (sched_deps_finish): Likewise.
1252 2015-06-01  Martin Liska  <mliska@suse.cz>
1254         * regcprop.c (free_debug_insn_changes): Use new type-based
1255         pool allocator.
1256         (replace_oldest_value_reg): Likewise.
1257         (pass_cprop_hardreg::execute): Likewise.
1259 2015-06-01  Martin Liska  <mliska@suse.cz>
1261         * ira-build.c (initiate_cost_vectors): Use new type-based
1262         pool allocator.
1263         (ira_allocate_cost_vector): Likewise.
1264         (ira_free_cost_vector): Likewise.
1265         (finish_cost_vectors): Likewise.
1267 2015-06-01  Martin Liska  <mliska@suse.cz>
1269         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
1270         pool allocator.
1271         (free_sched_pools): Likewise.
1272         * sel-sched-ir.h (_list_alloc): Likewise.
1273         (_list_remove): Likewise.
1275 2015-06-01  Martin Liska  <mliska@suse.cz>
1277         * stmt.c (add_case_node): Use new type-based pool allocator.
1278         (expand_case): Likewise.
1279         (expand_sjlj_dispatch_table): Likewise.
1281 2015-06-01  Martin Liska  <mliska@suse.cz>
1283         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
1284         (free_bb): Likewise.
1285         (pass_cse_reciprocals::execute): Likewise.
1287 2015-06-01  Martin Liska  <mliska@suse.cz>
1289         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
1290         (sra_deinitialize) Likewise.
1291         (create_access_1) Likewise.
1292         (build_accesses_from_assign) Likewise.
1293         (create_artificial_child_access) Likewise.
1295 2015-06-01  Martin Liska  <mliska@suse.cz>
1297         * dse.c (get_group_info):Use new type-based pool allocator.
1298         (dse_step0) Likewise.
1299         (free_store_info) Likewise.
1300         (delete_dead_store_insn) Likewise.
1301         (free_read_records) Likewise.
1302         (record_store) Likewise.
1303         (replace_read) Likewise.
1304         (check_mem_read_rtx) Likewise.
1305         (scan_insn) Likewise.
1306         (dse_step1) Likewise.
1307         (dse_step7) Likewise.
1309 2015-06-01  Martin Liska  <mliska@suse.cz>
1311         * df-scan.c (struct df_scan_problem_data):Use new type-based
1312         pool allocator.
1313         (df_scan_free_internal) Likewise.
1314         (df_scan_alloc) Likewise.
1315         (df_grow_reg_info) Likewise.
1316         (df_free_ref) Likewise.
1317         (df_insn_create_insn_record) Likewise.
1318         (df_mw_hardreg_chain_delete) Likewise.
1319         (df_insn_info_delete) Likewise.
1320         (df_free_collection_rec) Likewise.
1321         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
1322         (df_sort_and_compress_mws) Likewise.
1323         (df_ref_create_structure) Likewise.
1324         (df_ref_record) Likewise.
1326 2015-06-01  Martin Liska  <mliska@suse.cz>
1328         * df-problems.c (df_chain_create):Use new type-based pool allocator.
1329         (df_chain_unlink_1) Likewise.
1330         (df_chain_unlink) Likewise.
1331         (df_chain_remove_problem) Likewise.
1332         (df_chain_alloc) Likewise.
1333         (df_chain_free) Likewise.
1334         * df.h (struct dataflow) Likewise.
1336 2015-06-01  Martin Liska  <mliska@suse.cz>
1338         * cselib.c (new_elt_list):Use new type-based pool allocator.
1339         (new_elt_loc_list) Likewise.
1340         (unchain_one_elt_list) Likewise.
1341         (unchain_one_elt_loc_list) Likewise.
1342         (unchain_one_value) Likewise.
1343         (new_cselib_val) Likewise.
1344         (cselib_init) Likewise.
1345         (cselib_finish) Likewise.
1347 2015-06-01  Martin Liska  <mliska@suse.cz>
1349         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
1350         (sh_reorg) Likewise.
1352 2015-06-01  Martin Liska  <mliska@suse.cz>
1354         * cfg.c (initialize_original_copy_tables):Use new type-based
1355         pool allocator.
1356         (free_original_copy_tables) Likewise.
1357         (copy_original_table_clear) Likewise.
1358         (copy_original_table_set) Likewise.
1360 2015-06-01  Martin Liska  <mliska@suse.cz>
1362         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
1363         pool allocator.
1364         (asan_mem_ref_new) Likewise.
1365         (free_mem_ref_resources) Likewise.
1367 2015-06-01  Martin Liska  <mliska@suse.cz>
1369         * var-tracking.c (variable_htab_free):Use new type-based
1370         pool allocator.
1371         (attrs_list_clear) Likewise.
1372         (attrs_list_insert) Likewise.
1373         (attrs_list_copy) Likewise.
1374         (shared_hash_unshare) Likewise.
1375         (shared_hash_destroy) Likewise.
1376         (unshare_variable) Likewise.
1377         (var_reg_delete_and_set) Likewise.
1378         (var_reg_delete) Likewise.
1379         (var_regno_delete) Likewise.
1380         (drop_overlapping_mem_locs) Likewise.
1381         (variable_union) Likewise.
1382         (insert_into_intersection) Likewise.
1383         (canonicalize_values_star) Likewise.
1384         (variable_merge_over_cur) Likewise.
1385         (dataflow_set_merge) Likewise.
1386         (remove_duplicate_values) Likewise.
1387         (variable_post_merge_new_vals) Likewise.
1388         (dataflow_set_preserve_mem_locs) Likewise.
1389         (dataflow_set_remove_mem_locs) Likewise.
1390         (variable_from_dropped) Likewise.
1391         (variable_was_changed) Likewise.
1392         (set_slot_part) Likewise.
1393         (clobber_slot_part) Likewise.
1394         (delete_slot_part) Likewise.
1395         (loc_exp_insert_dep) Likewise.
1396         (notify_dependents_of_changed_value) Likewise.
1397         (emit_notes_for_differences_1) Likewise.
1398         (vt_emit_notes) Likewise.
1399         (vt_initialize) Likewise.
1400         (vt_finalize) Likewise.
1402 2015-06-01  Martin Liska  <mliska@suse.cz>
1404         * ira-color.c (init_update_cost_records):Use new type-based
1405         pool allocator.
1406         (get_update_cost_record) Likewise.
1407         (free_update_cost_record_list) Likewise.
1408         (finish_update_cost_records) Likewise.
1409         (initiate_cost_update) Likewise.
1411 2015-06-01  Martin Liska  <mliska@suse.cz>
1413         * lra.c (init_insn_regs): Use new type-based pool allocator.
1414         (new_insn_reg) Likewise.
1415         (free_insn_reg) Likewise.
1416         (free_insn_regs) Likewise.
1417         (finish_insn_regs) Likewise.
1418         (init_insn_recog_data) Likewise.
1419         (init_reg_info) Likewise.
1420         (finish_reg_info) Likewise.
1421         (lra_free_copies) Likewise.
1422         (lra_create_copy) Likewise.
1423         (invalidate_insn_data_regno_info) Likewise.
1425 2015-06-01  Martin Liska  <mliska@suse.cz>
1427         * lra-lives.c (free_live_range): Use new type-based pool allocator.
1428         (free_live_range_list) Likewise.
1429         (create_live_range) Likewise.
1430         (copy_live_range) Likewise.
1431         (lra_merge_live_ranges) Likewise.
1432         (remove_some_program_points_and_update_live_ranges) Likewise.
1433         (lra_live_ranges_init) Likewise.
1434         (lra_live_ranges_finish) Likewise.
1436 2015-06-01  Martin Liska  <mliska@suse.cz>
1438         * et-forest.c (et_new_occ): Use new type-based pool allocator.
1439         (et_new_tree): Likewise.
1440         (et_free_tree): Likewise.
1441         (et_free_tree_force): Likewise.
1442         (et_free_pools): Likewise.
1443         (et_split): Likewise.
1445 2015-06-01  Martin Liska  <mliska@suse.cz>
1447         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
1448         to header file.
1449         * alloc-pool.h (pool_allocator::pool_allocator): New function.
1450         (pool_allocator::release): Likewise.
1451         (inline pool_allocator::release_if_empty): Likewise.
1452         (inline pool_allocator::~pool_allocator): Likewise.
1453         (pool_allocator::allocate): Likewise.
1454         (pool_allocator::remove): Likewise.
1456 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
1458         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
1459         in comment.
1461 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
1463         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
1464         to fusible_ops.
1465         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
1466         (arm_macro_fusion_p): Likewise.
1467         (arm_macro_fusion_pair_p): Likewise.
1469 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
1471         * config/aarch64/aarch64-protos.h (tune_params): Rename
1472         fuseable_ops to fusible_ops.
1473         * config/aarch64/aarch64.c (generic_tunings): Rename
1474         fuseable_ops to fusible_ops.
1475         (cortexa53_tunings): Likewise.
1476         (cortexa57_tunings): Likewise.
1477         (thunderx_tunings): Likewise.
1478         (xgene1_tunings): Likewise.
1479         (aarch64_macro_fusion_p): Likewise.
1480         (aarch64_macro_fusion_pair_p): Likewise.
1482 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1484         * config/s390/driver-native.c: New file.
1485         * config/s390/x-native: New file.
1486         * config.host: Add new files for s390.
1487         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
1488         and -march=native
1489         * config.gcc: Likewise.
1490         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
1491         * config/s390/s390-opts.h (enum processor_type): Ditto.
1492         * config/s390/s390.c (s390_option_override): Catch unhandled
1493         PROCESSOR_NATIVE
1495 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
1497         PR target/65527
1498         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
1499         redirection for instrumented calls.
1500         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
1501         (append_compiler_options): Append -fcheck-pointer-bounds.
1502         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
1503         (chkp_redirect_edge): New.
1504         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
1505         (chkp_redirect_edge): New.
1507 2015-06-01  Richard Biener  <rguenther@suse.de>
1509         PR tree-optimization/66280
1510         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
1511         def-use walking.
1513 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1515         * config/aarch64/aarch64.md
1516         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
1517         logic_shift_imm.
1519 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1521         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
1522         Remove obsolete kludge.
1524 2015-06-01  Richard Biener  <rguenther@suse.de>
1526         * tree-ssa-reassoc.c (get_rank): Simplify.
1528 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
1530         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
1531         * configure: Regenerated.
1533 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
1535         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
1536         issue (add space between string literal and macro).
1537         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
1539 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1541         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
1542         implict or explicit -fPIE or -fpie.
1544 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
1546         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
1548 2015-05-28  DJ Delorie  <dj@redhat.com>
1550         * expmed.c (extract_bit_field_1): Avoid clobbering a
1551         yet-to-be-used base/index register.
1553 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
1555         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
1556         (alias_stats): Add num_universal.
1557         (alias_set_subset_of): Special case pointers; be ready for NULL
1558         children.
1559         (alias_sets_conflict_p): Special case pointers; be ready for NULL
1560         children.
1561         (init_alias_set_entry): Break out from ...
1562         (record_alias_subset): ... here; propagate new fields;
1563         allocate children only when really needed.
1564         (get_alias_set): Do less generous pointer globbing.
1565         (dump_alias_stats_in_alias_c): Update statistics.
1567 2015-05-30  Alan Modra  <amodra@gmail.com>
1569         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
1570         correct block for use of r12.
1571         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
1573 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1575         PR target/66215
1576         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
1577         with -mhotpatch=.
1579 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
1581         PR tree-optimization/66142
1582         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
1583         virtual phis that feed themselves.
1585 2015-05-29  Richard Biener  <rguenther@suse.de>
1587         PR tree-optimization/66314
1588         * tree-ssa-threadupdate.c (create_block_for_threading): Add
1589         parameter that says which loop the new block belongs to.
1590         (ssa_create_duplicates): Blocks duplicated for the threaded
1591         path belong to the loop of the thread destination.
1593 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1595         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
1596         to cleanup-saved-temps.
1597         * doc/sourcebuild.texi (Clean up generated test files): Expand
1598         introduction.
1599         (dg-keep-saved-temps): Document new proc.
1600         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
1601         cleanup-saved-temps): Remove.
1603 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
1605         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
1606         gcc_AC_CHECK_DECLS.
1607         * configure: Regenerate.
1609 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1611         * config/nios2/linux.h (CPP_SPEC): Define.
1613 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1615         * config/microblaze/linux.h (CPP_SPEC): Define.
1617 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1619         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
1620         -pthread is specified.
1622 2015-05-28  Richard Biener  <rguenther@suse.de>
1624         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
1625         (vect_fixup_scalar_cycles_with_patterns): Likewise.
1626         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
1627         after pattern recog.
1628         (vect_create_epilog_for_reduction): Properly handle reductions
1629         with patterns.
1630         (vectorizable_reduction): Likewise.
1631         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
1632         reduction chains.
1633         (vect_get_constant_vectors): Create the correct number of
1634         initial values for reductions.
1635         (vect_schedule_slp_instance): Handle reduction chains that are
1636         type changing properly.
1637         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
1639 2015-05-28  Richard Biener  <rguenther@suse.de>
1641         PR tree-optimization/66142
1642         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
1643         values better in memcpy destination handling.  Handle non-aliasing
1644         we discover here.
1646 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
1648         PR target/63810
1649         * config/darwin-c.c (version_components): New global enum.
1650         (parse_version, version_as_legacy_macro)
1651         (version_as_modern_macro, macosx_version_as_macro): New functions.
1652         (version_as_macro): Remove.
1653         (darwin_cpp_builtins): Use new function.
1655 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
1657         * builtins.c (expand_builtin_acc_on_device): Mark parameters
1658         with ATTRIBUTE_UNUSED.
1660 2015-05-28  Julian Brown  <julian@codesourcery.com>
1662         PR libgomp/65742
1664         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
1665         sequence for !ACCEL_COMPILER.
1667 2015-05-28  Nick Clifton  <nickc@redhat.com>
1669         * config/rx/rx.c (push_regs): New function.  Extracts code from...
1670         (rx_expand_prologue): ... here.  Use push_regs to push even small
1671         spans of registers.
1672         (pop_regs): New function.
1673         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
1674         registers.
1676 2015-05-28  Richard Biener  <rguenther@suse.de>
1678         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
1679         member.
1680         (SLP_INSTANCE_BODY_COST_VEC): Remove.
1681         (vect_update_slp_costs_according_to_vf): Likewise.
1682         (vect_slp_analyze_operations): Update prototype.
1683         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
1684         vect_update_slp_costs_according_to_vf, adjust.
1685         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
1686         (vect_analyze_slp_cost_1): Likewise.
1687         (vect_analyze_slp_cost): Likewise.  Properly deal with
1688         widening reduction ops.  Commit body costs.
1689         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
1690         cost for loops from here.
1691         (vect_slp_analyze_operations): But do it from here when
1692         the vectorization factor is known and stmts are analyzed.
1693         (vect_bb_vectorization_profitable_p): Simplify.
1694         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
1695         (vect_update_slp_costs_according_to_vf): Remove.
1697 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
1698             H.J. Lu  <hongjiu.lu@intel.com>
1700         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
1701         (BUILD_CFLAGS): Likewise.
1702         (BUILD_CXXFLAGS): Likewise.
1703         (LINKER): Add @NO_PIE_FLAG@.
1704         (BUILD_LDFLAGS): Likewise.
1705         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
1706         --enable-default-pie.
1707         * common.opt (fPIE): Initialize to -1.
1708         (fpie): Likewise.
1709         (no-pie): New option.
1710         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
1711         * configure.ac: Add --enable-default-pie.
1712         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
1713         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
1714         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
1715         * gcc.c (NO_PIE_SPEC): New.
1716         (PIE_SPEC): Likewise.
1717         (NO_FPIE1_SPEC): Likewise.
1718         (FPIE1_SPEC): Likewise.
1719         (NO_FPIE2_SPEC): Likewise.
1720         (FPIE2_SPEC): Likewise.
1721         (NO_FPIE2_SPEC): Likewise.
1722         (FPIE_SPEC): Likewise.
1723         (NO_FPIE_SPEC): Likewise.
1724         (NO_FPIC1_SPEC): Likewise.
1725         (FPIC1_SPEC): Likewise.
1726         (NO_FPIC2_SPEC): Likewise.
1727         (FPIC2_SPEC): Likewise.
1728         (NO_FPIC2_SPEC): Likewise.
1729         (FPIC_SPEC): Likewise.
1730         (NO_FPIC_SPEC): Likewise.
1731         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
1732         (FPIE1_OR_FPIC1_SPEC): Likewise.
1733         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
1734         (FPIE2_OR_FPIC2_SPEC): Likewise.
1735         (NO_FPIE_AND_FPIC_SPEC): Likewise.
1736         (FPIE_OR_FPIC_SPEC): Likewise.
1737         (LD_PIE_SPEC): Likewise.
1738         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
1739         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
1740         * config/darwin.h (PIE_SPEC): Renamed to ...
1741         (DARWIN_PIE_SPEC): This.
1742         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
1743         * config/darwin9.h (PIE_SPEC): Renamed to ...
1744         (DARWIN_PIE_SPEC): This.
1745         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
1746         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
1747         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
1748         FPIE2_OR_FPIC2_SPEC.
1749         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
1750         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
1751         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
1752         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
1753         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
1754         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
1755         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
1756         * config/m32r/m32r.h (ASM_SPEC): Likewise.
1757         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
1758         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1759         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
1760         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
1761         * config/sparc/linux.h (ASM_SPEC): Likewise.
1762         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1763         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
1764         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
1765         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1766         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1767         * config/sparc/sparc.h (ASM_SPEC): Likewise.
1768         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1769         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
1770         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
1771         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
1772         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
1773         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
1774         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
1775         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
1776         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
1777         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
1778         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
1779         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
1780         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1781         * config/vax/linux.h (ASM_SPEC): Likewise.
1782         * doc/install.texi: Document --enable-default-pie.
1783         * doc/invoke.texi: Document -no-pie.
1784         * config.in: Regenerated.
1785         * configure: Likewise.
1787 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1789         PR rtl-optimization/66168
1790         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
1791         can_move_invariant_reg.
1793 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
1795         PR target/66148
1796         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
1797         REG_EQUAL note when doing insert.
1799         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
1800         instead of "%d" for 'o' operand.
1802 2015-05-27  Nathan Sidwell  <nathan@acm.org>
1804         PR c++/66270
1805         * tree.c (build_pointer_type_for_mode): Canonical type does not
1806         inherit can_alias_all.
1807         (build_reference_type_for_mode): Likewise.
1809 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1811         * expr.h (array_at_struct_end_p): Move to...
1812         (array_ref_element_size): Likewise.
1813         (component_ref_field_offset): Likewise.
1814         * tree.h (array_ref_element_size): ...here.
1815         (array_at_struct_end_p): Likewise.
1816         (component_ref_field_offset): Likewise.
1817         * expr.c (array_ref_element_size): Move to...
1818         (array_ref_low_bound): Likewise.
1819         (array_at_struct_end_p): Likewise.
1820         (array_ref_up_bound): Likewise.
1821         (component_ref_field_offset): Likewise.
1822         * tree.c (array_ref_element_size): ...here.
1823         (array_ref_low_bound): Likewise.
1824         (array_ref_up_bound): Likewise.
1825         (array_at_struct_end_p): Likewise.
1826         (component_ref_field_offset): Likewise.
1828 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
1829             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1831         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
1833 2015-05-27  Jason Merrill  <jason@redhat.com>
1835         PR bootstrap/66304
1836         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
1837         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
1838         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
1840 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
1842         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
1843         is true.
1845         * statistics.c (statistics_fini_pass): Print pass name.
1847 2015-05-27  Richard Biener  <rguenther@suse.de>
1849         PR tree-optimization/66272
1850         Revert parts of
1851         2014-08-15  Richard Biener  <rguenther@suse.de>
1853         PR tree-optimization/62031
1854         * tree-data-ref.c (dr_analyze_indices): Do not set
1855         DR_UNCONSTRAINED_BASE.
1856         (dr_may_alias_p): All indirect accesses have to go the
1857         formerly DR_UNCONSTRAINED_BASE path.
1858         * tree-data-ref.h (struct indices): Remove
1859         unconstrained_base member.
1860         (DR_UNCONSTRAINED_BASE): Remove.
1862 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
1864         * dwarf2out.c: Remove block_map.
1865         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
1866         (gen_lexical_block_die): Same.
1867         (dwarf2out_function_decl): Remove block_map use.
1868         (dwarf2out_c_finalize): Same.
1869         * tree-core.h (struct tree_block): Add die field.
1870         * tree.h (BLOCK_DIE): New.
1872 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1874         PR target/65358
1875         * expr.c (memory_load_overlap): New function.
1876         (emit_push_insn): When pushing partial args to the stack would
1877         clobber the register part load the overlapping part into a pseudo
1878         and put it into the hard reg after pushing.  Change return type
1879         to bool.  Add bool argument.
1880         * expr.h (emit_push_insn): Change return type to bool.
1881         Add bool argument.
1882         * calls.c (expand_call): Cancel sibcall optimization when encountering
1883         partial argument on targets with ARGS_GROW_DOWNWARD and
1884         !STACK_GROWS_DOWNWARD.
1885         (emit_library_call_value_1): Update callsite of emit_push_insn.
1886         (store_one_arg): Likewise.
1888 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
1890         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
1892 2015-05-27  Martin Liska  <mliska@suse.cz>
1894         * Makefile.in: Add additional dependencies related to memory report
1895         enhancement.
1896         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
1897         * bitmap.c (struct bitmap_descriptor_d): Remove.
1898         (struct loc): Likewise.
1899         (struct bitmap_desc_hasher): Likewise.
1900         (bitmap_desc_hasher::hash): Likewise.
1901         (bitmap_desc_hasher::equal): Likewise.
1902         (get_bitmap_descriptor): Likewise.
1903         (bitmap_register): User new memory descriptor API.
1904         (register_overhead): Likewise.
1905         (bitmap_find_bit): Register nsearches and search_iter statistics.
1906         (struct bitmap_output_info): Remove.
1907         (print_statistics): Likewise.
1908         (dump_bitmap_statistics): Use new memory descriptor.
1909         * bitmap.h (struct bitmap_usage): New class.
1910         * genmatch.c: Extend header file inclusion.
1911         * genpreds.c: Likewise.
1912         * ggc-common.c (struct ggc_usage): New class.
1913         (struct ggc_loc_desc_hasher): Remove.
1914         (ggc_loc_desc_hasher::hash): Likewise.
1915         (ggc_loc_desc_hasher::equal): Likewise.
1916         (struct ggc_ptr_hash_entry): Likewise.
1917         (struct ptr_hash_hasher): Likewise.
1918         (ptr_hash_hasher::hash): Likewise.
1919         (ptr_hash_hasher::equal): Likewise.
1920         (make_loc_descriptor): Likewise.
1921         (ggc_prune_ptr): Likewise.
1922         (dump_ggc_loc_statistics): Use new memory descriptor.
1923         (ggc_record_overhead): Likewise.
1924         (ggc_free_overhead): Likewise.
1925         (final_cmp_statistic): Remove.
1926         (cmp_statistic): Likewise.
1927         (ggc_add_statistics): Liekwise.
1928         (ggc_prune_overhead_list): Likewise.
1929         * hash-map-traits.h: New file.
1930         * hash-map.h (struct default_hashmap_traits): Move the traits to a
1931         separate header file.
1932         * hash-set.h: Pass memory statistics info to ctor.
1933         * hash-table.c (void dump_hash_table_loc_statistics): New function.
1934         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
1935         (hash_table::~hash_table): Register memory release operation.
1936         (hash_table::alloc_entries): Handle memory allocation operation.
1937         (hash_table::expand): Likewise.
1938         * inchash.c (iterative_hash_hashval_t): Move implementation to header
1939         file.
1940         (iterative_hash_host_wide_int): Likewise.
1941         * inchash.h (class hash): Likewise.
1942         * mem-stats-traits.h: New file.
1943         * mem-stats.h: New file.
1944         (mem_location): Add new class.
1945         (mem_usage): Likewise.
1946         (mem_alloc_description): Likewise.
1947         * sese.c: Add new header file inclusision.
1948         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
1949         and hash_set.
1950         * tree-sra.c: Add new header file inclusision.
1951         * vec.c (struct vec_descriptor): Remove.
1952         (hash_descriptor): Likewise.
1953         (struct vec_usage): Likewise.
1954         (struct ptr_hash_entry): Likewise.
1955         (hash_ptr): Likewise.
1956         (eq_ptr): Likewise.
1957         (vec_prefix::register_overhead): Use new memory descriptor API.
1958         (vec_prefix::release_overhead): Likewise.
1959         (add_statistics): Remove.
1960         (dump_vec_loc_statistics): Use new memory descriptor API.
1961         * vec.h (struct vec_prefix): Likewise.
1962         (va_heap::reserve): Likewise.
1963         (va_heap::release): Likewise.
1964         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
1966 2015-05-27  Richard Biener  <rguenther@suse.de>
1968         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
1969         earlier and remove ??? comment.
1970         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
1971         and got called from loop analysis bail out.  Always pass the SLP
1972         node to the vectorizable_* functions.
1973         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
1974         the premature SLP check here.
1975         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
1976         detected SLP stmts.
1977         (vect_detect_hybrid_slp_1): Likewise.
1979 2015-05-26  Jeff Law  <law@redhat.com>
1981         * combine.c (find_split_point): Verify that the shift count is a
1982         constant when choosing (plus (ashift ...)) as a split point.
1984         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
1985         No functional changes.
1987 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
1989         * ipa-polymorphic-call.c
1990         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
1991         case when call target is already known.
1993 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
1995         PR target/65979
1996         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
1997         take into account the case that operands[1] and operands[2]
1998         are the same register.
2000 2015-05-26  Michael Matz  <matz@suse.de>
2002         PR middle-end/66251
2004         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
2005         stores.
2006         (vect_create_vectorized_demotion_stmts): Always set
2007         STMT_VINFO_VEC_STMT, also with SLP.
2008         (vectorizable_store): Handle strided group stores.
2010 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2012         PR target/66049
2013         * config/aarch64/aarch64.md
2014         (*adds_shift_imm_<mode>):  New pattern.
2015         (*subs_shift_imm_<mode>):  Likewise.
2016         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
2017         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
2018         (*add_uxt<mode>_shift2): Likewise.
2019         (*add_uxtsi_shift2_uxtw): Likewise.
2020         (*sub_uxt<mode>_shift2): Likewise.
2021         (*sub_uxtsi_shift2_uxtw): Likewise.
2023 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
2025         * config/rs6000/constraints.md (Y, U): Use match_test.
2027 2015-05-26  Christian Bruel  <christian.bruel@st.com>
2029         PR target/52144
2030         * config/arm/arm.c (arm_option_check_internal)
2031         (arm_option_params_internal): Check opts->target_flags to set macros.
2032         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
2033         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
2034         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
2035         (builtin_define): Replaced with def_or_undef_macro.
2036         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
2037         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
2038         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
2039         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
2040         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
2041         (TARGET_ARM_FEATURE_LDREX_P)
2042         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
2043         * config/arm/arm-c.c (def_or_undef_macro): New function.
2044         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
2046 2015-05-26  Christian Bruel  <christian.bruel@st.com>
2048         * c-common.h (builtin_define_with_int_value)
2049         (builtin_define_type_sizeof): Declare.
2050         * c-cppbuiltin.c (builtin_define_with_int_value)
2051         (builtin_define_type_sizeof): Externalize.
2052         (builtin_define_std): Cleanup declaration.
2053         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
2054         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
2055         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
2056         (builtin_define, builtin_assert): New macros.
2058 2015-05-26  Richard Biener  <rguenther@suse.de>
2060         PR tree-optimization/66142
2061         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
2062         MEM_REFs for the same base address.
2064 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2066         PR ipa/66181
2067         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
2069 2015-05-26  Jason Merrill  <jason@redhat.com>
2071         * configure.ac: Set CXXFLAGS for ISL test.
2072         * configure: Regenerate.
2074         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
2075         strstr and basename.
2076         * configure: Regenerate.
2078 2015-05-26  Richard Biener  <rguenther@suse.de>
2080         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
2081         X % C -> X & (C - 1) for C being a power-of two to ...
2082         * match.pd: ... patterns.
2084 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
2086         * match.pd (swapped_tcc_comparison): New operator list.
2087         (-A CMP -B): New simplification.
2088         * fold-const.c (fold_comparison): Remove corresponding code.
2090 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2092         * caller-save.c (init_caller_save): Base temporary register numbers
2093         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
2094         * cfgloopanal.c (init_set_costs): Likewise.
2095         * dojump.c (prefer_and_bit_test): Likewise.
2096         * expr.c (init_expr_target): Likewise.
2097         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2098         * lower-subreg.c (init_lower_subreg): Likewise.
2099         * postreload.c (reload_cse_regs_1): Likewise.
2101 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2103         * gensupport.h (compute_test_codes): Declare.
2104         * gensupport.c (compute_predicate_codes): Rename to...
2105         (compute_test_codes): ...this.  Generalize error message.
2106         (process_define_predicate): Update accordingly.
2107         * genpreds.c (compute_maybe_allows): Delete.
2108         (add_constraint): Use compute_test_codes to determine whether
2109         something can accept a SUBREG, REG or MEM.
2111 2015-05-26  Torvald Riegel  <triegel@redhat.com>
2113         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
2114         'memory model' to align with C++11; fix description of memory orders;
2115         fix a few typos.
2117 2015-05-26  Richard Biener  <rguenther@suse.de>
2119         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
2120         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
2121         detect whether we apply SLP.  Remove call to
2122         vect_update_slp_costs_according_to_vf.
2123         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
2124         vect_update_slp_costs_according_to_vf from here.  Dispatch
2125         to vect_slp_analyze_operations to analyze SLP stmts.
2126         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
2127         unused bb_vec_info parameter, adjust assert.
2128         (vect_slp_analyze_operations): Pass in the slp instance tree
2129         instead of bb_vec_info.
2130         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
2131         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
2133 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
2135         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
2136         Q_REGS.  Expand comment.
2137         (REG_CLASS_NAMES): Ditto.
2138         (REG_CLASS_CONTENTS): Ditto.
2140 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
2142         PR target/66274
2143         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
2144         when LEGACY_INT_REGNO_P is processed.
2146 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
2148         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
2150 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2152         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
2153         register if not marked dead/unused, before return.
2155 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
2157         PR lto/66180
2158         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
2159         is set; check for assembler name at LTO time.
2160         (type_in_anonymous_namespace): Remove hacks, check that all
2161         anonymous types are called "<anon>"
2162         (odr_type_p): Simplify; add check for "<anon>"
2163         (odr_subtypes_equivalent): Add odr_type_p check.
2164         * tree.c (need_assembler_name_p): Even anonymous namespace needs
2165         assembler name.
2167 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
2169         * ipa-utils.h (method_class_type): Remove.
2170         * cgraphunit.c (walk_polymorphic_call_targets): Use
2171         TYPE_METHOD_BASETYPE.
2172         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
2173         on main variants only.
2174         (method_class_type): Remove.
2175         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
2176         (build_type_inheritance_graph): Likewise.
2177         * ipa-icf.c (sem_function::equals_wpa): Likewise.
2178         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
2179         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
2181 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
2183         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
2184         is_typedef_decl, typedef_variant_p): Constify.
2185         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
2186         is_typedef_decl, typedef_variant_p): Constify.
2188 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2190         * defaults.h (gen_tablejump): New function.
2191         (HAVE_tablejump): Add default value.
2192         * expr.c: Adjust.
2193         * stmt.c: Likewise.
2195 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2197         * defaults.h (gen_store_multiple): New function.
2198         (HAVE_store_multiple): Add default value.
2199         * expr.c (move_block_from_reg): Adjust.
2201 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2203         * defaults.h (gen_load_multiple): New function.
2204         (HAVE_load_multiple): Add default value.
2205         * expr.c (move_block_to_reg): Adjust.
2207 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2209         * defaults.h (gen_mem_signal_fence): New function.
2210         (HAVE_mem_signal_fence): Add default value.
2211         * optabs.c: Adjust.
2213 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2215         * defaults.h (gen_memory_barrier): New function.
2216         (HAVE_memory_barrier): Add default value.
2217         * optabs.c: Adjust.
2219 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2221         * defaults.h (gen_mem_thread_fence): New function.
2222         (HAVE_mem_thread_fence): Add default definition.
2223         * optabs.c: Adjust.
2225 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2227         * combine.c (find_split_point): Check the value of HAVE_lo_sum
2228         instead of if it is defined.
2229         (combine_simplify_rtx): Likewise.
2230         * lra-constraints.c (process_address_1): Likewise.
2231         * config/darwin.c: Adjust.
2232         * genconfig.c (main): Always define HAVE_lo_sum.
2234 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2236         * genmatch.c (parser::parse_operation): Reject expanding
2237         operator-list inside 'for'.
2239 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2241         * genmatch.c (parser::parse_for): Reject iterator if used as
2242         operator-list.
2244 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2246         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
2247         after end of id-list.
2249 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
2251         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
2252         we do not try to compute canonical type for type that does not need
2253         alias set.
2254         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
2255         FUNCITON_TYPE.
2256         * tree.h (type_with_alias_set_p): New.
2258 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
2260         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
2261         function attributes.
2262         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
2264 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
2266         * Makefile.in (check_gcc_parallelize): Delete.
2267         (lang_checks_parallelized): Update comment.
2269 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
2271         PR rtl-optimization/66237
2272         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
2273         location of an "as_a" cast.
2275 2015-05-22  Jeff Law  <law@redhat.com>
2277         * config/pa/pa.md (non-canonical shift-add insns): Remove.
2278         (peepholes with non-canonical RTL sources): Remove.
2279         (peepholes for indexed stores of FP regs in integer modes): Match and
2280         generate canonical RTL.
2282 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
2284         PR tree-optimization/63387
2285         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
2286         ((x ord x) & (y ord y) -> (x ord y),
2287         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
2288         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
2289         vectors like scalars.
2291 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
2293         * convert.c (convert_to_integer, convert_to_vector): Include the
2294         types in the error message.
2296 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
2298         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
2299         simplifications.
2301 2015-05-22  Jeff Law  <law@redhat.com>
2303         * config/pa/pa.md (integer_indexed_store splitters): Use
2304         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
2305         insns -- adjusting the constant 2nd operand accordingly.
2307         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
2308         (plus (ashift X log2) Y) if it is a split point.
2310         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
2311         out of hppa_legitimize_address to handle both forms of a multiply
2312         by 2, 4 or 8.
2313         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
2314         Always generate the ASHIFT variant as the result is not directly
2315         used in a MEM.  Update comments and refactor slightly to improve
2316         readability.
2318 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2320         PR target/65491
2321         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
2322         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
2323         (aarch64_composite_type_p): Return false if given type and mode are
2324         for a short vector.
2326 2015-05-22  Richard Biener  <rguenther@suse.de>
2328         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
2329         member.
2330         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
2331         patterns when determining whether SLP is pure.
2332         (vect_is_slp_reduction): Remove check for pattern stmts.
2333         (vect_is_simple_reduction_1): Remove dead code.
2334         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
2335         (vect_get_and_check_slp_defs): Pass in the stmt number.
2336         Allow the first def in a reduction to be not a pattern stmt when
2337         the rest of the stmts def are patterns.
2338         (vect_build_slp_tree_1): Allow tcc_expression codes like
2339         SAD_EXPR and DOT_PROD_EXPR.
2340         (vect_build_slp_tree): Adjust.
2341         (vect_analyze_slp): Refactor and move BB vect error message ...
2342         (vect_slp_analyze_bb_1): ... here.
2344 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
2346         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
2347         for CSWTCH temporary.
2349 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2351         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
2352         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
2353         unknown unspecs.
2355 2015-05-22  Richard Biener  <rguenther@suse.de>
2357         PR tree-optimization/66251
2358         * tree-vect-stmts.c (vectorizable_conversion): Properly
2359         set STMT_VINFO_VEC_STMT even for the SLP case.
2361 2015-05-22  Marek Polacek  <polacek@redhat.com>
2363         * doc/extend.texi: Use @pxref instead of @xref.
2365 2015-05-22  hiraditya  <hiraditya@msn.com>
2367         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
2368         redundant if.
2370 2015-05-22  Richard Biener  <rguenther@suse.de>
2372         PR tree-optimization/65701
2373         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2374         Move peeling cost models into one place.  Peel for alignment
2375         for single loads only if an aligned load is cheaper than
2376         an unaligned load.
2378 2015-05-22  Marek Polacek  <polacek@redhat.com>
2380         PR c/47043
2381         * doc/extend.texi (Enumerator Attributes): New section.
2382         Document syntax of enumerator attributes.
2384 2015-05-22  Richard Biener  <rguenther@suse.de>
2386         * tree-vect-loop.c (get_reduction_op): New function.
2387         (vect_model_reduction_cost): Use it, add reduc_index parameter.
2388         Make ready for BB reductions.
2389         (vect_create_epilog_for_reduction): Use get_reduction_op.
2390         (vectorizable_reduction): Init reduc_index to a valid value.
2391         Adjust vect_model_reduction_cost call.
2392         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
2393         operand for reduction defaults.  Add SAD_EXPR support.
2394         Assert we have a neutral op for SLP reductions.
2395         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
2396         walking pattern stmt ops only recurse to SSA names.
2398 2015-05-22  Richard Biener  <rguenther@suse.de>
2400         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
2401         assert with guard, remove check on detected reduction.
2402         (vect_recog_sad_pattern): Likewise.
2403         (vect_recog_widen_sum_pattern): Likewise.
2405 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2407         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
2408         __always_inline__ attribute.
2409         (vaesdq_u8): Likewise.
2410         (vaesmcq_u8): Likewise.
2411         (vaesimcq_u8): Likewise.
2412         (vsha1cq_u32): Likewise.
2413         (vsha1mq_u32): Likewise.
2414         (vsha1pq_u32): Likewise.
2415         (vsha1h_u32): Likewise.
2416         (vsha1su0q_u32): Likewise.
2417         (vsha1su1q_u32): Likewise.
2418         (vsha256hq_u32): Likewise.
2419         (vsha256h2q_u32): Likewise.
2420         (vsha256su0q_u32): Likewise.
2421         (vsha256su1q_u32): Likewise.
2422         (vmull_p64): Likewise.
2423         (vmull_high_p64): Likewise.
2425 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2427         * final.c (final_scan_insn): Don't check HAVE_peephole with the
2428         preprocessor.
2429         * output.h: Likewise.
2430         * genconfig.c (main): Alwways define HAVE_peephole.
2431         * genpeep.c: Don't emit checks of HAVE_peephole.
2433 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2435         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
2436         check HAVE_conditional_move with the preprocessor.
2438 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2440         * genconfig.c (main): Always define HAVE_conditional_move.
2441         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
2442         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
2443         is defined.
2445 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2447         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
2448         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
2449         and FRAME_POINTER_REGNUM with the preprocessor.
2451 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2453         * defaults.h: Add default for STACK_PUSH_CODE.
2454         * expr.c: Don't redefine STACK_PUSH_CODE.
2455         * recog.c: Likewise.
2457 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2459         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
2460         sched-deps.c: Use if instead of preprocessor checks with
2461         STACK_GROWS_DOWNWARD.
2463 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2465         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
2466         is defined.
2467         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
2468         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
2469         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
2470         * doc/tm.texi: Regenerate.
2472 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2474         PR target/66232
2475         * config/i386/constraints.md (Bg): New constraint for GOT memory
2476         operand.
2477         * config/i386/i386.md (*call_got_x32): New pattern.
2478         (*call_value_got_x32): Likewise.
2479         * config/i386/predicates.md (GOT_memory_operand): New predicate.
2481 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
2483         PR tree-optimization/66233
2484         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
2485         Simplify.
2487 2015-05-21  Jeff Law  <law@redhat.com>
2489         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
2490         than MULT for shadd sequences.
2492 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
2494         * alias.c (alias_stats): New static var.
2495         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
2496         (dump_alias_stats_in_alias_c): New function.
2497         * alias.h (dump_alias_stats_in_alias_c): Declare.
2498         * tree-ssa-alias.c (dump_alias_stats): Call it.
2500 2015-05-08  Michael Matz  <matz@suse.de>
2502         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
2503         to strided_p.
2504         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
2505         (STMT_VINFO_STRIDED_P): ... this.
2506         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
2507         (vect_verify_datarefs_alignment): Likewise.
2508         (vect_enhance_data_refs_alignment): Likewise.
2509         (vect_analyze_data_ref_access): Likewise.
2510         (vect_analyze_data_refs): Accept strided stores.
2511         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
2512         (vect_model_load_cost): Adjust for macro rename.
2513         (vectorizable_mask_load_store): Likewise.
2514         (vectorizable_load): Likewise.
2515         (vectorizable_store): Open code strided stores.
2517 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2519         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
2520         Document sqrt_insn.
2522 2015-05-21  Richard Biener  <rguenther@suse.de>
2524         PR c++/66211
2525         * match.pd: Guard pattern optimzing (int)(float)int
2526         conversions to apply only on GIMPLE.
2528 2015-05-21  Jeff Law  <law@redhat.com>
2530         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
2531         multiply-accumulate/shift-add insn generation.
2533 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
2535         PR target/54236
2536         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
2537         operands[1] are the same.
2539 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2541         PR middle-end/66221
2542         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
2543         build_distinct_type_copy to copy bounds.
2545 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
2547         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
2548         Change to unsigned int.
2550 2015-05-20  Jeff Law  <law@redhat.com>
2552         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
2553         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
2554         (pa_shadd_constant_p): Allow constants for shadd insns rather
2555         than valid scaling constants for memory addresses.
2556         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
2557         * config/pa/predicates.md (mem_shadd_operand): New predicate.
2558         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
2559         (shift-add insns using ASHIFT): New patterns.
2561 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
2563         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
2564         feasible.
2565         (fix_up_fall_thru_edges): Likewise.
2566         (fix_crossing_conditional_branches): Likewise. Promote jump targets
2567         from to rtx_insn to rtx_code_label where feasible.
2568         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
2569         gen_move_insn (returned type changed to rtx_insn).
2570         * builtins.c (expand_errno_check): Fix arguments of
2571         do_compare_rtx_and_jump (now expects rtx_code_label).
2572         (expand_builtin_acc_on_device): Likewise.
2573         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
2574         invert_jump (now exprects rtx_jump_insn).
2575         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
2576         (construct_init_block): Use rtx_code_label.
2577         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
2578         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
2579         calling redirect_jump.
2580         (patch_jump_insn): Likewise.
2581         (redirect_branch_edge): Likewise.
2582         (force_nonfallthru_and_redirect): Likewise.
2583         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
2584         when suitable.
2585         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
2586         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
2587         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
2588         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
2589         to store the value retured by gen_label_rtx.
2590         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
2591         rtx_jump_insn.
2592         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
2593         (split_branches): Fix calls of redirect_jump.
2594         * dojump.c (jumpifnot): Promote argument type from rtx to
2595         rtx_code_label.
2596         (jumpifnot_1): Likewise.
2597         (jumpif): Likewise.
2598         (jumpif_1): Likewise.
2599         (do_jump_1): Likewise.
2600         (do_jump): Likewise. Use rtx_code_label when feasible.
2601         (do_jump_by_parts_greater_rtx): Likewise.
2602         (do_jump_by_parts_zero_rtx): Likewise.
2603         (do_jump_by_parts_equality_rtx): Likewise.
2604         (do_compare_rtx_and_jump): Likewise.
2605         * dojump.h: Update function prototypes.
2606         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
2607         returns rtx_insn).
2608         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
2609         rtx_jump_insn.
2610         (emit_label_before): Likewise.
2611         (emit_jump_insn_after_noloc): Likewise.
2612         (emit_jump_insn_after_setloc): Likewise.
2613         (emit_jump_insn_after): Likewise
2614         (emit_jump_insn_before_setloc): Likewise.
2615         (emit_jump_insn_before): Likewise.
2616         (emit_label_before): Promote return type to rtx_code_label.
2617         (emit_label): Likewise.
2618         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
2619         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
2620         gen_move_insn.
2621         (emit_stack_restore): Likewise.
2622         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
2623         (do_cmp_and_jump): Likewise.
2624         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
2625         from rtx to rtx_code_label.
2626         (gen_move_insn_uncast): New function.
2627         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
2628         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
2629         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
2630         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
2631         invert_jump_1 and redirect_jump_1.
2632         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
2633         do_compare_rtx_and_jump.
2634         (expand_addsub_overflow): Likewise.
2635         (expand_neg_overflow): Likewise.
2636         (expand_mul_overflow): Likewise.
2637         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
2638         return value of gen_move_insn.
2639         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
2640         * loop-doloop.c (add_test): Use rtx_code_label.
2641         (doloop_modify): Likewise.
2642         (doloop_optimize): Likewise.
2643         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
2644         * lra-constraints.c (emit_spill_move): Remove cast of value returned
2645         by gen_move_insn.
2646         (inherit_reload_reg): Add cast when calling dump_insn_slim.
2647         (split_reg): Likewise.
2648         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
2649         gen_move_insn.
2650         * optabs.c (expand_binop_directly): Remove casts of values returned by
2651         maybe_gen_insn.
2652         (expand_unop_direct): Likewise.
2653         (expand_abs): Likewise.
2654         (maybe_emit_unop_insn): Likewise.
2655         (maybe_gen_insn): Promote return type to rtx_insn.
2656         * optabs.h: Update prototype of maybe_gen_insn.
2657         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
2658         redundant cast.
2659         * recog.c (struct peep2_insn_data): Promote type of insn field to
2660         rtx_insn.
2661         (peep2_reinit_state): Use NULL instead of NULL_RTX.
2662         (peep2_attempt): Remove casts of insn in peep2_insn_data.
2663         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
2664         * recog.h (struct insn_gen_fn): Promote return types of function
2665         pointers and operator ().from rtx to rtx_insn.
2666         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
2667         (fill_eager_delay_slots): Likewise.
2668         (relax_delay_slots): Likewise.
2669         (make_return_insns): Likewise.
2670         (dbr_schedule): Likewise.
2671         (optimize_skips): Likewise.
2672         (reorg_redirect_jump): Likewise.
2673         (fill_slots_from_thread): Likewise.
2674         * reorg.h: Update prototypes.
2675         * resource.c (find_dead_or_set_registers): Use dyn_cast to
2676         rtx_jump_insn instead of check.  Use it's jump_target method.
2677         * rtl.h (rtx_jump_insn::jump_label): Define new method.
2678         (rtx_jump_insn::jump_target): Define new method.
2679         (rtx_jump_insn::set_jump_target): Define new method.
2680         * rtlanal.c (tablejump_p): Promote type of one local variable.
2681         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
2682         (sched_analyze_insn): Likewise.
2683         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
2684         (print_insn): Likewise.
2685         * stmt.c (label_rtx): Promote return type to rtx_insn.
2686         (force_label_rtx): Likewise.
2687         (jump_target_rtx): Define new function.
2688         (expand_label): Use it, get rid of one cast.
2689         (expand_naked_return): Promote rtx to rtx_code_label.
2690         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
2691         (expand_case): Use rtx_code_label instread of rtx where feasible.
2692         (expand_sjlj_dispatch_table): Likewise.
2693         (emit_case_nodes): Likewise.
2694         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
2695         * store-motion.c (insert_store): Make use of new return type of
2696         gen_move_insn and remove a cast.
2697         (replace_store_insn): Likewise.
2699 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
2701         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
2702         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
2704 2015-05-20  Jeff Law  <law@redhat.com>
2706         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
2707         dispose of the jump thread path when the jump threading
2708         opportunity is cancelled.
2710 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2712         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
2713         when printing the caret character.
2715 2015-05-20  Marek Polacek  <polacek@redhat.com>
2717         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
2719 2015-05-20  Marek Polacek  <polacek@redhat.com>
2721         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
2722         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
2723         * gimple-fold.c (canonicalize_bool): Likewise.
2724         (same_bool_result_p): Likewise.
2725         * tree-if-conv.c (parse_predicate): Likewise.
2727 2015-05-20  Marek Polacek  <polacek@redhat.com>
2729         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
2730         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
2732 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2734         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
2735         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
2736         values.
2738 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
2740         * config/mips/mips.h (micromips_globals): Declare.
2742 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
2744         * timevar.def (TV_INITIALIZE_RTL): New.
2745         * toplev.c (initialize_rtl): Use an auto_timevar to account this
2746         function's time to TV_INITIALIZE_RTL.
2748 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
2750         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
2751         gimple_build_nop calls.
2752         (chkp_find_bounds_for_elem): Likewise.
2753         (chkp_get_zero_bounds): Likewise.
2754         (chkp_get_none_bounds): Likewise.
2755         (chkp_get_bounds_by_definition): Likewise.
2756         (chkp_generate_extern_var_bounds): Likewise.
2757         (chkp_get_bounds_for_decl_addr): Likewise.
2758         (chkp_get_bounds_for_string_cst): Likewise.
2760 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
2762         PR tree-optimization/65447
2763         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
2764         (dump_use, dump_uses): Support to dump sub use.
2765         (record_use): New parameters to support sub use.  Remove call to
2766         dump_use.
2767         (record_sub_use, record_group_use): New functions.
2768         (compute_max_addr_offset, split_all_small_groups): New functions.
2769         (group_address_uses, rewrite_use_address): New functions.
2770         (strip_offset): New declaration.
2771         (find_interesting_uses_address): Call record_group_use.
2772         (add_candidate): New assertion.
2773         (infinite_cost_p): Move definition forward.
2774         (add_costs): Check INFTY cost and return immediately.
2775         (get_computation_cost_at): Clear setup cost and dependent bitmap
2776         for sub uses.
2777         (determine_use_iv_cost_address): Compute cost for sub uses.
2778         (rewrite_use_address_1): Rename from old rewrite_use_address.
2779         (free_loop_data): Free sub uses.
2780         (tree_ssa_iv_optimize_loop): Call group_address_uses.
2782 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
2783             Jim Wilson  <jim.wilson@linaro.org>
2785         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
2786         new  fields loadv and storev.
2787         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
2788         Initialize loadv and storev.
2789         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
2790         (cortexa53_extra_costs): Likewise.
2791         (cortexa57_extra_costs): Likewise.
2792         (xgene1_extra_costs): Likewise.
2793         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
2794         rtx_costs.
2796 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
2798         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
2799          storev.
2800         (cortexa8_extra_costs): Likewise.
2801         (cortexa5_extra_costs): Likewise.
2802         (cortexa7_extra_costs): Likewise.
2803         (cortexa12_extra_costs): Likewise.
2804         (cortexa15_extra_costs): Likewise.
2805         (v7m_extra_costs): Likewise.
2807 2015-05-20  Jeff Law  <law@redhat.com>
2809         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
2810         instead of open-coded version.  Also delete the jump thread created
2811         within this function.
2813 2015-05-20  Alan Modra  <amodra@gmail.com>
2815         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
2816         stack adjusting insn.  Formatting.
2817         (rs6000_emit_prologue): Track stack adjusting insn, and use of
2818         r12.  If possible, emit first -fsplit-stack arg pointer insn
2819         before stack adjust.  Don't use r12 to save cr if split-stack.
2821 2015-05-20  Alan Modra  <amodra@gmail.com>
2823         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
2824         Define.
2825         (rs6000_supports_split_stack): New function.
2826         * gcc/config/rs6000/rs6000.c (machine_function): Add
2827         split_stack_arg_pointer.
2828         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
2829         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
2830         rather than virtual_incoming_args_rtx.
2831         (rs6000_va_start): Likewise.
2832         (split_stack_arg_pointer_used_p): New function.
2833         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
2834         (morestack_ref): New var.
2835         (gen_add3_const, rs6000_expand_split_stack_prologue,
2836         rs6000_internal_arg_pointer, rs6000_live_on_entry,
2837         rs6000_split_stack_space_check): New functions.
2838         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
2839         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
2840         (UNSPECV_SPLIT_STACK_RETURN): Define.
2841         (split_stack_prologue, load_split_stack_limit,
2842         load_split_stack_limit_di, load_split_stack_limit_si,
2843         split_stack_return, split_stack_space_check): New expands and insns.
2844         * gcc/config/rs6000/rs6000-protos.h
2845         (rs6000_expand_split_stack_prologue): Declare.
2846         (rs6000_split_stack_space_check): Declare.
2848 2015-05-20  Alan Modra  <amodra@gmail.com>
2850         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
2851         (rs6000_stack_info): Don't zero offsets when not saving registers.
2852         (debug_stack_info): Adjust to omit printing unused offsets,
2853         as before.
2854         (direct_return): Test vrsave_size rather than vrsave_mask.
2855         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
2856         (rs6000_emit_epilogue): Likewise.
2858 2015-05-20  Alan Modra  <amodra@gmail.com>
2860         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
2861         when not saving registers.
2862         (debug_stack_info): Adjust to omit printing unused offsets,
2863         as before.
2864         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
2865         expression.
2867 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2869         PR c++/65835
2870         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
2871         value_type to const char *.
2873 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
2875         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
2876         to build a biarch toolchain again.
2878 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
2880         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
2881         or implicit declarations.
2882         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
2883         into it.
2884         (get_odr_type): Check type has linkage before adding bases.
2885         (register_odr_type): Check that type has linkage before adding it.
2886         (type_known_to_have_no_deriavations_p): Rename to ..
2887         (type_known_to_have_no_derivations_p): This one.
2888         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
2889         (type_known_to_have_no_derivations_p): This one.
2890         * ipa-polymorphic-call.c
2891         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
2892         type has linkage.
2894 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2896         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
2897         (layout_type): Use RECORD_OR_UNION_TYPE_P.
2899 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2901         * config/s390/s390.c (s390_vector_bool_type_p): New function.
2902         (s390_invalid_binary_op): New function.
2903         (TARGET_INVALID_BINARY_OP): Define macro.
2905 2015-05-19  David Sherwood  <david.sherwood@arm.com>
2907         * loop-invariant.c (create_new_invariant): Don't calculate address cost
2908         if mode is not a scalar integer.
2909         (get_inv_cost): Increase computational cost for unused invariants.
2911 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2913         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
2914         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
2915         * config/s390/s390-builtin-types.def: New file.
2916         * config/s390/s390-builtins.def: New file.
2917         * config/s390/s390-builtins.h: New file.
2918         * config/s390/s390-c.c: New file.
2919         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
2920         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
2921         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
2922         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
2923         prototypes.
2924         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
2925         Include.
2926         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
2927         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
2928         variable definitions.
2929         (s390_const_operand_ok): New function.
2930         (s390_expand_builtin): Rewrite.
2931         (s390_init_builtins): New function.
2932         (s390_handle_vectorbool_attribute): New function.
2933         (s390_attribute_table): Add s390_vector_bool attribute.
2934         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
2935         (s390_branch_condition_mask): Generate masks for new modes.
2936         (s390_expand_vec_compare_cc): New function.
2937         (s390_mangle_type): Add mangling for vector bool types.
2938         (enum s390_builtin): Remove.
2939         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
2940         efpc builtins.
2941         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
2942         s390_cpu_cpp_builtins.
2943         (REGISTER_TARGET_PRAGMAS): New macro.
2944         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
2945         (insn_cmp mode attribute): Add new CC modes.
2946         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
2947         (lcbb): New pattern definition.
2948         * config/s390/s390intrin.h: Include vecintrin.h.
2949         * config/s390/t-s390: New file.
2950         * config/s390/vecintrin.h: New file.
2951         * config/s390/vector.md: Include vx-builtins.md.
2952         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
2953         support.
2955 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2957         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
2958         CCVFHE.
2959         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
2960         (s390_select_ccmode): Likewise.
2961         (s390_canonicalize_comparison): Swap operands if necessary.
2962         (s390_expand_vec_compare_scalar): Expand DFmode compare using
2963         single element vector instructions.
2964         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
2965         (s390_branch_condition_mask): Generate CC masks for the new modes.
2966         * config/s390/s390.md (v0, vf, vd): New mode attributes.
2967         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
2968         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
2969         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
2970         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
2971         (*extend<DSF:mode><BFP:mode>2): New insn definition.
2972         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
2973         (extend<DSF:mode><BFP:mode>2): Turn into expander.
2974         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
2975         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
2976         (sqrt<mode>2): Add vector instruction.
2978 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2980         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
2981         constraints.
2982         * config/s390/predicates.md (const0_operand, constm1_operand)
2983         (constable_operand): Accept vector operands.
2984         * config/s390/s390-modes.def: Add supported vector modes.
2985         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
2986         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
2987         (s390_bytemask_vector_p, s390_expand_vec_strlen)
2988         (s390_expand_vec_compare, s390_expand_vcond)
2989         (s390_expand_vec_init): Add prototypes.
2990         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
2991         (s390_vector_mode_supported_p): New function.
2992         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
2993         (s390_contiguous_bitmask_vector_p): New function.
2994         (s390_bytemask_vector_p): New function.
2995         (s390_split_ok_p): Vector regs don't work either.
2996         (regclass_map): Add VEC_REGS.
2997         (s390_legitimate_constant_p): Handle vector constants.
2998         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
2999         (legitimate_reload_vector_constant_p): New function.
3000         (s390_preferred_reload_class): Handle CONST_VECTOR.
3001         (s390_reload_symref_address):  Likewise.
3002         (s390_secondary_reload): Vector memory instructions only support
3003         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
3004         (s390_emit_ccraw_jump): New function.
3005         (s390_expand_vec_strlen): New function.
3006         (s390_expand_vec_compare): New function.
3007         (s390_expand_vcond): New function.
3008         (s390_expand_vec_init): New function.
3009         (s390_dwarf_frame_reg_mode): New function.
3010         (print_operand): Handle addresses with 'O' and 'R' constraints.
3011         (NR_C_MODES, constant_modes): Add vector modes.
3012         (s390_output_pool_entry): Handle vector constants.
3013         (s390_hard_regno_mode_ok): Handle vector registers.
3014         (s390_class_max_nregs): Likewise.
3015         (s390_cannot_change_mode_class): New function.
3016         (s390_invalid_arg_for_unprototyped_fn): New function.
3017         (s390_function_arg_vector): New function.
3018         (s390_function_arg_float): Remove size variable.
3019         (s390_pass_by_reference): Handle vector arguments.
3020         (s390_function_arg_advance): Likewise.
3021         (s390_function_arg): Likewise.
3022         (s390_return_in_memory): Vector values are returned in a VR if
3023         possible.
3024         (s390_function_and_libcall_value): Handle vector arguments.
3025         (s390_gimplify_va_arg): Likewise.
3026         (s390_call_saved_register_used): Consider the arguments named.
3027         (s390_conditional_register_usage): Disable v16-v31 for non-vec
3028         targets.
3029         (s390_preferred_simd_mode): New function.
3030         (s390_support_vector_misalignment): New function.
3031         (s390_vector_alignment): New function.
3032         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
3033         (TARGET_VECTOR_MODE_SUPPORTED_P)
3034         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
3035         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
3036         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
3037         (TARGET_VECTOR_ALIGNMENT): Define target macro.
3038         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
3039         (FIRST_PSEUDO_REGISTER): Increase value.
3040         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
3041         (VECTOR_REG_P): Define macros.
3042         (FIXED_REGISTERS, CALL_USED_REGISTERS)
3043         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
3044         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
3045         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
3046         Add vector registers.
3047         (CANNOT_CHANGE_MODE_CLASS): Call C function.
3048         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
3049         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
3050         memory.
3051         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
3052         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
3053         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
3054         (VR*_REGNUM): New constants.
3055         (ALL): New mode iterator.
3056         (INTALL): Remove mode iterator.
3057         Include vector.md.
3058         (movti): Implement TImode moves for VRs.
3059         Disable TImode splitter for VR targets.
3060         Implement splitting TImode GPR<->VR moves.
3061         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
3062         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
3063         reload<mode>_la_in, reload<mode>_la_out.
3064         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
3065         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
3066         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
3067         (mov<mode> SF SD): Prefer lder, lde for loading.
3068         Add lrl and strl instructions.
3069         Add vector instructions.
3070         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
3071         Call s390_expand_vec_strlen on z13.
3072         (*cc_to_int): Change predicate to nonimmediate_operand.
3073         (addti3): Rename to *addti3.  New expander.
3074         (subti3): Rename to *subti3.  New expander.
3075         * config/s390/vector.md: New file.
3077 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3079         * common/config/s390/s390-common.c (processor_flags_table): Add
3080         z13.
3081         * config.gcc: Add z13.
3082         * config/s390/s390-opts.h (enum processor_type): Add
3083         PROCESSOR_2964_Z13.
3084         * config/s390/s390.c (s390_adjust_priority): Check for
3085         PROCESSOR_2964_Z13.
3086         (s390_reorg): Likewise.
3087         (s390_sched_reorder): Likewise.
3088         (s390_sched_variable_issue): Likewise.
3089         (s390_loop_unroll_adjust): Likewise.
3090         (s390_option_override): Likewise. Default to -mvx when available.
3091         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
3092         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
3093         (TARGET_VX_ABI): Define macros.
3094         macros.
3095         (TARGET_DEFAULT): Add MASK_OPT_VX.
3096         * config/s390/s390.md ("cpu" attribute): Add z13.
3097         ("cpu_facility" attribute): Add vec.
3098         * config/s390/s390.opt (processor_type): Add z13.
3099         (mvx): New options.
3100         * doc/invoke.texi: Add z13 option for -march.
3102 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3104         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
3105         mode check to make sure that only scalar integer values are
3106         accepted.
3108 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
3110         * tree.c (verify_type_variant): Fix #undef.
3111         (gimple_canonical_types_compatible_p): Move here from lto.c
3112         (verify_type): Verify TYPE_CANONICAL compatibility.
3113         * tree.h (gimple_canonical_types_compatible_p): Declare.
3115 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
3117         PR middle-end/66199
3118         * tree.h (OMP_TEAMS_COMBINED): Define.
3119         * gimplify.c (enum gimplify_omp_var_data): Add
3120         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
3121         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
3122         (omp_notice_variable): Accept both ORT_TEAMS
3123         and ORT_COMBINED_TEAMS.  Don't recurse if
3124         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
3125         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
3126         GOVD_FIRSTPRIVATE.
3127         (omp_no_lastprivate): New function.
3128         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
3129         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
3130         notice_outer and set appropriate bits, otherwise make
3131         sure default(none) combined constructs won't complain.
3132         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
3133         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
3134         omp_no_lastprivate either remove the clause or turn it
3135         into OMP_CLAUSE_PRIVATE.
3136         (gimplify_omp_for): Fix up handling of implicit
3137         lastprivate or linear iterators.
3138         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
3139         ORT_COMBINED_TEAMS.
3140         * omp-low.c (lower_omp_for_lastprivate): For combined
3141         for simd use fd.loop.n2 from the for rather than simd.
3143 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3145         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
3146         instead of gen_rtx_raw_REG.
3147         (cris_expand_epilogue): Likewise.
3148         * config/microblaze/microblaze.c (microblaze_classify_address):
3149         Likewise.
3150         * config/sparc/sparc.md: Likewise.
3152 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
3154         * config/alpha/alpha.c (alpha_legitimize_reload_address)
3155         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
3156         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
3157         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
3158         Use CASE_CONST_SCALAR_INT.
3159         (print_operand) <case 'M'>: Use mode_width_operand to check the
3160         value of the constant.
3161         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
3162         * config/alpha/predicates.md (input_operand): Use general_operand
3163         instead of match_code as operand check.
3164         (symbolic_operand): Use match_code with subexpression digits.
3165         * config/alpha/constraints.md (Q): Ditto.
3167 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3169         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
3171 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3173         * config/s390/s390.c (s390_secondary_reload): Fix check for
3174         load/store relative.
3176 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3178         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
3179         alternative_mask to uint64_t.
3181 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
3183         PR tree-optimization/66187
3184         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3185         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
3186         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
3188 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
3190         * diagnostic.c (diagnostic_report_current_module): Strengthen
3191         local "new_map" from const line_map * to
3192         const line_map_ordinary *.
3193         * genmatch.c (error_cb): Likewise for local "map".
3194         (output_line_directive): Likewise for local "map".
3195         * input.c (expand_location_1): Likewise for local "map".
3196         Pass NULL rather than &map to
3197         linemap_unwind_to_first_non_reserved_loc, since the value is never
3198         read from there, and the value written back not read from here.
3199         (is_location_from_builtin_token): Strengthen local "map" from
3200         const line_map * to const line_map_ordinary *.
3201         (dump_location_info): Strengthen locals "map" from
3202         line_map *, one to const line_map_ordinary *, the other
3203         to const line_map_macro *.
3204         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
3205         const line_map * to const line_map_macro *.
3206         (maybe_unwind_expanded_macro_loc): Add a call to
3207         linemap_check_macro when writing to the "map" field of the
3208         loc_map_pair.
3209         Introduce local const line_map_ordinary * "ord_map", using it in
3210         place of "map" in the part of the function where we know we have
3211         an ordinary map.  Strengthen local "m" from const line_map * to
3212         const line_map_ordinary *.
3214 2015-05-19  Nick Clifton  <nickc@redhat.com>
3216         PR target/66156
3217         * config/msp430/msp430.md (zero_extendhisi2): Add support for
3218         separate source and destination registers.
3220 2015-05-19  Richard Biener  <rguenther@suse.de>
3222         PR tree-optimization/66165
3223         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
3224         for no load permutation.
3226         PR tree-optimization/66185
3227         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
3228         when building the SLP node from scalars.
3230 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3231             Tristan Gingold  <gingold@adacore.com>
3233         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
3234         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
3235         (expand_stack_restore): Call record_new_stack_level.
3236         (expand_stack_save): Do not call do_pending_stack_adjust.
3237         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
3238         * calls.c (expand_call): Call record_new_stack_level for alloca.
3239         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
3240         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
3241         (update_sjlj_context): New global function.
3242         * except.h (update_sjlj_context): Declare.
3243         * explow.c (record_new_stack_level): New global function.
3244         (allocate_dynamic_stack_space): Call record_new_stack_level.
3245         * explow.h (record_new_stack_level): Declare.
3246         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
3247         * cfgrtl.c (duplicate_insn_chain): Likewise.
3249 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3251         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
3252         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
3253         STACK_GROWS_DOWNWARD as normal if.
3254         (expand_call): Likewise.
3256 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
3258         PR target/54236
3259         * config/sh/sh.md (*round_int_even): New insn_and_split and
3260         accompanying new unnamed split.
3262 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3264         * bitmap.c (bitmap_set_range): Handle count==1 specially.
3265         (bitmap_clear_range): Likewise.
3266         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
3267         bitmap_set_range unconditionally.
3268         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
3269         * df-scan.c (df_mark_reg): Likewise.
3270         * haifa-sched.c (setup_ref_regs): Likewise.
3271         * sched-rgn.c (update_live_1): Likewise.
3273 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3275         * regs.h (END_HARD_REGNO): Delete.
3276         (END_REGNO): Move to...
3277         * rtl.h: ...here.
3278         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
3279         * caller-save.c (mark_set_regs): Likewise.
3280         * combine.c (move_deaths, distribute_notes): Likewise.
3281         * cse.c (invalidate, invalidate_for_call): Likewise.
3282         * df-scan.c (df_ref_record): Likewise.
3283         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
3284         (record_last_reg_set_info): Likewise.
3285         * reg-stack.c (convert_regs_exit): Likewise.
3286         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
3287         * resource.c (update_live_status): Likewise.
3288         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
3290 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3292         * rtl.h (reg_info): Add an nregs field.
3293         (REG_NREGS): Use it.
3294         (SET_REGNO_RAW): Delete.
3295         (set_regno_raw): New function.
3296         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
3297         (END_REGNO): Redefine in terms of REG_NREGS.
3298         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
3299         SET_REGNO_RAW.
3300         * emit-rtl.c (set_mode_and_regno): Likewise.
3301         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
3302         instead of SET_REGNO_RAW.
3304 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3306         * rtl.h (PUT_MODE_RAW): New macro.
3307         (PUT_REG_NOTE_KIND): Use it.
3308         (set_mode_and_regno): Declare.
3309         (gen_raw_REG): Change regno to "unsigned int".
3310         (gen_rtx_REG): Change "unsigned" to "unsigned int".
3311         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
3312         use set_mode_and_regno to change the mode of registers.
3313         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
3314         * emit-rtl.c (set_mode_and_regno): New function.
3315         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
3316         * caller-save.c (reg_save_code): Use set_mode_and_regno.
3317         * expr.c (init_expr_target): Likewise.
3318         * ira.c (setup_prohibited_mode_move_regs): Likewise.
3319         * postreload.c (reload_cse_simplify_operands): Likewise.
3321 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3323         * caller-save.c (init_caller_save): Use word_mode and
3324         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
3325         * expr.c (init_expr_target): Likewise.
3326         * ira.c (setup_prohibited_mode_move_regs): Likewise.
3327         * postreload.c (reload_cse_regs_1): Likewise.
3329 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3331         * rtl.def (REG): Change format to "r".
3332         * rtl.h (rtunion): Remove rt_reg.
3333         (reg_info): New structure.
3334         (rtx_def): Add reg field to main union.
3335         (X0REGATTR): Delete.
3336         (REG_CHECK): New macro.
3337         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
3338         * rtl.c (rtx_format): Document "r".
3339         (rtx_code_size): Handle REG specially.
3340         * gengenrtl.c (special_format): Return true for formats
3341         that include 'r'.
3342         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
3343         Deal with REG_ATTRS after the field loop.
3344         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
3345         * expmed.c (init_expmed): Call gen_raw_REG instead of
3346         gen_rtx_raw_REG.
3347         * expr.c (init_expr_target): Likewise.
3348         * regcprop.c (maybe_mode_change): Likewise.
3349         * varasm.c (make_decl_rtl): Likewise.
3350         * final.c (leaf_renumber_regs_insn): Return early after
3351         handling REGs.
3352         * genemit.c (gen_exp): Handle 'r' fields.
3353         * genpeep.c (match_rtx): Likewise.
3354         * gensupport.c (subst_pattern_match): Likewise.
3355         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
3356         (alter_constraints, subst_dup): Likewise.
3357         * read-rtl.c (read_rtx_code): Likewise.
3358         * print-rtl.c (print_rtx): Likewise.
3359         * genrecog.c (find_operand, find_matching_operand): Likewise.
3360         (validate_pattern, match_pattern_2): Likewise.
3361         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
3362         (rtx_test::regno_field): New function.
3363         (operator ==, safe_to_hoist_p, transition_parameter_type)
3364         (parameter_type_string, print_parameter_value)
3365         (print_nonbool_test, print_test): Handle new enum values.
3366         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
3367         * lra-constraints.c (operands_match_p): Likewise.
3369 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3371         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
3372         Change type of new_regno to unsigned int.
3373         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
3374         new_regno to unsigned int.
3375         (df_ref_change_reg_with_loc): Remove old_regno parameter.
3376         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
3377         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
3378         (SET_REGNO_RAW): Add space after ",".
3380 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3382         * rtl.h (REG_NREGS): New macro
3383         * alias.c (record_set): Use it.
3384         * cfgcleanup.c (mark_effect): Likewise.
3385         * combine.c (likely_spilled_retval_1): Likewise.
3386         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
3387         (move_deaths, distribute_notes): Likewise.
3388         * cselib.c (cselib_record_set): Likewise.
3389         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
3390         * df-scan.c (df_mark_reg): Likewise.
3391         * dse.c (look_for_hardregs): Likewise.
3392         * dwarf2out.c (reg_loc_descriptor): Likewise.
3393         (multiple_reg_loc_descriptor): Likewise.
3394         * expr.c (write_complex_part, read_complex_part): Likewise.
3395         (emit_move_complex): Likewise.
3396         * haifa-sched.c (setup_ref_regs): Likewise.
3397         * ira-lives.c (mark_hard_reg_live): Likewise.
3398         * lra.c (lra_set_insn_recog_data): Likewise.
3399         * mode-switching.c (create_pre_exit): Likewise.
3400         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
3401         (reload_combine_recognize_pattern): Likewise.
3402         (reload_combine_note_use, move2add_record_mode): Likewise.
3403         (reload_cse_move2add): Likewise.
3404         * reg-stack.c (subst_stack_regs_pat): Likewise.
3405         * regcprop.c (kill_value, copy_value): Likewise.
3406         (copyprop_hardreg_forward_1): Likewise.
3407         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
3408         (build_def_use): Likewise.
3409         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
3410         (deps_analyze_insn): Likewise.
3411         * sched-rgn.c (check_live_1, update_live_1): Likewise.
3412         * sel-sched.c (count_occurrences_equiv): Likewise.
3413         * valtrack.c (dead_debug_insert_temp): Likewise.
3415 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
3417         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
3418         * dse.c (note_add_store): Likewise.
3419         * ira-lives.c (mark_hard_reg_dead): Likewise.
3420         * loop-invariant.c (mark_reg_store): Likewise.
3421         (mark_reg_death): Likewise.
3422         * postreload.c (reload_combine): Likewise.
3423         (reload_combine_note_store): Likewise.
3424         (reload_combine_note_use): Likewise.
3425         * recog.c (peep2_reg_dead_p): Likewise.
3427 2015-05-19  Alan Modra  <amodra@gmail.com>
3429         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
3430         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
3431         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
3432         unused predicates.
3433         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
3434         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
3435         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
3436         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
3438 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
3440         * config/mips/mips.md (JOIN_MODE): New mode iterator.
3441         (join2_load_Store<JOIN_MODE:mode>): New pattern.
3442         (join2_loadhi): Likewise.
3443         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
3444         load-load and store-stores.
3445         * config/mips/mips.opt (mload-store-pairs): New option.
3446         (TARGET_LOAD_STORE_PAIRS): New macro.
3447         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
3448         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
3449         * config/mips/mips.c (mips_load_store_bonding_p): New function.
3451 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
3453         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
3454         explicit swaps.
3455         * dojump.c (do_compare_rtx_and_jump): Likewise.
3456         * expmed.c (emit_store_flag_1): Likewise.
3457         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
3458         * final.c (sprint_ul): Use std::reverse for reversing a string.
3459         * fold-const.c (extract_muldiv_1): Use std::swap.
3460         * genmodes.c (emit_mode_int_n): Likewise.
3461         * ifcvt.c (dead_or_predicable): Likewise.
3462         * ira-build.c (ira_merge_live_ranges): Likewise.
3463         (swap_allocno_copy_ends_if_necessary): Likewise.
3464         * ira.c (ira_setup_alts): Likewise.
3465         * loop-iv.c (iv_analyze_expr): Likewise.
3466         (implies_p): Likewise.
3467         (canon_condition): Likewise.
3468         * lra-constraints.c (swap_operands): Likewise.
3469         * lra-lives.c (lra_merge_live_ranges): Likewise.
3470         * omega.c (swap): Remove.
3471         (bswap): Remove.
3472         (omega_unprotect_1): Use std::swap.
3473         (omega_solve_geq): Likewise.
3474         * optabs.c (expand_binop_directly): Likewise.
3475         (expand_binop): Likewise.
3476         (emit_conditional_move): Likewise.
3477         (emit_conditional_add): Likewise.
3478         * postreload.c (reload_cse_simplify_operands): Likewise.
3479         * reg-stack.c (emit_swap_insn): Likewise.
3480         (swap_to_top): Likewise.
3481         (compare_for_stack_reg): Likewise.
3482         (subst_asm_stack_regs): Likewise.
3483         * reload.c (find_reloads): Likewise.
3484         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
3485         * sel-sched.c (invoke_reorder_hooks): Likewise.
3486         (create_block_for_bookkeeping): Likewise.
3487         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
3488         (lambda_matrix_right_hermite): Use std::swap.
3489         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
3490         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3491         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
3492         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
3493         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
3494         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
3495         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3496         * tree-vrp.c (compare_ranges): Likewise.
3497         * var-tracking.c (add_with_sets): Likewise.
3498         (vt_find_locations): Likewise.
3500 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
3502         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
3503         pie executables.
3504         (FBSD_ENDFILE_SPEC): Likewise.
3505         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
3506         config/freebsd-spec.h.
3507         (ENDFILE_SPEC): Likewise.
3509 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
3510             Richard Henderson  <rth@redhat.com>
3512         PR target/57032
3513         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
3514         Check for a memory location that is not a reference (using an AND)
3515         to an unaligned location here.
3516         * config/alpha/predicates.md (normal_memory_operand): Remove.
3518 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
3520         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
3521         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
3523 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
3525         * config/mips/mips.c (micromips_globals): New variable.
3526         (mips_set_compression_mode): Save and reinitialize target-dependent
3527         state for microMIPS.
3529 2015-05-18  Martin Liska  <mliska@suse.cz>
3531         * dbgcnt.def: Add new counter.
3532         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
3534 2015-05-18  Martin Liska  <mliska@suse.cz>
3536         * dbgcnt.def: Sort counters.
3537         * opts.c (common_handle_option): Do not compile if
3538         -fdbg-cnt-list is enabled.
3540 2015-05-18  Tom de Vries  <tom@codesourcery.com>
3542         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
3543         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
3544         address operator to va_list operand.
3545         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
3546         unconditionally.
3547         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
3548         operand.
3549         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
3550         * config/s390/s390.c (s390_gimplify_va_arg): Same.
3551         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
3553 2015-05-18  Tom de Vries  <tom@codesourcery.com>
3555         * tree-ssa-tail-merge.c: Fix whitespace.
3557 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
3559         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
3560         cortex-a17, and cortex-a17.cortex-a7.
3562 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
3564         PR target/54236
3565         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
3567 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
3569         PR target/66174
3570         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
3571         QImode inner modes for TARGET_AVX512BW.  Force mask operand
3572         to a register for AVX512F modes.
3574 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
3576         * toplev.c (emit_debug_global_declarations): Do not output debug info
3577         when doing slim LTO objects.
3579 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
3581         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
3582         odr_types_equivalent_p): Declare.
3583         (odr_type_p): Use gcc_checking_assert.
3584         (type_in_anonymous_namespace_p) Declare.
3585         (type_with_linkage_p): Declare.
3586         * common.opt (Wlto-type-mismatch): New warning.
3587         * ipa-devirt.c (compound_type_base): New function.
3588         (odr_or_derived_type_p): New function.
3589         (odr_types_equivalent_p): New function.
3590         (add_type_duplicate): Simplify.
3591         (type_with_linkage_p): Add hack to prevent false positives on C types
3592         (type_in_anonymous_namespace_p): Likewise.
3593         * tree.c (need_assembler_name_p): Use type_with_linkage.
3594         * tree.h (type_in_anonymous_namespace_p): Remove.
3595         * doc/invoke.texi (-Wlto-type-mismatch): Document
3597 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
3599         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
3600         (verify_type): Verify STRING_FLAG.
3602 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3604         PR fortran/44054
3605         * tree-pretty-print.c (percent_K_format): Replace locus pointer
3606         with accessor function.
3607         * tree-diagnostic.c (diagnostic_report_current_function): Use
3608         diagnostic_location function.
3609         (maybe_unwind_expanded_macro_loc): Likewise.
3610         (virt_loc_aware_diagnostic_finalizer): Likewise.
3611         (default_tree_printer): Replace locus pointer with accessor function.
3612         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
3613         (diagnostic_set_info_translated): Initialize second location.
3614         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
3615         (diagnostic_show_locus): Handle two locations. Call
3616         diagnostic_print_caret_line.
3617         (diagnostic_print_caret_line): New.
3618         (default_diagnostic_starter): Use diagnostic_location function.
3619         (diagnostic_report_diagnostic): Use diagnostic_location function.
3620         (verbatim): Do not set text.locus.
3621         * diagnostic.h (struct diagnostic_info): Remove location field.
3622         (struct diagnostic_context): Make caret_chars an array of two.
3623         (diagnostic_location): New inline.
3624         (diagnostic_expand_location): Handle two locations.
3625         (diagnostic_same_line): New inline.
3626         (diagnostic_print_caret_line): Declare.
3627         (CARET_LINE_MARGIN): New constant.
3628         * pretty-print.c (pp_printf): Do not set text.locus.
3629         (pp_verbatim): Do not set text.locus.
3630         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
3631         (struct text_info): Replace locus pointer with locations
3632         array. Add accessor functions.
3634 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
3635             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3637         PR target/65768
3638         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
3639         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
3640          large constants in register instead of splitting them.
3642 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
3644         PR target/66140
3645         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
3646         replacements in memory addresses.
3647         (get_unaligned_address): Ditto.
3649 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
3651         * config/ft32/*: New files for FT32 port.
3652         * doc/install.texi: Add FT32 information.
3653         * doc/invoke.texi: Add FT32 information.
3654         * doc/md.texi: Add FT32 information.
3655         * doc/contrib.texi: Self added.
3657 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
3659         PR tree-optimization/64454
3660         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
3661         (-1 - A -> ~A): Remove unnecessary condition.
3663 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
3665         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
3666         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3667         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
3669 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3671         * ipa-chkp.h (chkp_wrap_function): New.
3672         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
3673         (chkp_wrap_function_name): New.
3674         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
3675         to get wrapper name.
3676         * lto-cgraph.c: Include ipa-chkp.h.
3677         (input_cgraph_1): Avoid alias chain for wrappers.
3679 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
3681         PR middle-end/66134
3682         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
3683         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
3685 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3687         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
3688         (AARCH64_FL_SLOWMUL): Delete.
3689         (AARCH64_FL_CRC): Redefine to 1<<3.
3690         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
3692 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3694         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
3695         casting.
3697 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
3699         * config/alpha/alpha.md (extendqidi2): Use general_operand
3700         instead of some_operand for operand[1] predicate.
3701         (extendhidi2): Ditto.
3702         (cbranchdi4): Use general_operand instead of some_operand
3703         for operand[1] and operands[2] predicates.
3704         (cstoredi4): Ditto.
3705         * config/alpha/predicates.md (some_operand): Remove unused predicate.
3706         (some_ni_operand): Ditto.
3708 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
3710         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
3711         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
3712         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
3713         low part of the constant using alpha_emit_set_const_1.
3714         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
3716 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
3718         * varasm.c (output_constant_pool_1): Pass down alignment from
3719         constant pool entry's descriptor to output_constant_pool_2.
3720         (output_object_block): Add comment prior to call to
3721         output_constant_pool_1.
3723 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3725         PR rtl-optimization/65862
3726         * target.def (ira_change_pseudo_allocno_class): New hook.
3727         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
3728         value of the hook.
3729         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
3730         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
3731         hook.
3732         * ira-costs.c (find_costs_and_classes): Call the hook and change
3733         classes when it is necessary.
3734         * doc/tm.texi: Update.
3736 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
3738         * config/i386/i386.md (sibcall_memory): Check that register with
3739         callee address is not also used as one of the arguments, instead
3740         of checking that it is not live after the sibcall.
3741         (sibcall_pop_memory): Ditto.
3742         (sibcall_value_memory): Ditto.
3743         (sibcall_value_pop_memory): Ditto.
3745 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
3747         * generic-match-head.c (types_match): Handle non-types.
3748         * gimple-match-head.c (types_match): Likewise.
3749         * match.pd: Remove unnecessary TREE_TYPE for types_match.
3751 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
3753         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
3754         (csneg3<mode>_insn): Enable expansion of pattern.
3756 2015-05-14  Nick Clifton  <nickc@redhat.com>
3758         * config/rl78/rl78.c (rl78_select_section): Select the correct
3759         default section based upon the category of the decl.
3761 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
3763         PR rtl-optimization/30967
3764         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
3765         destination mode for the cost of scc patterns.
3767 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
3769         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
3770         using SWIM248 mode iterator.
3771         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
3772         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
3773         for operand[2] constraint.
3774         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
3776 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
3778         PR middle-end/66133
3779         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
3780         make sure it is never noreturn, even when the task body does not
3781         return.
3782         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
3783         right before GIMPLE_OMP_RETURN.
3784         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
3785         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
3786         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
3788 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3790         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
3791         * tree-ssa-math-opts.c: Include params.h
3792         (pow_synth_sqrt_info): New struct.
3793         (representable_as_half_series_p): New function.
3794         (get_fn_chain): Likewise.
3795         (print_nested_fn): Likewise.
3796         (dump_fractional_sqrt_sequence): Likewise.
3797         (dump_integer_part): Likewise.
3798         (expand_pow_as_sqrts): Likewise.
3799         (gimple_expand_builtin_pow): Use above to attempt to expand
3800         pow as series of square roots.  Removed now unused variables.
3802 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
3804         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
3805         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
3806         Remove *p0 and *p1 arguments.  Rewrite function.
3807         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
3808         (alpha_split_const_mov): Update calls to alpha_extract_integer and
3809         alpha_emit_set_long_const.
3810         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
3811         (alpha_output_mi_thunk_osf): Ditto.
3812         * config/alpha/alpha.md (movti): Do not check operands[1]
3813         for CONST_DOUBLE.
3815 2015-05-13  Richard Biener  <rguenther@suse.de>
3817         PR tree-optimization/66129
3818         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
3819         commutative.
3820         (vect_schedule_slp_instance): Fix typo.
3822 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
3824         * common.opt (fdump-internal-locations): New option.
3825         * input.c: Include diagnostic-core.h.
3826         (get_end_location): New function.
3827         (write_digit): New function.
3828         (write_digit_row): New function.
3829         (dump_location_range): New function.
3830         (dump_labelled_location_range): New function.
3831         (dump_location_info): New function.
3832         * input.h (dump_location_info): New prototype.
3833         * toplev.c (compile_file): Handle flag_dump_locations.
3835 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3837         * gimple-expr.h (is_gimple_constant): Reorder.
3838         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
3840 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
3842         * combine.c (simplify_set): When generating a CC set, if the
3843         source already is in the correct mode, do not wrap it in a
3844         compare.  Simplify the rest of that code.
3846 2015-05-13  Richard Biener  <rguenther@suse.de>
3848         PR tree-optimization/66123
3849         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
3850         a taken edge.
3852 2015-05-13  Richard Biener  <rguenther@suse.de>
3854         PR middle-end/66110
3855         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
3856         specially.
3857         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
3859 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
3861         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
3862         * aclocal.m4: Regenerated with automake-1.11.6.
3864 2015-05-13  Tom de Vries  <tom@codesourcery.com>
3866         PR tree-optimization/66010
3867         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
3868         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
3869         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
3870         and rval based on do_deref.
3872 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
3874         PR target/65103
3875         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
3876         link time constants into adress expressions and therefore set
3877         their cost to 0.
3879 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
3881         PR target/66112
3882         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
3883         Use SWI248 iterator instead of SWI.
3884         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
3885         Use eq_attr "alternative" "0" instead of match_test in
3886         length_immediate attribute computation.
3887         (*mulvhi4, *mulvhi4_1): New define_insns.
3889         PR target/66112
3890         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
3891         SIGNED to get precision of non-negative value.
3893 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
3895         PR target/66048
3896         * function.c (diddle_return_value_1): Process bounds first.
3897         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
3898         register.
3900 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3902         PR rtl-optimization/64616
3903         * loop-invariant.c (can_move_invariant_reg): New.
3904         (move_invariant_reg): Call above new function to decide whether
3905         instruction can just be moved, skipping creation of temporary
3906         register.
3908 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
3910         PR target/pr66047.c
3911         * i386.c (ix86_function_sseregparm): Only return -1 if local function
3912         with implied regparm is called from -mno-sse function.
3913         (init_cumulative_args): Output error if ix86_function_sseregparm
3914         return -1 and SSE register would be needed.
3915         (function_arg_advance_32): Likewise.
3916         (function_arg_32): Likewise.
3917         * i386.h (ix86_args): Add decl field.
3919 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
3921         PR ipa/65873
3922         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
3923         inlines across optimization boundary.
3925 2015-05-12  Jason Merrill  <jason@redhat.com>
3927         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
3928         string literal and macro name.
3930 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
3932         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
3933         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
3934         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
3936 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
3938         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
3939         (-Wmisleading-indentation): New option.
3940         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
3942 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
3944         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
3945         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
3946         (alpha_extract_integer): Ditto.
3947         (alpha_legitimate_constant_p): Ditto.
3948         (alpha_split_tmode_pair): Ditto.
3949         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
3950         (alpha_expand_mov): Ditto.
3951         (print_operand): Remove handling of 'H' modifier.
3952         <case 'm'>: Remove CONST_DOUBLE handling.
3953         (summarize_insn): Handle CONST_WIDE_INT.
3954         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
3955         (anddi3): Ditto.
3956         (movti): Handle CONST_WIDE_INT.
3957         * config/alpha/constraints.md ('H'): Remove constraint definition.
3958         ('G'): Do not match MODE_FLOAT class.
3959         * config/alpha/predicates.md (const0_operand): Also match
3960         const_wide_int.
3961         (non_add_const_operand): Ditto.
3962         (non_zero_const_operand): Ditto.
3963         (some_operand): Ditto.
3964         (input_operand): Ditto.  Handle CONST_WIDE_INT.
3965         (and_operand): Do not match const_double.
3966         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
3968 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
3970         PR target/65697
3971         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
3972         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
3973         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
3974         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
3975         is_mm_seq_cst, is_mm_sync): New accessor functions.
3976         * builtins.c (expand_builtin_sync_operation,
3977         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
3978         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
3979         (get_memmodel,  expand_builtin_atomic_compare_exchange,
3980         expand_builtin_atomic_load, expand_builtin_atomic_store,
3981         expand_builtin_atomic_clear): Use new accessor routines.
3982         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
3983         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
3984         (maybe_emit_sync_lock_test_and_set): Use new accessors and
3985         MEMMODEL_SYNC_ACQUIRE.
3986         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
3987         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
3988         expand_atomic_store): Use new accessors.
3989         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
3990         * tsan.c (instrument_builtin_call): Update check for memory model beyond
3991         final enum to use MEMMODEL_LAST.
3992         * c-family/c-common.c: Use new accessor for memmodel_base.
3993         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
3994         accessors.
3995         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
3996         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
3997         mem_thread_fence, *dmb): Likewise.
3998         * config/alpha/alpha.c (alpha_split_compare_and_swap,
3999         alpha_split_compare_and_swap_12): Likewise.
4000         * config/arm/arm.c (arm_expand_compare_and_swap,
4001         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
4002         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
4003         atomic_loaddi): Likewise.
4004         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
4005         Likewise.
4006         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
4007         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
4008         use new accessors.
4009         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
4010         atomic_store<mode>, atomic_compare_and_swap<mode>,
4011         atomic_exchange<mode>): Use new accessors.
4012         * config/mips/mips.c (mips_process_sync_loop): Likewise.
4013         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
4014         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
4015         rs6000_post_atomic_barrier): Add new cases.
4016         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
4017         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
4018         (atomic_load<mode>): Add new cases and use new accessors.
4019         (store_quadpti): Add new cases.
4020         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
4021         accessors.
4022         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
4023         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
4024         model, not 8.
4026 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
4028         * ipa-devirt.c (type_with_linkage_p): New function.
4029         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
4030         type has linkage.
4031         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
4032         (can_be_name_hashed_p): Simplify.
4033         (hash_odr_name): Check that type has linkage before checking if it is
4034         anonymous.
4035         (types_same_for_odr): Likewise.
4036         (odr_name_hasher::equal): Likewise.
4037         (odr_subtypes_equivalent_p): Likewise.
4038         (warn_types_mismatch): Likewise.
4039         (get_odr_type): Likewise.
4040         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
4041         * ipa-utils.h (odr_type_p): Move offline.
4042         * tree.c (need_assembler_name_p): Fix handling of types
4043         without linkages.
4044         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
4046 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
4048         * timevar.c (timevar_enable): Delete in favor of...
4049         (g_timer): New global.
4050         (struct timevar_def): Move to timevar.h inside class timer.
4051         (struct timevar_stack_def): Likewise.
4052         (timevars): Delete global in favor of field "m_timevars" within
4053         class timer in timevar.h
4054         (stack): Likewise, in favor of field "m_stack".
4055         (unused_stack_instances): Likewise, in favor of field
4056         "m_unused_stack_instances".
4057         (start_time): Likewise, in favor of field "m_start_time".
4058         (get_time): Eliminate check for timevar_enable.
4059         (timer::timer): New function, built from part of timevar_init.
4060         (timevar_init): Rewrite idempotency test from using
4061         "timevar_enable" bool to using dynamic allocation of "g_timer".
4062         Move rest of implementation into timer's constructor.
4063         (timevar_push_1): Rename to...
4064         (timer::push): ...this, adding "m_" prefixes to variables that
4065         are now fields of timer.
4066         (timevar_pop_1): Likewise, rename to...
4067         (timer::pop): ...this, and add "m_" prefixes.
4068         (timevar_start): Replace test for "timevar_enable" with one for
4069         "g_timer", and move bulk of implementation to...
4070         (timer::start): ...here, adding "m_" prefixes.
4071         (timevar_stop): Likewise, from here...
4072         (timer::stop): ...to here.
4073         (timevar_cond_start): Likewise, from here...
4074         (timer::cond_start): ...to here.
4075         (timevar_cond_stop): Likewise, from here...
4076         (timer::cond_stop): ...to here.
4077         (validate_phases): Rename to...
4078         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
4079         locals "total" and "tv" const.
4080         (timevar_print): Rename to...
4081         (timer::print): ...this, and add "m_" prefixes.  Make locals
4082         "total" and "tv" const.  Eliminate test for timevar_enable.
4083         * timevar.h (timevar_enable): Eliminate.
4084         (g_timer): New declaration.
4085         (timevar_push_1): Eliminate.
4086         (timevar_pop_1): Eliminate.
4087         (timevar_print): Eliminate.
4088         (class timer): New class.
4089         (timevar_push): Rewrite to use g_timer.
4090         (timevar_pop): Likewise.
4091         * toplev.c (toplev::~toplev): Likewise.
4093 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
4095         * arm-protos.h (arm_sched_autopref): Delete.
4096         (tune_params): Re-organize, use enums for flag values.
4097         (FUSE_OPS): New macro.
4098         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
4099         (ARM_PREFETCH_BENEFICIAL): Likewise.
4100         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
4101         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4102         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
4103         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
4104         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
4105         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
4106         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
4107         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
4108         format.
4109         (arm_option_override, thumb2_reorg, arm_print_tune_info)
4110         (aarch_macro_fusion_pair_p): Update uses of current_tune.
4111         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
4113 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
4115         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
4116         "break".
4118 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
4119             Sandra Loosemore <sandra@codesourcery.com>
4121         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
4122         value.
4123         (REG_CLASS_NAMES): Add "IJMP_REGS".
4124         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
4125         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
4126         use new "c" register constraint.
4127         * config/nios2/constraint.md (c): New register constraint
4128         corresponding to IJMP_REGS.
4130 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4132         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
4133         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
4134         define_splits): Delete, revamp, transmogrify into ...
4135         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4136         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4137         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4138         New.
4140 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4142         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
4143         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
4145 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4147         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
4148         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
4149         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
4150         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
4151         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
4152         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
4153         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
4154         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
4155         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
4156         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
4157         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
4158         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
4159         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
4160         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
4161         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
4162         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
4163         and 30 corresponding splitters): Delete.
4165 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4167         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
4168         zero_extract.
4170 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4172         * combine.c (recog_for_combine_1): New function, factored out
4173         from recog_for_combine.
4174         (change_zero_ext): New function.
4175         (recog_for_combine): If recog fails, try again with the pattern
4176         modified by change_zero_ext; if that still fails, restore the
4177         pattern.
4179 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
4181         * combine.c (get_undo_marker): New function.
4182         (undo_to_marker): New function, largely factored out from ...
4183         (undo_all): ... this.  Adjust.
4185 2015-05-12  Richard Biener  <rguenther@suse.de>
4187         PR tree-optimization/66101
4188         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
4189         fixup if we turn a loop exit edge to a fallthru edge.
4191 2015-05-12  Richard Biener  <rguenther@suse.de>
4193         PR tree-optimization/37021
4194         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
4195         (SLP_TREE_TWO_OPERATORS): New define.
4196         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
4197         SLP_TREE_TWO_OPERATORS.
4198         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
4199         SLP node.
4200         (vect_build_slp_tree): Adjust.
4201         (vect_analyze_slp_cost_1): Likewise.
4202         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
4203         emitting two vector stmts and mixing the results.
4205 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4207         * call.c (print_z_candidates): Remove dead code.
4209 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4211         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
4212         and zEC12_simple_fp.
4213         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
4214         to 1.
4216 2015-05-12  Tom de Vries  <tom@codesourcery.com>
4218         PR tree-optimization/66010
4219         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
4220         ifn_va_arg.
4221         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
4222         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
4223         va_lists are passed, and remove corresponding handling.
4224         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
4225         do_deref argument to ifn_va_arg.
4226         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
4227         ifn_va_arg.
4229 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4231         PR target/65955
4232         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
4233         REG before taking its REGNO.
4235 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4237         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
4238         rsp->sign_bit_copies and rsp->nonzero_bits into ...
4239         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
4240         present to get more accurate information about the number of sign bit
4241         copies and non zero bits.
4243 2015-05-12  Richard Biener  <rguenther@suse.de>
4245         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
4246         do not allow unrolling.
4248 2015-05-11  Richard Henderson  <rth@redhat.com>
4250         * config/i386/i386-modes.def (CCP): New.
4251         * config/i386/i386.c (put_condition_code): Handle it.
4252         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
4254 2015-05-11  Richard Henderson  <rth@redhat.com>
4256         * target.def (md_asm_clobbers): Replace with...
4257         (md_asm_adjust): this.
4258         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
4259         (TARGET_MD_ASM_ADJUST): New.
4260         * tm.texi: Rebuild.
4261         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
4262         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
4263         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
4265         * cfgexpand.c (check_operand_nalternatives): Accept vector of
4266         constraints instead of lists of outputs and inputs.
4267         (expand_asm_stmt): Save and restore input_location around the
4268         body of the function.  Move asm data into vectors instead of
4269         building tree lists.  Generate cleanup sequences as needed,
4270         rather than waiting til the end.  Use new md_asm_adjust hook.
4272         * config/vxworks.c: Include vec.h before target.h.
4273         * gimple.c: Likewise.
4274         * incpath.c: Likewise.
4275         * mode-switching.c: Likewise.
4277         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
4278         (cris_md_asm_adjust): this.
4279         (TARGET_MD_ASM_CLOBBERS): Remove.
4280         (TARGET_MD_ASM_ADJUST): New.
4281         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
4282         (ix86_md_asm_adjust): this.
4283         (TARGET_MD_ASM_CLOBBERS): Remove.
4284         (TARGET_MD_ASM_ADJUST): New.
4285         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
4286         (mn10300_md_asm_adjust): this.
4287         (TARGET_MD_ASM_CLOBBERS): Remove.
4288         (TARGET_MD_ASM_ADJUST): New.
4289         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
4290         (rs6000_md_asm_adjust): this.
4291         (TARGET_MD_ASM_CLOBBERS): Remove.
4292         (TARGET_MD_ASM_ADJUST): New.
4293         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
4294         (visium_md_asm_adjust): this.
4295         (TARGET_MD_ASM_CLOBBERS): Remove.
4296         (TARGET_MD_ASM_ADJUST): New.
4298 2015-05-11  Richard Henderson  <rth@redhat.com>
4300         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
4301         if noutputs is zero.
4302         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
4304         * cfgexpand.c (expand_asm_operands): Merge into...
4305         (expand_asm_stmt): ... here.
4307         * cfgexpand.c (expand_asm_operands): Don't call
4308         resolve_asm_operand_names.
4309         * stmt.c (resolve_asm_operand_names): Clarify block comment.
4311 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
4313         * dwarf2out.c (gen_member_die): Sanity check that we access
4314         TYPE_MAIN_VARIANT for TYPE_METHODS.
4315         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
4316         checking TYPE_METHODS.
4317         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
4318         if non-null.
4319         (build_distinct_type_copy): Clear TYPE_METHODS.
4320         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
4321         (verify_type): Allow TYPE_METHODS to be error_mark_node.
4322         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
4324 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
4326         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
4327         (emit_pattern_before_setloc): Likewise.
4329 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
4331         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
4332         for define_peephole2s.
4333         (get_peephole2_pattern): New function.
4334         (main): Use it.  Call validate_pattern.
4336 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4338         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
4339         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
4340         (Last callee saved reg is different for AVR_TINY architecture)
4342 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
4344         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
4345         when looking for memory references.
4347 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
4349         PR target/65753
4350         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
4351         via function pointers.
4353 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
4355         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
4356         indirect call by forcing address into a pseudo with -fno-plt.
4357         * common.opt (flag_plt): New option.
4358         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
4359         ([-fno-plt]): Document.
4361 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
4363         PR bootstrap/66105
4364         * config/rs6000/option-defaults.h: Add space between string literal
4365         and macro name.
4367 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4369         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
4370         accross ARM targets.
4372 2015-05-11  Christian Bruel  <christian.bruel@st.com>
4374         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
4375         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
4377 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
4379         PR rtl-optimization/66076
4380         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
4381         Don't grow the heap array if it is already big enough from a
4382         previous iteration.
4384 2015-05-11  Christian Bruel  <christian.bruel@st.com>
4386         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
4387         (is_called_in_ARM_mode): Remove.
4388         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
4389         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
4390         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
4391          arm_declare_function_name.
4393 2015-05-11  Christian Bruel  <christian.bruel@st.com>
4395         * config/arm/arm.c (arm_option_override): Reoganized and split into :
4396         (arm_option_params_internal); New function.
4397         (arm_option_check_internal): New function.
4398         (arm_option_override_internal): New function.
4399         (thumb_code, thumb1_code): Remove.
4400         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
4401         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
4402         (thumb_code, thumb1_code): Remove.
4403         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
4405 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
4407         * config/alpha/alpha.c (alpha_emit_set_const_1)
4408         (alpha_emit_set_long_const, alpha_extract_integer)
4409         (alpha_legitimate_constant_p, alpha_split_const_mov)
4410         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
4411         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
4412         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
4413         HOST_WIDE_INT_1U.
4414         * config/alpha/predicates.md (mode_mask_operand): Do not match
4415         const_double RTX.
4416         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
4417         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
4418         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
4419         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
4420         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
4422 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
4424         PR target/65780
4425         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
4426         default_binds_local_p_2.
4427         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
4428         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
4430 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
4432         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
4434 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
4436         Patch by Richard Biener
4437         * coverage.c (coverage_obj_init): Delay building of type variant
4438         until the type is finished.
4440 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
4442         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
4443         mismatch between C and C++ type; compoare correctly ARG_TYPES
4444         for non-prototypes and output correctly parameter index for METHOD_TYPE.
4445         (odr_types_equivalent_p): Fix wording of warning about attributes;
4446         it is OK to match prototype and non-prototype.
4448 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
4450         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
4451         TYPE_ARG_TYPES list.
4452         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
4453         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
4455 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
4457         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
4458         * tree.h (is_lang_specific): Constify.
4460 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
4462         PR tree-optimization/64454
4463         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
4464         Rewrite.
4466 2015-05-08  Jason Merrill  <jason@redhat.com>
4468         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
4469         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
4470         config/darwin.h, config/darwin9.h, config/elfos.h,
4471         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
4472         config/microblaze/microblaze.h, config/mips/mips.h,
4473         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
4474         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
4475         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4476         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
4477         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
4478         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
4479         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
4480         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
4481         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
4482         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
4483         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
4484         between string literal and macro name.
4486 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4488         * jump.c: Change argument types to rtx_insn *.
4489         * rtl.h: Adjust.
4491 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4493         * lra-constraints.c: Change argument type to rtx_insn *.
4495 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4497         * df-problems.c: Change argument type to rtx_insn *.
4499 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4501         * combine.c: Change argument type to rtx_insn *.
4503 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4505         * rtl.h: Adjust.
4506         * rtlanal.c: Change argument type to rtx_insn *.
4508 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4510         * sched-deps.c: Change argument types to rtx_insn *.
4511         * sched-int.h: Adjust.
4513 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4515         * dwarf2cfi.c: Change argument type to rtx_insn *.
4517 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4519         * ira.c (decrease_live_ranges_number): Changetype of local
4520         variable to rtx_insn *.
4521         * recog.c: Change argument types to rtx_insn *.
4522         * recog.h: Adjust.
4524 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4526         * reorg.c: Change argument types to rtx_insn *.
4528 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4530         * ira-color.c: Change argument types to rtx_insn *.
4531         * lra-eliminations.c: Likewise.
4532         * ira.h: Adjust.
4534 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4536         * gcse.c: Change argument types to rtx_insn *.
4538 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4540         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
4542 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4544         * emit-rtl.c (emit_debug_insn_before): Change argument type to
4545         rtx_insn *.
4546         * rtl.h: Adjust.
4548 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4550         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
4551         * rtl.h: Adjust.
4553 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4555         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
4556         * rtl.h: Adjust.
4558 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4560         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
4561         * rtl.h: Adjust.
4563 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4565         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
4566         * rtl.h: Adjust.
4568 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4570         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
4571         to rtx_insn *.
4572         * rtl.h: Adjust.
4574 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4576         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
4577         to rtx_insn *.
4578         * rtl.h: Likewise.
4580 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4582         * except.c (can_nonlocal_goto): Change type of argument to
4583         rtx_insn *.
4584         * rtl.h: Adjust.
4586 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4588         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
4589         * rtl.h: Adjust.
4591 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4593         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
4594         * cfgrtl.c (can_delete_label_p): Adjust.
4595         * rtl.h: likewise.
4597 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4599         * reorg.c (stop_search_p): Change argument to rtx_insn *.
4601 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4603         * except.c (make_reg_eh_region_note): Change argument to
4604         rtx_insn *.
4605         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
4606         * except.h: Adjust.
4608 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4610         * mode-switching.c (commit_mode_sets): Change type of local
4611         variable from rtx to rtx_insn *.
4613 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
4615         * doc/install.texi (--enable-languages): Add missing jit and lto info.
4616         Add ^ to grep command.
4617         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
4618         arg to last gimple_simplify declaration.  Add missing gimple_build
4619         declaration for built-in function case with four tree args.
4621 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
4622             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4624         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
4625         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
4626         (GNU_USER_DYNAMIC_LINKERN32): Update.
4628 2015-05-08  Richard Biener  <rguenther@suse.de>
4630         PR tree-optimization/66036
4631         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4632         Handle strided group loads.
4633         (vect_verify_datarefs_alignment): Likewise.
4634         (vect_enhance_data_refs_alignment): Likewise.
4635         (vect_analyze_group_access): Likewise.
4636         (vect_analyze_data_ref_access): Likewise.
4637         (vect_analyze_data_ref_accesses): Likewise.
4638         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
4639         (vectorizable_load): Likewise.
4641 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
4643         * config/rs6000/rs6000.md: Require operand inequality in one
4644         of the peepholes.
4646 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
4647             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4649         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
4650         from (set ...).
4651         * config/rx/rx.md (movdi, movdf): Likewise.
4652         Likewise for define_peephole2s.
4654 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
4656         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
4657         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
4658         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
4659         vtst_u64): Rewrite using gcc vector extensions.
4661 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
4663         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
4664         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
4666 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
4668         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
4670 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4672         * config/glibc-stdint.h (OPTION_MUSL): Define.
4673         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
4674         Change the definition based on OPTION_MUSL for 64 bit targets.
4675         * config/linux.h (OPTION_MUSL): Redefine.
4676         * config/alpha/linux.h (OPTION_MUSL): Redefine.
4677         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
4678         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
4680 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
4681             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4683         * config.gcc (LIBC_MUSL): New tm_defines macro.
4684         * config/linux.h (OPTION_MUSL): Define.
4685         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
4686         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
4687         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4688         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4689         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4690         * config/linux.opt (mmusl): New option.
4691         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
4692         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4693         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4694         * configure: Regenerate.
4696 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
4697             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4699         PR target/48904
4700         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
4701         * config/i386/knetbsd-gnu64.h: New file.
4703 2015-05-08  Marek Polacek  <polacek@redhat.com>
4705         PR c/64918
4706         * doc/invoke.texi: Document -Woverride-init-side-effects.
4708 2015-05-07  Marek Polacek  <polacek@redhat.com>
4710         PR c/65179
4711         * doc/invoke.texi: Document -Wshift-negative-value.
4713 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
4715         * gcov-tool.c (do_merge): Refactore to remove int ret.
4716         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
4717         !type == FUNC to type != FUNC.
4718         * reload.h (struct target_reload): Changee to type of
4719         x_spill_indirect_levels from bool to unsigned char.
4721 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
4723         * rtl.h (always_void_p): New function.
4724         * gengenrtl.c (always_void_p): Likewise.
4725         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
4726         with code foo are always VOIDmode.
4727         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
4728         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
4729         compare-elim.c, config/aarch64/aarch64.c,
4730         config/aarch64/aarch64.md, config/alpha/alpha.c,
4731         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
4732         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
4733         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
4734         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4735         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
4736         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
4737         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
4738         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
4739         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
4740         config/ia64/vect.md, config/iq2000/iq2000.c,
4741         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
4742         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
4743         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
4744         config/mep/mep.c, config/microblaze/microblaze.c,
4745         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
4746         config/mn10300/mn10300.c, config/msp430/msp430.c,
4747         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
4748         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
4749         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
4750         config/rs6000/altivec.md, config/rs6000/rs6000.c,
4751         config/rs6000/rs6000.md, config/rs6000/vector.md,
4752         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
4753         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
4754         config/sh/sh.md, config/sh/sh_treg_combine.cc,
4755         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
4756         config/spu/spu.md, config/stormy16/stormy16.c,
4757         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
4758         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
4759         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
4760         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
4761         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
4762         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
4763         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
4764         var-tracking.c: Update calls accordingly.
4766 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
4768         PR middle-end/192
4769         PR middle-end/54303
4770         * varasm.c (function_mergeable_rodata_prefix): New function.
4771         (mergeable_string_section): Use it.
4772         (mergeable_constant_section): Use it.
4774 2015-05-07  Jeff Law  <law@redhat.com>
4776         PR target/39726
4777         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
4778         simplifier to narrow arithmetic.
4779         * generic-match-head.c: (types_match, single_use): New functions.
4780         * gimple-match-head.c: (types_match, single_use): New functions.
4782 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4784         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
4785         rtx type.
4787 2015-05-07  Richard Biener  <rguenther@suse.de>
4789         PR tree-optimization/66002
4790         * passes.def: Schedule another pass_merge_phi after ifcombine, right
4791         before phiopt.
4793 2015-05-07  Marek Polacek  <polacek@redhat.com>
4794             Martin Uecker  <uecker@eecs.berkeley.edu>
4796         * doc/invoke.texi: Document -fsanitize=bounds-strict.
4797         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
4798         into SANITIZE_NONDEFAULT.
4799         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
4801 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
4803         PR target/66015
4804         * config/alpha/alpha.c (alpha_override_options_after_change): New.
4805         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4806         (alpha_override_options): Move align_loops, align_jumps and
4807         align_functions handling into alpha_override_options_after_change.
4809 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
4810             Chris Jones  <chrisj@nvidia.com>
4811             Joshua Conner  <jconner@nvidia.com>
4813         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
4814         linking of crtfastmath.o.
4815         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
4817 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
4819         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
4820         (cstore<mode>4_unsigned_imm): New expander.
4821         (cstore<mode>4): Remove empty constraint strings.  Use the new
4822         expanders.
4824 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
4826         PR target/64208
4827         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
4828         alternatives.
4830 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4832         * config/aarch64/geniterators.sh: Use standard BRE in sed.
4834 2015-05-06  Alan Modra  <amodra@gmail.com>
4836         PR target/66033
4837         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
4838         (UNSPEC_NOP): Define.
4839         (reload_vsx_from_gpr<mode>): Add missing DONE.
4840         (reload_gpr_from_vsx<mode>): Likewise.
4841         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
4842         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
4844 2015-05-06  Christian Bruel  <christian.bruel@st.com>
4846         PR target/66015
4847         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
4848         align_jumps, align_functions into aarch64_override_options_after_change.
4850 2015-05-06  Richard Biener  <rguenther@suse.de>
4852         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
4853         vect_transform_slp_perm_load to check if we support a permutation
4854         for basic-block vectorization.
4856 2015-05-06  Nick Clifton  <nickc@redhat.com>
4858         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
4859         used, even if it is not being used as a frame pointer.
4861 2015-05-05  Jason Merrill  <jason@redhat.com>
4863         * dwarf2out.c (gen_member_die): Don't emit anything for an
4864         anonymous class constructor.
4866 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
4868         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
4869         that it reflects the block structure.
4870         (afdo_propagate_edge): Likewise.
4871         (afdo_calculate_branch_prob): Likewise.
4872         (afdo_annotate_cfg): Likewise.
4873         * cfgcleanup.c (equal_different_set_p): Likewise.
4874         (try_crossjump_to_edge): Likewise.
4875         * cgraph.c (cgraph_node::verify_node): Likewise.
4876         * cgraphunit.c (expand_all_functions): Likewise.
4877         * config/i386/i386.c (ix86_expand_copysign): Likewise.
4878         (exact_dependency_1): Likewise.
4879         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
4880         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
4881         * gensupport.c (process_define_subst): Likewise.
4882         * lto-wrapper.c (merge_and_complain): Likewise.
4883         * tree-if-conv.c (if_convertible_bb_p): Likewise.
4884         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
4885         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
4886         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
4887         * tree-vect-loop.c (vectorizable_reduction): Likewise.
4888         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
4889         * tree-vect-stmts.c (vectorizable_shift): Likewise.
4890         * tree-vrp.c (vrp_finalize): Likewise.
4891         * tree.c (variably_modified_type_p): Likewise.
4893 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
4895         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
4896         on darwin12 and later.
4897         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
4898         file to pass -rdynamic on darwin12 and later.
4899         * config/darwin.opt (rdynamic): Add.
4901 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
4903         * doc/extend.texi (C Extensions): Update menu for moved Variable
4904         Attributes and Type Attributes sections.
4906 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
4908         PR target/65990
4909         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
4910         if rep_8byte stringop strategy was specified for 32-bit target.
4912 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
4914         PR target/65915
4915         * config/i386/i386.md (vector convert to float spltiter): Check for
4916         xmm16+, when splitting scalar float conversion.
4917         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
4919 2015-05-05  Nick Clifton  <nickc@redhat.com>
4921         * config/msp430/msp430-opts.h (enum msp430_regions): New.
4922         * config/msp430/msp430.c (msp430_override_options): Complain if
4923         -mcode-region or -mdata-region is used on a non MSP430X.
4924         (msp430_section_attr): New function.  Checks lower, upper and
4925         either attributes.
4926         (msp430_attribute_table): Add lower, upper and either.
4927         (gen_prefix): New function.  Generates a prefix for a section
4928         name.
4929         (msp430_select_section): New function - handles the choice of
4930         section for an object.  Takes into account memory region
4931         attributes and options.
4932         (msp430_function_section): Use gen_prefix.
4933         (TARGET_SECTION_TYPE_FLAGS): Define.
4934         (msp430_section_type_flags): New function.
4935         (TARGET_ASM_UNIQUE_SECTION): Define.
4936         (msp430_unique_section): New function.
4937         (msp430_output_aligned_decl_common): New function.
4938         (msp430_do_not_relax_short_jumps): New function.
4939         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
4940         Define.
4941         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4942         * config/msp430/msp430-protos.h
4943         (msp430_do_not_relax_short_jumps): New prototype.
4944         (msp430_output_aligned_decl_common): New prototype.
4945         * config/msp430/msp430.md (length): New attribute.
4946         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
4947         then use a long code sequence for short jumps.
4948         * config/msp430/msp430.opt (mcode-region): New.
4949         (mdata-region): New.
4950         * doc/invoke.texi: Document new options.
4951         * doc/extend.texi: Document new attributes.
4953 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
4955         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
4956         (tune_params): Add field branch_costs.
4957         (aarch64_branch_cost): Declare.
4958         * gcc/config/aarch64.c (generic_branch_cost): New.
4959         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
4960         (cortexa53_tunings): Likewise.
4961         (cortexa57_tunings): Likewise.
4962         (thunderx_tunings): Likewise.
4963         (xgene1_tunings): Likewise.
4964         (aarch64_branch_cost): Define.
4965         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
4967 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
4969         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
4970         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
4971         * config/i386/i386.md: Ditto.
4972         * config/i386/winnt.c: Ditto.
4974 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
4976         * doc/extend.texi (__atomic Builtins): Move implementation details
4977         to the end of the description, rewrite opening paragraphs, state
4978         difference with __sync builtins, state C11/C++11 assumptions,
4979         weaken itemized descriptions, add explanation of memory model
4980         behaviour, expand description of compare-exchange, simplify text.
4982 2015-05-05  Renlin Li  <renlin.li@arm.com>
4984         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
4986 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
4988         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
4989         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
4990         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
4991         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
4992         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
4993         * configure: Regenerate.
4994         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
4995         * doc/install.texi (aarch64*-*-*): Document new
4996         --enable-fix-cortex-a53-843419 option.
4997         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
4998         and -mno-fix-cortex-a53-843419 options.
5000 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
5002         PR target/65871
5003         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
5005 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
5007         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
5008         fix overactive TYPE_MIN_VALUE check and add FIXME for type
5009         compatibility problems.
5011 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
5013         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
5014         constraints.
5015         (cbranchsi4_reg): New.
5016         * config/microblaze/microblaze.c
5017         (microblaze_expand_conditional_branch_reg): New.
5018         * config/microblaze/microblaze-protos.h
5019         (microblaze_expand_conditional_branch_reg): New prototype.
5021 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
5023         * config/microblaze/microblaze.md (peephole2): New.
5025 2015-05-04  Jeff Law  <law@redhat.com>
5027         Revert:
5028         2015-05-04  Jeff Law  <law@redhat.com>
5030         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5031         simplifier to narrow arithmetic.
5032         * generic-match-head.c: (types_match, single_use): New functions.
5033         * gimple-match-head.c: (types_match, single_use): New functions.
5035 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5037         PR target/65987
5038         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
5039         (split_branches): Likewise.
5041 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
5043         * common.opt (fdelete-null-pointer-checks): Init to -1.
5044         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
5045         override flag_delete_null_pointer_checks default.
5046         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
5047         behavior re address zero.  Better document target-specific behavior.
5048         (-fisolate-errneous-paths-dereference): Mention relationship to
5049         -fdelete-null-pointer-checks.
5051 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
5053         PR tree-optimization/65984
5054         * ubsan.c: Include tree-cfg.h.
5055         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
5056         stmt_could_throw_p test, rename can_throw variable to ends_bb.
5058 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
5060         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
5061         to CONST_DOUBLE_P predicate.
5062         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
5063         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
5064         allow only operands that satisfy standard_sse_constant_p predicate.
5065         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
5066         to CONST_DOUBLE_P predicate.
5068 2015-05-04  Jeff Law  <law@redhat.com>
5070         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5071         simplifier to narrow arithmetic.
5072         * generic-match-head.c: (types_match, single_use): New functions.
5073         * gimple-match-head.c: (types_match, single_use): New functions.
5075 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
5077         * config/arm/arm.c: Restore bootstrap.
5079 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
5081         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
5082         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
5083         as CONST_WIDE_INT, not CONST_DOUBLE.
5084         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
5085         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
5086         (ix86_find_base_term): Do not check for CONST_DOUBLE.
5087         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
5088         (ix86_build_signbit_mask): Rewrite using wide ints.
5089         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
5090         (ix86_rtx_costs): Handle CONST_WIDE_INT.
5091         (find_constant): Ditto.
5092         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
5093         using gen_int_mode.
5094         * config/i386/predicates.md (x86_64_immediate_operand)
5095         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
5096         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
5097         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
5098         (const0_operand): Also match const_wide_int.
5099         (constm1_operand): Ditto.
5100         (const1_operand): Ditto.
5102 2015-05-04  Richard Biener  <rguenther@suse.de>
5104         PR tree-optimization/65965
5105         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
5106         store groups at gaps.
5108 2015-05-04  Richard Biener  <rguenther@suse.de>
5110         PR tree-optimization/65935
5111         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
5112         then make sure to apply that swapping to the IL.
5114 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
5116         * Makefile.in (PATCHLEVEL_c): New variable.
5117         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
5118         expand the same way as if DEVPHASE_c was non-empty.
5120 2015-05-04  Kai Tietz  <ktietz@redhat.com>
5122         PR target/65559
5123         * lto-wrapper.c (run_gcc): Open filename
5124         in binary-mode.
5126 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
5128         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
5129         sections up in file, to immediately after the Function Attributes
5130         section.
5132 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
5134         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
5136 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5138         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
5139         (insert_partition_copy_on_edge): Adjust.
5140         (insert_rtx_to_part_on_edge): Likewise.
5141         (insert_part_to_rtx_on_edge): Likewise.
5143 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5145         * function.c (set_return_jump_label): Change type of argument to
5146         rtx_insn *.
5147         * function.h (set_return_jump_label): Adjust.
5149 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5151         * reload.h (struct reg_equivs_t): Change type of init to
5152         rtx_insn *.
5153         * ira.c (fix_reg_equiv_init): Adjust.
5154         * reload1.c (eliminate_regs_1): Likewise.
5155         (init_eliminable_invariants): Likewise.
5157 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5159         * cselib.c (fp_setter_insn): Take a rtx_insn *.
5160         * cselib.h (fp_setter_insn): Adjust.
5162 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5164         * recog.c (struct validate_replace_src_data): Change type of
5165         insn field to rtx_insn *.
5166         (validate_replace_src_group): Change type of argument to rtx_insn *.
5167         * recog.h (validate_replace_src_group): Adjust.
5169 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5171         * haifa-sched.c: Change the type of some variables to rtx_insn *.
5172         * sched-deps.c: Likewise.
5173         * sched-int.h: Likewise.
5174         * sched-rgn.c: Likewise.
5175         * sel-sched.c: Likewise.
5177 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5179         to rtx_insn *.
5180         * config/i386/i386.c: Change the type of some arguments to
5181         rtx_insn *.
5182         * config/arm/arm.c: Likewise.
5184 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5186         * lra-constraints.c: Change type of some arguments to rtx_insn *.
5188 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5190         * regcprop.c (kill_autoinc_value): Change type of argument to
5191         rtx_insn *.
5193 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5195         * genrecog.c (print_subroutine): Adjust.
5196         * recog.c (get_bool_attr_mask_uncached): Likewise.
5197         * recog.h (struct recog_data_d): Change the type of insn to
5198         rtx_insn *.
5200 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5202         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
5204 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5206         * df-problems.c (df_set_note): Change type of argument to
5207         rtx_insn *.
5209 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5211         * builtins.c (expand_builtin_trap): Change type of local
5212         variable to rtx_insn *.
5213         (add_sched_insns_for_speculation): Likewise.
5214         (ix86_emit_save_regs): Likewise.
5215         (get_scratch_register_on_entry): Likewise.
5216         (ix86_emit_restore_reg_using_pop): Likewise.
5217         (ix86_emit_leave): Likewise.
5218         (ix86_emit_restore_regs_using_mov): Likewise.
5219         (ix86_expand_epilogue): Likewise.
5220         Likewise.
5221         (rl78_alloc_physical_registers_umul): Likewise.
5222         * cselib.c (discard_useless_locs): Likewise.
5223         (cselib_invalidate_regno): Likewise.
5224         (cselib_invalidate_mem): Likewise.
5225         * function.c (expand_function_start): Likewise.
5226         (emit_use_return_register_into_block): Likewise.
5227         * gcse.c: Likewise.
5228         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
5229         * ifcvt.c (noce_get_alt_condition): Likewise.
5230         * loop-doloop.c (doloop_condition_get): Likewise.
5231         * lra-constraints.c (inherit_in_ebb): Likewise.
5232         * modulo-sched.c (sms_schedule_by_order): Likewise.
5233         * recog.c (next_insn_tests_no_inequality): Likewise.
5234         * reorg.c (emit_delay_sequence): Likewise.
5235         (update_reg_dead_notes): Likewise.
5236         (fix_reg_dead_note): Likewise.
5237         (fill_slots_from_thread): Likewise.
5238         (delete_computation): Likewise.
5240 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
5242         * doc/extend.texi (Variable Attributes): Add menu and proper
5243         @nodes to subsections.  Move Microsoft Windows attributes to
5244         their own subsection.
5245         (Type Attributes): Reorganize introduction to remove duplicate
5246         list of attributes.  Add menu and proper @nodes to subsections.
5247         Alphabetize the main table of common attributes.
5249 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
5251         * match.pd: New simplification patterns.
5252         (x + (x & 1))  -> ((x + 1) & ~1)
5253         (x & ~(x & y)) -> ((x & ~y))
5254         (x | ~(x | y)) -> ((x | ~y))
5256 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5258         * target.def (attribute_table): Mention that struct attribute_spec
5259         is defined in tree-core.h rather than tree.h
5260         * doc/tm.texi: Regenerate.
5262 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
5264         * genrecog.c (test): Rename to rtx_test.  Update rest of file
5265         accordingly.
5267 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5269         PR translation/65959
5270         * params.h (DEFPARAM): Rename msgid to nocmsgid.
5272 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
5274         * gcc/config/aarch64/aarch64-protos.h (tune_params):
5275         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
5276         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
5277         Return value depending on target.
5278         (generic_tunings): Initialize new target settings.
5279         (cortexa53_tunings): Likewise.
5280         (cortexa57_tunings): Likewise.
5281         (thunderx_tunings): Likewise.
5282         (xgene1_tunings): Likewise.
5284 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
5286         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
5287         Make Cortex-A53 shift costs more accurate.
5289 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5291         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
5292         UNSIGNED_FLOAT.
5294 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
5296         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
5297         Calculate cost of op0 and op1 in PLUS and MINUS cases.
5299 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5301         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
5302         Add cost of op0 in the compare-with-fpzero case.
5304 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
5306         * builtins.c (fold_builtin_1): Remove spurious second
5307         semicolon.
5308         * cgraph.h (symtab_node::get_availability): Likewise.
5309         * opts.c (common_handle_option): Remove spurious second semicolon.
5310         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5311         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5313 2015-04-30  Caroline Tice  <cmtice@google.com>
5315         PR gcov-profile/65929
5316         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
5317         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
5318         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
5319         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
5320         * doc/tm.texi: Regenerate.
5321         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
5322         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
5323         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
5324         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
5326 2015-04-30  Marek Polacek  <polacek@redhat.com>
5328         * varasm.c (handle_cache_entry): Fix logic.
5330 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5332         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
5333         (*extrsi5_insn_uxtw_alt): Likewise.
5334         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
5335         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
5336         operations.
5338 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5340         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
5341         fabd in ABS case.
5343 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5345         * config/aarch64/aarch64.md
5346         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
5347         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
5348         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
5349         appropriately.  Handle alternative EON form.
5351 2015-04-30  Renlin Li  <renlin.li@arm.com>
5353         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
5354         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
5356 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
5358         PR ipa/65873
5359         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
5360         -fstrict-aliasing boundaries.
5362 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5364         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
5365         and [SU]MNEGL patterns.
5367 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5369         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
5370         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
5371         combined arithmetic-shift ops.  Properly handle all shift and extend
5372         operations that can occur in combination with PLUS/MINUS.
5373         Rename maybe_fma to compound_p.
5374         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
5375         arithmetic and shift operations.
5377 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5379         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
5380         rather than arith_shift cost when costing ADD/MINUS of an
5381         extended value.
5383 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
5385         PR lto/65948
5386         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
5387         to itself.
5389 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
5391         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
5392         are for the same position.
5394 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
5396         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
5397         vectorize_loops.
5398         (vectorize_loops): Use it.
5400 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
5402         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
5403         for aggregate types.
5404         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
5405         type to be non_ODR.
5406         * tree.c (need_assembler_name_p): Compute mangled name for
5407         non-fundamental types and integer types.
5409 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
5411         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
5412         manual swaps.
5413         * expr.c (expand_expr_real_2): Likewise.
5415 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
5417         * tree.c (build_common_builtin_nodes): Do not build
5418         __builtin_alloca_with_align as equivalent of library alloca.
5420 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
5422         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
5423         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
5424         bugus variants.
5425         * tree.c: Include print-tree.h and ipa-utils.h
5426         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
5427         (free_lang_data_in_cgraph): Call verify_type.
5428         (verify_type_variant): New function.
5429         (verify_type): New function.
5430         * tree.h (verify_type): Declare.
5432 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
5434         * config/mips/mips-cpus.def: (mips4): Change default processor
5435         from PROCESSOR_R8000 to PROCESSOR_R10000.
5437 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
5439         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
5440         la/jalr instead of jal.
5442 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
5444         PR target/65871
5445         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
5446         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
5447         (setcc+movzbl peephole2): Check also clobbered reg.
5448         (setcc+andl peephole2): Ditto.
5450 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
5452         PR libgomp/65099
5453         * config/nvptx/mkoffload.c (target_ilp32): New variable.
5454         (main): Set it depending on "-foffload-abi=[...]".
5455         (compile_native, main): Use it to pass "-m32" or "-m64" to the
5456         compiler.
5458 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
5460         PR target/65770
5461         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
5462         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
5463         Flip lane index back at assembly time for bigendian.
5465 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
5467         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
5468         * gimplify.c (gimplify_omp_workshare): Use it.
5470 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
5472         * Makefile.in (build/genrecog.o): Depend on inchash.h.
5473         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
5474         build/inchash.o
5475         * genrecog.c: Rewrite most of the code except for the third page.
5477 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
5479         * inchash.h, inchash.c: Include bconfig.h for build objects.
5480         * Makefile.in (build/inchash.o): New rule.
5482 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
5484         PR target/65924
5485         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
5486         number in type attribute expression.
5488 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
5490         * loop-iv.c (canon_condition): Generalize to all types of integer
5491         constant.
5493 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
5495         * gimple-walk.c: Prune duplicate or unneeded includes.
5496         (walk_gimple_asm): Only call parse_input_constraint or
5497         parse_output_constraint if their findings are used.
5498         Honour parse_input_constraint and parse_output_constraint
5499         result.
5501 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
5503         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
5505 2015-04-29  Tom de Vries  <tom@codesourcery.com>
5507         PR tree-optimization/65893
5508         * passes.def (pass_all_optimizations): Move pass_stdarg to after
5509         pass_dce.
5511 2015-04-29  Richard Biener  <rguenther@suse.de>
5513         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5514         compute GROUP_SIZE for basic-block SLP.
5515         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
5516         take into account gaps.
5517         (vect_get_mask_element): Properly reject references to previous
5518         vectors.
5519         (vect_transform_slp_perm_load): Likewise.
5521 2015-04-29  Christian Bruel  <christian.bruel@st.com>
5523         PR target/64835
5524         * config/i386/i386.c (ix86_default_align): New function.
5525         (ix86_override_options_after_change): Call ix86_default_align.
5526         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
5527         (ix86_override_options_after_change): New function.
5529 2015-04-28  Jeff Law  <law@redhat.com>
5531         * tree-ssa-dom.c (record_equality); Fix comment typos.
5533 2015-04-28  Tom de Vries  <tom@codesourcery.com>
5535         PR tree-optimization/65887
5536         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
5538 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
5540         * doc/extend.texi (Declaring Attributes of Functions): Split into
5541         subsections by target.  Alphabetize the table of common attributes.
5542         Rewrite some of the introductory text to reflect the new structure.
5543         Update some cross-references to point to the new subsections.
5544         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
5545         duplicate copies in the discussion of function, label, and type
5546         attributes.
5548 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
5550         PR bootstrap/65910
5551         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
5553 2015-04-28  Jason Merrill  <jason@redhat.com>
5555         PR c++/65734
5556         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
5557         (finalize_type_size): Respect TYPE_USER_ALIGN.
5558         (layout_type) [ARRAY_TYPE]: Likewise.
5560 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
5562         * config/arm/arm.md (*arm_movt): Fix type attribute.
5563         (*cmpsi_shiftsi): Likewise.
5564         (*cmpsi_shiftsi_swp): Likewise.
5565         (*movsicc_insn): Likewise.
5566         (*cond_move): Likewise.
5567         (*if_plus_move): Likewise.
5568         (*if_move_plus): Likewise.
5569         (*if_arith_move): Likewise.
5570         (*if_move_arith): Likewise.
5571         (*if_shift_move): Likewise.
5572         (*if_move_shift): Likewise.
5573         (*arm_movtas_ze): Likewise.
5574         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
5575         redundancy and type attribute.
5576         (*thumb2_movsi_insn): Fix type attribute.
5577         (*thumb2_addsi_short): Likewise.
5578         (thumb2_addsi3_compare0): Likewise.
5579         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
5580         attributes accordingly.
5582 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
5584         PR other/65911
5585         * function.c (pad_to_arg_alignment): Add parentheses.
5587 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
5589         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
5590         libgcc/config/frv/elf-lib.h.
5592 2015-04-28  Tom de Vries  <tom@codesourcery.com>
5594         * tree-call-cdce.c: Fix example in header comment.
5596 2015-04-28  Richard Biener  <rguenther@suse.de>
5598         PR tree-optimization/62283
5599         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
5600         fails fatally and we are vectorizing a basic-block simply
5601         cause the child to be constructed piecewise.
5602         (vect_analyze_slp_cost_1): Adjust.
5603         (vect_detect_hybrid_slp_stmts): Likewise.
5604         (vect_bb_slp_scalar_cost): Likewise.
5605         (vect_get_constant_vectors): For piecewise constructed
5606         constants place them after the last def.
5607         (vect_get_slp_defs): Adjust.
5608         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
5609         externals for basic-block vectorization.
5611 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5613         PR target/63503
5614         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
5615         aarch64-*-*.
5616         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
5617         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
5618         (AARCH64_TUNE_FMA_STEERING): Likewise.
5619         * config/aarch64/aarch64-cores.def: Set
5620         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
5621         FMUL/FMADD instructions.
5622         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
5623         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
5624         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
5625         * config/aarch64/cortex-a57-fma-steering.h: New file.
5626         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5628 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
5630         * gensupport.c (std_preds): Add missing codes to address_operand entry.
5632 2015-04-28  Richard Biener  <rguenther@suse.de>
5634         PR tree-optimization/65851
5635         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
5636         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
5637         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
5638         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
5639         (ccp_visit_phi_node): Adjust.
5640         (evaluate_stmt): For simplifications to SSA names return its
5641         lattice value if that isn't VARYING.  Return immediately when
5642         simplified to a constant.
5643         (visit_assignment): Adjust.
5644         (ccp_visit_stmt): Likewise.
5646 2015-04-28  Tom de Vries  <tom@codesourcery.com>
5648         PR tree-optimization/65818
5649         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
5650         evaluated.
5652 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5654         * calls.c (save_fixed_argument_area): Don't check
5655         ARGS_GROW_DOWNWARD with the preprocessor.
5656         (restore_fixed_argument_area): Likewise.
5657         (mem_overlaps_already_clobbered_arg_p): Likewise.
5658         (check_sibcall_argument_overlap): Likewise.
5659         (expand_call): Likewise.
5660         (emit_library_call_value_1): Likewise.
5661         (store_one_arg): Likewise.
5662         * function.c (assign_parms): Likewise.
5663         (locate_and_pad_parm): Likewise.
5664         (pad_to_arg_alignment): Likewise.
5665         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5667 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5669         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
5670         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
5671         * calls.c (save_fixed_argument_area): Don't chekc if
5672         ARGS_GROW_DOWNWARD is defined.
5673         (restore_fixed_argument_area): Likewise.
5674         (mem_overlaps_already_clobbered_arg_p): Likewise.
5675         (check_sibcall_argument_overlap): Likewise.
5676         (expand_call): Likewise.
5677         (emit_library_call_value_1): Likewise.
5678         (store_one_arg): Likewise.
5679         * function.c (assign_parms): Likewise.
5680         (locate_and_pad_parm): Likewise.
5681         (pad_to_arg_alignment): Likewise.
5682         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5684 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5686         * defaults.h (gen_epilogue): New function.
5687         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
5688         defined.
5689         * cfgrtl.c (cfg_layout_finalize): Likewise.
5690         * df-scan.c: Likewise.
5691         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5692         (reposition_prologue_and_epilogue_notes): Likewise.
5693         * reorg.c (find_end_label): Likewise.
5694         * toplev.c: Likewise.
5696 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5698         * bb-reorder.c (HAVE_return): Don't check if its undefined.
5699         * defaults.h (gen_simple_return): New function.
5700         (gen_simple_return): Likewise.
5701         (HAVE_return): Add default definition to false.
5702         (HAVE_simple_return): Likewise.
5703         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
5704         HAVE_return and HAVE_simple_return are defined.
5705         * function.c (gen_return_pattern): Likewise.
5706         (convert_jumps_to_returns): Likewise.
5707         (thread_prologue_and_epilogue_insns): Likewise.
5708         * reorg.c (find_end_label): Likewise.
5709         (dbr_schedule): Likewise.
5710         * shrink-wrap.c: Likewise.
5711         * shrink-wrap.h: Likewise.
5713 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5715         * defaults.h (EPILOGUE_USES): Add default definition of false.
5716         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
5717         * resource.c (init_resource_info): Likewise.
5719 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5721         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
5722         to false.
5723         * dwarf2out.c (field_byte_offset): REmove check if
5724         PCC_BITFIELD_TYPE_MATTERS is defined.
5725         * stor-layout.c (layout_decl): Likewise.
5726         (update_alignment_for_field): Likewise.
5727         (place_field): Likewise.
5729 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5731         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
5732         true.
5733         * regrename.c (check_new_reg_p): Remove check if
5734         HARD_REGNO_RENAME_OK is defined.
5735         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
5737 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5739         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
5740         * cse.c (fold_rtx): Likewise.
5741         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
5742         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
5743         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
5744         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
5745         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
5746         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
5747         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
5748         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
5749         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
5750         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
5751         * Likewise.
5752         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
5753         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
5754         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
5755         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
5756         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
5757         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
5758         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
5759         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
5760         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
5761         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
5762         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
5763         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
5764         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
5765         * doc/tm.texi: Regenerate.
5766         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
5767         either true or false.
5769 2015-04-27  Jeff Law  <law@redhat.com>
5771         PR tree-optimization/65217
5772         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
5773         of them has a single use, make sure it is the LHS of the implied
5774         copy.
5776 2015-04-28  Alan Modra  <amodra@gmail.com>
5778         PR target/65810
5779         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
5780         (offsettable_ok_by_alignment): Use minimum of decl and toc
5781         pointer alignment.  Replace dead code with assertion.
5782         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
5783         case if size exceeds toc pointer alignment.
5784         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
5785         (rs6000_emit_move): Likewise.
5786         * configure.ac: Add linker toc pointer alignment check.
5787         * configure: Regenerate.
5788         * config.in: Regenerate.
5790 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
5792         * config.gcc: Add h8300-*-linux.
5793         * config/h8300/linux.h: New.
5794         * config/h8300/t-linux: New.
5795         * config/h8300/h8300.c (h8300_option_override): Normal mode
5796         is not supported for h8300-*-linux.
5797         (h8300_file_start): Target priority change.
5798         (get_shift_alg): Likewise.
5799         (h8300_shift_need_scratch_p): Likewise.
5800         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
5801         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
5803 2015-04-27  Caroline Tice  <cmtice@google.com>
5805         * final.c (final_scan_insn):  Output cold_function_name as function
5806         type.
5807         * varasm.c (cold_function_name):  Make global.
5808         (assemble_start_function):  Re-set cold_function_name.
5809         (assemble_end_function): Output cold partition size.
5810         * varasm.h (cold_function_name):  Declare global.
5812 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
5814         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
5815         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
5816         constraint.
5817         (*movxi_internal_avx512f): Ditto.
5818         (define_split): Check for xmm16+, when splitting scalar float_extend.
5819         (*extendsfdf2_mixed): Use "v" constraint.
5820         (define_split): Check for xmm16+, when splitting scalar float_truncate.
5821         (*truncdfsf_fast_sse): Use "v" constraint.
5822         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
5823         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
5824         (define_peephole2): Check for xmm16+, when converting scalar
5825         float_truncate.
5826         (define_peephole2): Check for xmm16+, when converting scalar
5827         float_extend.
5828         (*fop_<mode>_comm_mixed): Use "v" constraint.
5829         (*fop_<mode>_comm_sse): Ditto.
5830         (*fop_<mode>_1_mixed): Ditto.
5831         (*sqrt<mode>2_sse): Ditto.
5832         (*ieee_s<ieee_maxmin><mode>3): Ditto.
5834 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5836         * combine.c (simplify_if_then_else): Use std::swap instead
5837         of manually swapping.
5838         (known_cond): Likewise.
5839         (simplify_comparison): Likewise.
5841 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
5843         PR target/64579
5844         * config/rs6000/htm.md: Remove all define_expands.
5845         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
5846         UNSPECV_HTM_TABORTWCI): Remove.
5847         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
5848         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
5849         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
5850         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
5851         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
5852         tabortwci_internal): Remove define_insns.
5853         (tabort<wd>c, tabort<wd>ci): New define_insns.
5854         (tabort): Use gpc_reg_operand.
5855         (tcheck): Remove operand.
5856         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
5857         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
5858         expected value.
5859         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
5860         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
5861         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
5862         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
5863         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
5864         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
5865         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
5866         (tcheck): Remove builtin argument.
5867         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
5868         not TARGET_64BIT.
5869         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
5870         tabortdc and tabortdci builtins when not in 64-bit mode.
5871         Modify code to handle the loss of the HTM define_expands.
5872         Emit code to copy the CR register to TARGET.
5873         (htm_init_builtins): Modify code to handle the loss of the HTM
5874         define_expands.
5875         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
5876         (RS6000_BTC_64BIT): Likewise.
5877         (RS6000_BTC_CR): New macro.
5878         * doc/extend.texi: Update documentation for htm builtins.
5880 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5882         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
5883         of manually swapping.
5884         (simplify_associative_operation): Likewise.
5885         (simplify_binary_operation): Likewise.
5886         (simplify_plus_minus): Likewise.
5887         (simplify_relational_operation): Likewise.
5888         (simplify_ternary_operation): Likewise.
5890 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
5892         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
5893         (xs_hi_nonmemory_operand): Remove error.
5894         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
5895         general_operand rather than xs_hi_general_operand.
5897 2015-04-27  Richard Biener  <rguenther@suse.de>
5899         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
5900         (record_equivalences_from_stmt): Valueize rhs.
5901         (record_equality): Canonicalize x and y order via
5902         tree_swap_operands_p.  Do not swap operands for same loop depth.
5904 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
5906         PR target/65296
5907         PR target/65895
5908         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
5909         Add hint how to use own spec file.
5911 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
5913         PR tree-optimization/65875
5914         * tree-vrp.c (update_value_range): If in is_new case setting
5915         old_vr to VR_VARYING, also set new_vr to it.  Remove
5916         old_vr->type == VR_VARYING test.
5917         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
5918         SSA_PROP_INTERESTING if update_value_range returned true,
5919         but new range is VR_VARYING.
5921 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5923         * combine.c (sign_extend_short_imm): New.
5924         (set_nonzero_bits_and_sign_copies): Use above new function for sign
5925         extension of src short immediate.
5926         (reg_nonzero_bits_for_combine): Likewise for tem.
5928 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5930         * stor-layout.c (self_referential_component_ref_p): New predicate.
5931         (copy_self_referential_tree_r): Use it.
5932         (self_referential_size): Punt for simple operations directly involving
5933         self-referential component references.
5934         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
5936 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5938         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
5940 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
5942         * vec.h (vec): Make splice arguments const.  Update definitions
5943         accordingly.
5945 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
5947         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
5948         alternatives.
5950 2015-04-26  Tom de Vries  <tom@codesourcery.com>
5952         PR tree-optimization/65826
5953         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
5955 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
5957         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
5958         (*madd3<mode>): Ditto.
5959         (*msub4<mode>): Ditto.
5960         (*msub3<mode>): Ditto.
5961         (*nmadd4<mode>): Ditto.
5962         (*nmadd3<mode>): Ditto.
5963         (*nmadd4<mode>_fastmath): Ditto.
5964         (*nmadd3<mode>_fastmath): Ditto.
5965         (*nmsub4<mode>): Ditto.
5966         (*nmsub3<mode>): Ditto.
5967         (*nmsub4<mode>_fastmath): Ditto.
5968         (*nmsub3<mode>_fastmath): Ditto.
5970 2015-04-24  Jason Merrill  <jason@redhat.com>
5972         PR c++/50800
5973         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
5974         down when building TYPE_CANONICAL.
5975         (build_pointer_type_for_mode): Likewise.
5977 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
5979         * genrecog.c (validate_pattern): Check matching constraint refers
5980         to a lower numbered operand.
5982 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5984         PR target/65849
5985         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
5986         save to independent variables use the Save attribute.  This will
5987         allow these options to be modified with the #pragma/attribute
5988         target support.
5989         (-mallow-movmisalign): Likewise.
5990         (-mallow-df-permute): Likewise.
5991         (-msched-groups): Likewise.
5992         (-malways-hint): Likewise.
5993         (-malign-branch-targets): Likewise.
5994         (-mvectorize-builtins): Likewise.
5995         (-msave-toc-indirect): Likewise.
5997         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
5998         can be set via the #pragma/attribute target support.
5999         (rs6000_opt_vars): Likewise.
6000         (rs6000_inner_target_options): If VSX was set, also set
6001         -mno-avoid-indexed-addresses.
6003 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6005         * config/arm/iterators.md (shiftable_ops): Rename to...
6006         (SHIFTABLE_OPS): ... This.  Update use in comments.
6007         (ior_xor): Rename to...
6008         (IOR_XOR): ... This.
6009         (vqh_ops): Rename to...
6010         (VQH_OPS): ... This.
6011         (vqhs_ops): Rename to...
6012         (VQHS_OPS): ... This.
6013         (rshifts): Rename to...
6014         (RSHIFTS): ... This.
6015         (returns): Rename to...
6016         (RETURNS): ... This.
6017         * config/arm/arm.md: Update uses of the above.
6018         * config/arm/neon.md: Likewise.
6020 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6022         * config.host (case ${host}): Add aarch64*-*-linux case.
6023         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
6024         fields to all the cores.
6025         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
6026         Add MCPU_MTUNE_NATIVE_SPECS.
6027         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
6028         field to all extensions.
6029         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
6030         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
6031         Adjust definition of AARCH64_OPT_EXTENSION.
6032         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
6033         (MCPU_MTUNE_NATIVE_SPECS): Define.
6034         * config/aarch64/driver-aarch64.c: New file.
6035         * config/aarch64/x-arch64: New file.
6036         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
6037         -mtune and -march.
6039 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
6040             Wei Mi  <wmi@google.com>
6042         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
6043         * config/i386/i386.c (extract_base_offset_in_addr): New function.
6044         (ix86_operands_ok_for_move_multiple): Ditto.
6045         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
6046         (movlpd/movhpd to movupd peephole2): Ditto.
6048 2015-04-24  Marek Polacek  <polacek@redhat.com>
6050         PR c/61534
6051         * input.h (from_macro_expansion_at): Define.
6053         PR c/63357
6054         * doc/invoke.texi: Update description of -Wlogical-op.
6056 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6058         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
6059         ternary operator in fprintf and harmonize spacing.
6061 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
6063         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
6064         Mark operand1 commutative.
6066 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
6068         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
6069         input operands in memory.
6070         (*vec_concatv2si_sse4_1): Ditto.
6071         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
6072         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
6073         register_operand.
6074         (vec_extract_hi_v32hi): Ditto.
6075         (vec_extract_hi_v64hi): Ditto.
6076         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6078 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6079             Steven Bosscher <steven@gcc.gnu.org>
6081         PR rtl-optimization/34503
6082         * cprop.c (cprop_reg_p): New.
6083         (hash_scan_set): Use above function to check if register can be
6084         propagated.
6085         (find_avail_set): Return up to two sets, one whose source is a
6086         register and one whose source is a constant.  Sets are returned in an
6087         array passed as parameter rather than as a return value.
6088         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
6089         sets returned by find_avail_set, starting with the one whose source is
6090         a constant. Use cprop_reg_p to check if register can be propagated.
6091         (do_local_cprop): Use cprop_reg_p to check if register can be
6092         propagated.
6093         (implicit_set_cond_p): Likewise.
6095 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6097         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
6098         (sem_function::equals): IGNORED_NODES parameter is now unused;
6099         update call of equals_private.
6100         (sem_function::equals_private): Do not call equals_wpa; skip
6101         gimple body matching if there is no body.
6102         (sem_function::init): Add logic to hash tthunk info.
6103         (sem_function::parse): Also parse thunks.
6104         * ipa-icf.h (equals_private): Update declaration.
6106 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6108         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
6109         asterisk from name so this can be generated directly.
6110         (*altivec_stvx_<mode>_internal): Likewise.
6111         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
6112         that this is never called during or after reload/lra.
6113         (rs6000_frame_related): Remove split_reg
6114         argument and logic that references it.
6115         (emit_frame_save): Remove last parameter from call to
6116         rs6000_frame_related.
6117         (rs6000_emit_prologue): Remove last parameter from eight calls to
6118         rs6000_frame_related.  Force generation of stvx instruction for
6119         Altivec register saves.  Remove split_reg handling, which is no
6120         longer needed.
6121         (rs6000_emit_epilogue):  Force generation of lvx instruction for
6122         Altivec register restores.
6124 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6126         * config/rs6000/rs6000.opt (mcrypto): Change option description to
6127         match category changes in ISA 2.07B.
6129 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6131         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
6132         iterators.
6133         (cmp_op, cmp_type): New code attributes.
6134         (NEON_VCMP, NEON_VACMP): New int iterators.
6135         (cmp_op_unsp): New int attribute.
6136         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
6137         (neon_vceq<mode>): Delete.
6138         (neon_vc<cmp_op><mode>_insn): New pattern.
6139         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
6140         (neon_vcgeu<mode>): Delete.
6141         (neon_vcle<mode>): Likewise.
6142         (neon_vclt<mode>: Likewise.
6143         (neon_vcage<mode>): Likewise.
6144         (neon_vcagt<mode>): Likewise.
6145         (neon_vca<cmp_op><mode>): New define_expand.
6146         (neon_vca<cmp_op><mode>_insn): New pattern.
6147         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
6149 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6151         * tree.h (attribute_value_equal): Declare.
6152         * tree.c (attribute_value_equal): Export.
6154 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6156         * ipa-icf.c (sem_item::compare_attributes): New function.
6157         (sem_item::compare_referenced_symbol_properties): Compare variable
6158         attributes.
6159         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
6160         (sem_function::param_used_p): New function.
6161         (sem_function::equals_wpa): Fix attribute comparsion; match
6162         parameter type codes; do not compare paremter flags when
6163         they are not used; compare edge flags; compare indirect calls.
6164         (sem_item::update_hash_by_addr_refs): Hash reference type.
6165         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
6166         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
6167         reference use type.
6168         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
6169         * ipa-icf.h (compare_attributes, param_used_p): Declare.
6171 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
6173         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
6174         cleanup.
6175         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
6176         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
6177         (sem_item::compare_referenced_symbol_properties): New.
6178         (sem_item::hash_referenced_symbol_properties): New.
6179         (sem_item::compare_cgraph_references): Rename to ...
6180         (sem_item::compare_symbol_references): ... this one; use
6181         compare_referenced_symbol_properties.
6182         (sem_function::equals_wpa): Do not compare
6183         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
6184         DECL_IS_OPERATOR_NEW; compare pointer sizes.
6185         (sem_item::update_hash_by_addr_refs): Call
6186         hash_referenced_symbol_properties.
6187         (sem_item::update_hash_by_local_refs): Cleanup.
6188         (sem_function::merge): Do not mix up symbol properties.
6189         (sem_variable::equals_wpa): Use compare_symbol_references.
6190         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
6191         (sem_item::hash_referenced_symbol_properties): New.
6192         (sem_item::compare_symbol_references): New.
6193         (sem_item::compare_cgraph_references): Remove.
6195 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
6197         PR target/26702
6198         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
6199         Emit size of local.
6201 2015-04-23  Nick Clifton  <nickc@redhat.com>
6203         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
6204         ATTRIBUTE_UNUSED to x parameter.
6205         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
6207 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6209         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
6210         TARGET_CRYPTO to TARGET_P8_VECTOR>
6211         (crypto_vpermxor_<mode>): Likewise.
6212         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
6213         (BU_CRYPTO_3A): Likewise.
6214         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
6215         (BU_CRYPTO_OVERLOAD_3A): New #define.
6216         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
6217         (VPMSUMH): Likewise.
6218         (VPMSUMW): Likewise.
6219         (VPMSUMD): Likewise.
6220         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
6221         (VPERMXOR_V4SI): Likewise.
6222         (VPERMXOR_V8HI): Likewise.
6223         (VPERMXOR_V16QI): Likewise.
6224         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
6225         BU_CRYPTO_OVERLOAD_2A.
6226         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
6227         BU_CRYPTO_OVERLOAD_3A.
6228         * config/rs6000/rs6000.opt (mcrypto): Change description of
6229         option.
6231 2015-04-23  Richard Biener  <rguenther@suse.de>
6233         * passes.def: Remove copy propagation passes run directly after CCP.
6234         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
6235         SSA names.
6236         (ccp_visit_phi_node): Rework to handle first executable edge
6237         specially.
6239 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
6241         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6242         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
6243         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
6244         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
6245         (thumb_legimitimize_reload_address): Remove.
6246         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
6247         Remove.
6248         (thumb_legimitimize_reload_address): Remove.
6250 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6252         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
6254 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6256         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
6257         MAX_LDM_STM_OPS.
6258         (store_multiple): Likewise.
6260 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6262         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
6263         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
6264         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
6265         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
6266         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
6267         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
6268         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
6269         Specify issue_rate value.
6270         (arm_issue_rate): Look up issue rate from tuning structs. Remove
6271         large switch statement.
6272         (arm_marvell_pj4_tune): New struct.
6273         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
6274         struct.
6276 2015-04-23  Richard Biener  <rguenther@suse.de>
6278         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
6279         (vect_find_last_store_in_slp_instance): Rename to ...
6280         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
6281         (vect_analyze_slp_cost_1): Use vector_load for constant defs
6282         and vec_construct for external defs when estimating prologue cost.
6283         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
6284         Compute costs here only when vectorizing loops.
6285         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
6286         have been determined.
6287         (vect_schedule_slp_instance): Simplify vectorized code placement
6288         and prepare for in-BB external defs.
6289         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
6290         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
6291         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
6292         guard.
6293         (vect_model_load_cost): Likewise.
6294         (vectorizable_store): Instead add it here.
6295         (vectorizable_load): Likewise.
6296         (vect_is_simple_use): Dump def type textually.
6298 2015-04-23  Richard Biener  <rguenther@suse.de>
6300         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
6301         * cfgloop.c (verify_loop_structure): Verify the root loop node.
6302         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
6303         instead of get_eh_region_from_lp_number.
6304         * loop-init.c (fix_loop_structure): If we removed a loop, reset
6305         the SCEV cache.
6307 2015-04-23  Anton Blanchard  <anton@samba.org>
6309         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
6310         need for -mprofile-kernel to save LR to stack.
6312 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6314         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
6315         adjustments.
6316         (insn_is_swappable_p): Return 1 for a convert from double to
6317         single precision when all of its uses are splats of BE element
6318         zero.
6320 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
6322         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
6324 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6326         PR target/65456
6327         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
6328         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
6329         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
6330         option.
6331         (rs6000_builtin_mask_for_load): Return 0 for targets with
6332         efficient unaligned VSX accesses so that the vectorizer will use
6333         direct unaligned loads.
6334         (rs6000_builtin_support_vector_misalignment): Always return true
6335         for targets with efficient unaligned VSX accesses.
6336         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
6337         stores on targets with efficient unaligned VSX accesses is almost
6338         always the same as the cost of an aligned load or store, so model
6339         it that way.
6340         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
6341         unaligned vectors if we have efficient unaligned VSX accesses.
6342         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
6343         undocumented option.
6345 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6347         Revert:
6348         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
6350         * config.gcc (LIBC_MUSL): New tm_defines macro.
6351         * config/linux.h (OPTION_MUSL): Define.
6352         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6353         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6354         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6356         * config/linux.opt (mmusl): New option.
6357         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
6358         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
6360         * configure: Regenerate.
6362 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
6364         * config.gcc (LIBC_MUSL): New tm_defines macro.
6365         * config/linux.h (OPTION_MUSL): Define.
6366         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6367         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6368         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6370         * config/linux.opt (mmusl): New option.
6371         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
6372         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
6374         * configure: Regenerate.
6376 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
6378         * doc/invoke.texi (-fsanitize-sections): Update description.
6379         * asan.c (set_sanitized_sections): Parse incoming arg.
6380         (section_sanitized_p): Support wildcards.
6382 2015-04-22  Tom de Vries  <tom@codesourcery.com>
6384         PR tree-optimization/65823
6385         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
6386         equality between ap_copy and ap.
6388 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6390         PR target/47098
6391         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
6393 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6395         PR target/47122
6396         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
6398 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6400         PR target/55144
6401         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
6402         remove already contained t-files.
6404 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6406         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
6407         Remove unneeded forward declarations.
6408         (suitable_for_tail_call_opt_p): Commentary typo fix.
6410 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6412         * varasm.c (emit_bss): Remove redundant guard.
6414 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6416         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
6418 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6420         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
6422 2015-04-22  Hale Wang  <hale.wang@arm.com>
6423             Terry Guo  <terry.guo@arm.com>
6425         PR rtl-optimization/64818
6426         * combine.c (can_combine_p): Don't combine user-specified
6427         register if it is in an asm input.
6429 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
6431         PR ipa/65076
6432         * passes.def (early_optimizations): Add pass_dse.
6434 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6436         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
6437         * reorg.c (redundant_insn): Remove ifdef
6438         INSN_REFERENCES_ARE_DELAYED.
6439         * resource.c (mark_referenced_resources): Likewise.
6441 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6443         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
6444         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
6445         * resource.c (mark_set_resources): Likewise.
6447 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6449         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
6450         * cfgcleanup.c (flow_find_cross_jump): Likewise.
6451         (flow_find_head_matching_sequence): Likewise.
6452         (try_head_merge_bb): Likewise.
6453         * combine.c (can_combine_p): Likewise.
6454         (try_combine): Likewise.
6455         (distribute_notes): Likewise.
6456         * df-problems.c (can_move_insns_across): Likewise.
6457         * final.c (final): Likewise.
6458         * gcse.c (insert_insn_end_basic_block): Likewise.
6459         * ira.c (find_moveable_pseudos): Likewise.
6460         * reorg.c (try_merge_delay_insns): Likewise.
6461         (fill_simple_delay_slots): Likewise.
6462         (fill_slots_from_thread): Likewise.
6463         * sched-deps.c (sched_analyze_2): Likewise.
6465 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6467         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
6468         PIC_OFFSET_TABLE_REGNUM.
6470 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6472         * alias.c (init_alias_target): Remove ifdef
6473         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
6474         * df-scan.c (df_insn_refs_collect): Likewise.
6475         (df_get_regular_block_artificial_uses): Likewise.
6476         (df_get_eh_block_artificial_uses): Likewise.
6477         (df_get_entry_block_def_set): Likewise.
6478         (df_get_exit_block_use_set): Likewise.
6479         * emit-rtl.c (gen_rtx_REG): Likewise.
6480         * ira.c (ira_setup_eliminable_regset): Likewise.
6481         * reginfo.c (init_reg_sets_1): Likewise.
6482         * regrename.c (rename_chains): Likewise.
6483         * reload1.c (reload): Likewise.
6484         (eliminate_regs_in_insn): Likewise.
6485         * resource.c (mark_referenced_resources): Likewise.
6486         (init_resource_info): Likewise.
6488 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6490         * defaults.h (MASK_RETURN_ADDR): New definition.
6491         * except.c (expand_builtin_extract_return_addr): Remove ifdef
6492         MASK_RETURN_ADDR.
6494 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6496         * defaults.h (RETURN_ADDR_OFFSET): New definition.
6497         * except.c (expand_builtin_extract_return_addr): Remove ifdef
6498         RETURN_ADDR_OFFSET.
6499         (expand_builtin_frob_return_addr): Likewise.
6501 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6503         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
6504         (try_redirect_by_replacing_jump): Likewise.
6505         (rtl_tidy_fallthru_edge): Likewise.
6506         * combine.c (insn_a_feeds_b): Likewise.
6507         (find_split_point): Likewise.
6508         (simplify_set): Likewise.
6509         * cprop.c (cprop_jump): Likewise.
6510         * cse.c (cse_extended_basic_block): Likewise.
6511         * df-problems.c (can_move_insns_across): Likewise.
6512         * function.c (emit_use_return_register_into_block): Likewise.
6513         * haifa-sched.c (sched_init): Likewise.
6514         * ira.c (find_moveable_pseudos): Likewise.
6515         * loop-invariant.c (find_invariant_insn): Likewise.
6516         * lra-constraints.c (curr_insn_transform): Likewise.
6517         * postreload.c (reload_combine_recognize_const_pattern):
6518         * Likewise.
6519         * reload.c (find_reloads): Likewise.
6520         * reorg.c (delete_scheduled_jump): Likewise.
6521         (steal_delay_list_from_target): Likewise.
6522         (steal_delay_list_from_fallthrough): Likewise.
6523         (redundant_insn): Likewise.
6524         (fill_simple_delay_slots): Likewise.
6525         (fill_slots_from_thread): Likewise.
6526         (delete_computation): Likewise.
6527         * sched-rgn.c (add_branch_dependences): Likewise.
6529 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6531         * genconfig.c (main): Always define HAVE_cc0.
6532         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
6533         HAVE_cc0.
6534         * cfgcleanup.c (flow_find_cross_jump): Likewise.
6535         (flow_find_head_matching_sequence): Likewise.
6536         (try_head_merge_bb): Likewise.
6537         * cfgrtl.c (rtl_merge_blocks): Likewise.
6538         (try_redirect_by_replacing_jump): Likewise.
6539         (rtl_tidy_fallthru_edge): Likewise.
6540         * combine.c (do_SUBST_MODE): Likewise.
6541         (insn_a_feeds_b): Likewise.
6542         (combine_instructions): Likewise.
6543         (can_combine_p): Likewise.
6544         (try_combine): Likewise.
6545         (find_split_point): Likewise.
6546         (subst): Likewise.
6547         (simplify_set): Likewise.
6548         (distribute_notes): Likewise.
6549         * cprop.c (cprop_jump): Likewise.
6550         * cse.c (cse_extended_basic_block): Likewise.
6551         * df-problems.c (can_move_insns_across): Likewise.
6552         * final.c (final): Likewise.
6553         (final_scan_insn): Likewise.
6554         * function.c (emit_use_return_register_into_block): Likewise.
6555         * gcse.c (insert_insn_end_basic_block): Likewise.
6556         * haifa-sched.c (sched_init): Likewise.
6557         * ira.c (find_moveable_pseudos): Likewise.
6558         * loop-invariant.c (find_invariant_insn): Likewise.
6559         * lra-constraints.c (curr_insn_transform): Likewise.
6560         * optabs.c (prepare_cmp_insn): Likewise.
6561         * postreload.c (reload_combine_recognize_const_pattern):
6562         * Likewise.
6563         * reload.c (find_reloads): Likewise.
6564         (find_reloads_address_1): Likewise.
6565         * reorg.c (delete_scheduled_jump): Likewise.
6566         (steal_delay_list_from_target): Likewise.
6567         (steal_delay_list_from_fallthrough): Likewise.
6568         (try_merge_delay_insns): Likewise.
6569         (redundant_insn): Likewise.
6570         (fill_simple_delay_slots): Likewise.
6571         (fill_slots_from_thread): Likewise.
6572         (delete_computation): Likewise.
6573         (relax_delay_slots): Likewise.
6574         * sched-deps.c (sched_analyze_2): Likewise.
6575         * sched-rgn.c (add_branch_dependences): Likewise.
6577 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6579         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
6580         that is trivially ded on non cc0 targets.
6581         (simplify_set): Likewise.
6582         (mark_used_regs_combine): Likewise.
6583         * cse.c (new_basic_block): Likewise.
6584         (fold_rtx): Likewise.
6585         (cse_insn): Likewise.
6586         (cse_extended_basic_block): Likewise.
6587         (set_live_p): Likewise.
6588         * rtlanal.c (canonicalize_condition): Likewise.
6589         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6591 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6593         * conditions.h: Define macros even if HAVE_cc0 is undefined.
6594         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
6595         * final.c: Likewise.
6596         * jump.c: Likewise.
6597         * recog.c: Likewise.
6598         * recog.h: Declare functions even when HAVE_cc0 is undefined.
6599         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
6601 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6603         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
6604         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
6605         * builtins.c (expand_builtin): Remove check if
6606         EH_RETURN_DATA_REGNO is defined.
6607         * df-scan.c (df_bb_refs_collect): Likewise.
6608         (df_get_exit_block_use_set): Likewise.
6609         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
6610         * ira-lives.c (process_bb_node_lives): Likewise.
6611         * lra-lives.c (process_bb_lives): Likewise.
6613 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
6615         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
6616         FIRST_PSEUDO_REG): New.
6617         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
6618         (ARG_POINTER_REGNUM): Define to ARGP_REG.
6619         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
6620         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
6621         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
6622         (FIRST_INT_REG): New.
6623         (LAST_INT_REG): New.
6624         (FIRST_*_REG): Define using *_REG.
6625         (LAST_*_REG): Ditto.
6626         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
6627         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
6628         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
6630 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6632         * expmed.c: (synth_mult): Only assume overlapping
6633         shift with previous steps in alg_sub_t_m2 case.
6635 2015-04-21  Richard Biener  <rguenther@suse.de>
6637         PR tree-optimization/65650
6638         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
6639         transitions involving copies.
6640         (set_lattice_value): Adjust for copy lattice state.
6641         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
6642         if that doesn't dominate the merge point.
6643         (bit_value_unop): Adjust what we treat as varying mask.
6644         (bit_value_binop): Likewise.
6645         (bit_value_assume_aligned): Likewise.
6646         (evaluate_stmt): When we simplified to a SSA name record a copy
6647         instead of dropping to varying.
6648         (visit_assignment): Simplify.
6650         * gimple-match.h (gimple_simplify): Add another callback.
6651         * gimple-fold.c (fold_stmt_1): Adjust caller.
6652         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
6653         for the 2nd callback.
6654         * gimple-match-head.c (gimple_simplify): Add a callback that is
6655         used to valueize the stmt operands and use it that way.
6657 2015-04-21  Richard Biener  <rguenther@suse.de>
6659         PR tree-optimization/65788
6660         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
6662 2015-04-21  Richard Biener  <rguenther@suse.de>
6664         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
6665         vec_construct cost by vec_stmt_cost.
6667 2015-04-21  Richard Biener  <rguenther@suse.de>
6669         * cfghooks.h (create_basic_block): Replace with two overloads
6670         for RTL and GIMPLE.
6671         (split_block): Likewise.
6672         * cfghooks.c (split_block): Rename to ...
6673         (split_block_1): ... this.
6674         (split_block): Add two type-safe overloads for RTL and GIMPLE.
6675         (split_block_after_labels): Call split_block_1.
6676         (create_basic_block): Rename to ...
6677         (create_basic_block_1): ... this.
6678         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
6679         (create_empty_bb): Call create_basic_block_1.
6680         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
6681         split_block_after_labels.
6682         * omp-low.c (expand_parallel_call): Likewise.
6683         (expand_omp_target): Likewise.
6684         (simd_clone_adjust): Likewise.
6685         * tree-chkp.c (chkp_get_entry_block): Likewise.
6686         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
6687         create_basic_block overload.
6688         (cgraph_node::expand_thunk): Likewise.
6689         * tree-cfg.c (make_blocks): Likewise.
6690         (handle_abnormal_edges): Likewise.
6691         * tree-inline.c (copy_bb): Likewise.
6693 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6695         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
6696         New pattern.
6697         (*xor_one_cmplsidi3_ze): Likewise.
6699 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6701         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
6702         use df_remove_problem rather than manually removing problems, leaving
6703         holes in df->problems_in_order[].
6705 2015-04-21  Tom de Vries  <tom@codesourcery.com>
6707         PR tree-optimization/65802
6708         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
6710 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6712         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
6713         Increase to 128.
6714         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
6715         at '.'.  Assert that there's enough space for everything.
6717 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
6719         PR tree-optimization/64950
6720         Revert:
6721         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
6723         PR target/41089
6724         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
6725         as volatile.
6727 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
6729         PR rtl-optimization/64916
6730         * cfgcleanup.c (values_equal_p): New function.
6731         (can_replace_by): Use it.
6733 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
6735         PR c++/65801
6736         * doc/invoke.texi ([-Wnarrowing]): Update.
6738 2015-04-20  Jeff Law  <law@redhat.com>
6740         PR tree-optimization/65658
6741         * tree-ssa-threadupdate.c (redirection_block_p): Remove
6742         redundant test for GIMPLE_ASSIGN in last change.
6744 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
6746         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
6747         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
6748         (legitimize_tls_address): Ditto.
6749         (ix86_expand_move): Ditto.
6750         (ix86_expand_binary_operator): Remove reload_in_progress checks.
6751         (ix86_expand_unary_operator): Ditto.
6752         * config/i386/predicates.md (index_register_operand): Ditto.
6754 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
6756         * reorg.c (try_merge_delay_insns): Improve correctness checking
6757         for targets with multiple delay slots.
6759 2015-04-20  Jeff Law  <law@redhat.com>
6761         PR tree-optimization/65658
6762         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
6763         statements too.
6765 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
6767         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
6768         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
6769         Delete.
6771 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
6773         PR debug/65807
6774         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
6776 2015-04-20  Richard Biener  <rguenther@suse.de>
6778         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
6779         * gimple-fold.c (gimple_build_valueize): New function.
6780         (gimple_build): Always use gimple_build_valueize as valueize hook.
6782 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
6784         PR target/64134
6785         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
6786         and overwrite variable parts if <= 1/2 the elements are variable.
6788 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6790         PR rtl-optimization/65805
6791         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
6792         Don't use difference of offset and previous offset if
6793         update_sp_offset is non-zero.
6794         (eliminate_regs_in_insn): Ditto.
6795         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
6796         lra_eliminate_regs_1 call.
6797         * lra-constraints.c (get_equiv_with_elimination): Ditto.
6799 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
6801         * hash-table.h: Remove version of hash_table that stored value_type *.
6802         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
6803         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
6804         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
6805         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
6806         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
6807         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
6808         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6809         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
6810         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
6811         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
6812         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
6813         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
6814         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6815         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6816         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
6817         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
6819 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6820             Jakub Jelinek  <jakub@redhat.com>
6822         PR target/65787
6823         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
6824         subsequent SH_NONE operand does not overwrite an existing *special
6825         value.
6826         (adjust_extract): Handle case where a vec_extract operation is
6827         wrapped in a PARALLEL.
6829 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6831         PR target/65780
6832         * config/i386/i386.c (ix86_binds_local_p): Define only if
6833         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
6835 2015-04-17  Jeff Law  <law@redhat.com>
6837         PR tree-optimization/47679
6838         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
6839         * tree-ssa-scopedtables.c: New file.
6840         * tree-ssa-scopedtables.h: New file.
6841         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
6842         (const_and_copies): Change name/type.
6843         (record_const_or_copy): Move into tree-ssa-scopedtables.c
6844         (record_const_or_copy_1): Similarly.
6845         (restore_vars_to_original_value): Similarly.
6846         (pass_dominator::execute): Create and destroy const_and_copies table.
6847         (thread_across_edge): Update passing of const_and_copies.
6848         (record_temporary_equivalence): Use method calls rather than
6849         manipulating const_and_copies directly.
6850         (record_equality, cprop_into_successor_phis): Similarly.
6851         (dom_opt_dom_walker::before_dom_children): Similarly.
6852         (dom_opt_dom_walker::after_dom_children): Similarly.
6853         (eliminate_redundant_computations): Similarly.
6854         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
6855         (record_temporary_equivalence): Likewise.
6856         (invalidate_equivalences): Likewise.
6857         (record_temporary_equivalences_from_phis): Update due to type
6858         change of const_and_copies.  Use method calls rather than
6859         manipulating the stack directly.
6860         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
6861         (thread_through_normal_block, thread_across_edge): Likewise.
6862         (thread_across_edge): Likewise.
6863         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
6864         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
6865         of equiv_stack.
6866         (identify_jump_threads): Update due to type change of equiv_stack.
6867         (finalize_jump_threads): Delete the equiv_stack when complete.
6869 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
6871         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6872         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
6873         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
6875 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
6877         PR target/65535
6878         * config.gcc: Exit with a comment when we do not have a major version
6879         number for the FreeBSD target.
6881 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
6883         PR target/65689
6884         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
6885         maybe_allows_mem bitfields.
6886         (maybe_allows_none_start, maybe_allows_none_end,
6887         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
6888         maybe_allows_mem_end): New variables.
6889         (compute_maybe_allows): New function.
6890         (add_constraint): Use it to initialize maybe_allows_reg and
6891         maybe_allows_mem fields.
6892         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
6893         is_address constraints such that those that allow neither mem nor
6894         reg come first, then those that only allow reg but not mem, then
6895         those that only allow mem but not reg, then the rest.
6896         (write_allows_reg_mem_function): New function.
6897         (write_tm_preds_h): Call it.
6898         * stmt.c (parse_output_constraint, parse_input_constraint): Use
6899         the generated insn_extra_constraint_allows_reg_mem function
6900         instead of always setting *allows_reg = true; *allows_mem = true;
6901         for unknown extra constraints.
6903 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6905         PR target/65780
6906         * output.h (default_binds_local_p_3): New.
6907         * varasm.c (default_binds_local_p_3): Make it public.  Take an
6908         argument to indicate if common symbol may be local.  If common
6909         symbol may be local, treat non-external variable as defined
6910         locally.
6911         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
6912         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
6913         * config/i386/i386.c (ix86_binds_local_p): New.
6914         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
6915         ix86_binds_local_p.
6917 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
6919         PR debug/65771
6920         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
6921         trying mem_loc_descriptor on XEXP (rtl, 0).
6923 2015-04-17  Martin Liska  <mliska@suse.cz>
6925         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6926         Release symbol_compare_collection.
6927         * ipa-reference.c: Add TODO that a vector should be released.
6929 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
6931         PR target/65296
6932         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
6933         to new AVR-LibC file layout (bug #44574).
6934         (*avrlibc_devicelib): Same.
6935         * config/avr/avr-mcus.def: Adjust comments.
6936         * config/avr/avr.opt (nodevicelib): Adjust help.
6938 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
6940         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
6942 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
6944         PR c++/64527
6945         * gimplify.c (gimplify_init_constructor): Always emit a
6946         side-effecting constructor.
6948 2015-04-17  Tom de Vries  <tom@codesourcery.com>
6950         PR tree-optimization/64950
6951         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
6952         in cfun->curr_properties.
6953         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
6954         if we generate an IFN_VA_ARG.
6955         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
6956         function if PROP_gimple_lva is not set in src function.
6958 2015-04-17  Tom de Vries  <tom@codesourcery.com>
6959             Michael Matz  <matz@suse.de>
6961         PR tree-optimization/64950
6962         * gimple-iterator.c (update_modified_stmts): Remove static.
6963         * gimple-iterator.h (update_modified_stmts): Declare.
6964         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
6965         (gimplify_va_arg_internal): New function.
6966         (gimplify_va_arg_expr): Use IFN_VA_ARG.
6967         * gimplify.h (gimplify_va_arg_internal): Declare.
6968         * internal-fn.c (expand_VA_ARG): New unreachable function.
6969         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
6970         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
6971         (expand_ifn_va_arg): New function.
6972         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
6973         (pass_stdarg::execute): Call expand_ifn_va_arg.
6974         (pass_data_lower_vaarg): New pass_data.
6975         (pass_lower_vaarg): New gimple_opt_pass.
6976         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
6977         (make_pass_lower_vaarg): New function.
6978         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
6979         properties_required field.
6980         * passes.def (all_passes): Add pass_lower_vaarg.
6981         * tree-pass.h (PROP_gimple_lva): Add define.
6982         (make_pass_lower_vaarg): Declare.
6984 2015-04-17  Tom de Vries  <tom@codesourcery.com>
6986         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
6987         * calls.c (call_expr_flags): Same.
6989 2015-04-17  Tom de Vries  <tom@codesourcery.com>
6991         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
6992         (pass_stdarg::execute): ... here.
6994 2015-04-17  Tom de Vries  <tom@codesourcery.com>
6995             Michael Matz  <matz@suse.de>
6997         * tree-cfg.c (make_blocks_1): Factor out of ...
6998         (make_blocks): ... here.
6999         (make_edges_bb): Factor out of ...
7000         (make_edges): ... here.
7001         (gimple_find_sub_bbs): New function.
7002         * tree-cfg.h (gimple_find_sub_bbs): Declare.
7004 2015-04-17  Tom de Vries  <tom@codesourcery.com>
7006         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
7008 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
7010         * asan.c (set_sanitized_sections): New function.
7011         (section_sanitized_p): Ditto.
7012         (asan_protect_global): Optionally sanitize user-defined
7013         sections.
7014         * asan.h (set_sanitized_sections): Declare new function.
7015         * common.opt (fsanitize-sections): New option.
7016         * doc/invoke.texi (-fsanitize-sections): Document new option.
7017         * opts-global.c (handle_common_deferred_options): Handle new
7018         option.
7020 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
7022         PR debug/65771
7023         * dwarf2out.c (loc_list_from_tree): Return NULL
7024         for DEBUG_EXPR_DECL.
7026 2015-04-17  Christian Bruel  <christian.bruel@st.com>
7028         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
7029         same attributes.
7031 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7033         * ira-color.c (setup_left_conflict_sizes_p): Do not process
7034         node itself when computing left conflict subnode size.
7036 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
7038         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
7039         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
7040         *fop_<mode>_1_sse using enabled attribute.  Use
7041         register_mixssei387nonimm_operand operand 1 predicate. Change
7042         alternative 3 constraints from "x" to "v".
7044 2015-04-16  Richard Biener  <rguenther@suse.de>
7046         PR tree-optimization/65774
7047         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
7048         bit-value tracking on.
7050 2015-04-16  Richard Biener  <rguenther@suse.de>
7052         PR tree-optimization/64277
7053         * tree-vrp.c (check_array_ref): Fix anti-range handling,
7054         simplify upper bound handling.
7055         (search_for_addr_array): Simplify.
7056         (check_array_bounds): Handle ADDR_EXPRs here.
7057         (check_all_array_refs): Simplify.
7059 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
7061         * config/i386/i386.c (print_reg): Rewrite function.
7063 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7065         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
7066         Invert the condition.
7068 2015-04-16  Renlin Li  <renlin.li@arm.com>
7070         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
7071         simplifications for UNSIGNED_FLOAT.
7073 2015-04-16  Nick Clifton  <nickc@redhat.com>
7075         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
7076         MUL_UNINIT.
7077         (enum rl78_cpu_type): New.
7078         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
7079         (umulhi3_shift_virt): Remove m constraint from operand 1.
7080         (umulqihi3_virt): Likewise.
7081         * config/rl78/rl78.c (rl78_option_override): Add code to process
7082         -mcpu and -mmul options.
7083         (rl78_alloc_physical_registers): Add code to handle divhi and
7084         divsi valloc attributes.
7085         (set_origin): Likewise.
7086         * config/rl78/rl78.h (RL78_MUL_G14): Define.
7087         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
7088         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
7089         __RL78_Gxx__.
7090         (ASM_SPEC): Pass -mcpu on to assembler.
7091         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
7092         (mulqi3_rl78): Likewise.
7093         (mulhi3_g13): Likewise.
7094         (mulhi3): Generate the G13 or G14 versions of the insn directly.
7095         (mulsi3): Likewise.
7096         (mulhi3_g14): Add clobbers of AX and BC.
7097         (mulsi3_g14): Likewise.
7098         (mulsi3_g13): Likewise.
7099         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
7100         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
7101         * config/rl78/rl78.opt (mmul): Initialise value to
7102         RL78_MUL_UNINIT.
7103         (mcpu): New option.
7104         (m13, m14, mrl78): New option aliases.
7105         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
7106         (MULTILIB_DIRNAMES): Add g13 and g14.
7107         * doc/invoke.texi: Document -mcpu and -mmul options.
7109 2015-04-16  Richard Biener  <rguenther@suse.de>
7111         * tree-ssa-ccp.c (likely_value): See if we have operands that
7112         are marked as never simulate again and return CONSTANT in this
7113         case.
7114         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
7115         not have any operands that will be simulated again as
7116         not being simulated again.
7118 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
7120         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
7121         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
7122         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
7123         attribute.
7124         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
7125         enabled attribute.
7126         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
7127         *float<SWI48:mode><MODEF:mode>2_sse.
7128         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
7129         enabled attribute.
7130         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
7131         enabled attribute.
7133 2015-04-15  Tom de Vries  <tom@codesourcery.com>
7135         PR other/65487
7136         * function.c (push_dummy_function): New function.
7137         (init_dummy_function_start): Use push_dummy_function.
7138         (pop_dummy_function): New function.  Factored out of ...
7139         (expand_dummy_function_end): ... here.
7140         * function.h (push_dummy_function, pop_dummy_function): Declare.
7141         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
7142         pop_dummy_function.
7143         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
7145 2015-04-15  Jeff Law  <law@redhat.com>
7147         PR tree-optimization/47679
7148         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
7149         need for forward declaration in upcoming changes.
7150         (record_conditions, record_edge_info): Likewise.
7152         PR rtl-optimization/42522
7153         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
7154         SIGN_EXTRACT as a whole object rather than simplifying
7155         its operand.
7157 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
7159         PR ipa/65765
7160         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
7161         and GIMPLE_PREDICT use break instead of return true. For
7162         GIMPLE_EH_DISPATCH, compare dispatch region.
7164 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
7166         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
7167         details about the implementation.  Make clear preference for
7168         __atomic builtins.  Reduce possibility of future change.
7170 2015-04-15  Nick Clifton  <nickc@redhat.com>
7172         * config/rx/rx.opt (mallow-string-insns): New option.
7173         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
7174         builtin if string instructions are denied.
7175         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
7176         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
7177         appropriate.
7178         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
7179         * config/rx/rx.md (movstr): Enable pattern only if string
7180         instructions are allowed.
7181         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
7182         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
7183         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
7184         (MULTILIB_DIRNAMES): Add no-strings.
7185         * doc/invoke.texi: Document -mno-allow-string-insns.
7187 2015-04-15  Alan Modra  <amodra@gmail.com>
7189         PR target/65408
7190         PR target/58744
7191         PR middle-end/36043
7192         * calls.c (load_register_parameters): Don't load past end of
7193         mem unless suitably aligned.
7195 2015-04-15  Nick Clifton  <nickc@redhat.com>
7197         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
7198         decrement instruction as being frame related.
7199         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
7200         based addresses.
7201         If zero extending a function address enclose the operation in
7202         %code(...).
7203         (rl78_preferred_reload_class): New function.
7204         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7205         * config/rl78/rl78.md: Remove useless constraints in expanders.
7206         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
7207         (mulhi3_rl78): Likewise.
7208         (mulhi3_g13): Likewise.
7209         (mulsi3_rl78): Likewise.
7210         (es_addr): Move to before the multiply patterns.
7212 2015-04-15  Alan Modra  <amodra@gmail.com>
7214         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
7215         and sequence_stack.  Add seq.
7216         (seq_stack): Delete.
7217         * function.c (prepare_function_start): Don't access x_last_insn.
7218         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
7219         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
7220         * emit_rtl.c (start_sequence, push_topmost_sequence,
7221         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
7222         sequence accessors.
7223         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
7224         remove_insn): Likewise.  Simplify.
7225         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
7226         and pop_topmost_sequence.
7227         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
7228         debug insns.
7229         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
7231 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
7233         PR target/65729
7234         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
7235         the assertiion.
7237 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
7239         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
7240         (LEGACY_INT_REGNO_P): Ditto.
7241         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
7242         (ANY_MASK_REG_P): Remove.
7243         (BND_REG_P): Rename from ANY_BND_REG_P.
7244         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
7245         legacy integer registers.  Do not handle MMX_REG_P in a special way.
7246         Merge 64byte and 32byte SSE handling.
7248 2015-04-14  Nick Clifton  <nickc@redhat.com>
7250         * expr.c (expand_assignment): Force an address offset computation
7251         into a register before changing its mode.
7252         (expand_expr_real_1): Likewise.
7254 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
7256         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
7257         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
7258         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
7259         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
7260         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
7261         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
7262         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
7263         and __aarch64_vget_lane_any.
7265 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
7267         PR rtl-optimization/65761
7268         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
7269         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
7271 2015-04-14  Richard Biener  <rguenther@suse.de>
7273         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
7274         (graphite_can_represent_scev): Use POINTER_TYPE_P.
7276 2015-04-14  Richard Biener  <rguenther@suse.de>
7278         PR tree-optimization/65758
7279         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
7280         against -1.
7281         (ccp_lattice_meet): Likewise.
7282         (bit_value_unop): Likewise.
7283         (bit_value_binop): Likewise.
7284         (bit_value_assume_aligned): Likewise.
7286 2015-04-14  Christian Bruel  <christian.bruel@st.com>
7288         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
7289         function.
7291 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
7293         PR tree-optimization/63387
7294         * match.pd ((x unord x) | (y unord y) -> (x unord y),
7295         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
7297 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
7299         * config/i386/predicates.md (any_QIreg_operand): Rename from
7300         q_regs_operand.  Do not process subregs.
7301         (QIreg_operand): Use QI_REGNO_P predicate.
7302         (ext_QIreg_operand): Ditto.
7303         (ext_register_operand): Ditto.
7304         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
7305         (AND splitters): Ditto.
7306         (AND with -65536 splitter): Add SWI48 mode for operand 0.
7307         (AND with -256 splitter): Use any_QIreg_operand predicate and
7308         SWI248 mode for operand 0.
7309         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
7310         mode for operand 0.
7311         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
7313 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
7315         * doc/plugins.texi: Rewrite first introductory paragraph.
7317 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
7319         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
7320         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
7322 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
7324         * ipa-profie.c (ipa_profile): Check number of parameters
7325         and possible polymorphic call targets before
7326         devirtualizing.
7328 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
7330         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
7331         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
7333 2015-04-13  Richard Biener  <rguenther@suse.de>
7335         PR tree-optimization/65204
7336         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
7337         takens for bit-CCP.
7339 2015-04-13  Richard Biener  <rguenther@suse.de>
7341         PR target/65660
7342         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
7343         and cond_not_taken_branch_cost to 4 and 2.
7344         (bdver2_cost): Likewise.
7345         (bdver3_cost): Likewise.
7346         (bdver4_cost): Likewise.
7348 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
7350         * hash-table.h (hash_table constructor): Add mem stats.
7351         (alloc_entries): Likewise.
7353 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
7355         * ipa-cp.c (ipcp_driver): Relase prev_edge.
7356         * passes.c (execute_one_pass): Only add transform if pass has one.
7358 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
7360         * config/i386/i386.c (ix86_option_override_internal): Don't set
7361         -fprefetch-loop-arrays if optimizing for size.
7363 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
7364             Gerald Pfeifer  <gerald@pfeifer.com>
7366         * doc/contrib.texi (Contributors): Add Martin Jambor and
7367         Michael Matz.
7369 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
7371         * BASE-VER: Set to 6.0.0.
7373         PR tree-optimization/65747
7374         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
7375         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
7377 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
7379         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
7380         sentence.  Improve grammar.
7382 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
7384         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
7386 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
7388         PR ipa/65743
7389         * ipa-inline-transform.c (speculation_removed): Remove static var.
7390         (check_speculations): New function.
7391         (clone_inlined_nodes): Do not check spculations.
7392         (inline_call): Call check_speculations.
7393         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
7394         consider non-invariants.
7396 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
7397             Martin Liska  <mliska@suse.cz>
7399         PR ipa/65722
7400         * ipa-icf.c (sem_item::compare_cgraph_references): function and
7401         variable can not match.
7402         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
7403         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
7405 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
7407         PR tree-optimization/65735
7408         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
7409         Remove visited_phis argument, add visited_bbs, avoid recursing into the
7410         same bb rather than just into the same phi node.
7411         (thread_through_normal_block): Adjust caller.
7413 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
7415         * doc/contrib.texi (Contributors): Add Ira Rosen.
7417 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
7419         * gcov.c (find_source): Fix miswording in error message.
7420         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
7421         (ix86_expand_sse_comi_round): Fix typo in error message.
7423 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
7425         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
7427 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
7429         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
7431 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
7433         PR target/65710
7434         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
7435         Print bad_spills_num and insn_pseudos_num.
7437 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7439         PR target/65694
7440         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
7441         when creating +1 values for SImode.
7443 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
7445         PR target/65729
7446         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
7447         assert.
7449 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
7450             Iain Sandoe  <iain@codesourcery.com>
7452         PR target/65351
7453         * configure: Regenerate.
7455 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7457         PR target/65671
7458         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
7460 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
7462         * doc/contrib.texi (Contributors): Add John Marino.
7464 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
7466         PR tree-optimization/65709
7467         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
7468         TREE_TYPE (TREE_TYPE (t)).
7470 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
7472         PR target/65710
7473         * lra-int.h (lra_bad_spill_regno_start): New.
7474         * lra.c (lra_bad_spill_regno_start): New.
7475         (lra): Set up lra_bad_spill_regno_start.  Set up
7476         lra_constraint_new_regno_start unconditionally.
7477         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
7478         spill preferences.
7480 2015-04-09  Marek Polacek  <polacek@redhat.com>
7481             Jakub Jelinek  <jakub@redhat.com>
7483         PR middle-end/65554
7484         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
7485         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
7486         of STRIP_NOPS.
7488 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
7490         PR rtl-optimization/65693
7491         * combine.c (is_parallel_of_n_reg_sets): Move outside of
7492         #ifndef HAVE_cc0.
7494 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
7496         PR target/65296
7497         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
7498         device specs file if "device-specs%s" didn't resolve to a path.
7500 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7502         PR target/65676
7503         * config/i386/i386.c (fixup_modeless_constant): New.
7504         (ix86_expand_args_builtin): Fixup modeless constant operand.
7505         (ix86_expand_round_builtin): Ditto.
7506         (ix86_expand_special_args_builtin): Ditto.
7507         (ix86_expand_builtin): Ditto.
7509 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
7511         PR target/65693
7512         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
7513         any pow2 integer in between 2 and 0x80000000U inclusive.
7515 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
7517         PR rtl-optimization/65693
7518         * combine.c (is_parallel_of_n_reg_sets): Change first argument
7519         from an rtx_insn * to an rtx.
7520         (try_combine): Adjust both callers.  Use it once more.
7522 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
7524         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
7525         (chkp_make_static_const_bounds): Search existing
7526         symbol by assembler name.  Use make_decl_one_only.
7527         (chkp_get_zero_bounds_var): Remove node search which
7528         is now performed in chkp_make_static_const_bounds.
7529         (chkp_get_none_bounds_var): Likewise.
7531 2015-04-08  Michael Witten  <mfwitten@gmail.com>
7533         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
7534         to an example.
7536 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7538         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
7540 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
7542         * doc/extend.texi (__sync Builtins): Fix grammar.
7544 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7546         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
7548 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7550         * varasm.c (emit_local): Move definition of align.
7552 2015-04-08  Julian Brown  <julian@codesourcery.com>
7554         * config/nvptx/mkoffload.c (process): Support variable mapping.
7556 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
7558         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
7559         alpha_links **.
7560         (alpha_write_one_linkage): Correct typo.
7562 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
7564         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
7566 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
7568         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
7570 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
7572         * tree-chkp.h (chkp_insert_retbnd_call): New.
7573         * tree-chkp.c (chkp_insert_retbnd_call): New.
7574         * ipa-split.c (insert_bndret_call_after): Remove.
7575         (split_function): Use chkp_insert_retbnd_call.
7576         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
7577         bounds for instrumented functions.
7579 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
7581         PR ipa/65540
7582         * calls.c (initialize_argument_information): When producing tail
7583         call also turn SSA_NAMES passed by references to original PARM_DECLs
7585 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
7587         PR target/65648
7588         * lra-remat.c (do_remat): Process input and non-input insn
7589         registers separately.
7591 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
7593         PR debug/65678
7594         * valtrack.c (debug_lowpart_subreg): New function.
7595         (dead_debug_insert_temp): Use it.
7597         PR middle-end/65680
7598         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
7599         into signed HOST_WIDE_INT the same as negative bit_offset.
7601 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7603         * ipa-comdats.c (ipa_comdats): Visit all thunks
7604         to set proper comdat group.
7606 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7608         PR target/65489
7609         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
7610         on constants for NEON VSTRUCT modes.
7612 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
7613             Iain Sandoe  <iain@codesourcery.com>
7615         PR target/65351
7616         * configure: Regenerate.
7618 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7620         PR target/65614
7621         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
7622         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
7623         that LFD is used to load double constants instead of LFS.  Add
7624         defaults for all costs structures.  Add comments for missing
7625         initialization fields.
7626         (size32_cost): Likewise.
7627         (size64_cost): Likewise.
7628         (rs64a_cost): Likewise.
7629         (mpccore_cost): Likewise.
7630         (ppc403_cost): Likewise.
7631         (ppc405_cost): Likewise.
7632         (ppc440_cost): Likewise.
7633         (ppc476_cost): Likewise.
7634         (ppc601_cost): Likewise.
7635         (ppc603_cost): Likewise.
7636         (ppc604_cost): Likewise.
7637         (ppc604e_cost): Likewise.
7638         (ppc620_cost): Likewise.
7639         (ppc630_cost): Likewise.
7640         (ppccell_cost): Likewise.
7641         (ppc750_cost): Likewise.
7642         (ppc7450_cost): Likewise.
7643         (ppc8540_cost): Likewise.
7644         (ppce300c2c3_cost): Likewise.
7645         (ppce500mc_cost): Likewise.
7646         (ppce500mc64_cost): Likewise.
7647         (ppce5500_cost): Likewise.
7648         (ppce6500_cost): Likewise.
7649         (titan_cost): Likewise.
7650         (power4_cost): Likewise.
7651         (power6_cost): Likewise.
7652         (power7_cost): Likewise.
7653         (power8_cost): Likewise.
7654         (ppca2_cost): Likewise.
7655         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
7657         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
7658         instead of XXLOR to copy SFmode to clear out dirty bits created
7659         when SFmode denormals are generated.
7660         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
7661         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
7663 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
7665         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
7666         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
7667         * config/aarch64/aarch64-tune.md: Regenerate.
7669 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
7671         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
7672         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
7673         * config/arm/arm-cores.def (exynos-m1): New core.
7674         * config/arm/arm-tune.md: Regenerate.
7675         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
7676         * config/arm/bpabi.h: Likewise.
7678 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
7680         * ipa-cp (set_single_call_flag): Remove too
7681         restrictive assert.
7683 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
7685         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
7686         GOMP_offload_unregister from the destructor.
7688 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
7690         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
7691         flags for instrumentation thunk.
7692         (chkp_produce_thunks): Likewise.
7694 2015-04-05  Martin Liska  <mliska@suse.cz>
7696         PR ipa/65665
7697         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
7698         has computed data structure.
7699         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
7701 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
7703         * invoke.texi (inline-unit-growth): Increase growth to 20%
7704         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
7706 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7708         PR target/65647
7709         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
7710         value checking.
7711         (lra_rematerialization_iter): New.
7712         * lra.c (lra): Initialize lra_rematerialization_iter.
7713         Stop updating lra_constraint_new_regno_start after switching of
7714         inheritance and rematerialization.
7715         * lra-remat.c (lra_rematerialization_iter): New.
7716         (lra_remat): Add printing pass iteration.  Do rematerialization
7717         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
7719 2015-04-04  Richard Biener  <rguenther@suse.de>
7721         PR tree-optimization/64909
7722         PR tree-optimization/65660
7723         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
7724         to take a cost vector for scalar iteration cost.
7725         (vect_get_single_scalar_iteration_cost): Likewise.
7726         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
7727         Compute the scalar iteration cost into a cost vector.
7728         (vect_get_known_peeling_cost): Use the scalar cost vector to
7729         account for the cost of the peeled iterations.
7730         (vect_estimate_min_profitable_iters): Likewise.
7731         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7732         Likewise.
7734 2015-04-04  Alan Modra  <amodra@gmail.com>
7736         PR target/65576
7737         PR target/65240
7738         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
7739         0.0 constant unless TARGET_VSX.
7740         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
7741         alternative.
7743 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
7745         PR ipa/65654
7746         * ipa-inline-transform.c (inline_call): Skip sanity check to work
7747         around the ICE
7749 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
7751         PR ipa/65655
7752         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
7753         speculative indirect edges to avoid ordering issue.
7755 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
7757         PR ipa/65076
7758         * ipa-inline.c (edge_badness): Add combined size to the denominator.
7760 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
7762         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
7763         TYPE_ARTIFICIAL on the .omp_data* types.
7765 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7767         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
7768         instrumentation thunks.
7770 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7772         * config/i386/i386.c (ix86_expand_call): Avoid nested
7773         PARALLEL in returned call value.
7775 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7777         * lto-cgraph.c (input_cgraph_1): Always link instrumented
7778         assembler name with original one.
7780 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
7782         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
7784 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
7786         Revert parts of r216820.
7787         * config/i386/i386.md (movqi_internal): Correct type calculation
7788         for alternatives 3 and 5.
7790 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
7792         PR preprocessor/61977
7793         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
7794         predefine __vector/__bool/__pixel macros nor context sensitive
7795         macros for CLK_ASM.
7796         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
7798 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
7800         * config/pa/pa.c (pa_output_move_double): Directly handle register
7801         indexed memory operand.  Simplify handling of scaled register indexed
7802         memory operands.
7804 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7806         PR driver/65444
7807         * config/i386/linux-common.h (MPX_SPEC): New.
7808         (CHKP_SPEC): Add MPX_SPEC.
7809         * doc/invoke.texi (-fcheck-pointer-boudns): Document
7810         possible issues with '-z bndplt' support in linker.
7812 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
7814         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
7815         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
7816         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
7817         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
7818         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
7820 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
7822         * config/i386/sync.md (UNSPEC_MOVA): Remove.
7823         (atomic_load<mode>): Change operand 0 predicate to
7824         nonimmediate_operand and fix up the destination when needed.
7825         Use UNSPEC_LDA.
7826         (atomic_loaddi_fpu): Use UNSPEC_LDA.
7827         (atomic_store<mode>): Change operand 1 predicate to
7828         nonimmendate_operand and move the source to register when needed.
7829         Use UNSPEC_STA.
7830         (atomic_store<mode>_1): Use UNSPEC_STA.
7831         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
7832         Fix moves from memory operand.  Use UNSPEC_STA.
7834 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7836         * expmed.c (strict_volatile_bitfield_p): Check that the access will
7837         not cross a MODESIZE boundary.
7838         (store_bit_field, extract_bit_field): Added assertions in the
7839         strict volatile bitfields code path.
7841 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
7843         PR target/65624
7844         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
7845         Increase args array size by one to avoid buffer overflow.
7847 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
7849         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
7850         split_part.
7851         * ipa-inline.c (edge_badness): Add wrapper penalty.
7852         (sum_callers): Move up.
7853         (inline_small_functions): Set single_caller.
7854         * ipa-inline.h (inline_summary): Add single_caller.
7855         * ipa-split.c (split_function): Set split_part.
7856         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
7857         * cgraph.h (cgraph_node): Add split_part.
7859 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
7861         PR target/58945
7862         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7863         Do not split operands 0 and operands 2 to halfmode.
7864         (atomic_compare_and_swap<mode>): Update for
7865         atomic_compare_and_swap<dwi>_doubleword changes.
7867 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
7869         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
7870         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
7871         no caching is done.
7873 2015-03-31  Martin Liska  <mliska@suse.cz>
7875         PR ipa/65557
7876         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
7877         has already filled up function summary.
7878         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
7880 2015-03-31  Richard Biener  <rguenther@suse.de>
7882         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
7883         of types.
7885 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7887         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
7888         nested functions.
7889         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
7890         (s390_asm_output_function_label): Adapt to new signature of
7891         s390_function_num_hotpatch_hw
7892         Optimise the code generating assembler output.
7893         Add comments to assembler file.
7895 2015-03-31  Richard Biener  <rguenther@suse.de>
7897         PR middle-end/65626
7898         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
7899         of the noreturn call so it is last and cleanup_control_flow_bb
7900         can do the CFG part.
7902 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
7904         PR target/65531
7905         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
7906         same_comdat_group for external symbols.
7907         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
7908         infinite same_comdat_group traversal loop.
7910 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
7912         PR plugins/61176
7913         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
7914         automatically to $headers.
7916 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
7918         PR ipa/65610
7919         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
7920         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
7921         function.
7922         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
7923         Use it.
7924         * ipa-prop.c (param_type_may_change_p): Likewise.
7925         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
7926         (remove_unused_scope_block_p): Add in_ctor_dtor_block
7927         argument.  Before inlining, preserve
7928         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
7929         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
7930         recursive calls.
7931         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
7933 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
7935         PR ipa/65076
7936         * ipa-inline.c (edge_badness): Base denominator on callee's
7937         grwoth squared.
7939 2015-03-27  Martin Jambor  <mjambor@suse.cz>
7941         PR ipa/65478
7942         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
7943         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
7944         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
7945         node_calling_single_call.
7946         * ipa-cp.c (count_callers): New function.
7947         (set_single_call_flag): Likewise.
7948         (initialize_node_lattices): Count callers and set single_flag_call if
7949         necessary.
7950         (incorporate_penalties): New function.
7951         (good_cloning_opportunity_p): Use it, dump new flags.
7952         (propagate_constants_topo): Set node_within_scc flag if appropriate.
7953         * doc/invoke.texi (ipa-cp-recursion-penalty,
7954         ipa-cp-single-call-pentalty): Document.
7956 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
7958         PR ipa/65588
7959         * symtab.c (symtab_node::get_partitioning_class): Register vars
7960         are duplicated.
7961         * varpool.c (symbol_table::output_variables) Do not assemble unefined
7962         decls for non-symbols.
7964 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7966         PR target/65248
7967         * output.h (default_binds_local_p_2): New.
7968         * varasm.c (default_binds_local_p_2): Renamed to ...
7969         (default_binds_local_p_3): This.  Don't return true on protected
7970         data symbol if protected data may be external.
7971         (default_binds_local_p): Use default_binds_local_p_3.
7972         (default_binds_local_p_1): Likewise.
7973         (default_binds_local_p_2): New.
7974         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
7975         default_binds_local_p_2 if TARGET_MACHO is undefined.
7977 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
7979         PR target/65593
7980         * config/i386/i386.c (legitimize_pic_address): If base
7981         is SYMBOL_REF or LABEL_REF using %rip addressing, force
7982         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
7984 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
7986         PR target/65531
7987         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
7988         comdat groups.
7990 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
7992         PR ipa/65600
7993         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
7994         of optimized out indirect call.
7995         (redirect_to_unreachable): Always build symbol table node for
7996         BUILT_IN_UNREACHABLE
7998 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
8000         PR target/65407
8001         * ira-costs.c (record_reg_classes): Process all constraint string
8002         containing 0-9.
8004 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
8006         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
8007         memory_operand.
8009         PR target/65052
8010         * config/c6x/constraints.md (S3): New constraint.
8011         * config/c6x/c6x.md (real_jump): Use it.
8013 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8015         PR middle-end/65595
8016         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
8017         do redirection if the call is not optimized out.
8019 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
8021         PR target/65495
8022         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
8023         (fchkp-check-incomplete-type): Add LTO.
8024         (fchkp-zero-input-bounds-for-main): Likewise.
8025         (fchkp-first-field-has-own-bounds): Likewise.
8026         (fchkp-narrow-bounds): Likewise.
8027         (fchkp-narrow-to-innermost-array): Likewise.
8028         (fchkp-use-static-bounds): Likewise.
8029         (fchkp-use-static-const-bounds): Likewise.
8030         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
8032 2015-03-27  Marek Polacek  <polacek@redhat.com>
8034         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
8036 2015-03-27  Marek Polacek  <polacek@redhat.com>
8038         PR sanitizer/65583
8039         * ubsan.c (ubsan_create_edge): New function.
8040         (instrument_bool_enum_load): Call it.
8041         (instrument_nonnull_arg): Likewise.
8042         (instrument_nonnull_return): Likewise.
8043         (instrument_object_size): Likewise.
8045 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8047         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
8048         auto_vec.
8050 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8052         PR lto/65536
8053         * lto-streamer.h (class lto_location_cache): New.
8054         (struct data_in): Add location_cache.
8055         (lto_input_location): Update prototype.
8056         (stream_input_location_now): New.
8057         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
8058         pointer to location.
8059         (stream_input_location): Update.
8060         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
8061         (warn_odr): Apply location cache before warning.
8062         (lto_input_location): Update prototype.
8063         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
8064         Use stream_input_location_now.
8065         * lto-streamer-in.c (lto_location_cache::current_cache): New static
8066         variable.
8067         (lto_location_cache::cmp_loc): New function.
8068         (lto_location_cache::apply_location_cache): New function.
8069         (lto_location_cache::accept_location_cache): New function.
8070         (lto_location_cache::revert_location_cache): New function.
8071         (lto_location_cache::input_location): New function.
8072         (lto_input_location): Do location caching.
8073         (stream_input_location_now): New function.
8074         (input_eh_region, input_struct_function_base): Use
8075         stream_input_location_now.
8076         (lto_data_in_create): use new.
8077         (lto_data_in_delete): Use delete.
8078         * tree-streamer-in.c (unpack_ts_block_value_fields,
8079         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
8080         lto_input_ts_exp_tree_pointers): Update for cached location api.
8082 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8084         PR ipa/65076
8085         * passes.def: Add pass_nothrow.
8086         * ipa-pure-const.c: (pass_data_nothrow): New.
8087         (pass_nothrow): New.
8088         (pass_nothrow::execute): New.
8089         (make_pass_nothrow): New.
8090         * tree-pass.h (make_pass_nothrow): Declare.
8092 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8094         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
8095         edge to change by speculation resolution or redirection.
8096         (edge_set_predicate): Likewise.
8097         (inline_summary_t::duplicate): Likewise.
8098         (remap_edge_summaries): Likewise.
8100 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8102         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
8103         New macros.
8104         (can_inline_edge_p): Relax option matching for always inline functions.
8106 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
8108         PR target/65561
8109         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
8110         Check operand 4 and operand 0 for equality.
8111         (avx512f_vextract<shuffletype>32x4_1_maskm):
8112         Check operand 6 and operand 0 for equality.
8113         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
8114         for equality.
8115         (vec_extract_hi_<mode>_maskm): Ditto.
8117 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8119         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
8120         dead calls back to live.
8121         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
8122         cross check to ...
8123         (cgraph_node::verify_node): ... here; verify only callee edges,
8124         not caller.
8125         * cif-code.def (CILK_SPAWN): New code.
8127 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
8129         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
8130         (edge_set_predicate): Use it to mark unreachable edges.
8131         (inline_summary_t::duplicate): Remove unnecesary code.
8132         (remap_edge_summaries): Likewise.
8133         (dump_inline_summary): Report contains_cilk_spawn.
8134         (compute_inline_parameters): Compute contains_cilk_spawn.
8135         (inline_read_section, inline_write_summary): Stream
8136         contains_cilk_spawn.
8137         * ipa-inline.c (can_inline_edge_p): Do not touch
8138         DECL_STRUCT_FUNCTION that may not be available;
8139         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
8140         remove check for callee_fun->can_throw_non_call_exceptions and
8141         replace it by optimization attribute check; check for flag_exceptions.
8142         * ipa-inline-transform.c (inline_call): Maintain
8143         DECL_FUNCTION_PERSONALITY
8144         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
8146 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
8148         PR tree-optimization/65551
8149         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
8150         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
8152 2015-03-26  Richard Biener  <rguenther@suse.de>
8154         PR middle-end/65555
8155         * tree-cfg.c (verify_gimple_call): Do not require a call to
8156         have no LHS if it wasn't recognized as control altering yet.
8158 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
8160         PR tree-optimization/64715
8161         * passes.def: Add another instance of pass_object_sizes before ccp1.
8162         * tree-object-size.c (pass_object_sizes::execute): In
8163         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
8164         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
8165         __bos result and the computed constant.  Remove redundant
8166         checks, obsoleted by gimple_call_builtin_p test.
8168         * var-tracking.c (variable_tracking_main_1): Don't track
8169         variables for targetm.no_register_allocation targets.
8171 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
8173         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
8174         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
8176 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
8178         PR target/65569
8179         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
8180         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
8181         0.0 is correctly setup.
8182         (extenddftf2_internal): Likewise.
8184 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
8186         PR tree-optimization/65177
8187         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
8188         (bb_in_bbs): New.
8189         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
8190         edges not adjacent on the path to the original code.
8192 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
8194         PR bootstrap/65537
8195         * doc/install.texi (Building a native compiler): Document new
8196         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
8197         configuration assumes that the host supports the linker plugin.
8199 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
8201         PR target/65508
8202         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
8203         chain for generated call.
8205 2015-03-25  Richard Biener  <rguenther@suse.de>
8207         * passes.c (pass_manager::execute_early_local_passes): Guard
8208         execution of pass_chkp_instrumentation_passes with
8209         flag_check_pointer_bounds.
8210         (pass_chkp_instrumentation_passes::gate): Likewise.
8212 2015-03-25  Martin Liska  <mliska@suse.cz>
8214         PR tree-optimization/65538
8215         * symbol-summary.h (function_summary::~function_summary):
8216         Relese memory for allocated summaries.
8217         (function_summary::release): New function.
8219 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
8221         PR lto/65515
8222         * lto-streamer-out.c (DFS::worklist): New struct.
8223         (DFS::worklist_vec): New data member.
8224         (DFS::next_dfs_num): Remove.
8225         (DFS::DFS): Rewritten using worklist instead of recursion,
8226         using most of code from DFS::DFS_write_tree.
8227         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
8228         pass it to DFS_write_tree calls.
8229         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
8230         quick initial checks push it into worklist_vec and return.
8232 2015-03-25  Richard Biener  <rguenther@suse.de>
8234         PR middle-end/65519
8235         * genmatch.c (expr::gen_transform): Re-write to avoid
8236         using gimple_build.
8238 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
8240         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
8242 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
8244         * config/arm/arm.opt (print_tune_info): New option.
8245         * config/arm/arm.c (arm_print_tune_info): New function.
8246         (arm_file_start): Call arm_print_tune_info.
8247         * config/arm/arm-protos.h (struct tune_params): Add comment.
8248         * doc/invoke.texi (@item -mprint-tune-info): New item.
8249         (-mtune): mention it in ARM Option Summary.
8251 2015-03-25  DJ Delorie  <dj@redhat.com>
8253         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
8254         correct clause.
8256 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
8257             Martin Liska  <mliska@suse.cz>
8259         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
8260         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
8261         (sem_item::add_type): New function.
8262         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
8263         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
8264         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
8265         (sem_function::equals_wpa): Fix typo.
8266         * ipa-icf.h (sem_item::add_type): New function.
8267         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
8268         order.
8270 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
8272         PR tree-optimization/65533
8273         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
8274         with swapped operands, call vect_free_slp_tree on
8275         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
8276         vector.
8278 2015-03-24  Richard Biener  <rguenther@suse.de>
8280         PR middle-end/65517
8281         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
8282         for fixup if necessary.
8284 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
8286         * doc/extend.texi (Function Attributes): Add @cindex entries
8287         for all attributes and regularize their format.  Delete text
8288         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
8289         information about "eightbit_data", "tiny_data", and "model"
8290         variable attributes to the Variable Attributes section.  Fix
8291         some obvious typos and copy-editing issues.
8292         (Variable Attributes, Type Attributes): Likewise add/fix
8293         @cindex entries for all attributes.
8295 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
8297         PR target/65523
8298         * tree-chkp.c (chkp_build_returned_bound): Ignore
8299         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
8301 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
8303         PR target/65505
8304         * config/sh/predicates.md (simple_mem_operand,
8305         displacement_mem_operand): Add test for reg.
8306         (short_displacement_mem_operand): Test for displacement_mem_operand
8307         before invoking sh_disp_addr_displacement.
8308         * config/sh/constraints.md (Sdd, Sra): Simplify.
8309         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
8310         Remove redundant displacement_mem_operand tests.
8312 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
8314         PR target/65296
8315         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
8316         the same -mmcu=MCU more than once.
8318 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
8320         PR bootstrap/65522
8321         * ipa-devirt.c: Remove duplicate demangle.h include.
8323         PR target/65504
8324         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
8325         on the pseudo.
8326         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
8327         REG_POINTER on *destptr after adjusting it for prologue size.
8329         PR ipa/65521
8330         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
8331         ultimate_alias_target ()->order ints instead of
8332         ultimate_alias_target () pointers.
8334 2015-03-23  Richard Biener  <rguenther@suse.de>
8336         PR tree-optimization/65518
8337         * tree-vect-stmts.c (vectorizable_load): Reject single-element
8338         interleaving cases we generate absymal code for.
8340 2015-03-23  Richard Biener  <rguenther@suse.de>
8342         PR tree-optimization/65494
8343         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
8344         matches here.
8345         (vect_analyze_slp_instance): But do that here, always and once.
8347 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8349         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
8350         adding T or multiplying by T+1 and subracting T.
8352 2015-03-22  Jeff Law  <law@redhat.com>
8354         PR rtl-optimization/64317
8355         * Makefile.in (OBJS): Add gcse-common.c
8356         * gcse.c: Include gcse-common.h
8357         (struct modify_pair_s): Move structure definition to gcse-common.h
8358         (compute_transp): Move function to gcse-common.c.
8359         (canon_list_insert): Similarly.
8360         (record_last_mem_set_info): Break out some code and put it into
8361         gcse-common.c.  Call into the new common code.
8362         (compute_local_properties): Pass additional arguments to compute_transp.
8363         * postreload-gcse.c: Include gcse-common.h and df.h
8364         (modify_mem_list_set, blocks_with_calls): New variables.
8365         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
8366         (get_bb_avail_insn): Pass in the expression index too.
8367         (alloc_mem): Allocate memory for the new bitmaps and lists.
8368         (free_mem): Free memory for the new bitmaps and lists.
8369         (insert_expr_in_table): Record a bitmap index for each entry we
8370         add to the table.
8371         (record_last_mem_set_info): Call into common code in gcse-common.c.
8372         (get_bb_avail_insn): If no available insn was found in the requested
8373         BB.  If BB has a single predecessor, see if the expression is
8374         transparent in BB and available in that single predecessor.
8375         (compute_expr_transp): New wrapper for compute_transp.
8376         (eliminate_partially_redundant_load): Pass expression's bitmap_index
8377         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
8378         (gcse_after_reload_main): If there are elements in the hash table,
8379         then compute transparency for all the elements in the hash table.
8380         * gcse-common.h: New file.
8381         * gcse-common.c: New file.
8383 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
8385         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
8386         as an adjective.
8387         (System Headers): Likewise.
8388         (Ifdef): Likewise.
8389         (Traditional macros): Likewise.
8390         (Invocation): Likewise.
8391         (Option Index): Likewise.
8392         * doc/cppopts.texi (-M): Likewise.
8393         (-finput-charset): Likewise.
8394         (--help): Likewise.
8395         * doc.invoke.texi (AVR Options): Likewise.
8396         (V850 Options): Likewise.
8398 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
8400         PR ipa/65475
8401         * ipa-devirt.c: Include demangle.h
8402         (odr_type_d): Add field rtti_broken.
8403         (odr_subtypes_equivalent_p): Do not require name to match.
8404         (compare_virtual_tables): Fix typo; if type already has ODR violation,
8405         bypass the tests; be ready for function referneces in vtables that are
8406         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
8407         (warn_odr): Give up for nameless types.
8408         (warn_types_mismatch): Report mismatch in mangled names;
8409         report mismatch in anonymous namespaces; look into component types to
8410         give useful error; report when mismatch is dragged in from other ODR
8411         type.
8412         (odr_types_equivalent_p): Match types for being polymorphic; avoid
8413         duplicated diagnostics.
8414         (add_type_duplicate): Reorder checks so more informative ones come
8415         first; fix typo; do not output "the extra base is defined here" when
8416         we did not warn.
8417         (BINFO_N_BASE_BINFOS): Relax sanity check.
8419 2015-03-22  Martin Liska  <mliska@suse.cz>
8420             Jakub Jelinek  <jakub@redhat.com>
8422         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
8423         masks that can potentially include a builtin.
8424         (ix86_add_new_builtins): Introduce fast filter for isa values
8425         that cannot trigger builtin inclusion.
8427 2015-03-22  Martin Liska  <mliska@suse.cz>
8429         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
8430         (sem_item::update_hash_by_local_refs): Likewise.
8431         (sem_variable::get_hash): Empty line is fixed.
8432         (sem_item_optimizer::execute): Include adding of hash references.
8433         (sem_item_optimizer::update_hash_by_addr_refs): New function.
8434         (sem_item_optimizer::build_hash_based_classes): Use local hash.
8435         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
8436         (sem_item::update_hash_by_local_refs): Likewise.
8438 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
8440         PR ipa/65502
8441         * ipa-comdats.c (enqueue_references): Walk through thunks.
8442         (ipa_comdats): Likewise.
8443         (set_comdat_group_1): New function.
8445 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
8447         PR ipa/65475
8448         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
8449         non-polymorphic
8451 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8452             Gerald Pfeifer  <gerald@pfeifer.com>
8454         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
8456 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8457             Sandra Loosemore  <sandra@codesourcery.com>
8459         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
8460         function parameter declaration.
8461         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
8462         Update arguments to nios2_adjust_call_address().
8463         (sibcall_internal): Rename from *sibcall.
8464         (sibcall_value_internal): Rename from *sibcall_value.
8465         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
8466         (nios2_large_got_address): Add target temp reg parameter.
8467         (nios2_got_address): Adjust call to nios2_large_got_address, add
8468         force_reg around it.
8469         (nios2_load_pic_address): Add target temp reg parameter, replace call
8470         to nios2_got_address with corresponding code.
8471         (nios2_legitimize_constant_address): Update call to
8472         nios2_load_pic_address.
8473         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
8474         to use temp reg for PIC loading purposes.
8475         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
8476         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
8477         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
8479 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
8481         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
8482         usage of "the @option{...}".
8483         (-Wopenmp-simd): Likewise.
8484         (-fsanitize-recover): Likewise.
8485         (-fsanitize-undefined-trap-on-error): Likewise.
8486         (-flto): Likewise.
8487         (tracer-dynamic-coverage-feedback): Likewise.
8488         (reorder-block-duplicate-feedback): Likewise.
8489         (loop-unroll-jam-size): Likewise.
8490         (-B): Likewise.
8491         (-I-): Likewise.
8492         (-mabs=legacy): Likewise.
8493         (-mupper-regs-df): Likewise.
8494         (-mupper-regs-sf): Likewise.
8495         (-mpointers-to-nested-functions): Likewise.
8497 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
8499         * doc/extend.texi (Cilk Plus Builtins): Add markup.
8501 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
8503         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
8504         additional index entries and cross-references.
8505         (-fchkp-check-incomplete-type): Likewise.
8506         (-fchkp-first-field-has-own-bounds): Likewise.
8507         (-fchkp-narrow-to-innermost-array): Likewise.
8508         (-fchkp-use-fast-string-functions): Likewise.
8509         (-fchkp-use-nochk-string-functions): Likewise.
8510         (-fchkp-use-static-const-bounds): Likewise.
8511         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
8512         (-fchkp-instrument-marked-only): Likewise.
8513         (-fchkp-use-wrappers): Likewise.
8514         (-static-libmpx): Likewise.
8515         (-static-libmpxwrappers): Likewise.
8516         * doc/extend.texi (bnd_legacy): Likewise.
8517         (bnd_instrument): Likewise.
8518         (bnd_variable_size): Likewise.
8519         (Pointer Bounds Checker builtins): Likewise.
8521 2015-03-21  Tom de Vries  <tom@codesourcery.com>
8523         PR tree-optimization/65458
8524         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
8525         * cgraph.h (cgraph_node): Add parallelized_function field.
8526         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
8527         (input_overwrite_node): Read parallelized_function field.
8528         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
8529         parallelized_function on cgraph_node for child_fn.
8530         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
8531         Remove include of gt-tree-parloops.h.
8532         (parallelized_functions): Remove static variable.
8533         (parallelized_function_p): Rewrite using parallelized_function field of
8534         cgraph_node.
8535         (create_loop_fn): Remove adding to parallelized_functions.
8536         * Makefile.in (GTFILES): Remove tree-parloops.c
8538 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
8540         PR rtl-optimization/64366
8541         * lra.c (lra_update_insn_regno_info): Consider regs in
8542         CALL_INSN_FUNCTION_USAGE memory.
8544 2015-03-20  Richard Biener  <rguenther@suse.de>
8546         PR middle-end/64715
8547         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
8548         for type comparison and gcc_checking_assert.
8549         (chrec_fold_plus_poly_poly): Likewise.
8550         (chrec_fold_multiply_poly_poly): Likewise.
8551         (chrec_convert_1): Likewise.
8552         * gimplify.c (gimplify_expr): Remove premature folding of
8553         &X + CST to &MEM[&X, CST].
8555 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
8557         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
8558         already is final.
8559         (ipa_inline): Recompute inline_failed codes.
8560         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
8561         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
8562         CIF_FINAL_ERROR.
8564 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
8566         PR rtl-optimization/60851
8567         * recog.c (constrain_operands): Accept a pseudo register before reload
8568         for LRA enabled targets.
8570 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
8572         PR target/65240
8573         * config/rs6000/predicates.md (easy_fp_constant): Remove special
8574         -ffast-math handling that kept non-0 constants live in the RTL
8575         until reload.  Remove logic testing the number of instructions it
8576         took to create a constant in a GPR that was never used, due to a
8577         test for soft-float earlier.
8578         (memory_fp_constant): Delete, no longer used.
8580         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
8581         alternatives for loading non-0 constants into GPRs for hard
8582         floating point that is no longer needed due to changes in
8583         easy_fp_constant.  Add support for loading 0.0 into GPRs.
8584         (mov<mode>_hardfloat32): Likewise.
8585         (mov<mode>_hardfloat64): Likewise.
8586         (mov<mode>_64bit_dm): Likewise.
8587         (movtd_64bit_nodm): Likewise.
8588         (pre-reload move FP constant define_split): Delete define_split,
8589         since it is no longer used.
8590         (extenddftf2_internal): Remove GHF constraints that are not valid
8591         for extenddftf2.
8593 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
8595         PR rtl-optimization/63491
8596         * lra-constraints.c (check_and_process_move): Use src instead of
8597         sreg.  Remove some dead code.
8599 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
8601         PR ipa/65380
8602         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
8603         (sem_variable::merge): Likewise.
8605 2015-03-19  Martin Liska  <mliska@suse.cz>
8607         PR ipa/65465
8608         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
8609         all fields of cgraph_thunk_info.
8611 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
8613         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
8614         clone instrumented thunks.
8616 2015-03-19  Richard Biener  <rguenther@suse.de>
8618         Revert
8619         2015-03-10  Richard Biener  <rguenther@suse.de>
8621         PR middle-end/63155
8622         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
8623         * tree-ssa-coalesce.c: Include timevar.h.
8624         (attempt_coalesce): Handle graph being NULL.
8625         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
8626         Split out abnormal coalescing to ...
8627         (perform_abnormal_coalescing): ... this function.
8628         (coalesce_ssa_name): Perform abnormal coalescing without computing
8629         live/conflict.
8630         (verify_ssa_coalescing_worker): New function.
8631         (verify_ssa_coalescing): Likewise.
8633 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8634             Jakub Jelinek  <jakub@redhat.com>
8636         PR sanitizer/65400
8637         * tsan.c (instrument_gimple): Clear tail call flag on
8638         calls.
8640 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
8642         PR sanitizer/65400
8643         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
8644         call in the return bb.
8645         (find_split_points): Add RETURN_BB argument, don't call
8646         find_return_bb.
8647         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
8648         if true append TSAN_FUNC_EXIT internal call after the call to
8649         the split off function.
8650         (execute_split_functions): Call find_return_bb here.
8651         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
8652         Adjust find_split_points and split_function calls.
8654 2015-03-18  DJ Delorie  <dj@redhat.com>
8656         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
8657         (iorqi3_virt): Likewise.
8659 2015-03-18  Tom de Vries  <tom@codesourcery.com>
8661         * tree-parloops.c (parallelize_loops): Make static.
8662         * tree-parloops.h (parallelize_loops): Remove extern declaration.
8664 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
8666         PR middle-end/64491
8667         Revert:
8668         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
8670         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
8671         condition would be removed due to undefined behaviour.
8673 2015-03-18  Martin Liska  <mliska@suse.cz>
8675         PR ipa/65432
8676         * cgraph.c (cgraph_node::get_create): Remove unnecessary
8677         xstrdup_for_dump wrapper.
8678         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
8679         sem_item::name.
8680         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
8681         with xstrdup_for_dump.
8682         (sem_variable::equals): Likewise.
8683         (sem_item_optimizer::read_section): Use symtab_node::name instead of
8684         sem_item::name.
8685         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
8686         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
8687         symtab_node::asm_name with xstrdup_for_dump.
8688         (congruence_class::dump): Use symtab_node::name instead of
8689         sem_item::name.
8690         * ipa-icf.h (symtab_node::name): Remove.
8691         (symtab_node::asm_name): Likewise.
8693 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
8695         PR tree-optimization/65450
8696         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
8697         function.
8698         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
8699         it instead of duplicate_ssa_name_ptr_info.
8701         PR target/65222
8702         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
8704 2015-03-18  Richard Biener  <rguenther@suse.de>
8706         * tree-data-ref.h (struct access_matrix): Remove.
8707         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
8708         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
8709         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
8710         (am_vector_index_for_loop): Likewise.
8711         (struct data_reference): Remove access_matrix member.
8712         (DR_ACCESS_MATRIX): Remove.
8713         (lambda_vector_new): Add comment.
8714         (lambda_matrix_new): Use XOBNEWVEC.
8716 2015-03-18  Richard Biener  <rguenther@suse.de>
8718         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
8719         (pass_ch::execute): Cleanup the CFG only if we did sth.
8720         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
8722 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8724         * expmed.c (synth_mult): Use std::swap instead of manually
8725         swapping algorithms.
8727 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
8729         PR target/65078
8730         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
8732 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
8734         PR target/65296
8735         * config/avr/avr.opt (-nodevicelib): New option.
8736         * doc/invoke.texi (AVR Options): Document it.
8737         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
8738         libgcc.a, libc.a, libm.a.
8739         * config/avr/specs.h: Same.
8740         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
8741         which don't (directly) depend on the device.  Print more help.
8742         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
8743         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
8744         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
8745         case of an error.
8746         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
8747         for specs file name.
8748         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
8749         * config/avr/avr-mcus.def: Adjust initializers and comments.
8751 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
8753         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
8754         DECL_ONE_ONLY to check if decl is one only.
8755         * ipa-split.c (consider_split): Limit splitt of one only functions.
8757 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
8759         PR tree-optimization/65427
8760         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
8761         functions.
8762         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
8764 2015-03-16  Marek Polacek  <polacek@redhat.com>
8766         * cgraph.h (add_new_static_var): Remove declaration.
8767         * varpool.c (add_new_static_var): Remove function.
8769 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
8771         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
8772         instead of vec<tree> * with vec_alloc and release for args.
8773         Adjust all users.
8775         PR middle-end/65431
8776         * omp-low.c (delete_omp_context): Only splay_tree_delete
8777         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
8778         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
8780 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
8782         PR sanitizer/64820
8783         * cfgexpand.c (align_base): New function.
8784         (alloc_stack_frame_space): Call it.
8785         (expand_stack_vars): Align prev_frame to be sure
8786         data->asan_vec elements aligned properly.
8788 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
8790         PR middle-end/65409
8791         * expr.c (store_field): Do not do a direct block copy if the source is
8792         a PARALLEL with BLKmode.
8794 2015-03-16  Tom de Vries  <tom@codesourcery.com>
8796         PR middle-end/65414
8797         Revert:
8798         2015-03-12  Tom de Vries  <tom@codesourcery.com>
8800         PR rtl-optimization/64895
8801         * lra-lives.c (check_pseudos_live_through_calls): Use
8802         actual_call_used_reg_set instead of call_used_reg_set, if available.
8804 2015-03-16  Alan Modra  <amodra@gmail.com>
8806         PR target/63150
8807         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
8808         Modify Z->r bswapdi splitter to use dest in place of scratch.
8809         In r->Z and Z->r bswapdi splitter rename word_high, word_low
8810         to word1, word2 and rearrange logic to suit.
8811         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
8812         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
8813         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
8814         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
8815         early clobber.
8817 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
8819         PR tree-optimization/65369
8820         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
8821         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
8822         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
8824         PR tree-optimization/65418
8825         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
8826         are casts in the first PLUS_EXPR operand, ensure tbias and
8827         *totallowp are in the inner type.
8829         PR rtl-optimization/65401
8830         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
8831         argument.  If true, adjust_address_nv of x with big-endian
8832         correction for the mode widening to GET_MODE (y).
8833         (make_field_assignment): Don't do MEM mode widening here.
8834         Use MEM_P instead of GET_CODE == MEM.
8836 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
8838         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
8839         the external decls.
8841 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8843         PR target/64600
8844         * config/arm/arm.c (arm_gen_constant, AND case): Use
8845         ARM_SIGN_EXTEND when constructing AND mask.
8847 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8849         * graph.c (print_graph_cfg): Make function names visible and append
8850         parenthesis to it.  Also make groups of basic blocks belonging to the
8851         same function visible.
8853 2015-03-12  Richard Biener  <rguenther@suse.de>
8855         PR middle-end/44563
8856         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
8857         to avoid quadratic behavior with inline expansion splitting blocks.
8858         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
8859         with the successor if the predecessor will be merged with it.
8860         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
8861         entry block with its successor.
8863 2015-03-13  Richard Biener  <rguenther@suse.de>
8865         PR middle-end/44563
8866         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
8867         (cleanup_tree_cfg_1): Do not call it.
8868         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
8869         (fixup_noreturn_call): Mark the stmt as control altering.
8870         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
8871         here.
8872         (pass_data_fixup_cfg): Produce a dump file.
8873         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
8874         (need_noreturn_fixup): New global.
8875         (pass_dominator::execute): Fixup queued noreturn calls.
8876         (optimize_stmt): Queue calls that became noreturn for fixup.
8877         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
8878         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
8879         (el_to_fixup): New global.
8880         (eliminate_dom_walker::before_dom_childre): Queue calls that
8881         became noreturn for fixup.
8882         (eliminate): Fixup queued noreturn calls.
8883         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
8884         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
8885         (substitute_and_fold_dom_walker::before_dom_children): Queue
8886         alls that became noreturn for fixup.
8887         (substitute_and_fold): Fixup queued noreturn calls.
8889 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
8891         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
8892         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
8893         are building; for methods check ODR type of class they belong to if
8894         they may lead to a polymorphic call.
8895         (sem_function::compare_polymorphic_p): Be bit smarter about testing
8896         when function may lead to a polymorphic call.
8897         (sem_function::compare_type_list): Remove.
8898         (sem_variable::equals): Update use of compatible_types_p.
8899         (sem_variable::parse_tree_refs): Remove.
8900         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
8901         cdtor.
8902         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
8903         matching here.
8904         (func_checker::compatible_polymorphic_types_p): Break out from ...
8905         (unc_checker::compatible_types_p): ... here.
8906         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
8907         Declare.
8908         (unc_checker::compatible_types_p): Update.
8909         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
8910         Remove.
8912 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8914         PR rtl-optimization/65235
8915         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
8916         When first element of vec_concat is const_int, calculate its size
8917         using second element.
8919 2015-03-12  Richard Biener  <rguenther@suse.de>
8921         PR middle-end/65270
8922         * fold-const.c (operand_equal_p): Fix ordering of resetting
8923         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
8925 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8927         * config/s390/s390.c (s390_reorg): Move code to output nops after label
8928         to s390_reorg ().
8929         (s390_asm_output_function_label): Likewise.
8930         * config/s390/s390.c (s390_asm_output_function_label):
8931         Fix function label alignment with -mhtopatch.
8932         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
8933         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
8934         ("nop_2_byte"): New define_insn.
8935         ("nop_4_byte"): Likewise.
8936         ("nop_6_byte"): Likewise.
8937         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
8938         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
8940 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
8942         PR target/65103
8943         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
8944         register.
8946 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
8948         PR target/65044
8949         * toplev.c (process_options): Restrict Pointer Bounds Checker
8950         usage with Address Sanitizer.
8952 2015-03-12  Richard Biener  <rguenther@suse.de>
8954         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
8955         to split on.
8956         * omp-low.c (expand_omp_taskreg): Split block before removing
8957         the stmt.
8958         (expand_omp_target): Likewise.
8959         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
8960         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
8961         stmt to split_block.
8963 2015-03-12  Tom de Vries  <tom@codesourcery.com>
8965         PR rtl-optimization/64895
8966         * lra-lives.c (check_pseudos_live_through_calls): Use
8967         actual_call_used_reg_set instead of call_used_reg_set, if available.
8969 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
8971         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
8972         (cgraph_node::remove): Likewise.
8973         (cgraph_node::get_untransformed_body): Likewise.
8974         * varpool.c (varpool_node::remove): Likewise.
8975         (varpool_node::get_constructor): Add sanity check.
8977 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
8979         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
8980         old GCC versions.
8981         (-fabi-compat-version): Likewise.
8982         (-ffriend-injection): Likewise.
8983         (-Wdeclaration-after-statement): Likewise.
8984         (-fomit-frame-pointer): Likewise.
8985         (-ftree-coalesce-inlined-vars): Likewise.
8986         (-fvisibility=): Likewise.
8987         * doc/extend.texi (Typeof): Likewise.
8988         (Zero Length): Likewise.
8989         (Escaped Newlines): Likewise.
8990         (Compound Literals): Likewise.
8991         (Function Attributes): Likewise.
8992         (Label Attributes): Likewise.
8993         (Type Attributes): Likewise.
8994         (Function Names): Likewise.
8995         (Other Builtins): Likewise.
8996         (Function Specific Option Pragmas): Likewise.
8997         (C++ Interface): Likewise.
8999 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
9001         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
9003 2015-03-11  Marek Polacek  <polacek@redhat.com>
9005         PR tree-optimization/65388
9006         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
9008 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
9010         PR target/65296
9011         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
9012         * configure: Regenerate.
9013         * config.in: Regenerate.
9014         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
9015         [-mn-flash]: Document it.
9016         [__AVR_ARCH__]: Document avrtiny.
9018         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
9019         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
9020         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
9022 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9024         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
9026 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9028         PR target/65242
9029         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
9030         allow reloads of PLUS in floating point/VSX registers.
9032 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
9034         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
9035         crypto_sha256_fast.
9036         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
9038 2015-03-11  Richard Biener  <rguenther@suse.de>
9040         PR tree-optimization/65310
9041         * tree-sra.c (build_ref_for_offset): Also preserve larger
9042         alignment.
9044 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
9046         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
9048 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9050         PR target/65368
9051         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
9052         new define_expand.
9053         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
9055 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
9057         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
9058         (sem_function::equals_wpa): ... here.
9060 2015-03-10  Marek Polacek  <polacek@redhat.com>
9061             Jakub Jelinek  <jakub@redhat.com>
9063         PR sanitizer/65367
9064         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
9065         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
9066         separately.
9068 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9070         PR target/65286
9071         * config/rs6000/t-linux: For powerpc64* target set
9072         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
9074 2015-03-10  Richard Biener  <rguenther@suse.de>
9076         PR middle-end/44563
9077         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
9078         for redirect_all_calls.
9080 2015-03-10  Marek Polacek  <polacek@redhat.com>
9082         * gdbinit.in (pcfun): Define and document.
9084 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
9086         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
9087         of libgomp-plugin.h.
9088         (find_target_compiler): Support a case when the path to gcc is
9089         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
9090         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
9091         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
9092         libgomp-plugin.h.
9093         (main): Use GCC_INSTALL_NAME as target_driver_name.
9094         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
9095         define.
9096         (mkoffload.o): Remove obsolete include path and defines.
9097         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
9099 2015-03-10  Richard Biener  <rguenther@suse.de>
9101         PR middle-end/63155
9102         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
9103         * tree-ssa-coalesce.c: Include timevar.h.
9104         (attempt_coalesce): Handle graph being NULL.
9105         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
9106         Split out abnormal coalescing to ...
9107         (perform_abnormal_coalescing): ... this function.
9108         (coalesce_ssa_name): Perform abnormal coalescing without computing
9109         live/conflict.
9110         (verify_ssa_coalescing_worker): New function.
9111         (verify_ssa_coalescing): Likewise.
9113 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
9115         PR target/65296
9116         * config.gcc (extra_options) [avr]: Remove.
9117         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
9118         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
9119         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
9121         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
9122         (-mmcu=): Add Var and MissingArgError properties.
9123         (-march=): Remove.
9124         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
9125         * config/avr/t-multilib: Regenerate.
9126         * config/avr/specs.h: New file.
9127         * config/avr/driver-avr.c: New file.
9128         * config/avr/genopt.sh: Remove file.
9129         * config/avr/avr-tables.opt: Remove file.
9130         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
9131         * config/avr/avr-c.c: Same.
9132         * avr-arch.h: Same.
9133         (avr_current_device): Remove proto.
9134         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
9135         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
9136         (EXTRA_SPEC_FUNCTIONS): Define.
9137         (avr_devicespecs_file): New specs function proto.
9138         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
9139         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
9140         (avr_current_device): Remove definition and usage.
9141         (avr_set_core_architecture): New static function.
9142         (avr_option_override): Use it.
9143         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
9144         (mcu_name): New static array.
9145         (comparator, avr_archs_str, avr_mcus_str): New static functions.
9146         (avr_inform_devices, avr_inform_core_architectures): New functions.
9147         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
9148         (avrlibc.h) [WITH_AVRLIBC]: Include.
9149         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
9150         (print_mcu): Rewrite from scratch.
9151         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
9152         Forward to avr-specific specs defined in device-specs file.
9153         * config/avr/t-avr (driver-avr.o): New rule.
9154         (avr-devices.o): Depend on avr-arch.h.
9155         (avr-mcus): No more depend on avr-tables.opt.
9156         (avr-tables.opt): Remove rule.
9157         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
9159 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
9161         * c-family/c.opt (fchkp-use-wrappers): New.
9162         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
9163         (chkp_wrap_function): New.
9164         (chkp_build_instrumented_fndecl): Support wrapped
9165         functions.
9166         * doc/invoke.texi (-fcheck-pointer-bounds): New.
9167         (-fchkp-check-incomplete-type): New.
9168         (-fchkp-first-field-has-own-bounds): New.
9169         (-fchkp-narrow-bounds): New.
9170         (-fchkp-narrow-to-innermost-array): New.
9171         (-fchkp-optimize): New.
9172         (-fchkp-use-fast-string-functions): New.
9173         (-fchkp-use-nochk-string-functions): New.
9174         (-fchkp-use-static-bounds): New.
9175         (-fchkp-use-static-const-bounds): New.
9176         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
9177         (-fchkp-check-read): New.
9178         (-fchkp-check-write): New.
9179         (-fchkp-store-bounds): New.
9180         (-fchkp-instrument-calls): New.
9181         (-fchkp-instrument-marked-only): New.
9182         (-fchkp-use-wrappers): New.
9183         (-static-libmpx): New.
9184         (-static-libmpxwrappers): New.
9186 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
9188         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
9189         (CHKP_SPEC): Add wrappers library.
9190         * c-family/c.opt (static-libmpxwrappers): New.
9192 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
9194         * config/i386/linux-common.h (LIBMPX_LIBS): New.
9195         (LIBMPX_SPEC): New.
9196         (CHKP_SPEC): New.
9197         * gcc.c (CHKP_SPEC): New.
9198         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
9199         * c-family/c.opt (static-libmpx): New.
9201 2015-03-10  Richard Biener  <rguenther@suse.de>
9203         PR middle-end/44563
9204         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
9205         for compare_type.
9206         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
9207         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
9208         (cgraph_add_edge_to_call_site_hash): Likewise.
9209         (cgraph_node::get_edge): Likewise.
9210         (cgraph_edge::set_call_stmt): Likewise.
9211         (cgraph_edge::remove_caller): Likewise.
9213 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
9215         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
9216         (callee_saved_gpr_regs_size): ... this.
9217         (callee_saved_regs_first_regno): Rename to ...
9218         (callee_saved_first_gpr_regno): ... this.
9219         (callee_saved_regs_last_regno) Rename to ...
9220         (callee_saved_last_gpr_regno): ... this.
9221         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
9222         variables.
9223         (nds32_initial_elimination_offset): Likewise.
9224         (nds32_expand_prologue): Likewise.
9225         (nds32_expand_epilogue): Likewise.
9226         (nds32_expand_prologue_v3push): Likewise.
9227         (nds32_expand_epilogue_v3pop): Likewise.
9228         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
9229         Adjust renamed variables.
9230         (nds32_output_stack_pop): Likewise.
9232 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9234         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
9235         code in comment.
9237 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
9239         PR rtl-optimization/65321
9240         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
9241         than shift mode.
9242         * var-tracking.c (use_narrower_mode): Likewise.
9244 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
9246         PR tree-optimization/65355
9247         * varasm.c (notice_global_symbol): Do not produce RTL.
9248         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
9249         anchor.
9250         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
9251         check for section anchors.
9253 2015-03-10  Alan Modra  <amodra@gmail.com>
9255         PR target/65286
9256         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
9257         to be single-arch by default.  Set cpu_is_64bit for powerpc64
9258         given --with-cpu=native.
9259         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
9260         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
9261         and powerpc64le.
9262         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
9263         rs6000_isa_flags rather than TARGET_64BIT.
9265 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
9266             Kaz Kojima  <kkojima@gcc.gnu.org>
9268         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
9270 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
9272         PR lto/65361
9273         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
9274         on a TREE_BINFO, instead use BINFO_TYPE.
9276 2015-03-09  Richard Biener  <rguenther@suse.de>
9278         PR middle-end/65270
9279         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
9280         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
9281         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
9282         of that.  When comparing dereferences compare alignment.
9283         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
9285 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
9287         * ipa-inline-analysis.c (check_callers): Check
9288         node->can_remove_if_no_direct_calls_and_refs_p.
9289         (growth_likely_positive): Reorganize to call
9290         can_remove_if_no_direct_calls_p later.
9291         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
9292         will_be_removed_from_program_if_no_direct_calls_p): Add
9293         will_inline parameter.
9294         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
9295         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
9296         Handle inliner case correctly.
9298 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9300         PR tree-optimization/63743
9301         * cfgexpand.c (reorder_operands): Also reorder if only second operand
9302         had its definition forwarded by TER.
9304 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
9306         PR lto/65316
9307         * ipa-utils.h (types_odr_comparable): Add strict argument.
9308         * ipa-devirt.c: Fix whitespace;
9309         (odr_hasher): Remove.
9310         (odr_name_hasher, odr_vtable_hasher): New hashers.
9311         (can_be_name_hashed_p): New predicate.
9312         (hash_type_name): remove.
9313         (hash_odr_name): New.
9314         (odr_name_hasher::hash): new.
9315         (can_be_vtable_hashed_p): New.
9316         (hash_odr_vtable): New.
9317         (odr_vtable_hasher::hash): New.
9318         (types_same_for_odr): Add strict parameter.
9319         (types_odr_comparable): Likewise.
9320         (odr_name_hasher::equal): New.
9321         (odr_vtable_hasher::equal): New.
9322         (odr_name_hasher::remove): New.
9323         (odr_hash_type): Change to hash_table<odr_name_hasher>.
9324         (odr_vtable_hash_type): New.
9325         (odr_vtable_hash): New.
9326         (odr_subtypes_equivalent_p): Do strict comparsion.
9327         (add_type_duplicate): Merge type names; cleanup; avoid type
9328         duplicates.
9329         (register_odr_type): Initialize vtable hash.
9330         (build_type_inheritance_graph): Likewise
9331         (get_odr_type): Reorg to use two hashes.
9332         (dump_possible_polymorphic_call_targets): Move sanity check after debug
9333         output.
9334         (ipa_devirt): Dump type_inheritance_graph.
9335         (types_same_for_odr): Add strict mode.
9337 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
9339         PR ipa/65334
9340         * cgraph.h (symtab_node): Add definition_alignment,
9341         can_increase_alignment_p and increase_alignment.
9342         * symtab.c (symtab_node::can_increase_alignment_p,
9343         increase_alignment_1, symtab_node::increase_alignment,
9344         symtab_node::definition_alignment): New.
9345         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
9346         can_increase_alignment_p.
9347         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
9348         * tree-vect-stmts.c (ensure_base_align): Likewise.
9349         * varasm.c (function_section_1): Use definition_alignment.
9350         (assemble_start_function): Likewise.
9351         (emit_local): likewise.
9352         (build_constant_desc): Likewsie.
9353         (output_constant_def_contents): Likewise.
9354         (place_block_symbol): Likewise.
9355         (output_object_block): Likewise.
9357 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
9359         PR ipa/65316
9360         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
9361         when outputting debug.
9363 2015-03-07  Marek Polacek  <polacek@redhat.com>
9364             Martin Uecker  <uecker@eecs.berkeley.edu>
9366         PR sanitizer/65280
9367         * doc/invoke.texi: Update description of -fsanitize=bounds.
9369 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
9371         * tree-ssa-phiopt.c (neg_replacement): Remove.
9372         (tree_ssa_phiopt_worker): Remove negate optimization.
9374 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
9376         PR ipa/65302
9377         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
9379 2015-03-06  Richard Biener  <rguenther@suse.de>
9381         PR middle-end/64928
9382         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
9383         and liveout_obstack members.
9384         (calculate_live_on_exit): Remove.
9385         (calculate_live_ranges): Change declaration.
9386         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
9387         (new_tree_live_info): Adjust.
9388         (calculate_live_ranges): Delete livein when not wanted.
9389         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
9390         Deal with partly deleted live info.
9391         (loe_visit_block): Remove temporary bitmap by using
9392         bitmap_ior_and_compl_into.
9393         (live_worklist): Adjust accordingly.
9394         (calculate_live_on_exit): Make static.
9395         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
9396         we do not need livein.
9398 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
9400         * real.c (real_from_string): Fix typo in assertion.
9402 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
9404         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
9405         the patch.
9407 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
9409         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
9411 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
9413         PR target/64342
9414         * lra-assigns.c (find_hard_regno_for): Rename to
9415         find_hard_regno_for_1.  Add a new parameter.
9416         (find_hard_regno_for): New function using find_hard_regno_for_1.
9418 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9420         PR rtl-optimization/65067
9421         * expmed.c (store_bit_field, extract_bit_field): Reworked the
9422         strict volatile bitfield handling.
9424 2015-03-05  Martin Liska  <mliska@suse.cz>
9426         PR ipa/65318
9427         * ipa-icf.c (sem_variable::equals): Compare variables types.
9429 2015-03-05  Richard Henderson  <rth@redhat.com>
9431         PR target/65121
9432         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
9433         correctly check weak symbol binding.
9435 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
9437         PR middle-end/65315
9438         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
9439         needed alignment.
9441 2015-03-05  Martin Liska  <mliska@suse.cz>
9443         * ipa-inline.c (inline_small_functions): Set default value to
9444         prevent warning during bootstrap.
9445         * tree.h: Add pragma guard that ignores false positives during
9446         bootstrap.
9448 2015-03-05  Richard Biener  <rguenther@suse.de>
9450         PR tree-optimization/65310
9451         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9452         Properly preserve alignment of the base of the access.
9454 2015-03-05  Richard Biener  <rguenther@suse.de>
9456         PR ipa/65270
9457         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
9458         Compare dependence info.
9460 2015-03-05  Richard Biener  <rguenther@suse.de>
9462         PR middle-end/65233
9463         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
9464         tree-into-ssa.h.
9465         (walk_ssa_copies): Revert last chage.  Instead do not walk
9466         SSA names registered for SSA update.
9468 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
9470         PR ipa/65270
9471         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
9472         vtable references for their containing type.
9473         (sem_function::equals_wpa): Compare TYPE_RESTRICT
9474         and type attributes.
9476 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
9478         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
9479         before negating it.
9480         * stor-layout.c (finalize_record_size): Revert latest change.
9482 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
9484         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
9486 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
9488         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
9489         for correct comdat handling.
9490         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
9491         Likewise.
9492         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
9493         (used_from_object_file_p_worker): Remove.
9494         (cgraph_node::only_called_directly_or_alised): Add
9495         used_from_object_file_p.
9496         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
9497         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
9498         can_remove_if_no_direct_calls_and_refs_p.
9500 2015-03-04  Nick Clifton  <nickc@redhat.com>
9502         * config/rl78/rl78.h (enum reg_class): Remove real registers from
9503         General register class.
9504         * config/rl78/rl78-real.md: Replace general register constraints
9505         with real+virtual register constraints.
9507 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9509         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
9510         from checking for -mhtm option.
9512 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
9514         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
9515         (struct ipa_sra_check_caller_data): Add has_thunk field.
9516         (ipa_sra_check_caller): Check for thunk.
9517         (ipa_sra_preliminary_function_checks): Give up on function with
9518         thunks.
9519         (ipa_early_sra): Use call_for_symbol_and_aliases.
9521 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9523         PR target/65249
9524         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
9525         called for __stack_chk_guard symbol.
9527 2015-03-03  DJ Delorie  <dj@redhat.com>
9529         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
9530         inc/dec.
9531         (*addhi3_real): Likewise.
9532         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
9533         pattern to match incrementing memory.
9534         * config/rl78/predicates.md (rl78_1_2_operand): New.
9535         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
9536         it's the same and only mem.
9537         (rl78_alloc_physical_registers_op2): If there's effectively only
9538         one MEM, transcode it into HL.
9539         (rl78_far_p): Reject addresses that aren't legitimate.
9541 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
9543         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
9544         negating it.
9546         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
9548 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
9550         Implement call0 ABI for xtensa
9551         * config/xtensa/constraints.md ("a" constraint): Include stack
9552         pointer in case of call0 ABI.
9553         ("q" constraint): Make empty in case of call0 ABI.
9554         ("D" constraint): Include stack pointer in case of call0 ABI.
9555         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
9556         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
9557         prototypes.
9558         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
9559         variable.
9560         (xtensa_regno_to_class): Make it a local variable in the
9561         function xtensa_regno_to_class.
9562         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
9563         macro, function prototype and implementation.
9564         (reg_nonleaf_alloc_order): Make it a local variable in the
9565         function order_regs_for_local_alloc.
9566         (xtensa_conditional_register_usage): New function.
9567         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
9568         (xtensa_valid_move): Allow direct moves to stack pointer
9569         register in call0 ABI.
9570         (xtensa_setup_frame_addresses): Only spill register windows in
9571         windowed ABI.
9572         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
9573         call0 ABI respectively.
9574         (xtensa_function_arg_1): Only mark a7 register for copying in
9575         windowed ABI.
9576         (xtensa_call_save_reg): New function.
9577         (compute_frame_size): Add space for callee saved register
9578         storage to the frame size in call0 ABI.
9579         (xtensa_expand_prologue): Generate code to set up stack frame
9580         and save callee-saved registers in call0 ABI.
9581         (xtensa_expand_epilogue): New function.
9582         (xtensa_set_return_address): New function.
9583         (xtensa_return_addr): Calculate return address in call0 ABI.
9584         (xtensa_builtin_saveregs): Only mark a7 register for copying and
9585         emit copying code in windowed ABI.
9586         (order_regs_for_local_alloc): Add preferred register allocation
9587         order for non-leaf function in call0 ABI.
9588         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
9589         (xtensa_asm_trampoline_template): Add trampoline generation for
9590         call0 ABI.
9591         (xtensa_trampoline_init): Add trampoline initialization for
9592         call0 ABI.
9593         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
9594         functions.
9595         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
9596         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
9597         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
9598         ABI call-used registers.
9599         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
9600         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
9601         call0 ABI.
9602         (REG_CLASS_CONTENTS): Include all registers into the preferred
9603         reload registers set, adjust the set in the
9604         xtensa_conditional_register_usage.
9605         (xtensa_regno_to_class): Drop variable declaration.
9606         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
9607         function.
9608         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
9609         respectively.
9610         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
9611         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
9612         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
9613         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
9614         location in call0 ABI.
9615         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
9616         stack adjustment size when handling exception.
9617         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
9618         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
9619         definitions.
9620         ("return" pattern): Generate ret.n/ret in call0 ABI.
9621         ("epilogue" pattern): Expand epilogue.
9622         ("nonlocal_goto" pattern): Use default in call0 ABI.
9623         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
9624         emit eh_set_a0_* depending on ABI.
9625         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
9626         ("eh_set_a0_call0", "blockage"): New patterns.
9628 2015-03-03  Martin Liska  <mliska@suse.cz>
9630         PR ipa/65287
9631         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
9633 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9635         PR 65138/target
9636         * config/rs6000/rs6000-tables.opt: Regenerate table.
9638 2015-03-03  Renlin Li  <renlin.li@arm.com>
9640         * doc/md.texi (@item ^): Change ? into ^.
9642 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
9644         * doc/tm.texi: Regenerated.
9646 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
9648         * builtins.c (expand_builtin_return_addr): Add
9649         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
9650         surrounding #ifdef.
9651         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
9652         definition to 1.
9653         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
9654         Likewise.
9655         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
9656         undefined.
9657         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
9658         paragraph.
9660 2015-03-03  Martin Jambor  <mjambor@suse.cz>
9661             Eric Botcazou  <ebotcazou@adacore.com>
9663         * tree-sra.c (ipa_sra_check_caller_data): New type.
9664         (has_caller_p): Removed.
9665         (ipa_sra_check_caller): New function.
9666         (ipa_sra_preliminary_function_checks): Use it.
9668 2015-03-03  Martin Liska  <mliska@suse.cz>
9670         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
9671         instead of if branch.
9673 2015-03-03  Martin Liska  <mliska@suse.cz>
9675         PR ipa/65282
9676         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
9678 2015-03-23  Jeff Law  <law@redhat.com>
9680         PR tree-optimization/65241
9681         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
9682         hash table if INSERT is true.
9684 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
9686         PR target/65296
9687         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
9689 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
9691         PR target/64331
9692         * config/avr/avr.c (context.h, tree-pass.h): Include them.
9693         (avr_pass_data_recompute_notes): New static variable.
9694         (avr_pass_recompute_notes): New class.
9695         (avr_register_passes): New static function.
9696         (avr_option_override): Call it.
9698 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
9700         Fix various problems with specs file generation.
9702         PR target/65296
9703         * config.gcc (extra_gcc_objs) [avr]: Remove.
9704         * config/avr/driver-avr.c: Remove file.
9705         * config/avr/t-avr (driver-avr.o): Remove rule.
9706         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
9707         INCLUDES to build.  Depend on TM_H.
9708         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
9709         build warnings.  Fix non-matching types and non-existing %-codes.
9710         (tm.h): Include.
9711         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
9712         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
9713         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
9714         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
9715         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
9716         (LIBGCC_SPEC): Remove definitions.
9718 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
9720         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
9721         to create a register in testing mode.
9723 2015-03-03  Martin Liska  <mliska@suse.cz>
9724             Jan Hubicka  <hubicka@ucw.cz>
9726         PR ipa/65263
9727         * cgraph.c (cgraph_node::has_thunk_p): New function.
9728         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
9729         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
9730         (sem_function::merge): Assert is changed.
9732 2015-03-03  Martin Liska  <mliska@suse.cz>
9733             Martin Jambor  <mjambor@suse.cz>
9735         PR ipa/65087
9736         * ipa-icf.c (sem_item_optimizer::execute): Change function
9737         return value to boolean.
9738         (sem_item_optimizer::merge_classes): Likewise.
9739         (ipa_icf_driver): Return TODO_remove_functions in case there's
9740         a merge operation processed.
9741         * ipa-icf.h: Change function return value to boolean.
9743 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9745         PR 65138/target
9746         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
9747         processor type for 64-bit little endian PowerPC.
9749         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9750         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
9751         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
9752         printing built-in mask so it does not pass NULL pointers.
9754         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
9755         -mcpu=powerpc64le.
9757 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
9759         PR target/58158
9760         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
9761         !ISA_HAS_FP_CONDMOVE.
9763 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
9765         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
9766         reload_completed.
9768 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
9770         * doc/invoke.texi (Options for Code Generation Conventions):
9771         Fix URL of DSO paper.
9773 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
9775         PR ipa/65130
9776         * ipa-inline.c (check_callers): Looks for recursion.
9777         (inline_to_all_callers): Give up on uninlinable or recursive edges.
9778         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
9779         summary of inline clones.
9780         (do_estimate_growth_1): Fix recursion check.
9782 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
9784         PR ipa/64988
9785         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
9786         comdat groups.
9788 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
9789             Aldy Hernandez  <aldyh@redhat.com>
9791         PR lto/65276
9792         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
9793         when checking TYPE_BINFO.
9795 2015-03-02  Richard Biener  <rguenther@suse.de>
9797         PR ipa/65270
9798         * ipa-icf-gimple.c: Include builtins.h.
9799         (func_checker::compare_memory_operand): Compare base alignment.
9801 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
9803         PR target/65184
9804         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
9805         are never passed by reference.
9807 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
9809         PR target/65183
9810         * tree-chkp.c (chkp_check_lower): Don't check against
9811         zero bounds for already instrumented functions.
9812         (chkp_check_upper): Likewise.
9813         (chkp_fini): Clean pass local data to avoid wrong reusage.
9815 2015-02-28  Martin Liska  <mliska@suse.cz>
9816             Jan Hubicka  <hubicka@ucw.cz>
9818         * ipa-icf.c (sem_variable::equals): Improve debug output;
9819         get variable constructor.
9820         (sem_variable::parse): Do not filter out too early; give up on
9821         volatile and register vars.
9822         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
9823         variables.
9824         * ipa-icf.h (sem_variable::init): Do not set ctor.
9825         (sem_variable::ctor): Remove.
9827 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
9829         PR middle-end/65233
9830         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
9832 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9834         * ipa-icf.c: Include stor-layout.h
9835         (sem_function::compare_cgraph_references): Rename to ...
9836         (sem_item::compare_cgraph_references): ... this one.
9837         (sem_variable::equals_wpa): New function
9838         (sem_variable::equals): Do not check stuff already verified by
9839         equals_wpa.
9840         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
9841         * ipa-icf.h (sem_item): Add compare_cgraph_references.
9842         (sem_function): Remove compare_cgraph_references.
9843         (sem_variable): Turns equals_wpa into non-inline.
9845 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9847         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
9848         (sem_item::add_expr): New function.
9849         (sem_function::hash_stmt): Handle operands of most statements.
9850         (sem_variable::get_hash): Hash the actual constructor.
9851         * ipa-icf.h (sem_item): Add add_expr.
9852         (sem_function): Update prototype of hash_stmt
9854 2015-02-28  Martin Liska  <mliska@suse.cz>
9855             Jan Hubicka  <hubicka@ucw.cz>
9857         PR ipa/65245
9858         * ipa-icf-gimple.c (func_checker::compare_function_decl):
9859         Remove.
9860         (func_checker::compare_variable_decl): Skip symtab vars.
9861         (func_checker::compare_cst_or_decl): Update.
9862         * ipa-icf.c (sem_function::parse): Do not consider aliases.
9863         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
9864         use correct symtab predicates.
9865         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
9866         (sem_variable::parse):  Update comment.
9867         (sem_item_optimizer::build_graph): Consider ultimate aliases
9868         for references.
9870 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9872         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
9873         of OBJ_TYPE_REF.
9875 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9877         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
9878         (sem_variable::merge) Likewise.
9880 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9882         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
9883         target; also match flag_ipa_devirt.
9885 2015-03-01  Martin Liska  <mliska@suse.cz>
9886             Jan Hubicka  <hubicka@ucw.cz>
9888         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
9889         Validate variable alignment.
9890         * ipa-icf.c (sem_function::equals_private): Be more precise
9891         about non-common function attributes.
9892         (sem_variable::equals): Likewise.
9894 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9896         PR ipa/65237
9897         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
9898         across COMDAT group boundary.
9900 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9902         PR ipa/65232
9903         * ipa-icf.c (clear_decl_rtl): New function.
9904         (sem_function::merge): Clear RTL before forming alias.
9905         (sem_variable::merge): Clear RTL before forming alias.
9907 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
9909         PR ipa/65236
9910         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
9912 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
9914         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
9915         to neon_to_gp<q>.
9917 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
9919         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
9920         a typo in the description.
9922 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
9924         PR target/64317
9925         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
9926         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
9927         * lra-constraints.c: Include "params.h".
9928         (EBB_PROBABILITY_CUTOFF): Use
9929         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
9930         (lra_inheritance): Use '<' instead of '<=' for
9931         EBB_PROBABILITY_CUTOFF.
9932         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
9933         Document change.
9935 2015-02-27  Martin Liska  <mliska@suse.cz>
9937         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
9938         vector length condition.
9940 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
9942         * doc/extend.texi (x86 transactional memory intrinsics):
9943         Reorganize discussion of _xbegin.  Clarify that the return
9944         value is a bit mask.  Expand example and move to end of section.
9946 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
9947             Aldy Hernandez  <aldyh@redhat.com>
9949         PR rtl-optimization/65220
9950         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
9952 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
9954         PR target/65032
9955         * lra-remat.c (update_scratch_ops): New.
9956         (do_remat): Call it.
9957         * lra.c (lra_register_new_scratch_op): New. Take code from ...
9958         (remove_scratches): ... here.
9959         * lra-int.h (lra_register_new_scratch_op): New prototype.
9961 2015-02-27  Marek Polacek  <polacek@redhat.com>
9963         PR c/65040
9964         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
9965         -Wformat-signedness anymore.
9967 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9969         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
9970         function.
9971         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
9973 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9975         * config/s390/s390.c (enum s390_builtin):
9976         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
9977         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
9978         (s390_init_builtins): Generate new builtin functions.
9979         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
9980         (s390_sfpc, s390_efpc): New pattern definitions.
9982 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9984         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
9985         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
9986         (s390_builtin_decls): New array.
9987         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
9988         (s390_builtin_decl): New function.
9989         (TARGET_BUILTIN_DECL): Define macro.
9991 2015-02-27  Richard Biener  <rguenther@suse.de>
9993         PR middle-end/63175
9994         * builtins.c (get_object_alignment_2): Make sure to re-apply
9995         the ANDed mask after recursing to its operand gets us a new
9996         misalignment bit position.
9998 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
9999             Martin Liska  <mliska@suse.cz>
10001         PR bootstrap/65150
10002         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
10003         Use address_matters_p.
10004         (redirect_all_callers, set_addressable): New functions.
10005         (sem_function::merge): Reorganize and fix merging issues.
10006         (sem_variable::merge): Likewise.
10007         (sem_variable::compare_sections): Remove.
10008         * common.opt (fmerge-all-constants, fmerge-constants): Remove
10009         Optimization flag.
10010         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
10011         redirect them.
10012         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
10013         decl is used.
10014         (address_matters_1): New function.
10015         (symtab_node::address_matters_p): New function.
10016         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
10017         check for merged flag.
10018         * cgraph.h (address_matters_p): Declare.
10019         (symtab_node::address_taken_from_non_vtable_p): Remove.
10020         (symtab_node::address_can_be_compared_p): New method.
10021         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
10022         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
10023         Remove.
10024         (comdat_can_be_unshared_p_1) Use address_matters_p.
10025         (update_vtable_references): Fix formating.
10026         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
10027         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
10028         * cgraphclones.c: Preserve merged and icf_merged flags.
10030 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
10032         * doc/extend.texi (Function Attributes): Fix spelling and typos.
10033         (Label Attributes): Likewise.
10034         (Cilk Plus Builtins): Likewise.
10035         (ARC SIMD Built-in Functions): Likewise.
10036         (ARM C Language Extensions (ACLE)): Likewise.
10037         (PowerPC Built-in Functions): Likewise.
10038         (PowerPC Hardware Transactional Memory Built-in Functions):
10039         Likewise.
10041 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
10043         PR tree-optimization/65216
10044         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
10045         new stmt and new SSA_NAME for lhs whenever the arguments have
10046         changed and weren't just swapped.  Fix comment typo.
10048         PR tree-optimization/65215
10049         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
10050         for PDP endian targets.
10051         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
10052         Fix up formatting issues.
10053         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
10054         size is smaller than the original, adjust MEM_REF offset by the
10055         difference of sizes.  Use is_gimple_mem_ref_addr instead of
10056         is_gimple_min_invariant test to avoid adding address temporaries.
10058 2015-02-26  Martin Liska  <mliska@suse.cz>
10059             Jan Hubicka  <hubicka@ucw.cz>
10061         PR ipa/64693
10062         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
10063         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
10064         (sem_item_optimizer::process_cong_reduction): Include division by
10065         sensitive references.
10066         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
10067         * ipa-ref.c (ipa_ref::address_matters_p): New function.
10068         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
10070 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
10072         PR target/65192
10073         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
10074         Remove.
10075         * config/avr/avr.c: Same.
10076         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
10077         Refuse any constant address not in 0..0xbf.
10078         * config/avr/avr.md (*mov<mode>, *movsf): Remove
10079         tiny_valid_direct_memory_access_range from insn conditions.
10080         (mov<mode>): Don't special-case expansion of avrtiny addresses.
10082 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
10084         PR target/61142
10085         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
10086         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
10087         * config/sh/predicates.md (const_logical_operand): New predicate.
10088         * config/sh/sh.md: Add new peephole2 patterns.
10090 2015-02-26  Marek Polacek  <polacek@redhat.com>
10092         PR ipa/65008
10093         * ipa-inline.c (early_inliner): Recompute inline parameters.
10095 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10097         PR target/65171
10098         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
10099         instructions with TImode operands are included in the analysis.
10101 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
10103         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
10104         of an EDGE_FSM_THREAD.
10106 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10108         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
10110 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
10112         PR debug/46102
10113         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
10115 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
10117         PR tree-optimization/65048
10118         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
10119         (thread_through_all_blocks): Call valid_jump_thread_path.
10120         Remove invalid FSM jump-thread paths.
10122 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
10124         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
10125         (ipa_write_optimization_summaries): Likewise.
10126         * tree-streamer.h: Include data-streamer.h.
10127         (streamer_mode_table): Declare extern variable.
10128         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
10129         * lto-streamer-out.c (lto_output_init_mode_table,
10130         lto_write_mode_table): New functions.
10131         (produce_asm_for_decls): Call lto_write_mode_table when streaming
10132         offloading LTO.
10133         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
10134         (lto_create_simple_input_block): Add mode_table argument to the
10135         lto_input_block constructors.
10136         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
10137         Likewise.
10138         * data-streamer-in.c (string_for_index): Likewise.
10139         * ipa-inline-analysis.c (inline_read_section): Likewise.
10140         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
10141         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10142         * lto-streamer-in.c (lto_read_body_or_constructor,
10143         lto_input_toplevel_asms): Likewise.
10144         (lto_input_mode_table): New function.
10145         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
10146         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
10147         Use bp_pack_machine_mode.
10148         * real.h (struct real_format): Add name field.
10149         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
10150         (class lto_input_block): Add mode_table member.
10151         (lto_input_block::lto_input_block): Add mode_table_ argument,
10152         initialize mode_table.
10153         (struct lto_file_decl_data): Add mode_table field.
10154         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
10155         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
10156         unpack_ts_decl_common_value_fields,
10157         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
10158         * tree-streamer.c (streamer_mode_table): New variable.
10159         * real.c (ieee_single_format, mips_single_format,
10160         motorola_single_format, spu_single_format, ieee_double_format,
10161         mips_double_format, motorola_double_format,
10162         ieee_extended_motorola_format, ieee_extended_intel_96_format,
10163         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
10164         ibm_extended_format, mips_extended_format, ieee_quad_format,
10165         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
10166         decimal_single_format, decimal_double_format, decimal_quad_format,
10167         ieee_half_format, arm_half_format, real_internal_format): Add name
10168         field.
10169         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
10171 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
10173         PR target/65161
10174         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
10175         reordering for selective scheduling.
10177 2015-02-26  Terry Guo  <terry.guo@arm.com>
10179         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
10180         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
10181         (arm_arch_no_volatile_ce): Declare new global variable.
10182         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
10183         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
10184         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
10185         (TARGET_NO_VOLATILE_CE): New macro.
10186         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
10187         volatile memory access in IT block
10189 2015-02-25  Kai Tietz  <ktietz@redhat.com>
10191         PR tree-optimization/61917
10192         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
10193         that reduc_def_stmt is null.
10195 2015-02-25  Martin Liska  <mliska@suse.cz>
10197         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
10198         hard register variables.
10200 2015-02-25  Kai Tietz  <ktietz@redhat.com>
10202         PR target/64212
10203         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
10204         (symtab::noninterposable_alias): Likewise.
10206 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
10208         PR target/65167
10209         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
10210         bounds registers.
10211         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
10213 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
10215         PR target/64997
10216         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
10217         as split condition; force split via '#' in output pattern.
10219 2015-02-25  Richard Biener  <rguenther@suse.de>
10220             Kai Tietz  <ktietz@redhat.com>
10222         PR tree-optimization/61917
10223         * tree-vect-loop.c (vectorizable_reduction): Allow
10224         vect_internal_def without reduction to exit graceful.
10226 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
10228         PR target/65196
10229         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
10230         only with NONDEBUG_INSN_P.
10232 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
10234         Use variadic macros with avr-log.c.
10236         * config/avr/avr-protos.h (avr_vdump): New prototype.
10237         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
10238         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
10239         * config/avr/avr-log.c: Adjust comments.
10240         (avr_vdump): New function.
10241         (avr_vadump): Pass caller as 2nd argument instead of format string.
10242         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
10243         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
10245 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
10247         PR lto/64374
10248         * target.def (target_option_stream_in): New target hook.
10249         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
10250         targetm.target_option.post_stream_in if non-NULL.
10251         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
10252         * doc/tm.texi: Updated.
10253         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
10254         function.
10255         (TARGET_OPTION_POST_STREAM_IN): Redefine.
10257 2015-02-24  Jeff Law  <law@redhat.com>
10259         PR target/65117
10260         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
10261         of operand 0 and operand 2.
10262         (zero_cost_loop_end, loop_end): Similarly.
10264 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
10266         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
10267         CXX_MEM_STAT_INFO.
10269 2015-02-24  DJ Delorie  <dj@redhat.com>
10271         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
10272         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
10273         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
10274         instead of hardcoding SImode.
10276 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
10278         * omp-low.c (create_omp_child_function): Tag entrypoint
10279         functions with a special attribute.
10281 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
10283         PR target/65058
10284         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
10286 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
10288         PR rtl-optimization/65123
10289         * lra-remat.c (operand_to_remat): Check hard regs in insn
10290         definition too.
10292 2015-02-24  Nick Clifton  <nickc@redhat.com>
10294         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
10295         to the assembler.
10297 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10299         PR libgomp/64625
10300         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
10301         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
10302         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
10303         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
10304         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
10305         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
10306         (BUILT_IN_GOACC_PARALLEL): Specify as
10307         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
10308         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
10309         * builtin-types.def
10310         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
10311         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
10312         Remove function types.
10313         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
10314         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
10315         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
10316         New function types.
10318 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
10320         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
10322 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
10324         PR tree-optimization/65170
10325         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
10326         if val[1] < 0, clear also val[2] and return 3.
10328 2015-02-24  Alan Modra  <amodra@gmail.com>
10330         PR target/65172
10331         * config/rs6000/rs6000.c (get_memref_parts): Only return true
10332         when *base is a reg.  Handle nested plus addresses.  Simplify
10333         pre_modify test.
10335 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
10337         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
10338         use natural alignment when optimizing for size.
10340 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
10342         PR target/65153
10343         * config/sh/sh.md (movsicc_true+3): Remove peephole.
10344         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
10345         * config/sh/sh.c (replace_n_hard_rtx): Remove.
10347 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
10349         PR fortran/63427
10350         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
10351         too big for a wide_int.  Implement missing wrapping operation.
10353 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
10355         PR target/65163
10356         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
10357         instead of const_int 4294901760.
10359 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
10361         * config/avr/t-avr: Fix typo in comment.
10363 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
10365         * doc/rtl.texi (fma): Clarify documentation.
10367 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
10369         PR debug/58123
10370         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
10371         over input_location.
10373 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
10375         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10376         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
10377         restrict alignments to absolute_biggest_alignment.
10378         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
10379         Define.
10380         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
10381         * doc/tm.texi: Regenerate.
10382         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
10384 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
10386         PR target/64172
10387         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
10389 2015-02-20  Richard Biener  <rguenther@suse.de>
10391         PR tree-optimization/65136
10392         * tree-ssa-propagate.c: Include cfgloop.h.
10393         (replace_phi_args_in): Avoid replacing loop latch edge PHI
10394         arguments with constants.
10396 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
10397             Martin Liska  <mliska@suse.cz>
10399         PR target/63892
10400         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
10401         don't try to create_thunk if stdarg_p.  If
10402         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
10403         redirect_callers if possible.
10404         (sem_item_optimizer::execute): Call unregister_hooks here...
10405         (ipa_icf_driver): ... instead of here.
10407 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10409         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
10410         Mark operand 0 as earlyclobber in 2nd alternative.
10411         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
10412         Write negated shift amount into QI lowpart operand 0 and use it
10413         in the shift step.
10414         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
10416 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
10418         * cgraph.h (clone_function_name_1): Declare.
10419         * cgraphclones.c (clone_function_name_1): New function.
10420         (clone_function_name): Use it.
10421         * lto-partition.c: Include "stringpool.h".
10422         (must_not_rename, maybe_rewrite_identifier)
10423         (validize_symbol_for_target): New static functions.
10424         (privatize_symbol_name): Use must_not_rename.
10425         (promote_symbol): Call validize_symbol_for_target.
10426         (lto_promote_cross_file_statics): Likewise.
10427         (lto_promote_statics_nonwpa): Likewise.
10429 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
10431         PR target/64452
10432         * config/avr/avr.md (pushhi_insn): New insn.
10433         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
10435 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
10436             Jakub Jelinek  <jakub@redhat.com>
10438         * tree-streamer.c (preload_common_nodes): Don't preload
10439         TI_VA_LIST* for offloading.
10440         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
10441         in_lto_p.
10443 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
10445         * config/pa/pa.c (pa_emit_move_sequence): Always force
10446         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
10447         note on insn.
10449         * config/pa/pa.c (pa_reloc_rw_mask): New function.
10450         (TARGET_ASM_RELOC_RW_MASK): Define.
10451         (pa_cannot_force_const_mem): Revert previous change.
10453 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
10454             Jan Hubicka  <hubicka@ucw.cz>
10456         PR ipa/65028
10457         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
10458         across jump functions.
10460 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
10462         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
10464 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
10466         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
10468 2015-02-19  Richard Henderson  <rth@redhat.com>
10470         PR middle-end/65074
10471         * varasm.c (default_binds_local_p_2): Don't test node->definition;
10472         test DECL_EXTERNAL independent of symtab_node.
10474 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
10476         PR lto/65012
10477         * varpool.c (varpool_node::get_constructor): Return early
10478         if this->lto_file_data is NULL.
10480 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10482         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
10483         (rank_for_schedule_debug): Update.
10484         (ready_sort): Make static.  Move sorting logic to ...
10485         (ready_sort_debug, ready_sort_real): New static functions.
10486         (schedule_block): Sort both debug insns and real insns in preparation
10487         for ready list trimming.  Improve debug output.
10488         * sched-int.h (ready_sort): Remove global declaration.
10490 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
10492         * ipa-icf.c (sem_function::equals_private): Adjust.
10493         (sem_function::bb_dict_test): Take a vec<int> * instead of
10494         auto_vec<int>.
10495         * ipa-icf.h (bb_dict_test): Likewise.
10497 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
10499         PR gcov-profile/64634
10500         * tree-eh.c (frob_into_branch_around): Fix up typos
10501         in function comment.
10502         (lower_catch): Put eh_seq resulting from EH lowering of
10503         the cleanup sequence after the cleanup rather than before it.
10505 2015-02-18  Tom de Vries  <tom@codesourcery.com>
10507         * common.opt (fstdarg-opt): New option.
10508         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
10509         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
10510         (@item -fstdarg-opt): New item.
10512 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10514         PR target/65064
10515         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
10516         for common symbols.
10518 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
10520         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
10521         insn-modes.h.
10522         (ALL_HOST_OBJS): Add mkoffload.o.
10523         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
10525 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
10527         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
10528         (compare_virtual_tables): Be smarter about skipping typeinfos;
10529         do sane output on virtual table table mismatch.
10530         (warn_odr): Be ready for forward declarations of enums;
10531         output sane info on base mismatch and virtual table mismatch.
10532         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
10533         when only one type is polymorphic.
10534         (get_odr_type): Fix hashtable corruption.
10535         (dump_odr_type): Dump mangled names.
10537 2015-02-18  Richard Biener  <rguenther@suse.de>
10539         PR tree-optimization/65063
10540         * tree-predcom.c (determine_unroll_factor): Return 1 if we
10541         have replaced looparound PHIs.
10543 2015-02-18  Martin Liska  <mliska@suse.cz>
10545         * lto-streamer.c (lto_streamer_init): Encapsulate
10546         streamer_check_handled_ts_structures with checking macro.
10548 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
10550         PR ipa/65087
10551         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
10552         section if !implicit_section.
10553         (cgraph_node::create_version_clone_with_body): Likewise.
10554         * trans-mem.c (ipa_tm_create_version): Likewise.
10556 2015-02-18  Richard Biener  <rguenther@suse.de>
10558         PR tree-optimization/62217
10559         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
10560         into BIVs.
10562 2015-02-18  Marek Polacek  <polacek@redhat.com>
10564         PR sanitizer/65081
10565         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
10566         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
10567         is in range [-16K, -1].  Don't issue run-time error if
10568         (ptr > ptr + offset).
10570 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
10572         * doc/install.texi (nvptx-*-none): New section.
10573         * doc/invoke.texi (Nvidia PTX Options): Likewise.
10574         * config/nvptx/nvptx.opt: Update.
10576         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
10577         (access_check): New functions, copied from
10578         config/i386/intelmic-mkoffload.c.
10579         (main): For non-installed testing, look in all COMPILER_PATHs for
10580         GCC_INSTALL_NAME.
10582         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
10584 2015-02-18  Andrew Pinski  <apinski@cavium.com>
10585             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10587         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
10588         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
10590 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
10592         * ipa-visibility.c (function_and_variable_visibility): Only
10593         check locality if node is not already local.
10594         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
10595         call_for_symbol_and_aliases instead of
10596         call_for_symbol_thunks_and_aliases.
10597         (ipa_inline): Likewise.
10598         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
10599         first walk aliases.
10600         * ipa.c (symbol_table::remove_unreachable_nodes): Use
10601         call_for_symbol_and_aliases.
10602         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
10603         (ipa_propagate_frequency_1): Use it; use opt_for_fn
10604         (ipa_propagate_frequency): Update.
10605         (ipa_profile): Add opt_for_fn gueards.
10607 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
10609         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
10610         * doc/invoke.texi (SH options): Document it.
10611         * config/sh/sh.c (sh_insn_length_adjustment): Check
10612         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
10614 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
10616         * common.opt (fipa-cp-alignment): New.
10617         * ipa-cp.c (ipcp_store_alignment_results): Check
10618         flag_ipa_cp_alignment.
10619         * opts.c (default_options_table): Enable -fipa-cp-alignment for
10620         -O2.
10621         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
10622         * doc/invoke.texi: Document -fipa-cp-alignment.
10624 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
10626         PR target/64793
10627         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
10628         to nil.  Adjust comments.
10630 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
10632         * ipa-visibility.c (function_and_variable_visibility): Only
10633         check locality if node is not already local.
10634         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
10635         call_for_symbol_and_aliases instead of
10636         call_for_symbol_thunks_and_aliases.
10637         (ipa_inline): Likewise.
10638         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
10639         first walk aliases.
10640         * ipa.c (symbol_table::remove_unreachable_nodes): Use
10641         call_for_symbol_and_aliases.
10642         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
10643         (ipa_propagate_frequency_1): Use it; use opt_for_fn
10644         (ipa_propagate_frequency): Update.
10645         (ipa_profile): Add opt_for_fn guards.
10647 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10649         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
10650         skipping of "strange" tokens.
10652 2015-02-17  Jeff Law  <law@redhat.com>
10654         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
10655         obsolete comment.
10657 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
10659         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
10660         as forcing a HARD_DEP between instructions, thereby
10661         disallowing rewriting to break dependencies.
10663 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
10665         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
10666         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
10667         variables in boundary that have no inlitalizer encoded and are
10668         not aliases.
10669         * varasm.c (default_binds_local_p_2): External definitions do not
10670         count as definitions here.
10672 2015-02-16  Jeff Law  <law@redhat.com>
10674         PR tree-optimization/64823
10675         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
10676         statements.
10677         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
10678         threading through blocks with PHIs, but no statements.
10679         (thread_through_normal_block): Distinguish between blocks where
10680         we did not process all the statements and blocks with no statements.
10682 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
10683             James Greenhalgh  <james.greenhalgh@arm.com>
10685         PR ipa/64963
10686         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
10687         section if not linkonce.  Fix up formatting.
10688         (cgraph_node::create_version_clone_with_body): Copy section.
10689         * trans-mem.c (ipa_tm_create_version): Likewise.
10691 2015-02-16  Richard Biener  <rguenther@suse.de>
10693         PR tree-optimization/65077
10694         * tree-ssa-structalias.c (get_constraint_for_1): Handle
10695         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
10696         (find_func_aliases): Allow float values to carry pointers again.
10698 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
10700         * doc/install.texi (Specific): Reorder targets list to put
10701         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
10702         from the top menu.
10704 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
10705             David Edelsohn  <dje.gcc@gmail.com>
10707         PR target/65058
10708         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
10709         mapping class to external variable or function reference.
10710         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
10711         mapping class.
10713 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
10715         PR target/53348
10716         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
10717         ASM_WEAKEN_DECL if defined.
10719 2015-02-16  Richard Biener  <rguenther@suse.de>
10721         PR lto/65015
10722         * varasm.c (default_file_start): For LTO produced units
10723         emit <artificial> as file directive.
10725 2015-02-16  Richard Biener  <rguenther@suse.de>
10727         PR tree-optimization/63593
10728         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
10729         stmts and releasing SSA names until...
10730         (execute_pred_commoning): ... after processing all chains.
10732 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
10734         PR ipa/65059
10735         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
10736         external functions.
10738 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
10740         * doc/bugreport.texi: Adjust section titles throughout the file
10741         to use "Title Case".
10742         * doc/extend.texi: Likewise.
10743         * doc/gcov.texi: Likewise.
10744         * doc/implement-c.texi: Likewise.
10745         * doc/implement-cxx.texi: Likewise.
10746         * doc/invoke.texi: Likewise.
10747         * doc/objc.texi: Likewise.
10748         * doc/standards.texi: Likewise.
10749         * doc/trouble.texi: Likewise.
10751 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
10753         * cgraph.h (symtab_node::has_aliases_p): Simplify.
10754         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
10755         * tree.c (lookup_binfo_at_offset): Make static.
10756         (get_binfo_at_offset): Do not shadow offset; add explanatory
10757         comment.
10759 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
10761         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
10762         for all floading point loads and stores except those using a register
10763         index address.
10764         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
10765         to a register.
10767 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
10769         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
10770         (do_estimate_growth_1): Record if any uninlinable edge was seen.
10771         (estimate_growth): Handle uninlinable edges correctly.
10772         (check_callers): New.
10773         (growth_likely_positive): Handle aliases correctly.
10775 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
10777         * ipa-chkp.c: Use iterate_direct_aliases.
10778         * symtab.c (resolution_used_from_other_file_p): Move inline.
10779         (symtab_node::create_reference): Fix formating.
10780         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
10781         (symtab_node::iterate_reference): Move inline.
10782         (symtab_node::iterate_referring): Move inline.
10783         (symtab_node::iterate_direct_aliases): Move inline.
10784         (symtab_node::used_from_object_file_p_worker): Inline into ...
10785         (symtab_node::used_from_object_file_p): ... this one; move inline.
10786         (symtab_node::call_for_symbol_and_aliases): Move inline;
10787         use iterate_direct_aliases.
10788         (symtab_node::call_for_symbol_and_aliases_1): New method.
10789         (cgraph_node::call_for_symbol_and_aliases): Move inline;
10790         use iterate_direct_aliases.
10791         (cgraph_node::call_for_symbol_and_aliases_1): New method.
10792         (varpool_node::call_for_node_and_aliases): Rename to ...
10793         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
10794         use iterate_direct_aliases.
10795         (varpool_node::call_for_symbol_and_aliases_1): New method.
10796         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
10797         (ipa_discover_readonly_nonaddressable_var): Update.
10798         * ipa-devirt.c: Fix formating.
10799         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
10800         Move inline.
10801         (cgraph_node::call_for_symbol_and_aliases): Move inline.
10802         (cgraph_node::call_for_symbol_and_aliases_1): New function..
10803         * cgraph.h (used_from_object_file_p_worker): Remove.
10804         (resolution_used_from_other_file_p): Move inline.
10805         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
10806         (symtab_node::iterate_reference): Move inline.
10807         (symtab_node::iterate_referring): Move inline.
10808         (symtab_node::iterate_direct_aliases): Move inline.
10809         (symtab_node::used_from_object_file_p_worker): Inline into ...
10810         (symtab_node::used_from_object_file_p): Move inline.
10811         * tree-emutls.c (ipa_lower_emutls): Update.
10812         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
10813         (varpool_node::call_for_node_and_aliases): Remove.
10815 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
10817         PR tree-optimization/62209
10818         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
10819         op == range->exp, insert seq and gimplified code after labels
10820         instead of after the phi.
10822 2015-02-13  Jeff Law  <law@redhat.com>
10824         PR bootstrap/65060
10825         Revert my change for tree-optimization/64823.
10827 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
10829         PR tree-optimization/65053
10830         * tree-ssa-phiopt.c (value_replacement): When moving assign before
10831         cond, either reset VR on lhs or set it to phi result VR.
10833 2015-02-13  Jeff Law  <law@redhat.com>
10835         PR tree-optimization/64823
10836         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
10837         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
10838         threading through blocks with PHIs, but no statements.
10839         (thread_through_normal_block): Distinguish between blocks where
10840         we did not process all the statements and blocks with no statements.
10842         PR rtl-optimization/47477
10843         * match.pd (convert (plus/minus (convert @0) (convert @1): New
10844         simplifier to narrow arithmetic.
10846 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
10848         PR ipa/65028
10849         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
10850         polymorphic call info when type is not known to be preserved.
10852 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
10854         PR ipa/65028
10855         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
10856         (inline_call): Use it.
10858 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
10860         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
10861         GOMP_DEVICE_NVIDIA_PTX.
10863 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
10865         PR ipa/65034
10866         * stmt.c (emit_case_nodes): Use void_type_node instead of
10867         NULL_TREE as LABEL_DECL type.
10869 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
10871         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
10872         constraints.
10873         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
10874         symbolic references to data to be forced to constant memory on the
10875         SOM target.
10877 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10879         PR tree-optimization/65002
10880         * tree-cfg.c (pass_data_fixup_cfg): Don't update
10881         SSA on start.
10882         * tree-sra.c (some_callers_have_no_vuse_p): New.
10883         (ipa_early_sra): Reject functions whose callers
10884         assume function is read only.
10886 2015-02-13  Richard Biener  <rguenther@suse.de>
10888         PR lto/65015
10889         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
10890         for LTO produced CUs.
10892 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
10894         PR tree-optimization/64705
10895         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
10896         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
10897         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
10898         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
10899         expand_simple_operations.
10901 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
10902             Richard Henderson  <rth@redhat.com>
10904         PR rtl/32219
10905         * cgraphunit.c (cgraph_node::finalize_function): Set definition
10906         before notice_global_symbol.
10907         (varpool_node::finalize_decl): Likewise.
10908         * varasm.c (default_binds_local_p_2): Rename from
10909         default_binds_local_p_1, add weak_dominate argument.  Use direct
10910         returns instead of assigning to local variable.  Unify varpool and
10911         cgraph paths via symtab_node.  Reject undef weak variables before
10912         testing visibility.  Reorder tests for simplicity.
10913         (default_binds_local_p): Use default_binds_local_p_2.
10914         (default_binds_local_p_1): Likewise.
10915         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
10916         via symtab_node.
10917         (default_elf_asm_output_external): Emit visibility when specified.
10919 2015-02-13  Alan Modra  <amodra@gmail.com>
10921         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
10922         code setting up r11 for out-of-line fp restore.
10924 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
10926         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
10927         (muser-mode): Likewise.
10929 2015-02-13  Alan Modra  <amodra@gmail.com>
10931         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
10932         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
10934 2015-02-12  David Howells  <dhowells@redhat.com>
10936         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
10937         warning.
10938         * tree-ssa-uninit.c (dump_predicates): Likewise.
10939         * opts.c (print_filtered_help): Likewise.
10941 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
10943         * dwarf2out.c (output_die): Use "%s", name instead of name to
10944         avoid -Wformat-security warning.
10946         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
10947         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
10948         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
10949         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
10951 2015-02-12  Jason Merrill  <jason@redhat.com>
10953         * common.opt (-flifetime-dse): New.
10955 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
10957         PR sanitizer/65019
10958         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
10960         PR tree-optimization/65014
10961         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
10962         use original second operand of arg0 or arg1 instead of
10963         that adjusted by STRIP_NOPS.
10965 2015-02-11  Jeff Law  <law@redhat.com>
10967         PR target/63347
10968         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
10969         that needs to be queued, just queue it for a single cycle.
10971 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
10973         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
10974         bodies of thunks; comment on why.
10975         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
10976         symbols are extern.
10978 2015-02-11  Richard Henderson  <rth@redhat.com>
10980         PR sanitize/65000
10981         * tree-eh.c (mark_reachable_handlers): Mark source and destination
10982         regions of __builtin_eh_copy_values.
10984 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
10986         PR middle-end/65003
10987         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
10988         ultimate alias is MEM with SYMBOL_REF satisfying
10989         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
10990         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
10992 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
10994         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
10995         "diagnostic-core.h".
10996         (main): Initialize progname, and call diagnostic_initialize.
10998         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
10999         instead of __OPENMP_TARGET__.
11001         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
11002         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
11003         hard-coding PTX_ID.
11005 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
11007         * doc/sourcebuild.texi (pie_enabled): Document.
11009 2015-02-11  Martin Liska  <mliska@suse.cz>
11011         PR ipa/64813
11012         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
11013         a return value for call to a function that is noreturn.
11015 2015-02-11  Richard Biener  <rguenther@suse.de>
11017         PR lto/65015
11018         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
11019         and -fresolution.
11021 2015-02-11  Andrew Pinski  <apinski@cavium.com>
11023         PR target/64893
11024         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11025         Change the first argument type to size_type_node and add another
11026         size_type_node.
11027         (aarch64_simd_expand_builtin): Handle the new argument to
11028         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
11029         print an out when the first two arguments are not
11030         nonzero integer constants.
11031         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
11032         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
11034 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11036         PR target/61925
11037         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
11038         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
11039         (ix86_set_current_function): Rewritten.
11040         (ix86_add_new_builtins): Temporarily clear current_target_pragma
11041         when creating builtin fndecls.
11043 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
11045         PR ipa/65005
11046         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
11047         function.
11048         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
11049         have no comdat group.
11050         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
11051         (lto_output_varpool_node): Always output alias info.
11052         (output_refs): Output refs of boundary aliases, too.
11053         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
11054         (output_symtab): Output call eges in thunks in boundary.
11055         (get_alias_symbol): Remove.
11056         (input_node, input_varpool_node): Do not special case weakrefs.
11057         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
11058         alias and thunks targets in the boundary; do not take removed symbols
11059         from their comdat groups.
11060         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
11061         (cgraph_node::global_info): Remove.
11062         (cgraph_node::rtl_info): Look through aliases and thunks.
11063         * cgrpah.h (global_info): Remove.
11064         (non_local_p): Remove.
11066 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
11067             Sandra Loosemore  <sandra@codesourcery.com>
11069         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
11070         to inline asm.  List dialects in proper order.
11072 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
11073             Sandra Loosemore  <sandra@codesourcery.com>
11075         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
11077 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
11079         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
11080         modified) reference to Solaris.
11082 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
11084         * doc/extend.texi (Extended Asm): Fix typos.
11086 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
11088         PR sanitizer/65004
11089         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
11091 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
11093         PR target/64661
11094         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11095         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11096         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
11097         * config/sh/constraints.md (Ara, Add): New constraints.
11098         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
11099         predicates.
11100         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
11101         atomic_mem_operand_0.  Don't use force_reg on the memory address.
11102         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
11103         Sra constraint.  Convert to insn_and_split.  Add workaround for
11104         PR 64974.
11105         (atomic_compare_and_swap<mode>_hard): Copy to
11106         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
11107         Use atomic_mem_operand_0 predicate.
11108         (atomic_compare_and_swap<mode>_soft_gusa,
11109         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
11110         AraAdd constraints.
11111         (atomic_compare_and_swap<mode>_soft_tcb,
11112         atomic_compare_and_swap<mode>_soft_imask,
11113         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
11114         atomic_mem_operand_0 predicate and SraSdd constraints.
11115         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
11116         constraint.
11117         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
11118         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
11119         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
11120         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
11121         force_reg on the memory address.
11122         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
11123         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
11124         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
11125         atomic_mem_operand_1 predicate and Sra constraint.
11126         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
11127         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
11128         Use atomic_mem_operand_1 predicate.
11129         (atomic_<fetchop_name><mode>_hard): Copy to
11130         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
11131         Use atomic_mem_operand_1 predicate.
11132         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
11133         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
11134         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
11135         insn_and_split.  Use atomic_mem_operand_1 predicate.
11136         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
11137         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
11138         Use atomic_mem_operand_1 predicate.
11139         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
11140         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
11141         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
11142         in generated insn with original mem operand before emitting the insn.
11143         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
11144         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
11145         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
11146         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
11147         Use atomic_mem_operand_1 predicate and AraAdd constraints.
11148         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
11149         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
11150         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
11151         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
11152         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
11153         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
11154         atomic_not_fetch<mode>_soft_tcb,
11155         atomic_<fetchop_name>_fetch<mode>_soft_imask,
11156         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
11157         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
11158         Use atomic_mem_operand_1 predicate and SraSdd constraints.
11160 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
11162         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
11163         and 3 earlyclobber operands.
11165 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
11167         * common.opt (fstack-reuse): Mark as optimization.
11169 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
11171         PR ipa/64982
11172         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
11174 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
11176         PR tree-optimization/64326
11177         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
11179 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
11181         PR gcov-profile/61889
11182         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
11184 2015-02-10  Richard Biener  <rguenther@suse.de>
11186         PR tree-optimization/64995
11187         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
11188         value we use is final.
11189         (visit_reference_op_store): Always valueize op.
11190         (visit_use): Properly valueize vuses.
11192 2015-02-10  Richard Biener  <rguenther@suse.de>
11194         PR tree-optimization/64909
11195         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
11196         pass a scalar-stmt count estimate to the cost model.
11197         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
11199 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
11201         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
11202         enabled by default together with var-tracking.
11204 2015-02-10  Nick Clifton  <nickc@redhat.com>
11206         * config/rl78/rl78.c: Remove DIV attribute code accidentally
11207         included in previous rl78 commit.
11209 2015-02-10  Richard Biener  <rguenther@suse.de>
11211         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
11212         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
11213         return the bitpack.
11215 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
11217         PR gcov-profile/61889
11218         * config.in: regenerate.
11219         * configure.in: Likewise.
11220         * configure.ac: Check for ftw.h.
11221         * gcov-tool.c: Check for ftw.h before using nftw.
11223 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
11225         PR lto/64076
11226         * ipa-visibility.c (update_visibility_by_resolution_info): Only
11227         assert when not in lto mode.
11229 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11231         * ira-color.c (setup_left_conflict_sizes_p): Simplify
11232         initialization/assignment of conflict_size.
11234 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
11236         PR ipa/64978
11237         * ipa-cp.c (gather_caller_stats): Skip thunks.
11238         (propagate_constants_topo): Skip aliases.
11240 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11242         PR target/64761
11243         * config/sh/sh.c (sh_option_override): Don't change
11244         -freorder-blocks-and-partition to -freorder-blocks even when
11245         unwinding is enabled.
11246         (sh_can_follow_jump): Return false if the followee jump is
11247         a crossing jump when -freorder-blocks-and-partition is specified.
11248         * config/sh/sh.md (*jump_compact_crossing): New insn.
11250 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
11251             Kaz Kojima  <kkojima@gcc.gnu.org>
11253         PR target/64761
11254         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
11255         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
11256         (sh_can_redirect_branch): Rename to ...
11257         (sh_can_follow_jump): ... this.  Constify argument types.
11258         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
11259         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
11260         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
11261         * doc/tm.texi: Regenerate.
11263 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
11265         PR sanitizer/64981
11266         * builtins.c (expand_builtin): Call targetm.expand_builtin
11267         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
11269 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11271         PR ipa/61548
11272         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
11274 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11276         PR ipa/63566
11277         * ipa-icf.c (set_local): New function.
11278         (sem_function::merge): Use it.
11280 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11282         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
11283         (add_type_duplicate): Fix comparison of BINFOs.
11285 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11287         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
11288         on getting VOID pointer.
11290 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
11292         PR target/64979
11293         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
11294         va_list escapes.
11296 2015-02-09  Richard Biener  <rguenther@suse.de>
11298         * genmatch.c (replace_id): Copy expr_type.
11300 2015-02-09  Richard Biener  <rguenther@suse.de>
11302         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
11303         (streamer_write_tree_bitfields): Declare.
11304         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
11305         properly unpack padding.
11306         (unpack_value_fields): Inline ...
11307         (streamer_read_tree_bitfields): ... here.
11308         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
11309         and properly add padding bits.
11310         (streamer_pack_tree_bitfields): Fold into ...
11311         (streamer_write_tree_bitfields): ... this new function,
11312         exposing the bitpack object.
11313         * lto-streamer-out.c (lto_write_tree_1): Call
11314         streamer_write_tree_bitfields.
11316 2015-02-09  Richard Biener  <rguenther@suse.de>
11318         PR tree-optimization/54000
11319         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
11320         (struct ivopts_data): Add loop_loc member.
11321         (tree_ssa_iv_optimize_loop): Dump loop location.
11322         (create_new_ivs): Likewise, also dump number of IVs generated.
11324 2015-02-09  Martin Liska  <mliska@suse.cz>
11326         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
11327         just if not yet registered.
11328         (ipa_icf_generate_summary): Register callgraph hooks.
11330 2015-02-08  Andrew Pinski  <apinski@cavium.com>
11332         * config/aarch64/aarch64.c (gty_dummy): Delete.
11334 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11336         PR ipa/63566
11337         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
11338         (cgraph_node::local_p): Remove thunk related FIXME.
11340 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11342         PR ipa/63566
11343         * i386.c (ix86_function_regparm): Look through aliases to see if callee
11344         is local and optimized.
11345         (ix86_function_sseregparm): Likewise; also use target's SSE math
11346         settings; error out instead of silently generating wrong code
11347         on mismatches.
11348         (init_cumulative_args): Look through aliases.
11350 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11352         PR ipa/63566
11353         * ipa-split.c (execute_split_functions): Split if function has aliases.
11355 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
11357         PR ipa/63566
11358         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
11359         aliases before trying to expand it.
11360         (cgraph_node::expand_thunk): Fix formating.
11362 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
11364         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
11365         (Using Assembly Language with C): Expand introduction.
11366         (Basic Asm): Copy-edit.  Add more information about uses of
11367         basic asm.
11368         (Extended Asm): Copy-edit.  Document new escape syntax and
11369         %l[label] syntax.
11370         (Global Reg Vars): Copy-edit.
11371         (Local Reg Vars): Likewise.
11373 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
11375         PR debug/2714
11376         PR bootstrap/64256
11377         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
11378         (DBX_CONTIN_CHAR): Define.
11380 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
11381             Brian Rzycki  <b.rzycki@samsung.com>
11383         PR tree-optimization/64878
11384         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
11385         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
11386         Stop recursion at loop phi nodes after having visited a loop phi node.
11388 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
11390         * toplev.c (process_options): Change flag_ipa_ra before creating
11391         optimization_{default,current}_node.
11393         PR ipa/64896
11394         * cgraphunit.c (cgraph_node::expand_thunk): If
11395         restype is not is_gimple_reg_type nor the thunk_fndecl
11396         returns aggregate_value_p, set restmp to a temporary variable
11397         instead of resdecl.
11399 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
11401         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
11403 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11405         PR target/64205
11406         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
11407         add a general secondary reload handler for SDmode, unless we have
11408         both read/write support for SDmode.
11410 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
11412         PR middle-end/64937
11413         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
11414         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
11415         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
11416         1 before, push it to abstract_vec.
11417         (dwarf2out_abstract_function): Adjust caller.  Don't call
11418         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
11419         DECL_ABSTRACT_P flags for all abstract_vec elts.
11421 2015-02-06  Renlin Li  <renlin.li@arm.com>
11423         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
11424         complex gimple.
11425         * tree-ssa.c (execute_update_addresses_taken): Likewise.
11427 2015-02-06  Jeff Law  <law@redhat.com>
11429         PR target/64889
11430         * config/h8300/h8300.c (push): New argument "in_prologue".
11431         Pass "in_prologue" along to "F".
11432         (h8300_push_pop): Corresponding changes.
11433         (h8300_expand_prologue): Likewise.
11434         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
11436 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
11438         PR rtl-optimization/64957
11439         PR debug/64817
11440         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
11441         IOR rather than for AND.
11443 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
11445         PR target/62631
11446         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
11447         of shift-add and (add + shift) operations.  Rename local variable.
11449 2015-02-05  Jeff Law  <law@redhat.com>
11451         PR target/17306
11452         * config/h8300/constraints.md (U): Correctly dectect
11453         "eightbit_data" memory addresses.
11454         * config/h8300/h8300.c (eightbit_constant_address_p): Also
11455         handle (const (plus (symbol_ref (x)))) where x is declared
11456         as an 8-bit data memory address.
11457         * config/h8300/h8300.md (call, call_value): Correctly detect
11458         "funcvec" functions.
11460         PR target/43264
11461         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
11462         24 to 28 bits for the H8/300.
11464 2015-02-06  Alan Modra  <amodra@gmail.com>
11466         PR target/64876
11467         * config/rs6000/rs6000.c (chain_already_loaded): New function.
11468         (rs6000_call_aix): Use it.
11470 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
11472         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
11473         check.
11475 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11477         * config/h8300/constraints.md ("U" constraint): Use strict
11478         variant of REG_OK_FOR_BASE_P after reload has started.
11480 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
11482         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
11483         define to zero if !TARGET_NEON.
11484         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
11486 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11487             Trevor Saunders  <tsaunders@mozilla.com>
11489         PR ipa/61548
11490         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
11492 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11494         PR ipa/61548
11495         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
11496         when removing varpool nodes.
11498 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11500         PR ipa/61548
11501         * varpool.c (varpool_node::remove): Fix order of variables.
11503 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11505         PR ipa/64686
11506         * ipa-inline.c (inline_small_functions): Fix ordering issue between
11507         speculation resolution and key updates.
11509 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11511         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
11512         about not letting any speculative edges unupdated.
11514 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11516         PR gcov/64123
11517         * gcov-io.c (gcov_var): Export.
11519 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11521         PR middle-end/64922
11522         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
11523         edges that become speculative.
11525 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11527         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
11528         or DW_LANG_Fortran08.
11529         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
11530         DW_LANG_Fortran08.
11531         (gen_compile_unit_die): Handle "GNU Fortran2003" and
11532         "GNU Fortran2008" language strings.
11533         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
11534         * langhooks.h (lang_GNU_Fortran): New prototype.
11535         * langhooks.c (lang_GNU_Fortran): New function.
11536         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
11537         lang_GNU_Fortran.
11539 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
11541         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
11542         (RTX_OK_FOR_OLO10_P): Likewise.
11544 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
11546         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
11548 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
11550         PR middle-end/64922
11551         * gimple.c: Include gimple-ssa.h.
11552         (maybe_remove_unused_call_args): New function.
11553         * gimple.h (maybe_remove_unused_call_args): Declare.
11554         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
11555         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
11556         * gimple-fold.c (gimple_fold_call): Likewise.
11558 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
11560         PR rtl-optimization/64905
11561         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
11562         pointer alignment if it isn't needed.
11564 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
11566         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
11567         cortex-a72.cortex-a53.
11568         * config/aarch64/aarch64-tune.md: Regenerate.
11569         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
11571 2015-02-04  Nick Clifton  <nickc@redhat.com>
11573         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
11574         inside a MEM.
11576 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11578         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
11579         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
11580         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
11581         of DEF_BUILTIN.
11582         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
11583         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
11584         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
11585         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
11586         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
11587         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
11588         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
11589         * tree-core.h (enum built_in_function): In between
11590         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
11591         for builtins that use DEF_BUILTIN_CHKP macro.
11593 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
11595         PR debug/64817
11596         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
11597         operands for tcc_comparison exprs.  Fix typos.
11599         PR debug/64817
11600         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
11601         of two XORs that have an intervening AND or IOR.
11603         PR debug/64817
11604         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
11605         simplification of XOR of AND to not allocate new rtx before
11606         committing to a simplification.
11608 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11610         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
11611         manual swaps in all peepholes.
11613 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11615         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
11616         of manual swapping implementation.
11617         (aarch64_expand_vec_perm_const_1): Likewise.
11619 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
11621         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
11622         (generic_addrcost_table): Remove NAMED_PARAM.
11623         (cortexa57_addrcost_table): Likewise.
11624         (xgene1_addrcost_table): Likewise.
11625         (generic_regmove_table): Likewise.
11626         (cortexa53_regmove_table): Likewise.
11627         (xgene1_regmove_table): Likewise.
11628         (generic_vector_table): Likewise.
11629         (cortexa57_vector_table): Likewise.
11630         (xgene1_vector_table): Likewise.
11631         (generic_tunings): Likewise.
11632         (cortexa53_tunings): Likewise.
11633         (cortexa57_tunings): Likewise.
11634         (xgene1_tunings): Likewise.
11636 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
11638         * config/arm/arm-cores.def: Add cortex-a72 and
11639         cortex-a72.cortex-a53.
11640         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
11641         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
11642         * config/arm/arm-tune.md: Regenerate.
11643         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
11644         "cortex-a72.cortex-a53".
11645         * doc/invoke.texi (ARM Options/-mtune): Likewise.
11647 2015-02-04  Nick Clifton  <nickc@redhat.com>
11649         PR target/64408
11650         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
11651         of accepted codes.
11652         (nonimmediate_di_operand): Likewise.
11654         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
11655         prefixes of known F5 using MSP430 MCUs.
11657 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11659         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
11660         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
11661         instead of __builtin_sqrt.
11663 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
11665         * varasm.c (do_assemble_alias): Follow transparent alias
11666         chain for target.
11667         (default_assemble_visibility): Follow transparent alias
11668         chain for decl name.
11670 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11672         PR middle-end/62103
11673         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
11674         to compute size of referenced value in the constant case.
11676 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
11678         PR rtl-optimization/64756
11679         * cse.c (invalidate_dest): New function.
11680         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
11681         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
11682         invalidate and do not record it.
11684 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
11686         PR target/64660
11687         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
11688         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
11689         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
11690         atomic_nand<mode>_soft_tcb): New insns.
11691         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
11692         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
11693         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
11694         Split into atomic_not_fetchsi_hard if operands[0] is unused.
11695         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
11696         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
11697         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
11698         atomic_not<mode>_hard if operands[0] is unused.
11699         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
11700         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
11701         if operands[0] is unused.
11702         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
11703         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
11704         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
11705         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
11706         unused.
11707         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
11708         into atomic_not<mode>_soft_tcb if operands[0] is unused.
11709         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
11710         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
11711         if operands[0] is unused.
11712         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
11713         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
11714         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
11715         atomic_nand_fetchsi_hard if operands[0] is unused.
11716         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
11717         atomic_nand<mode>_hard if operands[0] is unused.
11718         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
11719         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
11720         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
11721         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
11722         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
11723         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
11724         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
11725         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
11726         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
11727         atomic_not<mode>_hard if operands[0] is unused.
11728         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
11729         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
11730         unused.
11731         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
11732         into atomic_not<mode>_soft_tcb if operands[0] is unused.
11733         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
11734         atomic_nand<mode>_hard if operands[0] is unused.
11735         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
11736         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
11738 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
11740         PR jit/64810
11741         * Makefile.in (GCC_OBJS): Add gcc-main.o.
11742         * gcc-main.c: New file, containing "main" taken from gcc.c.
11743         * gcc.c (do_self_spec): Free decoded_options.
11744         (class driver): Move declaration to gcc.h.
11745         (main): Move declaration and implementation to new file
11746         gcc-main.c.
11747         (driver_get_configure_time_options): New function.
11748         * gcc.h (class driver): Move this declaration here, from
11749         gcc.c.
11750         (driver_get_configure_time_options): New declaration.
11752 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
11754         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
11755         cross-module inlining.
11756         * cgraph.h (cgraph_node): Add flag merged.
11757         * ipa-icf.c (sem_function::merge): Maintain it.
11759 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
11761         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
11762         instead of OBJECT_P.
11764 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
11766         PR target/62631
11767         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
11768         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
11769         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
11770         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
11772 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
11774         PR other/63504
11775         * combine.c (reg_n_sets_max): New variable.
11776         (can_change_dest_mode, reg_nonzero_bits_for_combine,
11777         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
11778         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
11779         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
11780         (rest_of_handle_combine): Initialize reg_n_sets_max.
11782 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
11784         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
11785         if some always_inline was inlined, apply changes before inlining
11786         heuristically.
11788 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
11790         PR jit/64810
11791         * config/arm/arm.c (arm_option_override): Set
11792         arm_selected_arch/cpu/tune to NULL on entry.
11794 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
11795             Andrew Pinski  <pinskia@gcc.gnu.org>
11796             Jakub Jelinek  <jakub@gcc.gnu.org>
11798         PR target/64231
11799         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
11800         integer typing for small model. Use IN_RANGE.
11802 2015-02-02  Richard Biener  <rguenther@suse.de>
11804         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
11805         * tree-vrp.c (vrp_valueize_1): Likewise.
11807 2015-02-02  Alan Modra  <amodra@gmail.com>
11809         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
11810         than mem for toc_restore.
11811         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
11812         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
11813         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
11815 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11817         PR target/64047
11818         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
11819         explicit default options.
11821 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
11823         PR ipa/64872
11824         * ipa-utils.c (ipa_merge_profiles): Add release argument.
11825         * ipa-icf.c (sem_function::merge): Do not release body when merging.
11826         * ipa-utils.h (ipa_merge_profiles): Update prototype.
11828 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
11830         PR debug/64817
11831         * cfgexpand.c (deep_ter_debug_map): New variable.
11832         (avoid_deep_ter_for_debug): New function.
11833         (expand_debug_expr): If TERed SSA_NAME is in
11834         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
11835         instead of trying to expand SSA_NAME's def stmt.
11836         (expand_debug_locations): When expanding debug bind
11837         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
11838         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
11839         value.
11840         (pass_expand::execute): Call avoid_deep_ter_for_debug on
11841         all debug bind stmts.  Delete deep_ter_debug_map after
11842         expand_debug_location if non-NULL and clear it.
11844 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
11846         PR target/64851
11847         * config/sh/sync.md (atomic_fetch_notsi_hard,
11848         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
11849         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
11850         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
11851         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
11852         atomic_not_fetch<mode>_soft_imask): New insns.
11854 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11856         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
11857         (rank_for_schedule_debug): Split from ...
11858         (rank_for_schedule): ... this.
11859         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
11860         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
11862 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
11864         * doc/md.texi (Machine Constraints): Alphabetize table by target.
11865         * doc/extend.texi (x86 Variable Attributes): Move section to
11866         correct alphabetization after renaming.
11867         (x86 Type Attributes): Likewise.
11868         (Target Builtins): Re-alphabetize menu.
11869         (x86 Built-in Functions): Move section to correct alphabetization
11870         after renaming.
11871         (x86 transactional memory intrinsics): Likewise.
11872         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
11873         and x86 Windows Options in table and menu.
11874         (x86 Options): Move section to correct alphabetization after
11875         renaming.
11876         (x86 Windows Options): Likewise.
11878 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
11880         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
11881         preferred names of the architecture and its 32- and 64-bit
11882         variants.
11883         * doc/invoke.texi: Likewise.
11884         * doc/md.texi: Likewise.
11886 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
11888         PR target/64882
11889         * config/i386/predicates.md (address_no_seg_operand): Reject
11890         non-CONST_INT_P operands in invalid mode.
11892 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
11894         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
11895         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
11896         * config/i386/predicates.md (address_no_seg_operand): Call
11897         address_operand with VOIDmode.
11898         (vsib_address_operand): Ditto.
11899         (address_mpx_no_base_operand): Ditto.
11900         (address_mpx_no_index_operand): Ditto.
11902 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11904         PR target/64688
11905         * lra-constraints.c (original_subreg_reg_mode): New.
11906         (simplify_operand_subreg): Try to simplify subreg of const.  Use
11907         original_subreg_reg_mode for it.
11908         (swap_operands): Update original_subreg_reg_mode.
11909         (curr_insn_transform): Set up original_subreg_reg_mode.
11911 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
11913         PR target/64617
11914         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
11915         function.
11916         (process_alt_operands): Use it.
11917         (curr_insn_transform): Check the optional reload pseudo class is
11918         ok for the mode.
11920 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
11922         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
11923         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
11924         prototype.
11925         * toplev.h (init_asm_output): Update comment on use of
11926         UNKNOWN_LOCATION with fatal_error.
11927         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
11928         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
11929         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
11930         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
11931         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
11932         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
11933         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
11934         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
11935         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
11936         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
11937         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
11938         fatal_error changed to pass input_location as first argument.
11940 2015-01-30  Martin Liska  <mliska@suse.cz>
11942         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
11943         in #pragma GCC diagnostic guards.
11945 2015-01-30  Richard Biener  <rguenther@suse.de>
11947         PR tree-optimization/64829
11948         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
11949         not add a widening conversion pattern but hand off extra
11950         widenings to callers.
11951         (vect_recog_widen_mult_pattern): Handle extra widening produced
11952         by vect_handle_widen_op_by_const.
11953         (vect_recog_widen_shift_pattern): Likewise.
11954         (vect_pattern_recog_1): Remove excess vertical space in dumping.
11955         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11956         (vect_init_vector_1): Likewise.
11957         (vect_get_vec_def_for_operand): Likewise.
11958         (vect_finish_stmt_generation): Likewise.
11959         (vectorizable_load): Likewise.
11960         (vect_analyze_stmt): Likewise.
11961         (vect_is_simple_use): Likewise.
11963 2015-01-29  Jeff Law  <law@redhat.com>
11965         * combine.c (try_combine): Fix typo in comment.
11967 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
11969         PR target/64580
11970         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
11971         (rs6000_stack_info): Add assert.
11972         (rs6000_output_savres_externs): New function, split off from...
11973         (rs6000_output_function_prologue): ... here.  Do not call it for
11974         thunks.
11976 2015-01-29  Jeff Law  <law@redhat.com>
11978         PR target/15184
11979         * combine.c (try_combine): If I0 is a memory load and I3 a store
11980         to a related address, increase the "goodness" of doing a 4-insn
11981         combination with I0-I3.
11982         (make_field_assignment): Handle SUBREGs in the ior+and case.
11984 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
11986         PR tree-optimization/64746
11987         * tree-if-conv.c (mask_exists): New function.
11988         (predicate_mem_writes): Save created mask with given size for further
11989         use.
11990         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
11991         (ifcvt_repair_bool_pattern): Collect all statements that are root
11992         of bool pattern and use iterative algorithm to remove multiple uses
11993         of predicates, display number of required iterations.
11995 2015-01-29  Richard Biener  <rguenther@suse.de>
11997         PR tree-optimization/64853
11998         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
11999         stmt will get simulated again.
12000         * tree-ssa-ccp.c (valueize_op_1): Likewise.
12002 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12004         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
12005         return_in_pc.  Remove redundant assignments.
12006         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
12007         (arm_expand_epilogue): Don't compare boolean with true in if condition.
12009 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
12011         * config/i386/i386.c (ix86_mode_after): Make static.
12013 2015-01-29  Richard Biener  <rguenther@suse.de>
12015         PR tree-optimization/64844
12016         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
12017         dump cost model analysis.
12018         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12019         Do not register adjusted load/store costs here.
12021 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12022             Uros Bizjak  <ubizjak@gmail.com>
12024         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
12025         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
12026         using x86_use_pseudo_pic_reg.
12027         * config/i386/i386.c (ix86_conditional_register_usage): Remove
12028         support for fixed PIC register.
12029         (ix86_use_pseudo_pic_reg): Not static any more.
12031 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
12033         PR middle-end/64805
12034         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
12035         to avoid error in cgraph node verification.
12037 2015-01-29  Marek Polacek  <polacek@redhat.com>
12039         * doc/standards.texi: Reflect that the default for C is gnu11.
12041 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12043         PR target/64761
12044         * reorg.c (switch_text_sections_between_p): New function.
12045         (relax_delay_slots): Call it when testing if the jump insn
12046         is removable.  Use targetm.can_follow_jump when testing if
12047         the conditional branch can follow an unconditional jump.
12049 2015-01-27  Caroline Tice  <cmtice@google.com>
12051         Committing VTV Cywin/Ming patch for Patrick Wollgast
12052         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
12053         if -fvtable-verify=preinit/std is used.
12054         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
12055         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
12056         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
12057         if -fvtable-verify=preinit/std is used.
12058         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
12059         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
12060         if -fvtable-verify=preinit/std is used.
12061         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
12062         * config/i386/mingw32.h (LIB_SPEC): Likewise.
12063         * varasm.c (assemble_variable): Add code to properly set the comdat
12064         section and name for the .vtable_map_vars section in case the
12065         target is PE or COFF.
12067 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
12069         PR ipa/64801
12070         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
12071         make sane BB profile.
12072         (cgraph_node::expand_thunk): Make sane BB profile.
12073         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
12074         * cgraph.h (init_lowered_empty_function): Update prototype.
12075         * config/i386/i386.c (make_resolver_func): Update call.
12076         * predict.c (gate): Disable branch prediction pass if
12077         profile is already there.
12079 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
12081         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
12082         * opth-gen.awk: Likewise.
12083         * common.opt: Mark flag_fp_contract_mode as Optimization.
12085 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12087         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
12088         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
12090 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
12092         PR target/64659
12093         * config/sh/predicates.md (atomic_arith_operand,
12094         atomic_logical_operand): Remove.
12095         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
12096         (atomic_arith_operand_0): New predicate.
12097         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
12098         Use atomic_arith_operand_0 for input values.
12099         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
12100         atomic_compare_and_swap<mode>_soft_gusa,
12101         atomic_compare_and_swap<mode>_soft_tcb,
12102         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
12103         arith_reg_operand instead of register_operand.
12104         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
12105         atomic_arith_operand_0 for newval input.
12106         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12107         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
12108         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
12109         arith_reg_operand instead of register_operand.
12110         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
12111         fetchop_predicate_1, fetchop_constraint_1_llcs,
12112         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
12113         fetchop_constraint_1_imask): New code iterator attributes.
12114         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
12115         register_operand.  Use fetchop_predicate_1.
12116         (atomic_fetch_<fetchop_name>si_hard,
12117         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
12118         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
12119         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
12120         and arith_reg_operand instead of register_operand.  Use
12121         fetchop_predicate_1, fetchop_constraint_1_gusa.
12122         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
12123         and arith_reg_operand instead of register_operand.  Use
12124         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
12125         to allow R0 usage.
12126         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
12127         and arith_reg_operand instead of register_operand.  Use
12128         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
12129         to allow R0 usage.
12130         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
12131         register_operand.  Use atomic_logical_operand_1.
12132         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
12133         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
12134         arith_reg_operand instead of register_operand.
12135         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
12136         Use arith_reg_dest and arith_reg_operand instead of register_operand.
12137         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
12138         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
12139         register_operand.  Use fetchop_predicate_1.
12140         (atomic_<fetchop_name>_fetchsi_hard,
12141         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
12142         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12143         fetchop_constraint_1_llcs.
12144         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
12145         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12146         fetchop_constraint_1_gusa.
12147         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
12148         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12149         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
12150         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
12151         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
12152         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
12153         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
12154         register_operand.  Use atomic_logical_operand_1.
12155         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
12156         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
12157         arith_reg_operand instead of register_operand.
12158         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
12159         arith_reg_operand instead of register_operand.  Use logical_operand
12160         and K08.  Adjust asm sequence to allow R0 usage.
12161         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
12162         arith_reg_operand instead of register_operand.  Use logical_operand
12163         and K08.
12165 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
12167         PR other/63504
12168         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
12169         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
12170         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
12171         only get_full_len HOST_WIDE_INTs from get_val () array rather than
12172         all bits in *val_wide.
12174 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
12176         * varpool.c (tls_model_names): Fix names.
12177         (varpool_node::dump): Dump tls- prefix for tls models.
12179 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
12180             Bernd Schmidt  <bernds@codesourcery.com>
12181             Nathan Sidwell  <nathan@codesourcery.com>
12183         * config/nvptx/mkoffload.c: New file.
12184         * config/nvptx/t-nvptx: Add build rules for it.
12185         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
12186         (extra_programs): Add mkoffload.
12187         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
12188         function.
12189         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
12191 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
12193         PR middle-end/64809
12194         * cfgexpand.c (reorder_operands): Skip debug gimples.
12196 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
12198         PR tree-optimization/64277
12199         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
12200         range info when possible to refine estimation.
12202 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12204         PR tree-optimization/64718
12205         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
12206         be a 16bit unsigned integer when n->range is 16.
12207         (bswap_replace): Convert src to that type if necessary for all bswap
12208         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
12209         set in pass_optimize_bswap::execute ().
12211 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
12213         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
12214         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
12215         integer and floating point variants.
12216         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
12218 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
12220         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
12221         for all vector modes.
12223 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
12225         PR bootstrap/64612
12226         * doc/sourcebuild.texi (comdat_group): Document.
12228 2015-01-28  Terry Guo  <terry.guo@arm.com>
12230         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
12232 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
12234         * toplev.c (print_version): Add param "show_global_state", and
12235         only print GGC and plugin information if it is true.
12236         (init_asm_output): Pass in "true" for the new param when calling
12237         print_version.
12238         (process_options): Likewise.
12239         (toplev::main): Likewise.
12240         * toplev.h (print_version): Add new param to decl.
12242 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
12244         PR ipa/60871
12245         PR ipa/64139
12246         * tree.c (lookup_binfo_at_offset): New function.
12247         (get_binfo_at_offset): Use it.
12249 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
12251         PR ipa/64282
12252         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
12253         on vtable being vtable.
12255 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12257         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
12258         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
12259         -mhotpatch= option.
12260         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
12261         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
12262         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
12263         Renamed.
12264         (s390_hotpatch_trampoline_halfwords_max): Renamed.
12265         (s390_hotpatch_hw_max): New name.
12266         (s390_hotpatch_trampoline_halfwords): Renamed.
12267         (s390_hotpatch_hw_before_label): New name.
12268         (get_hotpatch_attribute): Removed.
12269         (s390_hotpatch_hw_after_label): New name.
12270         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
12271         attribute.
12272         (s390_attribute_table): Ditto.
12273         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
12274         (s390_function_num_hotpatch_hw): New name.
12275         Remove special handling of inline functions and hotpatching.
12276         Return number of nops before and after the function label.
12277         (s390_can_inline_p): Removed.
12278         (s390_asm_output_function_label): Emit a configurable number of nops
12279         after the function label.
12280         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
12281         (TARGET_CAN_INLINE_P) Removed.
12282         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
12284 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12285             Jiong Wang  <jiong.wang@arm.com>
12287         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
12288         of scratch reg.
12289         (cb<optab><mode>1): Likewise.
12290         * config/aarch64/iterators.md (bcond): New define_code_attr.
12292 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12294         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
12295         memory accesses.
12297 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12299         * config/s390/s390.c (s390_register_move_cost): Increase costs for
12300         FPR->GPR moves.
12302 2015-01-27  Richard Biener  <rguenther@suse.de>
12304         * tree-vrp.c (update_value_range): Intersect the range with
12305         old recorded SSA name range information.
12307 2015-01-27  Nick Clifton  <nickc@redhat.com>
12309         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
12310         BC, DE and HL registers directly, not via AX.
12311         When decrementing the stack pointer by a large amount, transfer SP
12312         into AX and perform the subtraction there.
12313         (rl78_expand_epilogue): Perform the inverse of the above
12314         enhancements.
12316 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12318         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
12320 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
12321             Yury Gribov  <y.gribov@samsung.com>
12323         PR ubsan/64741
12324         * ubsan.c (ubsan_source_location): Refactor code.
12325         (ubsan_type_descriptor): Update type size. Refactor code.
12327 2015-01-27  Richard Biener  <rguenther@suse.de>
12329         PR tree-optimization/56273
12330         PR tree-optimization/59124
12331         PR tree-optimization/64277
12332         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
12333         from the first VRP pass.
12335 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
12337         PR ipa/64776
12338         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
12339         handle the first argument in the same loop as all the other arguments.
12341         PR rtl-optimization/61058
12342         * jump.c (cleanup_barriers): Update basic block boundaries
12343         if BLOCK_FOR_INSN is non-NULL on PREV.
12345 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
12347         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
12348         bounds narrowing, already instrumented calls and calls to
12349         not instrumentable functions.
12351 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
12353         PR tree-optimization/64807
12354         * wide-int.cc (wi::divmod_internal): Clear
12355         b_dividend[dividend_blocks_needed].
12357 2015-01-26  DJ Delorie  <dj@redhat.com>
12359         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
12360         volatile memory references.
12362 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
12364         PR target/49263
12365         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
12366         remove_insn.
12367         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
12368         shifts if it already fits into K08.
12370 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
12372         PR ipa/64730
12373         * ipa-inline.c (inline_small_functions): Print "unknown" even
12374         if edge->call_stmt is non-NULL, but has builtins or unknown
12375         location.
12377         PR middle-end/64421
12378         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
12379         with asterisk, skip the first character.
12381 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
12383         PR target/64806
12384         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
12385         order change.
12387 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
12389         PR target/64795
12390         * config/i386/i386.md (*movdi_internal): Also check operand 0
12391         to determine TYPE_LEA operand.
12392         (*movsi_internal): Ditto.
12394 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
12396         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
12397         OPTION_MASK_QUAD_MEMORY_ATOMIC.
12399 2015-01-26  Renlin Li  <renlin.li@arm.com>
12401         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
12402         the comment.
12403         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
12404         for higher part.
12406 2015-01-26  Richard Biener  <rguenther@suse.de>
12408         PR middle-end/64764
12409         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
12410         combining two BIT_AND_EXPR predicates.
12412 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
12414         PR bootstrap/64754
12415         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
12417 2015-01-26  Terry Guo  <terry.guo@arm.com>
12419         * config/arm/arm.c (arm_file_start): Update the assignment of
12420         Tag_ABI_HardFP_use.
12422 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
12424         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
12425         pipeline model.
12426         config/arm/arm.md: Include the new Cortex-A57 model.
12427         (generic_sched): Don't use generic_sched when tuning for
12428         Cortex-A57.
12430 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
12431             Uros Bizjak  <ubizjak@gmail.com>
12433         * config/i386/i386.c (get_builtin_code_for_version): Add
12434         support for BMI and BMI2 multiversion functions.
12436 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12438         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
12439         (extract_bit_field): Likewise.
12440         (extract_low_bits): Likewise.
12441         (expand_mult): Likewise.
12442         (expand_mult_highpart_adjust): Likewise.
12444 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12446         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
12447         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
12448         * config/i386/i386.c (processor_model): Add
12449         M_INTEL_COREI7_BROADWELL.
12450         (arch_names_table): Add "broadwell".
12452 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
12454         PR target/49263
12455         PR target/53987
12456         PR target/64345
12457         PR target/59533
12458         PR target/52933
12459         PR target/54236
12460         PR target/51244
12461         * config/sh/sh-protos.h
12462         (sh_extending_set_of_reg::can_use_as_unextended_reg,
12463         sh_extending_set_of_reg::use_as_unextended_reg,
12464         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
12465         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
12466         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
12467         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
12468         (sh_treg_insns): New class.
12469         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
12470         (scope_counter): New class.
12471         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
12472         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
12473         sh_extending_set_of_reg::can_use_as_unextended_reg,
12474         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
12475         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
12476         sh_split_treg_set_expr): New functions.
12477         (addsubcosts): Handle treg_set_expr.
12478         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
12479         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
12480         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
12481         (sh_insn_operands_modified_between_p): Make non-static.
12482         * config/sh/predicates.md (zero_extend_movu_operand): Allow
12483         simple_mem_operand in addition to displacement_mem_operand.
12484         (zero_extend_operand): Don't allow zero_extend_movu_operand.
12485         (treg_set_expr, treg_set_expr_not_const01,
12486         arith_reg_or_treg_set_expr): New predicates.
12487         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
12488         arith_or_int_operand instead of logical_operand.  Convert to
12489         insn_and_split.  Try to optimize constant operand in splitter.
12490         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
12491         (*tstqi_t_zero): Delete.
12492         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
12493         (tstsi_t_and_not): Delete.
12494         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
12495         Convert to insn_and_split.
12496         (unnamed split, tstsi_t_zero_extract_xor,
12497         tstsi_t_zero_extract_subreg_xor_little,
12498         tstsi_t_zero_extract_subreg_xor_big): Delete.
12499         (*tstsi_t_shift_mask): New insn_and_split.
12500         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
12501         to recombine with surrounding insns when splitting.
12502         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
12503         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
12504         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
12505         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
12506         (*cbranch_div0s: Delete.
12507         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
12508         Try to recombine with surrounding insns when splitting.  Add operand
12509         order variants.
12510         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
12511         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
12512         *addc_r_r_msb, *addc_2r_msb): Delete.
12513         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
12514         order variant.
12515         (*addc_negreg_t): New insn_and_split.
12516         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
12517         Try to recombine with surrounding insns when splitting.
12518         Add operand order variants.
12519         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
12520         insn_and_split patterns.
12521         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
12522         surrounding insns when splitting.
12523         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
12524         (*rotcl): Likewise.  Add zero_extract variant.
12525         (*ashrsi2_31): New insn_and_split.
12526         (*negc): Convert to insn_and_split.  Use treg_set_expr.
12527         (*zero_extend<mode>si2_disp_mem): Update comment.
12528         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
12529         condition.
12530         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
12531         with surrounding insns when splitting.
12532         (any_treg_expr_to_reg): New insn_and_split.
12533         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
12534         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
12535         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
12536         *zero_extract_2): New single bit zero extract patterns.
12537         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
12538         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
12539         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
12540         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
12541         set destination.
12542         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
12543         register_operand for set source.
12545 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
12547         * i386.opt (prefetch_sse): New targetsave.
12548         * i386.c (ix86_function_specific_save): Save prefetch_sse.
12549         (ix86_function_specific_restore): Restore prefetch_sse and initialize
12550         ix86_cost/ix86_tune_cost.
12552 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
12554         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
12555         Support the JIT by using 0 as the language type.
12557 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
12559         PR target/64317
12560         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
12561         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
12562         (mark_regno_live, process_bb_lives): Pass new parameter value to
12563         make_hard_regno_born.
12565 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
12567         PR rtl-optimization/63637
12568         PR rtl-optimization/60663
12569         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
12570         if elt->cost is MAX_COST for ASM_OPERANDS.
12571         (find_sets_in_insn): Fix up comment typo.
12572         (cse_insn): Don't set src_volatile for all non-volatile
12573         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
12574         or with "memory" clobber.  Set elt->cost to MAX_COST
12575         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
12576         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
12578 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
12580         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
12581         alternative 1.
12583 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
12585         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
12586         libgcc/config/i386/elf-lib.h.
12588 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
12590         PR driver/64737
12591         * gcc.c (print_configuration): Don't print a blank line at the end
12592         here...
12593         (run_attempt): ... but here unstead.
12595         PR middle-end/64734
12596         * omp-low.c (scan_sharing_clauses): Don't ignore
12597         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
12598         on target data/update constructs.
12600 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12602         PR target/50928
12603         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
12604         (DEBUG_RELOAD): Removed define.
12605         (m32c_limit_reload_class): Enable traces with if DEBUG0.
12606         (m32c_function_arg): Added a type cast.
12607         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
12608         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
12609         * config/m32c/bitops.md (andqi3_16): Likewise.
12610         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
12611         (push_a01_l): Likewise.
12613 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
12615         PR jit/64721
12616         * main.c (main): Construct toplev instances with init_signals=true.
12617         * toplev.c (general_init): Add param "init_signals", and use it to
12618         conditionalize the calls to signal and host_hooks.extra_signals.
12619         (toplev::toplev): Add param "init_signals".
12620         (toplev::main): When invoking general_init, pass m_init_signals
12621         to control whether signal-handlers are installed.
12622         * toplev.h (toplev::toplev): Add param "init_signals".
12623         (toplev::m_init_signals): New field.
12625 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
12627         PR jit/64722
12628         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
12629         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
12630         latter may be affected by the former (e.g. on i686).
12632 2015-01-23  Martin Liska  <mliska@suse.cz>
12634         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
12635         false positive during profiledbootstrap.
12637 2015-01-23  Tom de Vries  <tom@codesourcery.com>
12639         PR libgomp/64672
12640         * lto-opts.c (lto_write_options): Output non-explicit conservative
12641         -fno-openacc.
12642         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
12643         (append_compiler_options): Pass -fopenacc through.
12645 2015-01-23  Tom de Vries  <tom@codesourcery.com>
12647         PR libgomp/64707
12648         * lto-opts.c (lto_write_options): Output non-explicit conservative
12649         -fno-openmp.
12650         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
12651         (append_compiler_options): Pass -fopenmp through.
12653 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
12655         PR debug/64511
12656         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
12657         GTY markup.
12659         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
12660         * diagnostic.def (DK_ICE_NOBT): New kind.
12661         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
12662         like DK_ICE, but never print backtrace.
12663         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
12664         (internal_error_no_backtrace): New function.
12665         * gcc.c (execute): Use internal_error_no_backtrace instead of
12666         internal_error.
12668 2015-01-22  Jeff Law  <law@redhat.com>
12670         PR target/52076
12671         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
12672         improve code density for small immediate to memory case.
12673         (insv): Better handle bitfield assignments when the field is
12674         being set to all ones.
12675         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
12676         operand predicate.
12678 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12679             Jakub Jelinek  <jakub@redhat.com>
12681         PR middle-end/64729
12682         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
12683         for !TARGET_LIBC_PROVIDES_SSP version and
12684         -fstack-protector-{all,strong,explicit} otherwise.
12685         * config/freebsd.h (LINK_SSP_SPEC): Handle
12686         -fstack-protector-{strong,explicit}.
12688 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
12689             H.J. Lu  <hongjiu.lu@intel.com>
12691         PR ipa/64694
12692         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
12693         heap.
12695 2015-01-22  Wei Mi  <wmi@google.com>
12697         PR rtl-optimization/64557
12698         * dse.c (record_store): Call get_addr for mem_addr.
12699         (check_mem_read_rtx): Likewise.
12701 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12703         * fold-const.c (const_binop): Add early return for non-tcc_binary.
12705 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12707         * toplev.c (init_local_tick): Process the failure when read
12708         fails for random_seed.
12710         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
12711         'pretty_name' to avoid memory overflow.
12713 2015-01-22  Richard Biener  <rguenther@suse.de>
12715         PR middle-end/64728
12716         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
12717         abnormal coalescing on undefined SSA names.
12719 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
12721         PR target/64688
12722         PR target/64477
12723         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
12724         for alternative 3.
12725         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
12727 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
12729         PR middle-end/63325
12730         * fold-const.c (fold_checksum_tree): Don't include value of
12731         expr->decl_with_vis.symtab_node in the checksum.
12733 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12735         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
12737 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12739         PR driver/64690
12740         * gcc.c (insert_comments): New function.
12741         (try_generate_repro): Call it.
12742         (append_text): Removed.
12744 2015-01-22  Richard Biener  <rguenther@suse.de>
12746         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
12747         with IL incompatible options.  Properly honor user optimize
12748         attributes.
12750 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
12752         PR rtl-optimization/64682
12753         * combine.c (distribute_notes): When moving a death note for
12754         a register that is set in the new I2, make sure to put it
12755         before that new I2.
12757 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
12759         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
12760         not TARGET_DEFAULT.
12762 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
12764         PR debug/64511
12765         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
12766         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
12767         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
12769         PR sanitizer/64706
12770         * doc/invoke.texi (-fsanitize=vptr): Document.
12772         PR rtl-optimization/62078
12773         * dse.c: Include cfgcleanup.h.
12774         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
12775         anything call purge_all_dead_edges and cleanup_cfg at the end
12776         of the pass.
12778 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
12780         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
12781         edges.
12783 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12785         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
12786         decl attribute.
12788 2015-01-21  David Sherwood  <david.sherwood@arm.com>
12789             Tejas Belagod <Tejas.Belagod@arm.com>
12791         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
12792         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
12793         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
12794         Removed.
12796 2015-01-21  David Sherwood  <david.sherwood@arm.com>
12797             Tejas Belagod <Tejas.Belagod@arm.com>
12799         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
12800         (aarch64_reverse_mask): New decls.
12801         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
12802         (insn_count): New mode_attr.
12803         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
12804         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
12805         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
12806         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
12807         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
12808         (aarch64_simd_st4): New patterns.
12809         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
12810         (aarch64_reverse_mask): New functions.
12812 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
12814         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
12815         Declare.
12816         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
12817         addressing modes for BE.
12818         (aarch64_print_operand): Add 'R' specifier.
12819         (aarch64_simd_disambiguate_copy): Delete.
12820         (aarch64_simd_emit_reg_reg_move): New function.
12821         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
12822         in define_splits for structural moves.
12823         (mov<mode>): Use less restrictive predicates.
12824         (*aarch64_mov<mode>): Simplify and only allow for LE.
12825         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
12827 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
12829         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
12831 2015-01-21  Richard Henderson  <rth@redhat.com>
12833         PR target/64669
12834         * ccmp.c (used_in_cond_stmt_p): Remove.
12835         (expand_ccmp_expr): Don't use it.
12837 2015-01-21  Nick Clifton  <nickc@redhat.com>
12839         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
12840         PARALLELs.
12842 2015-01-21  Richard Biener  <rguenther@suse.de>
12844         PR middle-end/64313
12845         * tree-core.h (builtin_info, builtin_info_type): Turn from
12846         an object with two arrays into an array of an object with
12847         decl and two flags, implicit_p and declared_p.
12848         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
12849         set_builtin_decl, set_builtin_decl_implicit_p,
12850         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
12851         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
12852         * builtins.c (builtin_info): Adjust.
12853         * gimplify.c (gimplify_addr_expr): References to builtins
12854         that have been declared by the user makes them eligible for
12855         use by the compiler.  Call set_builtin_decl_implicit_p on them.
12857 2015-01-20  Jeff Law  <law@redhat.com>
12859         PR target/59946
12860         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
12861         allow pc-relative addresses in operand predicates or constraints.
12863 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
12865         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
12866         neon on aarch32 processors for stringops.
12868 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
12870         PR ipa/63576
12871         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
12873 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
12875         PR lto/45375
12876         * ipa-inline.c: Include lto-streamer.h
12877         (report_inline_failed_reason): Output source file differences and
12878         flags on optimization/target node mismatch.
12879         (can_inline_edge_p): Consider caller to be the outer inline function;
12880         be less restrictive about matching opimize and optimize_size attributes.
12881         (inline_account_function_p): Break out from ...
12882         (inline_small_functions): ... here.
12883         * ipa-inline-transform.c (clone_inlined_nodes): Use
12884         inline_account_function_p.
12885         (inline_call): Use optimize attribution; use inline_account_function_p.
12886         (inline_transform): Use opt_for_fn.
12887         * ipa-inline.h (inline_account_function_p): Declare.
12889 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
12891         PR debug/64663
12892         * dwarf2out.c (decl_piece_node): Don't put bitsize into
12893         mode if bitsize <= 0.
12894         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
12895         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
12896         sizes and positions.
12898 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
12900         * config/nios2/nios2.c (nios2_asm_file_end): Implement
12901         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
12902         needed.
12903         (TARGET_ASM_FILE_END): Define.
12905 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12907         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
12908         (struct tune_params): Use the enum.
12909         * arm.c (arm_*_tune): Update.
12910         (arm_option_override): Update.
12912 2015-01-20  Richard Biener  <rguenther@suse.de>
12914         PR ipa/64684
12915         * ipa-reference.c (add_static_var): Inline ...
12916         (analyze_function): ... here after splitting out from ...
12917         (is_proper_for_analysis): ... this.
12919 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
12921         PR target/64149
12922         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
12923         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
12924         replace the conditional with it's true branch.
12925         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
12926         (arm_lra_p): Remove.
12928 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
12930         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
12932 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12934         * config/tilegx/mul-tables.c: Move symtab.h include after
12935         coretypes.h include.
12936         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
12937         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
12938         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
12939         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
12940         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
12942 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
12944         PR bootstrap/64676
12945         Revert:
12946         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
12948         PR rtl-optimization/64081
12949         * loop-iv.c (def_pred_latch_p): New function.
12950         (latch_dominating_def): Allow specific cases with non-single
12951         definitions.
12952         (iv_get_reaching_def): Likewise.
12953         (check_complex_exit_p): New function.
12954         (check_simple_exit): Use check_complex_exit_p to allow certain cases
12955         with exits not executing on any iteration.
12957 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
12959         PR lto/45375
12960         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
12961         to set branch cost.
12963 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
12965         PR lto/45375
12966         * i386.c (gate): Check flag_expensive_optimizations and
12967         optimize_size.
12968         (ix86_option_override_internal): Drop optimize_size condition
12969         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
12970         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
12971         MASK_PREFER_AVX128.
12972         (ix86_avx256_split_vector_move_misalign,
12973         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
12974         * sse.md (all uses of TARGET_PREFER_AVX128): Add
12975         optimize_insn_for_speed_p check.
12977 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
12979         * config/mips/mips.h (FP_ASM_SPEC): New define.
12980         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
12981         instead.
12983 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
12985         PR target/53988
12986         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
12987         nullptr for insn when reaching the first insn.
12988         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
12989         (sh_insn_operands_modified_between_p): Add nullptr check.
12990         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
12991         sign extending mem load if the insn contains any UNSPEC or
12992         UNSPEC_VOLATILE.
12994 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
12996         * params.def (inline-unit-growth): Drop to 15%.
12997         * invoke.texi (inline-unit-growth): Document change.
12999 2015-01-19  Martin Liska  <mliska@suse.cz>
13001         PR ipa/64668
13002         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
13003         function for second argument of OBJ_TYPE_REF.
13005 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13007         PR ipa/64218
13008         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
13009         whether function is an alias.
13011 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
13013         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
13014         cases.
13016 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
13018         PR rtl-optimization/64671
13019         * lra-remat.c (operand_to_remat): Don't consider jump and call
13020         insns.
13022 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
13024         PR target/59828
13025         * config/rs6000/default64.h: Include rs6000-cpus.def.
13026         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
13027         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
13028         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
13029         and POWER8.
13030         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
13031         POWER8.
13032         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
13033         pseudo-op to specify assembler dialect.
13035 2015-01-19  Martin Liska  <mliska@suse.cz>
13037         PR ipa/64664
13038         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
13039         Handle safe potentially removed nodes during filtering.
13041 2015-01-19  Martin Liska  <mliska@suse.cz>
13043         * doc/extend.texi (no_icf): Add new attribute description.
13044         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
13045         where the pass attempts to merge a function with no_icf attribute.
13047 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13049         PR target/64532
13050         * doc/md.texi (ARM Options): Document register constraints.
13052 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
13053             Andrew Pinski  <apinski@cavium.com>
13055         PR target/64304
13056         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
13057         (ashl<mode>3): Don't expand if operands[2] is not constant.
13059 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13061         PR target/64448
13062         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
13063         Match xor-and-xor RTL pattern.
13065 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
13067         PR rtl-optimization/64081
13068         * loop-iv.c (def_pred_latch_p): New function.
13069         (latch_dominating_def): Allow specific cases with non-single
13070         definitions.
13071         (iv_get_reaching_def): Likewise.
13072         (check_complex_exit_p): New function.
13073         (check_simple_exit): Use check_complex_exit_p to allow certain cases
13074         with exits not executing on any iteration.
13076 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
13078         * common.opt (fgraphite): Fix a typo.
13080 2015-01-19  Felix Yang  <felix.yang@huawei.com>
13082         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
13083         pattern.
13084         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
13085         uminp, smax_nanp, smin_nanp): New builtins.
13086         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
13087         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
13088         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
13089         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
13090         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
13091         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
13092         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
13093         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
13094         vpminnms_f32): Rewrite using builtin functions.
13096 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
13098         PR libgomp/64625
13099         * omp-low.c (offload_symbol_decl): Remove variable.
13100         (get_offload_symbol_decl): Remove function.
13101         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
13102         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
13103         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
13104         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
13105         BUILT_IN_GOACC_UPDATE don't pass it at all.
13107 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13109         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
13110         callers.
13112 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13114         * ipa-chkp.c (chkp_produce_thunks): Add early param
13115         to split thunks production into two passes.  Keep
13116         'always_inline' function bodies after the first pass.
13117         (pass_data_ipa_chkp_early_produce_thunks): New.
13118         (pass_ipa_chkp_early_produce_thunks): New.
13119         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
13120         chkp_produce_thunks signature.
13121         (make_pass_ipa_chkp_early_produce_thunks): New.
13122         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
13123         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
13124         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
13126 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
13128         * cgraph.c (cgraph_node::dump): Dump profile flags.
13130 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
13132         PR target/64652
13133         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
13134         reg appear first in the parallel.
13136 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
13138         * ipa-reference.c (set_reference_optimization_summary,
13139         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
13140         disabled.
13141         (ignore_module_statics): New static var.
13142         (propagate_bits): If ipa-reference is disabled, do not look into local
13143         properties.
13144         (analyze_function): Disable analysis when ipa_reference is disabled.
13145         (generate_summary): Do not dump when reference is disabled;
13146         collect vars accessed from functions with ipa-reference disabled.
13147         (get_read_write_all_from_node): When ipa-reference is disabled, use the
13148         node flags.
13149         (gate): Enable for LTO.
13150         (ignore_edge_p): New function.
13151         (propagate): Skip functions w/o ipa-reference analysis.
13152         * optc-save-gen.awk: Handle optimize_debug correctly.
13153         * opth-gen.awk: Likewise.
13154         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
13155         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
13156         fira-share-save-slots, fira-share-spill-slots,
13157         fmodulo-sched-allow-regmoves, fpartial-inlining,
13158         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
13159         ftracer, ftree-parallelize-loops, fassociative-math,
13160         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
13161         Optimization
13162         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
13163         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
13164         Optimization.
13165         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
13166         Fix for IPA.
13168 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
13170         PR ipa/64378
13171         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
13172         flag correctly.
13173         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
13175 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
13177         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
13178         Remove duplicate option listings.
13180 2015-01-18  Felix Yang  <felix.yang@huawei.com>
13182         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
13183         (autofdo_source_profile::get_callsite_total_count,
13184         function_instance::get_function_instance_by_decl,
13185         string_table::get_index, string_table::get_index_by_decl,
13186         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
13187         Fix comment typos. Reformatting and minor code rearrangement.
13189 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13191         * config/rs6000/rs6000.md (probe_stack): Delete.
13192         (probe_stack_address): New.
13194 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13196         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
13197         to test for 32-bit ABIs, not !TARGET_POWERPC64.
13199 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13201         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
13202         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
13203         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
13204         snafu.
13205         (rs6000_libcall_value): Use the new function.
13207 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
13209         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
13211 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13213         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
13214         implement a more precise life analysis for it during backward scan.
13216 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
13218         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
13220 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
13222         PR rtl-optimization/52773
13223         * calls.c (emit_library_call_value): When pushing arguments use
13224         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
13225         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
13226         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
13228 2015-01-17  Jeff Law  <law@redhat.com>
13230         PR rtl-optimization/32790
13231         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
13232         not ZERO_EXTEND in SET_DESTs.
13234 2015-01-17  Alan Modra  <amodra@gmail.com>
13236         * cprop.c (do_local_cprop): Revert last change.
13238 2015-01-16  DJ Delorie  <dj@redhat.com>
13239             Nick Clifton  <nickc@redhat.com>
13241         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
13242         (addhi3_real): Likewise.  Fix [HL+0] syntax.
13243         (subqi3_real): Likewise.
13244         (subhi3_real): Likewise.
13245         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
13246         (cbranchhi4_real): Likewise.
13247         (cbranchhi4_real_inverted): Likewise.
13248         (cbranchsi4_real_lt): Likewise.
13249         (cbranchsi4_real_ge): Likewise.
13250         (cbranchsi4_real_ge): Likewise.
13251         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
13252         (sub<mode>3_virt): Likewise.
13253         (cbranchqi4_virt): Likewise.
13254         (cbranchhi4_virt): Likewise.
13255         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
13256         always use '[reg+imm]' even when imm is zero.
13257         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
13258         (rl78_general_operand): New.
13259         (rl78_nonimmediate_operand): New.
13260         (rl78_nonfar_operand): Use them.
13261         (rl78_nonfar_nonimm_operand): Likewise.
13262         (rl78_stack_based_mem): Fix.
13263         * config/rl78/constraints.md (Ibqi): New.
13264         (IBqi): New.
13265         (Wsa): New.
13266         (Wsf): New.
13267         (Cs1): Fix.
13268         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
13269         (iorqi3): Likewise.
13270         (xorqi3): Likewise.
13271         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
13273         * config/rl78/constrains (Qs8): New constraint.
13274         * config/rl78/rl78.c (rl78_flags_already_set): New function.
13275         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
13276         * config/rl78/rl78-real.md (update_Z): New attribute.
13277         Update patterns to set it.
13278         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
13279         shorter compare and branch sequence can be used.
13280         (cbranchhi4_real): Likewise.
13281         (cbranchhi4_real_inverted): Likewise.
13283         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
13284         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
13285         address space.
13286         * config/rl78/rl78.c (rl78_get_name_encoding): New.
13287         (rl78_option_override): Allow -mes0 only if C.
13288         (characterize_address): Support subregs of symbol_refs.
13289         (rl78_addr_space_address_mode): Move.  Add __near.
13290         (rl78_far_p): Likewise.
13291         (rl78_addr_space_pointer_mode): Likewise.
13292         (rl78_as_legitimate_address): Likewise.
13293         (rl78_addr_space_subset_p): Likewise.
13294         (rl78_addr_space_convert): Likewise.
13295         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
13296         symbols with -mes0.
13297         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
13298         addressing.
13299         (rl78_alloc_physical_registers_op1): Change logic to prefer
13300         symbol[BC] addressing.
13301         (frodata_section): New.
13302         (rl78_asm_init_sections): Initialize it.
13303         (rl78_select_section): Put __far readonly symbols in .frodata.
13304         (rl78_make_type_far): New.
13305         (rl78_insert_attributes): Force all readonly symbols to be
13306         __far when -mes0.
13307         (rl78_asm_out_integer): New.
13308         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
13309         * config/rl78/rl78.opt (-mes0): New.
13311         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
13312         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13313         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13314         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
13315         (rl78_saddr_p): New.
13316         (rl78_output_aligned_common): New.
13317         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
13318         (rl78_handle_saddr_attribute): New.
13319         (rl78_handle_naked_attribute): New.
13320         (rl78_attribute_table): Add saddr.
13321         (rl78_print_operand_1): Don't print '!' on saddr operands.
13322         (rl78_print_operand_1): Strip encodings.
13323         (rl78_sfr_p): New.
13324         (rl78_strip_name_encoding): New.
13325         (rl78_attrlist_to_encoding): New.
13326         (rl78_encode_section_info): New.
13327         (rl78_asm_init_sections): New.
13328         (rl78_select_section): New.
13329         (rl78_output_labelref): New.
13330         (rl78_output_aligned_common): New.
13331         (rl78_asm_out_integer): New.
13332         (rl78_asm_ctor_dtor): New.
13333         (rl78_asm_constructor): New.
13334         (rl78_asm_destructor): New.
13336         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
13337         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
13338         (transcode_memory_rtx): Update.
13339         (rl78_expand_epilogue): Use A_REG instead of 0.
13341 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13343         * config/arm/arm-protos.h (struct tune_params): New field
13344         sched_autopref_queue_depth.
13345         * config/arm/arm.c (sched-int.h): Include header.
13346         (arm_first_cycle_multipass_dfa_lookahead_guard,)
13347         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
13348         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
13349         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
13350         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
13351         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
13352         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
13353         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
13354         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
13355         * config/arm/t-arm (arm.o): Update.
13356         * haifa-sched.c (update_insn_after_change): Update.
13357         (rank_for_schedule): Use auto-prefetcher model, if requested.
13358         (autopref_multipass_init): New static function.
13359         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
13360         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
13361         variable for debug dumps.
13362         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
13363         (autopref_multipass_dfa_lookahead_guard): New global function that
13364         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
13365         (init_h_i_d): Update.
13366         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
13367         * sched-int.h (enum autopref_multipass_data_status): New const enum.
13368         (autopref_multipass_data_): Structure for auto-prefetcher data.
13369         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
13370         (struct _haifa_insn_data:autopref_multipass_data): New field.
13371         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
13372         (autopref_multipass_dfa_lookahead_guard): Declare.
13374 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13376         * rtlanal.c (get_base_term): Handle SCRATCH.
13378 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13380         * config/aarch64/aarch64.c
13381         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
13382         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
13383         * config/arm/arm.c
13384         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
13385         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
13387 2015-01-17  Alan Modra  <amodra@gmail.com>
13389         * cprop.c (do_local_cprop): Disallow replacement of fixed
13390         hard registers.
13392 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13394         PR target/62066
13395         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
13396         early return 0.
13398 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13400         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
13401         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
13403 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13405         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
13406         * config/arm/thumb1.md: ... Here.
13408 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
13410         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
13411         TImode for TARGET_32BIT.
13413 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
13415         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
13416         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
13417         as ...
13418         (rs6000_abi_word_mode): New function.
13420 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
13422         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
13423         instead of UNITS_PER_WORD to describe the size of stack slots.
13425 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
13427         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
13428         as rs6000_promote_function_mode.  Move comment to there.
13429         (rs6000_promote_function_mode): New function.
13431 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
13433         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
13434         -mpowerpc64 is active.
13436 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
13438         PR middle-end/64353
13439         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
13440         virtuals on start.
13442 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
13444         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
13445         introduced in revision 219724.
13447 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13448             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13450         PR target/64263
13451         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
13452         destination is not a GP reg.
13453         (*movdi_aarch64): Likewise.
13455 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
13457         PR target/64623
13458         * config/rs6000/default64.h: Revert ISA change.
13460 2015-01-16  Richard Biener  <rguenther@suse.de>
13462         PR middle-end/64614
13463         * tree-ssa-uninit.c: Include tree-cfg.h.
13464         (MAX_SWITCH_CASES): New define.
13465         (convert_control_dep_chain_into_preds): Handle switch statements.
13466         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
13467         (normalize_one_pred_1): Do not split bit-manipulations.
13468         Record (x & CST).
13470 2015-01-16  Richard Biener  <rguenther@suse.de>
13472         PR tree-optimization/64568
13473         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
13474         complex load rewriting for TARGET_MEM_REFs.
13476 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
13478         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
13480 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
13482         PR target/64149
13483         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
13484         variable.
13485         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
13486         (aarch64_lra_p): Remove.
13488 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
13490         PR target/64363
13491         * ipa-chkp.h (chkp_instrumentable_p): New.
13492         * ipa-chkp.c: Include tree-inline.h.
13493         (chkp_instrumentable_p): New.
13494         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
13495         Fix processing of not instrumentable functions.
13496         (chkp_versioning): Use chkp_instrumentable_p. Warn about
13497         not instrumentable functions.
13498         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
13499         chkp_instrumentable_p.
13500         * tree-inline.h (copy_forbidden): New.
13501         * tree-inline.c (copy_forbidden): Not static anymore.
13503 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13505         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
13506         ptr1, ptr2 unused.
13508 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13510         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
13511         type OP_OUT to OP_INOUT.
13513 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13515         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
13516         (high x) y) to y if x and y have the same base.
13518 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
13520         * config/arm/cortex-a57.md: New.
13521         * config/aarch64/aarch64.md: Include it.
13522         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
13523         * config/aarch64/aarch64-tune.md: Regenerate.
13525 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13527         PR target/64015
13528         * ccmp.c (expand_ccmp_next): New function.
13529         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
13530         and compare insn sequence.
13531         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
13532         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
13533         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
13534         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
13535         (*ccmp_ior): Changed to ccmp_ior<mode>.
13536         (cmp<mode>): New pattern.
13537         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
13538         parameters.
13539         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
13541 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
13543         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
13544         _mm256_bsrli_epi128): New.
13545         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
13547 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
13549         * expmed.c (store_bit_field_using_insv): Improve warning message.
13550         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
13552 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
13554         PR rtl-optimization/64011
13555         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
13556         there is partial overflow.
13558 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
13560         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
13561         prototype.
13562         (nds32_expand_epilogue_v3pop): Likewise.
13563         * config/nds32/nds32.md (sibcall): Define this for sibling call
13564         optimization.
13565         (sibcall_register): Likewise.
13566         (sibcall_immediate): Likewise.
13567         (sibcall_value): Likewise.
13568         (sibcall_value_register): Likewise.
13569         (sibcall_value_immediate): Likewise.
13570         (sibcall_epilogue): Likewise.
13571         (epilogue): Pass false to indicate this is not a sibcall epilogue.
13572         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
13573         (nds32_expand_epilogue_v3pop): Likewise.
13575 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
13577         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
13578         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
13579         (return_internal): New.
13580         (return): Define this named pattern.
13581         (simple_return): Define this named pattern.
13582         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
13583         pattern instead of unspec_volatile_func_return.
13584         (nds32_expand_epilogue_v3pop): Likewise.
13585         (nds32_can_use_return_insn): New function.
13587 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
13589         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
13590         * config/nds32/nds32.md (pop25return): New.
13591         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
13592         pop25return pattern.
13594 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
13596         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
13597         -mforbid-fp-as-gp, and -mex9 options.
13599 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
13601         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
13602         remove -mgp-direct option.
13604 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
13606         * doc/invoke.texi (--param early-inlining-insns): Update default value.
13607         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
13609 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
13611         * ipa-inline.c (inline_small_functions): Work around hints
13612         cache issue.
13614 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
13616         PR target/59710
13617         * doc/invoke.texi (Option Summary): Document new Nios II
13618         -mgpopt= syntax.
13619         (Nios II Options): Likewise.
13620         * config/nios2/nios2.opt: Add -mgpopt= option support.
13621         Modify existing -mgpopt and -mno-gpopt options to be aliases.
13622         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
13623         * config/nios2/nios2.c (nios2_option_override): Adjust
13624         -mgpopt defaulting.
13625         (nios2_in_small_data_p): Return true for explicit small data
13626         sections even with -G0.
13627         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
13628         option choices.
13630 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
13632         PR ipa/64612
13633         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
13634         of comdat locals.
13635         (inline_call): Fix removal of aliases.
13637 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
13639         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
13640         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
13641         * opts.c (common_handle_option): Add -fsanitize=vptr.
13642         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
13643         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
13644         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
13645         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
13646         (ubsan_expand_vptr_ifn): New prototype.
13647         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
13648         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
13649         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
13650         expand_LOOP_VECTORIZED): Make argument nameless, remove
13651         ATTRIBUTE_UNUSED.
13652         (expand_UBSAN_VPTR): New function.
13653         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
13654         in fn spec.
13655         (UBSAN_VPTR): New internal function.
13656         * sanopt.c (tree_map_traits): Renamed to ...
13657         (sanopt_tree_map_traits): ... this.
13658         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
13659         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
13660         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
13661         (maybe_optimize_ubsan_vptr_ifn): New function.
13662         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
13663         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
13664         -fsanitize=vptr.
13665         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
13666         internal calls like pure functions for aliasing, even when they
13667         have other side-effects that prevent making them ECF_PURE.
13668         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
13669         (ubsan_expand_vptr_ifn): New function.
13671 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
13673         PR rtl-optimization/64110
13674         * stmt.c (parse_output_constraint): Process '^' and '$'.
13675         (parse_input_constraint): Ditto.
13676         * lra-constraints.c (process_alt_operands): Process the new
13677         constraints.
13678         * ira-costs.c (record_reg_classes): Process the new constraint
13679         '^'.
13680         * genoutput.c (indep_constraints): Add '^' and '$'.
13681         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
13682         * doc/md.texi: Add description of the new constraints.
13684 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
13685             Bernd Schmidt  <bernds@codesourcery.com>
13686             Cesar Philippidis  <cesar@codesourcery.com>
13687             James Norris  <jnorris@codesourcery.com>
13688             Tom de Vries  <tom@codesourcery.com>
13689             Ilmir Usmanov  <i.usmanov@samsung.com>
13690             Dmitry Bocharnikov  <dmitry.b@samsung.com>
13691             Evgeny Gavrin  <e.gavrin@samsung.com>
13692             Jakub Jelinek  <jakub@redhat.com>
13694         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
13695         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13696         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13697         New function types.
13698         * builtins.c: Include "gomp-constants.h".
13699         (expand_builtin_acc_on_device): New function.
13700         (expand_builtin, is_inexpensive_builtin): Handle
13701         BUILT_IN_ACC_ON_DEVICE.
13702         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
13703         New macros.
13704         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
13705         flag_openmp.
13706         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
13707         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
13708         i386/intelmic-offload.h.
13709         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
13710         to libgomp and its dependencies.
13711         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
13712         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
13713         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
13714         * config/ia64/hpux.h (LIB_SPEC): Likewise.
13715         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13716         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
13717         * doc/generic.texi: Update for OpenACC changes.
13718         * doc/gimple.texi: Likewise.
13719         * doc/invoke.texi: Likewise.
13720         * doc/sourcebuild.texi: Likewise.
13721         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
13722         GF_OMP_FOR_KIND_OACC_LOOP.
13723         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
13724         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
13725         GF_OMP_TARGET_KIND_OACC_UPDATE,
13726         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
13727         Dump more data.
13728         * gimple.c: Update comments for OpenACC changes.
13729         * gimple.def: Likewise.
13730         * gimple.h: Likewise.
13731         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
13732         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
13733         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
13734         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
13735         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
13736         appropriate place.
13737         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
13738         * gimplify.c: Include "gomp-constants.h".
13739         Update comments for OpenACC changes.
13740         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
13741         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
13742         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
13743         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
13744         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
13745         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
13746         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
13747         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
13748         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
13749         OMP_CLAUSE_SEQ.
13750         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
13751         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
13752         OMP_CLAUSE_SET_MAP_KIND.
13753         (gimplify_oacc_cache): New function.
13754         (gimplify_omp_for): Handle OACC_LOOP.
13755         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
13756         OACC_DATA.
13757         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
13758         OACC_EXIT_DATA, OACC_UPDATE.
13759         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
13760         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
13761         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
13762         (gimplify_body): Consider flag_openacc next to flag_openmp.
13763         * lto-streamer-out.c: Include "gomp-constants.h".
13764         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
13765         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
13766         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
13767         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
13768         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
13769         (BUILT_IN_ACC_ON_DEVICE): New builtins.
13770         * omp-low.c: Include "gomp-constants.h".
13771         Update comments for OpenACC changes.
13772         (struct omp_context): Add reduction_map, gwv_below, gwv_this
13773         members.
13774         (extract_omp_for_data, use_pointer_for_field, install_var_field)
13775         (new_omp_context, delete_omp_context, scan_sharing_clauses)
13776         (create_omp_child_function, scan_omp_for, scan_omp_target)
13777         (check_omp_nesting_restrictions, lower_reduction_clauses)
13778         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
13779         Update for OpenACC changes.
13780         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
13781         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
13782         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
13783         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
13784         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
13785         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
13786         OMP_CLAUSE_MAP_*.
13787         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13788         Handle GF_OMP_FOR_KIND_OACC_LOOP.
13789         (expand_omp_target, lower_omp_target): Handle
13790         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
13791         GF_OMP_TARGET_KIND_OACC_UPDATE,
13792         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
13793         GF_OMP_TARGET_KIND_OACC_DATA.
13794         (pass_expand_omp::execute, execute_lower_omp)
13795         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
13796         flag_openmp.
13797         (offload_symbol_decl): New variable.
13798         (oacc_get_reduction_array_id, oacc_max_threads)
13799         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
13800         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
13801         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
13802         (oacc_gimple_assign, oacc_initialize_reduction_data)
13803         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
13804         functions.
13805         (is_targetreg_ctx): Remove function.
13806         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
13807         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
13808         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
13809         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
13810         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
13811         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
13812         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
13813         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
13814         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
13815         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
13816         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
13817         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
13818         * tree-core.h: Update comments for OpenACC changes.
13819         (enum omp_clause_map_kind): Remove.
13820         (struct tree_omp_clause): Change type of map_kind member from enum
13821         omp_clause_map_kind to unsigned char.
13822         * tree-inline.c: Update comments for OpenACC changes.
13823         * tree-nested.c: Likewise.  Include "gomp-constants.h".
13824         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
13825         (convert_tramp_reference_stmt, convert_gimple_call): Update for
13826         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
13827         OMP_CLAUSE_SET_MAP_KIND.
13828         * tree-pretty-print.c: Include "gomp-constants.h".
13829         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
13830         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
13831         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
13832         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
13833         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
13834         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
13835         instead of OMP_CLAUSE_MAP_*.
13836         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
13837         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
13838         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
13839         * tree-streamer-in.c: Include "gomp-constants.h".
13840         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
13841         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
13842         * tree-streamer-out.c: Include "gomp-constants.h".
13843         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
13844         OMP_CLAUSE_MAP_*.
13845         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
13846         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
13847         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
13848         * tree.c (omp_clause_num_ops): Update accordingly.
13849         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
13850         Likewise.
13851         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
13852         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
13853         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
13854         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
13855         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
13856         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
13857         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
13858         (OMP_CLAUSE_SET_MAP_KIND): New macro.
13859         * varpool.c (varpool_node::get_create): Consider flag_openacc next
13860         to flag_openmp.
13861         * config/i386/intelmic-offload.h: New file.
13862         * config/nvptx/offload.h: Likewise.
13864 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13866         * explow.h: Remove duplicate contents.
13867         * dojump.h: Likewise.
13869 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
13871         * arm.c (arm_xgene_tune): Add default initializer for instruction
13872         fusion.
13874 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
13876         PR ipa/64068
13877         PR ipa/64559
13878         * ipa.c (symbol_table::remove_unreachable_nodes):
13879         Do not put abstract origins into boundary.
13881 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
13883         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
13884         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
13886 2015-01-15  Steve Ellcey  <sellcey@mips.com>
13888         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
13889         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
13890         builtins.def, and chkp-builtins.def.
13892 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
13894         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
13895         ISA 2.7 (POWER8).
13897 2015-01-15  Richard Biener  <rguenther@suse.de>
13899         PR tree-optimization/61743
13900         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
13901         information on PHIs for some simple cases.
13903 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13905         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
13906         Include xgene1.md.
13907         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
13908         * config/arm/arm-cores.def (xgene1): New entry.
13909         * config/arm/arm-tables.opt: Regenerate.
13910         * config/arm/arm-tune.md: Regenerate.
13911         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
13913 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
13915         * tree-if-conv.c: Include hash-map.h.
13916         (aggressive_if_conv): New variable.
13917         (fold_build_cond_expr): Add simplification of non-zero condition.
13918         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
13919         destination block is not always executed.
13920         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
13921         than two predecessors if AGGRESSIVE_IF_CONV is true.
13922         (if_convertible_stmt_p): Fix commentary.
13923         (all_preds_critical_p): New function.
13924         (has_pred_critical_p): New function.
13925         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
13926         BB can have more than two predecessors and all incoming edges can be
13927         critical.
13928         (predicate_bbs): Skip predication for loop exit block, use build2_loc
13929         to compute predicate for true edge.
13930         (find_phi_replacement_condition): Delete this function.
13931         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
13932         Allow interchange PHI arguments if EXTENDED is false.
13933         Change check that block containing reduction statement candidate
13934         is predecessor of phi-block since phi may have more than two arguments.
13935         (phi_args_hash_traits): New helper structure.
13936         (struct phi_args_hash_traits): New type.
13937         (phi_args_hash_traits::hash): New function.
13938         (phi_args_hash_traits::equal_keys): New function.
13939         (gen_phi_arg_condition): New function.
13940         (predicate_scalar_phi): Add handling of phi nodes with more than two
13941         arguments, delete COND and TRUE_BB arguments, insert body of
13942         find_phi_replacement_condition to predicate ordinary phi nodes.
13943         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
13944         delete call of find_phi_replacement_condition and invoke
13945         predicate_scalar_phi with two arguments.
13946         (insert_gimplified_predicates): Add assert that non-predicated block
13947         don't have statements to insert.
13948         (ifcvt_split_critical_edges): New function.
13949         (ifcvt_split_def_stmt): Likewise.
13950         (ifcvt_walk_pattern_tree): Likewise.
13951         (stmt_is_root_of_bool_pattern): Likewise.
13952         (ifcvt_repair_bool_pattern): Likewise.
13953         (ifcvt_local_dce): Likewise.
13954         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
13955         is copy of inner or outer loop force_vectorize field, invoke
13956         ifcvt_split_critical_edges, ifcvt_local_dce and
13957         ifcvt_repair_bool_pattern for aggressive if-conversion.
13959 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
13961         * config/aarch64/aarch64.md: Include xgene1.md.
13962         * config/aarch64/xgene1.md: New file.
13964 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13966         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
13967         xgene1 (APM XGene-1) core definition.
13968         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
13969         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
13970         * doc/invoke.texi: Document -mcpu=xgene1.
13972 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13974         * dojump.h: New header file.
13975         * explow.h: Likewise.
13976         * expr.h: Remove includes.
13977         Move expmed.c prototypes to expmed.h.
13978         Move dojump.c prototypes to dojump.h.
13979         Move alias.c prototypes to alias.h.
13980         Move explow.c prototypes to explow.h.
13981         Move calls.c prototypes to calls.h.
13982         Move emit-rtl.c prototypes to emit-rtl.h.
13983         Move varasm.c prototypes to varasm.h.
13984         Move stmt.c prototypes to stmt.h.
13985         (saved_pending_stack_adjust): Move to dojump.h.
13986         (adjust_address): Move to explow.h.
13987         (adjust_address_nv): Move to emit-rtl.h.
13988         (adjust_bitfield_address): Likewise.
13989         (adjust_bitfield_address_size): Likewise.
13990         (adjust_bitfield_address_nv): Likewise.
13991         (adjust_automodify_address_nv): Likewise.
13992         * explow.c (expr_size): Move to expr.c.
13993         (int_expr_size): Likewise.
13994         (tree_expr_size): Likewise.
13995         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
13996         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
13997         * genemit.c (main): Generate includes statistics.h, real.h,
13998         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
13999         stmt.h.
14000         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
14001         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
14002         explow.h, emit-rtl.h, stmt.h.
14003         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
14004         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
14005         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
14006         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
14007         emit-rtl.h, varasm.h, stmt.h.
14008         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
14009         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
14010         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
14011         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
14012         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
14013         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
14014         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
14015         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
14016         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
14017         tm.h tree.h varasm.h vec.h wide-int.h.
14018         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14019         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
14020         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
14021         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
14022         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
14023         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
14024         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
14025         * loop-iv.c: Likewise.
14026         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
14027         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
14028         statistics.h stmt.h tree.h varasm.h wide-int.h.
14029         * lra-constraints.c: Likewise.
14030         * lra-eliminations.c: Likewise.
14031         * lra-lives.c: Likewise.
14032         * lra-remat.c: Likewise.
14033         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14034         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
14035         statistics.h stmt.h tree.h varasm.h wide-int.h.
14036         * hw-doloop.c: Likewise.
14037         * ira-color.c: Likewise.
14038         * ira-emit.c: Likewise.
14039         * loop-doloop.c: Likewise.
14040         * loop-invariant.c: Likewise.
14041         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14042         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
14043         statistics.h stmt.h tree.h varasm.h wide-int.h.
14044         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
14045         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
14046         statistics.h stmt.h tree.h varasm.h wide-int.h.
14047         * combine-stack-adj.c: Likewise.
14048         * cse.c: Likewise.
14049         * ddg.c: Likewise.
14050         * ifcvt.c: Likewise.
14051         * ira-costs.c: Likewise.
14052         * jump.c: Likewise.
14053         * lra-coalesce.c: Likewise.
14054         * lra-spills.c: Likewise.
14055         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14056         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
14057         stmt.h varasm.h wide-int.h.
14058         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14059         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
14060         varasm.h.
14061         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
14062         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
14063         statistics.h stmt.h varasm.h wide-int.h.
14064         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
14065         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
14066         varasm.h wide-int.h.
14067         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
14068         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14069         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
14070         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
14071         statistics.h stmt.h.
14072         * config/tilepro/tilepro.c: Likewise.
14073         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
14074         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
14075         * config/pdp11/pdp11.c: Likewise.
14076         * config/xtensa/xtensa.c: Likewise.
14077         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
14078         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
14079         varasm.h.
14080         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14081         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
14082         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
14083         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14084         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
14085         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
14086         * rtl-chkp.c: Likewise.
14087         * tree-chkp-opt.c: Likewise.
14088         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
14089         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
14090         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
14091         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14092         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
14093         statistics.h stmt.h.
14094         * tree-vect-data-refs.c: Likewise.
14095         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
14096         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14097         rtl.h statistics.h stmt.h varasm.h.
14098         * internal-fn.c: Likewise.
14099         * ipa-icf-gimple.c: Likewise.
14100         * lto-section-out.c: Likewise.
14101         * tree-data-ref.c: Likewise.
14102         * tree-nested.c: Likewise.
14103         * tree-outof-ssa.c: Likewise.
14104         * tree-predcom.c: Likewise.
14105         * tree-pretty-print.c: Likewise.
14106         * tree-scalar-evolution.c: Likewise.
14107         * tree-ssa-strlen.c: Likewise.
14108         * tree-vect-loop.c: Likewise.
14109         * tree-vect-patterns.c: Likewise.
14110         * tree-vect-slp.c: Likewise.
14111         * tree-vect-stmts.c: Likewise.
14112         * tsan.c: Likewise.
14113         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14114         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
14115         stmt.h.
14116         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
14117         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14118         statistics.h stmt.h varasm.h.
14119         * loop-unroll.c: Likewise.
14120         * ubsan.c: Likewise.
14121         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
14122         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
14123         stmt.h varasm.h.
14124         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14125         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
14126         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
14127         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
14128         statistics.h stmt.h.
14129         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
14130         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
14131         statistics.h stmt.h varasm.h.
14132         * gimple-match-head.c: Likewise.
14133         * lto-cgraph.c: Likewise.
14134         * lto-section-in.c: Likewise.
14135         * lto-streamer-in.c: Likewise.
14136         * lto-streamer-out.c: Likewise.
14137         * tree-affine.c: Likewise.
14138         * tree-cfg.c: Likewise.
14139         * tree-cfgcleanup.c: Likewise.
14140         * tree-if-conv.c: Likewise.
14141         * tree-into-ssa.c: Likewise.
14142         * tree-ssa-alias.c: Likewise.
14143         * tree-ssa-copyrename.c: Likewise.
14144         * tree-ssa-dse.c: Likewise.
14145         * tree-ssa-forwprop.c: Likewise.
14146         * tree-ssa-live.c: Likewise.
14147         * tree-ssa-math-opts.c: Likewise.
14148         * tree-ssa-pre.c: Likewise.
14149         * tree-ssa-sccvn.c: Likewise.
14150         * tree-tailcall.c: Likewise.
14151         * tree-vect-generic.c: Likewise.
14152         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14153         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
14154         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14155         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
14156         * varasm.c: Likewise.
14157         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14158         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
14159         varasm.h.
14160         * init-regs.c: Likewise.
14161         * ira.c: Likewise.
14162         * omp-low.c: Likewise.
14163         * stack-ptr-mod.c: Likewise.
14164         * tree-ssa-reassoc.c: Likewise.
14165         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14166         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
14167         varasm.h.
14168         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14169         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
14170         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14171         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
14172         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14173         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
14174         * tree-ssa-phiopt.c: Likewise.
14175         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14176         fixed-value.h hashtab.h real.h statistics.h stmt.h.
14177         * config/fr30/fr30.c: Likewise.
14178         * config/frv/frv.c: Likewise.
14179         * expr.c: Likewise.
14180         * final.c: Likewise.
14181         * optabs.c: Likewise.
14182         * passes.c: Likewise.
14183         * simplify-rtx.c: Likewise.
14184         * stmt.c: Likewise.
14185         * toplev.c: Likewise.
14186         * var-tracking.c: Likewise.
14187         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14188         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14189         * lower-subreg.c: Likewise.
14190         * postreload-gcse.c: Likewise.
14191         * ree.c: Likewise.
14192         * reginfo.c: Likewise.
14193         * store-motion.c: Likewise.
14194         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14195         fixed-value.h hashtab.h real.h stmt.h varasm.h.
14196         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14197         fixed-value.h hashtab.h statistics.h stmt.h.
14198         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14199         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
14200         * except.c: Likewise.
14201         * explow.c: Likewise.
14202         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14203         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
14204         varasm.h.
14205         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14206         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
14207         * tree-ssa-structalias.c: Likewise.
14208         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14209         fixed-value.h insn-config.h real.h statistics.h.
14210         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14211         fixed-value.h insn-config.h real.h statistics.h stmt.h.
14212         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14213         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
14214         * cfgbuild.c: Likewise.
14215         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14216         fixed-value.h real.h rtl.h statistics.h stmt.h.
14217         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14218         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14219         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14220         fixed-value.h real.h statistics.h stmt.h.
14221         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14222         fixed-value.h real.h statistics.h stmt.h varasm.h.
14223         * cprop.c: Likewise.
14224         * modulo-sched.c: Likewise.
14225         * postreload.c: Likewise.
14226         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
14227         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
14228         statistics.h stmt.h varasm.h.
14229         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
14230         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14231         rtl.h statistics.h stmt.h varasm.h.
14232         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
14233         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
14234         varasm.h.
14235         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
14236         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
14237         varasm.h.
14238         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
14239         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
14240         varasm.h.
14241         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
14242         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14243         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14244         function.h real.h statistics.h stmt.h varasm.h.
14245         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14246         insn-config.h real.h statistics.h stmt.h.
14247         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14248         statistics.h stmt.h.
14249         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
14250         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
14251         statistics.h stmt.h varasm.h.
14252         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
14253         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
14254         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14255         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
14256         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
14257         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
14258         statistics.h stmt.h varasm.h.
14259         * ipa-polymorphic-call.c: Likewise.
14260         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
14261         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14262         statistics.h stmt.h.
14263         * config/c6x/c6x.c: Likewise.
14264         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
14265         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14266         statistics.h stmt.h varasm.h.
14267         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
14268         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
14269         stmt.h varasm.h.
14270         * ipa-split.c: Likewise.
14271         * tree-eh.c: Likewise.
14272         * tree-ssa-dce.c: Likewise.
14273         * tree-ssa-loop-niter.c: Likewise.
14274         * tree-vrp.c: Likewise.
14275         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
14276         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
14277         stmt.h.
14278         * config/nds32/nds32-fp-as-gp.c: Likewise.
14279         * config/nds32/nds32-intrinsic.c: Likewise.
14280         * config/nds32/nds32-isr.c: Likewise.
14281         * config/nds32/nds32-md-auxiliary.c: Likewise.
14282         * config/nds32/nds32-memory-manipulation.c: Likewise.
14283         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14284         * config/nds32/nds32-predicates.c: Likewise.
14285         * config/nds32/nds32.c: Likewise.
14286         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
14287         fixed-value.h hashtab.h real.h statistics.h.
14288         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
14289         fixed-value.h hashtab.h real.h statistics.h stmt.h.
14290         * config/arm/arm.c: Likewise.
14291         * config/avr/avr.c: Likewise.
14292         * config/bfin/bfin.c: Likewise.
14293         * config/h8300/h8300.c: Likewise.
14294         * config/i386/i386.c: Likewise.
14295         * config/ia64/ia64.c: Likewise.
14296         * config/iq2000/iq2000.c: Likewise.
14297         * config/m32c/m32c.c: Likewise.
14298         * config/m32r/m32r.c: Likewise.
14299         * config/m68k/m68k.c: Likewise.
14300         * config/mcore/mcore.c: Likewise.
14301         * config/mep/mep.c: Likewise.
14302         * config/mips/mips.c: Likewise.
14303         * config/mn10300/mn10300.c: Likewise.
14304         * config/moxie/moxie.c: Likewise.
14305         * config/pa/pa.c: Likewise.
14306         * config/rl78/rl78.c: Likewise.
14307         * config/rx/rx.c: Likewise.
14308         * config/s390/s390.c: Likewise.
14309         * config/sh/sh.c: Likewise.
14310         * config/sparc/sparc.c: Likewise.
14311         * config/spu/spu.c: Likewise.
14312         * config/stormy16/stormy16.c: Likewise.
14313         * config/v850/v850.c: Likewise.
14314         * config/vax/vax.c: Likewise.
14315         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
14316         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14317         * config/msp430/msp430.c: Likewise.
14318         * predict.c: Likewise.
14319         * value-prof.c: Likewise.
14320         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
14321         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
14322         * config/microblaze/microblaze.c: Likewise.
14323         * config/nios2/nios2.c: Likewise.
14324         * config/rs6000/rs6000.c: Likewise.
14325         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14326         insn-config.h real.h rtl.h statistics.h stmt.h.
14327         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14328         insn-config.h real.h statistics.h stmt.h.
14329         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
14330         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
14331         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
14332         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14333         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
14334         fixed-value.h real.h statistics.h stmt.h.
14335         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
14336         fixed-value.h statistics.h stmt.h.
14337         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
14338         stmt.h.
14340 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
14342         * gengtype.c (create_user_defined_type): Workaround
14343         -Wmaybe-uninitialized false positives.
14344         * cse.c (fold_rtx): Likewise.
14345         * loop-invariant.c (gain_for_invariant): Likewise.
14347 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14349         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
14350         set the memory attributes in all cases but clear MEM_EXPR if need be.
14352 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
14354         PR tree-optimization/64434
14355         * cfgexpand.c (reorder_operands): New function.
14356         (expand_gimple_basic_block): Insert call of reorder_operands if
14357         optimized is true.
14359 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
14361         * config/mips/micromips.md (*swp): Remove explicit parallel.
14362         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
14363         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
14364         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
14365         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
14366         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
14367         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
14368         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
14369         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
14370         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
14371         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
14372         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
14373         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
14374         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
14375         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
14376         (mips_wrdsp): Likewise.
14377         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
14378         parallel.
14379         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
14380         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
14381         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
14382         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
14383         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
14384         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
14385         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
14386         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
14387         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
14389 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
14391         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
14392         (mips_print_operand): Support 'y' to print exact log2 in decimal
14393         of a const_int.
14394         * config/mips/mips.h (ISA_HAS_LSA): New define.
14395         (ISA_HAS_DLSA): Likewise.
14396         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
14397         * config/mips/predicates.md (const_immlsa_operand): New predicate.
14399 2015-01-15  Martin Liska  <mliska@suse.cz>
14401         PR target/64377
14402         * optc-save-gen.awk: Add support for array types.
14404 2015-01-15  Richard Biener  <rguenther@suse.de>
14406         PR middle-end/64365
14407         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
14408         for MEM_REF access functions with the same base can never partially
14409         overlap.
14411 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
14413         * common.opt: New option -fstack-protector-explicit.
14414         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
14415         (stack_protect_decl_phase): Handle stack_protect attribute for
14416         explicit stack protection requests.
14417         (expand_used_vars): Similarly.
14418         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
14419         * doc/extend.texi: Add documentation for "stack_protect" attribute.
14420         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
14422 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
14424         PR target/53988
14425         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
14426         reg-reg copies.
14427         (sh_extending_set_of_reg): New struct.
14428         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
14429         sh_remove_reg_dead_or_unused_notes): New Declarations.
14430         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
14431         sh_find_extending_set_of_reg, sh_split_tst_subregs,
14432         sh_extending_set_of_reg::use_as_extended_reg): New functions.
14433         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
14434         convert to insn_and_split and use new function sh_split_tst_subregs.
14436 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
14438         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
14439         option.
14440         (Optimization Options): Move -fuse-ld documentation to...
14441         (Link Options): ...here.
14443 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
14445         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
14446         offsets.
14447         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
14448         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
14449         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
14450         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
14451         instead of ZR for the memory operand of LL/SC.
14452         (compare_and_swap_12, sync_add<mode>): Likewise.
14453         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
14454         (sync_new_<optab>_12, sync_nand_12): Likewise.
14455         (sync_old_nand_12, sync_new_nand_12): Likewise.
14456         (sync_sub<mode>, sync_old_add<mode>): Likewise.
14457         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
14458         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
14459         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
14460         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
14461         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
14462         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
14463         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
14464         * doc/md.texi (ZC): Update description.
14466 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
14468         * builtins.c (expand_builtin_atomic_exchange): Remove error when
14469         memory model is CONSUME.
14470         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
14471         expand_builtin_atomic_store): Change invalid memory model errors to
14472         warnings.
14473         (expand_builtin_atomic_clear): Change invalid model errors to warnings
14474         and issue warning for CONSUME.
14476 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
14478         * lto-cgraph: Update function comments for
14479         lto_symtab_encoder_encode_*.
14481 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
14483         * Makefile.in (site.exp): Do not set ENABLE_LTO.
14485 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
14487         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
14488         * lto-cgraph.c (select_what_to_stream): Remove argument, use
14489         lto_stream_offload_p instead.
14490         * lto-streamer.h (select_what_to_stream): Remove argument.
14491         * passes.c (ipa_write_summaries): Likewise.
14492         * tree-pass.h (ipa_write_summaries): Likewise.
14494 2015-01-14  Richard Biener  <rguenther@suse.de>
14496         PR tree-optimization/59354
14497         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
14498         groups larger than the slp group size as having gaps.
14500 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
14502         PR middle-end/59448
14503         * builtins.c (get_memmodel): Promote consume to acquire always.
14505 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
14507         PR target/64386
14508         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
14509         V32HImode.
14511 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
14513         PR target/64393
14514         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
14515         Enable AVX512BW.
14516         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
14517         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
14518         AVX512VBMI, as it implies AVX512BW.
14520 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
14522         PR target/64387
14523         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
14524         (vec_unpacks_hi_v16sf): Ditto.
14526 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14528         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
14529         is not available.
14531 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14533         * doc/invoke.texi (mapcs): Mention deprecation.
14534         (mapcs-frame): Likewise.
14536 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14538         PR target/64453
14539         * config/arm/arm.c (callee_saved_reg_p): Define.
14540         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
14541         register is callee saved instead of !call_used_regs[reg].
14542         (thumb1_compute_save_reg_mask): Likewise.
14544 2015-01-14  Hale Wang  <hale.wang@arm.com>
14546         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
14547         Cortex-M7.
14549 2015-01-14  Richard Biener  <rguenther@suse.de>
14551         PR lto/64415
14552         * tree-inline.c (insert_debug_decl_map): Check destination
14553         function MAY_HAVE_DEBUG_STMTS.
14554         (insert_init_debug_bind): Likewise.
14555         (insert_init_stmt): Remove redundant check.
14556         (remap_gimple_stmt): Drop debug stmts if the destination
14557         function has var-tracking assignments disabled.
14559 2015-01-14  Martin Liska  <mliska@suse.cz>
14561         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
14562         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
14564 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14566         PR target/64460
14567         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
14568         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
14570 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
14572         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
14573         level from an ARCH; do not inject the default.
14574         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
14575         MIPS_ISA_LEVEL_SPEC.
14576         (MIPS_ISA_NAN2008_SPEC): Update comment.
14577         (BASE_DRIVER_SELF_SPECS): Likewise.
14578         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
14579         MIPS_DEFAULT_ISA_LEVEL_SPEC.
14580         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
14581         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
14582         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
14584 2015-01-14  Richard Biener  <rguenther@suse.de>
14586         PR tree-optimization/64493
14587         PR tree-optimization/64495
14588         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
14589         assign the proper vectorized PHI to the inner loop exit PHIs.
14591 2015-01-14  Joey Ye  <joey.ye@arm.com>
14593         * config/arm/arm.c (arm_compute_save_reg_mask):
14594         Do not save lr in case of tail call.
14595         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
14597 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
14599         * tree-vrp.c (check_array_ref): Emit more warnings
14600         for warn_array_bounds >= 2.
14601         * common.opt: New option -Warray-bounds=.
14602         * doc/invoke.texi: Document -Warray-bounds=.
14604 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
14606         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
14607         (mforbid-fp-as-gp): Remove.
14608         (mex9): Remove.
14609         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
14610         (nds32_symbol_load_store_p): Remove.
14611         (nds32_fp_as_gp_check_available): Clean up implementation.
14612         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
14613         cases.
14614         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
14615         fp-as-gp and ex9 cases.
14617 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
14619         * tree-profile.c (init_ic_make_global_vars): Drop workaround
14620         for bintuils bug 14342.
14621         (init_ic_make_global_vars): Likewise.
14622         (gimple_init_edge_profiler): Likewise.
14623         (gimple_gen_ic_func_profiler): Likewise.
14625 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14627         * ipa-inline.c (inline_small_functions): Swap the operands in
14628         enum.
14630 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
14632         PR ipa/64481
14633         * ipa-inline-analysis.c (node_growth_cache): Remove.
14634         (initialize_growth_caches): Do not initialize it.
14635         (free_growth_caches): Do not free it.
14636         (do_estimate_growth): Rename to ...
14637         (estimate_growth): ... this one; drop growth cache code.
14638         (growth_likely_positive): Always go the heuristics way.
14639         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
14640         (reset_edge_caches): Do not reset node growth.
14641         (heap_edge_removal_hook): Do not maintain cache.
14642         (inline_small_functions): Likewise; strenghten sanity check.
14643         (ipa_inline): Do not maintain caches.
14644         * ipa-inline.h (node_growth_cache): Remove.
14645         (do_estimate_growth): Remove to ...
14646         (estimate_growth): this one; remove inline version.
14647         (reset_node_growth_cache): Remove.
14649 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
14651         PR ipa/64565
14652         * ipa-inline.c (inline_small_functions): Update callee keys after
14653         resolving speculation
14654         (inline_small_functions): Always check monotonicity of the queue.
14656 2015-01-13  Marek Polacek  <polacek@redhat.com>
14658         PR middle-end/64391
14659         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
14661 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
14663         PR rtl-optimization/64286
14664         * ree.c (combine_reaching_defs): Move part of comment earlier,
14665         remove !SCALAR_INT_MODE_P check.
14666         (add_removable_extension): Don't add vector mode
14667         extensions if all uses of the source register aren't the same
14668         vector extensions.
14670 2015-01-13  Renlin Li  <renlin.li@arm.com>
14672         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
14673         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
14675 2015-01-13  Martin Liska  <mliska@suse.cz>
14677         * ipa-icf.c (sem_function::equals_private): Call new functions
14678         cl_target_option_print_diff and cl_optimization_print_diff.
14679         * optc-save-gen.awk (cl_target_option_print_diff): New function.
14680         (cl_optimization_print_diff): Likewise.
14681         * opth-gen.awk: Likewise.
14683 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
14685         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
14686         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
14687         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
14688         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
14689         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
14690         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
14692 2015-01-13  Andrew Pinski  <apinski@cavium.com>
14694         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
14695         instead of src mode.
14697 2015-01-13  Richard Biener  <rguenther@suse.de>
14699         PR lto/64373
14700         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
14701         DECL_CONTEXT.
14703 2015-01-13  Andrew Pinski  <apinski@cavium.com>
14705         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
14706         volatile mems.
14707         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
14709 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
14711         PR middle-end/63974
14712         * cfgexpand.c (expand_computed_goto): Don't call
14713         convert_memory_address here.
14715 2015-01-13  Richard Biener  <rguenther@suse.de>
14717         PR tree-optimization/64406
14718         * tree-loop-distibution.c (pass_loop_distribution::execute):
14719         Reset the SCEV hashtable if we distributed anything.
14721 2015-01-13  Richard Biener  <rguenther@suse.de>
14723         PR tree-optimization/64404
14724         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
14725         SLP types for CSEd loads.
14727 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14729         PR tree-optimization/64436
14730         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
14731         merge of two symbolic numbers for a bitwise OR to ...
14732         (perform_symbolic_merge): This. Also fix computation of the range and
14733         end of the symbolic number corresponding to the result of a bitwise OR.
14735 2015-01-13  Richard Biener  <rguenther@suse.de>
14737         PR tree-optimization/64568
14738         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
14739         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
14741 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
14743         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
14744         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
14746 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
14748         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
14749         target-specific symbol_ref flag.
14750         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
14751         resides in rodata section.
14752         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
14753         (nds32_encode_section_info): New function.
14755 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
14757         * config/nds32/nds32.md (call): Use pseudo instruction bal which
14758         clobbers TA_REGNUM if large code model is specified.
14759         (call_register): Likewise.
14760         (call_immediate): Likewise.
14761         (call_value): Likewise.
14762         (call_value_register): Likewise.
14763         (call_value_immediate): Likewise.
14765 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
14767         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
14768         (TARGET_CMODEL_MEDIUM): New macro.
14769         (TARGET_CMODEL_LARGE): New macro.
14770         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
14771         code model setting in assembly code.
14773 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
14775         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
14776         Remove MASK_GP_DIRECT flag.
14777         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
14778         one of the multilib default options.
14779         * config/nds32/nds32.opt (mgp-direct): Remove.
14780         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
14781         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
14783 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
14785         * config/nds32/nds32.opt (mcmodel): Add new option.
14786         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
14787         to describe code model.
14789 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
14791         PR target/64479
14792         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
14794 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
14796         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
14797         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
14798         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
14799         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
14800         __builtin_sh_set_fpscr.
14802 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
14804         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
14805         after a funtion name just to indicate it is a function.
14806         ([-fsanitize-undefined-trap-on-error]): Likewise.
14807         ([-fdbg-cnt=]): Likewise.
14808         ([-mmemcpy]): Likewise.
14809         ([-mflush-func]): Likewise.
14810         ([-msynci]): Likewise.
14812 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
14814         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
14815         example.
14817 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
14819         PR tree-optimization/64563
14820         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
14821         instead of != VR_VARYING.
14823         PR target/64513
14824         * config/i386/i386.c (ix86_expand_prologue): Add
14825         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
14827         PR tree-optimization/64454
14828         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
14829         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
14830         for signed or [0, op1 - 1] for unsigned modulo.
14831         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
14832         even if op1 does not satisfy integer_pow2p.
14834         PR other/64370
14835         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
14837 2015-01-12  Jeff Law  <law@redhat.com>
14839         PR target/64461
14840         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
14841         (trunchiqi2, truncsihi2): Similarly.
14843         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
14844         rather than calling F.
14846 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14848         * tsan.c (instrument_expr): Use force_gimple_operand.
14849         Use may_be_nonaddressable_p instead of is_gimple_addressable.
14851 2015-01-12  Richard Biener  <rguenther@suse.de>
14853         PR tree-optimization/64530
14854         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
14855         back dr1.
14857 2015-01-12  Richard Biener  <rguenther@suse.de>
14859         PR middle-end/64357
14860         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
14861         latches properly.
14863 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14865         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
14866         Cortex-A17 tuning parameters.
14867         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
14869 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14871         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
14872         * config/arm/arm.c (arm_macro_fusion_p): New function.
14873         (arm_macro_fusion_pair_p): Likewise.
14874         (TARGET_SCHED_MACRO_FUSION_P): Define.
14875         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
14876         (ARM_FUSE_NOTHING): Likewise.
14877         (ARM_FUSE_MOVW_MOVT): Likewise.
14878         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
14879         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
14880         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
14881         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
14882         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
14883         arm_cortex_a5_tune): Specify fuseable_ops value.
14885 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
14887         PR bootstrap/64561
14888         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
14889         test for PIE with copy reloc.
14890         * configure: Regenerated.
14892 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14894         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
14895         in gen_rtx_REG.
14896         (arm_tls_descseq_addr): Likewise.
14897         (arm_gen_movmemqi): Likewise.
14898         (arm_expand_epilogue_apcs_frame): Likewise.
14899         (arm_expand_epilogue): Likewise.
14900         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
14901         in gen_rtx_REG.
14903 2015-01-12  Martin Liska  <mliska@suse.cz>
14905         PR ipa/64550
14906         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
14907         volatility for correct operands.
14909 2015-01-12  Martin Liska  <mliska@suse.cz>
14911         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
14912         that a function is not leaf.
14913         (sem_function::compare_polymorphic_p): Likewise.
14915 2015-01-12  Martin Liska  <mliska@suse.cz>
14917         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
14918         that a function is not leaf.
14919         (sem_function::compare_polymorphic_p): Likewise.
14921 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14923         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
14924         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
14925         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
14926         fold-const.h, tree-check.h.
14928 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
14930         PR ipa/63967
14931         PR ipa/64425
14932         * ipa-inline.c (compute_uninlined_call_time,
14933         compute_inlined_call_time): Use counts for extra precision when
14934         needed possible.
14935         (big_speedup_p): Fix formating.
14936         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
14937         (relative_time_benefit): Remove.
14938         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
14939         merge guessed and read profile paths.
14940         (inline_small_functions): Count only !optimize_size functions into
14941         initial size; be more lax about sanity check when profile is used;
14942         be sure to update inlined function profile when profile is read.
14944 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
14946         PR ipa/63470
14947         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
14948         cost when edge becomes direct.
14949         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
14950         is resolved or when introducing new speculation.
14952 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
14954         PR ipa/64551
14955         PR ipa/64552
14956         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
14957         '||' to fix typo issue.
14959         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
14960         accept and return NULL.
14962 2015-01-12  Martin Liska  <mliska@suse.cz>
14964         * cgraph.c (cgraph_edge::remove_callee): Move function to header
14965         file for being inlined.
14966         (cgraph_set_edge_callee): Delete.
14967         (cgraph_edge::redirect_callee): Move function to header file
14968         for being inlined.
14969         (cgraph_edge::make_direct): Use new function.
14970         (cgraph_edge::dump_edge_flags): New function created from
14971         static dump_edge_flags function.
14972         (cgraph_node::dump): Use new function.
14973         (cgraph_edge::verify_count_and_frequency): New function created
14974         from verify_edge_count_and_frequency.
14975         (cgraph_edge::verify_corresponds_to_fndecl): New function created
14976         from verify_edge_corresponds_to_fndecl.
14977         (verify_edge_corresponds_to_fndecl): Delete.
14978         (cgraph_node::verify_node): Use new function.
14979         * cgraph.h (cgraph_edge::set_callee): New function.
14980         (cgraph_edge::dump_edge_flags): Likewise.
14981         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
14983 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
14985         * ipa-utils.c (estimate_function_body_sizes): Do not
14986         free node params when called late with early=true.
14988 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
14990         * doc/md.texi (Instruction Patterns): Rewrite text for
14991         clarity.
14992         (Example): Likewise.
14994 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
14996         * doc/invoke.texi (Option Summary): Break long lines.
14997         [(-fdiagnostics-color)]: Put long literal in @smallexample
14998         instead of inline.
14999         [(-fsanitize-recover)]: Likewise.
15000         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
15001         [(-ffast-math)]: Likewise.
15002         [(--param max-inline-insns-recursive)]: Likewise.
15003         [(--param max-inline-recursive-depth)]: Likewise.
15004         [(-mno-text-section-literals)]: Likewise.
15006 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15008         * doc/install.texi: Update for libgomp being renamed from "GNU
15009         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
15010         Runtime Library".
15011         * doc/sourcebuild.texi: Likewise.
15013 2015-01-10  Anthony Green  <green@moxielogic.com>
15015         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
15016         mul.x availability for moxiebox configuration.
15018 2015-01-09  Anthony Green  <green@moxielogic.com>
15020         * config/moxie/moxie.md: Tabify assembly output.
15022 2015-01-09  Anthony Green  <green@moxielogic.com>
15024         * config/moxie/moxie.md (CC_REG): Correct register definition.
15026 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
15028         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
15029         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
15030         of log files.
15032 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
15034         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
15036 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
15037             Jakub Jelinek  <jakub@redhat.com>
15039         PR middle-end/64412
15040         * lto-streamer.h (lto_stream_offload_p): New declaration.
15041         * lto-streamer.c (lto_stream_offload_p): New variable.
15042         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
15043         at the same time as section_name_prefix.
15044         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
15045         if lto_stream_offload_p.
15046         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
15047         stream TREE_TARGET_OPTION if lto_stream_offload_p.
15048         (write_ts_function_decl_tree_pointers): Don't
15049         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
15050         * tree-streamer-in.c (unpack_value_fields): Don't stream
15051         TREE_TARGET_OPTION in if ACCEL_COMPILER.
15052         (lto_input_ts_function_decl_tree_pointers): Don't stream
15053         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
15054         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
15055         instead of section_name_prefix string comparisons.
15057 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
15059         PR rtl-optimization/64536
15060         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
15061         tablejumps.
15063 2015-01-09  Michael Collison  <michael.collison@linaro.org>
15065         PR tree-optimization/64322
15066         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
15067         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
15069 2015-01-09  Tom de Vries  <tom@codesourcery.com>
15071         PR rtl-optimization/64539
15072         * regcprop.c (kill_clobbered_values): Factor out of ...
15073         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
15074         instead of note_stores with kill_clobbered_value.
15076 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
15078          * ginclude/unwind-arm-common.h: Revert previous commit.
15080 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
15082         * config.gcc (arm*-*-freebsd*): New configuration.
15083         * config/arm/freebsd.h: New file.
15084         * config.host: Add extra components for arm*-*-freebsd*.
15085         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
15086         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
15088 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15090         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
15091         for -mcpu=e6500.
15092         * config/rs6000/t-rtems: Add e6500 multilibs.
15094 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15096         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
15097         MPC8540.
15099 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15101         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
15102         MULTILIB_EXCEPTIONS.
15104 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15106         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
15107         MULTILIB_EXCEPTIONS.
15109 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15111         * config/arm/t-rtems-eabi: Rename to...
15112         * config/arm/t-rtems: ...this.
15113         * config/arm/rtems-eabi.h: Rename to...
15114         * config/arm/rtems.h: ...this.
15115         * config.gcc (arm*-*-rtems*): Reflect changes above.
15117 2015-01-09  Richard Biener  <rguenther@suse.de>
15119         PR tree-optimization/64410
15120         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
15121         on the LHS.
15122         (execute_update_addresses_taken): Deal with that.
15123         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
15124         loads/stores for complex variables.
15126 2015-01-09  Martin Liska  <mliska@suse.cz>
15128         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
15129         name comparison.
15130         (func_checker::compare_memory_operand): New function.
15131         (func_checker::compare_operand): Split case to newly
15132         added functions.
15133         (func_checker::compare_cst_or_decl): New function.
15134         (func_checker::compare_gimple_call): Identify
15135         memory operands.
15136         (func_checker::compare_gimple_assign): Likewise.
15137         * ipa-icf-gimple.h: New function.
15139 2015-01-09  Martin Liska  <mliska@suse.cz>
15141         PR ipa/64503
15142         * sreal.c (sreal::dump): Change unsigned format to signed for
15143         m_exp value.
15144         (sreal::to_double): Replace exp2 with scalbln.
15146 2015-01-09  Martin Liska  <mliska@suse.cz>
15148         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
15149         * ipa-icf.c (sem_function::equals_private): Add support for target and
15150         (sem_item_optimizer::merge_classes): Remove redundant function
15151         optimization flags comparison.
15152         * tree.h (target_opts_for_fn): New function.
15154 2015-01-09  Tom de Vries  <tom@codesourcery.com>
15156         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
15158 2015-01-09  Kito Cheng  <kito@0xlab.org>
15160         PR rtl-optimization/64348
15161         * lra-constraints.c (split_reg): Fix caller-save store/restore
15162         instruction generation.
15164 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
15166         PR gcov-profile/61790
15167         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
15168         long long.  Fallback to int64_t if host doesn't have long long and
15169         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
15171 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
15173         PR tree-optimization/63989
15174         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
15175         from 1000 to 10000.
15176         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
15177         (get_stridx): If we don't have a record for certain SSA_NAME,
15178         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
15179         constant offset, call get_stridx_plus_constant.
15180         (get_stridx_plus_constant): New function.
15181         (zero_length_string): Don't use get_stridx here.
15183         PR target/55023
15184         PR middle-end/64388
15185         * dse.c (struct insn_info): Mention frame_read set also
15186         before reload for tail calls on some targets.
15187         (scan_insn): Revert 2014-12-22 change.  Set frame_read
15188         also before reload for tail calls if
15189         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
15190         instead of add_non_frame_wild_read for non-const/memset
15191         tail calls after reload.
15193 2015-01-08  Jason Merrill  <jason@redhat.com>
15195         * ubsan.c (do_ubsan_in_current_function): New.
15196         (pass_ubsan::gate): Use it.
15197         * ubsan.h: Declare it.
15198         * convert.c (convert_to_integer): Use it.
15200 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
15202         PR target/64338
15203         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
15204         compare_code when it is unconditionally overwritten afterwards.
15205         Use ix86_reverse_condition instead of reverse_condition.  Don't
15206         change code if *reverse_condition* returned UNKNOWN and don't
15207         swap ct/cf and negate diff in that case.
15209 2015-01-08  Mike Stump  <mikestump@comcast.net>
15211         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
15212         (pass_tsan_O0::gate): Likewise.
15213         * extend.texi (Function Attributes): Add no_sanitize_thread
15214         documentation.
15216 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15218         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
15219         for registering builtins.
15220         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
15221         add -fopenmp to the argv_obstack used when invoking
15222         compile_for_target.
15224         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
15225         add "-m32" or "-m64" to argv_obstack.
15226         (generate_host_descr_file): Likewise, when invoking host_compiler.
15227         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
15228         ld.
15230 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
15232         * config/sh/sh-mem.cc: Use constant as second operand when emitting
15233         tstsi_t insns.
15235 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
15237         PR target/55212
15238         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
15239         constant load if constant operand fits into I08.
15241 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
15243         PR sanitizer/64336
15244         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
15245         and TREE_THIS_VOLATILE for MEM_REFs.
15246         (build5_stat): Fix up initialization of TREE_READONLY and
15247         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
15249 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15251         PR target/64533
15252         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
15253         of r for the second alternative of the destination operand.
15255 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
15257         PR target/36557
15258         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
15260 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15262         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
15263         keywords.
15264         ([-fivar-visibility], [-fvisibility]): Likewise.
15266 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15268         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
15269         the file where @code, @command, etc is more appropriate.
15271 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
15273         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
15274         of -mrecip= documentation.
15276 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15278         PR target/64505
15279         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
15280         correct reload handler if -m32 -mpowerpc64 is used.
15282 2015-01-06  Tom de Vries  <tom@codesourcery.com>
15284         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
15286 2015-01-08  Christian Bruel  <christian.bruel@st.com>
15288         PR target/64507
15289         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
15291 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15293         PR tree-optimization/63259
15294         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
15295         if optab exists for 16bit byteswap.
15297 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
15299         * opts.c (common_handle_option): Add support for
15300         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
15301         * doc/invoke.texi: Document -fno-sanitize=all,
15302         -f{,no-}sanitize-recover=all.  Document that
15303         -fsanitize=float-cast-overflow is not enabled
15304         by -fsanitize=undefined.  Fix up documentation
15305         of -f{,no-}sanitize-recover.
15307 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15309         * config.gcc: Add Visium support.
15310         * configure.ac: Likewise.
15311         * configure: Regenerate.
15312         * doc/extend.texi (interrupt attribute): Add Visium.
15313         * doc/invoke.texi: Document Visium options.
15314         * doc/install.texi: Document Visium target.
15315         * doc/md.texi: Document Visium constraints.
15316         * common/config/visium: New directory.
15317         * config/visium: Likewise.
15319 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
15321         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
15322         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
15324 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
15326         * combine.c (combine_validate_cost): Do not count the cost of a
15327         split I2 twice.  Do not display it twice in the dump, either.
15329 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15331         Revert parts of r219199.
15332         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
15333         <inttypes.h>.
15334         ([-Wtraditional]): Restore markup on <limits.h>.
15336 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
15338         PR c++/31397
15339         * doc/invoke.texi: Document -Wsuggest-override.
15341 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
15343         PR rtl-optimization/64287
15344         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
15345         (process_options): Disable flag_ipa_ra if profiling.
15347 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15349         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
15351 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
15353         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
15354         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
15355         put under #if TARGET_LOOPS guard.
15357 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
15359         * config/i386/i386.c (output_387_binary_op): Use std::swap.
15361 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
15363         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
15364         * rtl.h (refers_to_regno_p): Add overload.
15365         * cse.c: Use it.
15366         * bt-load.c: Likewise.
15367         * combine.c: Likewise.
15368         * df-scan.c: Likewise.
15369         * sched-deps.c: Likewise.
15370         * config/s390/s390.c: Likewise.
15371         * config/m32r/m32r.c: Likewise.
15372         * config/rs6000/spe.md: Likewise.
15373         * config/rs6000/rs6000.c: Likewise.
15374         * config/pa/pa.c: Likewise.
15375         * config/stormy16/stormy16.c: Likewise.
15376         * config/cris/cris.c: Likewise.
15377         * config/arc/arc.md: Likewise.
15378         * config/arc/arc.c: Likewise.
15379         * config/sh/sh.md: Likewise.
15380         * config/sh/sh.c: Likewise.
15381         * config/frv/frv.c: Likewise.
15383 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15385         PR sanitizer/64265
15386         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
15387         call as cleanup of the whole body.
15388         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
15389         * tsan.c (replace_func_exit): New function.
15390         (instrument_func_exit): Moved earlier.
15391         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
15392         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
15393         been found.
15394         (tsan_pass): Don't call instrument_func_exit.
15395         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
15396         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
15397         inlining.
15399         PR sanitizer/64344
15400         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
15401         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
15402         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
15403         if the result is integer_zerop, return NULL_TREE.
15404         * convert.c (convert_to_integer): Pass expr as ARG.
15406         PR tree-optimization/64465
15407         * tree-inline.c (redirect_all_calls): During inlining
15408         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
15409         changed the stmt to a non-throwing call.
15411 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15413         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
15414         etc markup throughout the file.
15416 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15418         Enable experimental TSAN support for Ada.
15419         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
15421 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15423         PR tree-optimization/64494
15424         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
15425         clear SSA_NAME_ANTI_RANGE_P flag.
15427 2015-01-05  Marek Polacek  <polacek@redhat.com>
15429         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
15431 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15433         Update copyright years.
15435         * gcc.c (process_command): Update copyright notice dates.
15436         * gcov-dump.c: Ditto.
15437         * gcov.c: Ditto.
15438         * doc/cpp.texi: Bump @copying's copyright year.
15439         * doc/cppinternals.texi: Ditto.
15440         * doc/gcc.texi: Ditto.
15441         * doc/gccint.texi: Ditto.
15442         * doc/gcov.texi: Ditto.
15443         * doc/install.texi: Ditto.
15444         * doc/invoke.texi: Ditto.
15446         * auto-profile.c, auto-profile.h: Fix up Copyright line.
15448 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
15450         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
15451         verb tense, etc.
15452         ([-fvtable-verify], [-fvtv-debug]): Likewise.
15453         ([-Wabi]): Likewise.
15454         ([-fmessage-length]): Likewise.
15455         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
15456         ([-Wno-discarded-qualifiers]): Likewise.
15457         ([-Wnodiscarded-array-qualifiers]): Likewise.
15458         ([-Wno-virtual-move-assign]): Likewise.
15459         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
15460         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
15461         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
15462         ([-fsanitize-undefined-trap-on-error]): Likewise.
15463         ([-floop-interchange]): Likewise.
15464         ([-ftree-coalesce-inlined-vars]): Likewise.
15465         ([-fvect-cost-model]): Likewise.
15466         ([-flto]): Likewise.
15467         ([--param]): Likewise.
15468         (Spec Files): Likewise.
15469         ([-mstrict-align]): Likewise.
15470         ([-mfix-cortex-a53-835769]): Likewise.
15471         ([-march], [-mtune]): Likewise.
15472         ([-mpic-register]): Likewise.
15473         ([-munaligned-access]): Likewise.
15474         ([-msp8]): Likewise.
15475         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
15476         (AVR Built-in Macros): Likewise.
15477         ([-mpreferred-stack-boundary]): Likewise.
15478         ([-mtune-crtl]): Likewise.
15479         ([-mashf]): Likewise.
15480         ([-mmcu=]): Likewise.
15481         ([-minrt]): Likewise.
15482         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
15483         ([-mupper-regs]): Likewise.
15484         ([-matomic-model]): Likewise.
15485         ([-mdiv]): Likewise.
15486         ([-mzdcbranch]): Likewise.
15487         ([-mdisable-callt]): Likewise.
15488         ([-msoft-float]): Likewise.
15489         ([-m8byte-align]): Likewise.
15490         ([-fstack-reuse]): Likewise.
15492 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
15494         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
15495         Fix markup, light copy-editing.
15496         ([-fauto-profile]): Rewrite to fix formatting and content
15497         problems.
15499 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
15501         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
15502         Copy-edit description.
15503         ([-fisolate-erroneous-paths-attribute]): Likewise.
15504         * common.opt (fisolate-erroneous-paths-dereference):
15505         Copy-edit description.
15506         (fisolate-erroneous-paths-attribute): Likewise.
15508 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
15510         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
15511         tidy grammar.
15513 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
15515         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
15516         ([-fvtv-debug]): Likewise.
15517         ([-Wc++-compat]): Likewise.
15518         ([-Wc++11-compat]): Likewise.
15519         ([-Wc++14-compat]): Likewise.
15520         ([-Wno-sized-deallocation]): Likewise.
15521         ([-femit-class-debug-always]): Likewise.
15522         ([-femit-struct-debug-detailed]): Likewise.
15523         ([-fno-keep-inline-dllexport]): Likewise.
15524         ([-fira-algorithm]): Likewise.
15525         ([-fira-region]): Likewise.
15526         ([-flra-remat]): Likewise.
15527         ([-fipa-ra]): Likewise.
15528         ([-fhoist-adjacent-loads]): Likewise.
15529         ([-fisolate-erroneous-paths-dereference]): Likewise.
15530         ([-fisolate-erroneous-paths-attribute]): Likewise.
15531         ([-ftree-switch-conversion]): Likewise.
15532         ([-ftree-tail-merge]): Likewise.
15533         ([-ftree-loop-if-convert]): Likewise.
15534         ([-ftree-loop-if-convert-stores]): Likewise.
15535         ([-ftree-loop-distribution]): Likewise.
15536         ([-ftree-loop-distribute-patterns]): Likewise.
15537         ([-flto-compression-level]): Likewise.
15538         ([-flto-report]): Likewise.
15539         ([-flto-report-wpa]): Likewise.
15540         ([-fuse-linker-plugin]): Likewise.
15541         ([-mfix-cortex-a53-835769]): Likewise.
15542         ([-mno-fix-cortex-a53-835769]): Likewise.
15543         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
15544         explicit listing; add a note to the discussion indicating they
15545         exist.  Reorder table to group similar options.  Add missing
15546         @opindex entries.  Add @need commands throughout the table to
15547         allow it to be split across multiple pages.
15548         ([-m8bit-idiv]): Fix @opindex.
15549         ([-mavx256-split-unaligned-load]): Likewise.
15550         ([-mavx256-split-unaligned-store]): Likewise.
15551         ([-mstack-protector-guard]): Likewise.
15552         ([-mcpu=]): Likewise.
15553         ([-mcpu]): Likewise.
15554         ([-mpointer-size=]): Likewise.
15556 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
15558         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
15559         instead of `m' constraint.  Likewise for unnamed movb comparison
15560         patterns using reg_before_reload_operand predicate.
15561         * config/pa/predicates.md (reg_before_reload_operand): Tighten
15562         predicate to reject register index and LO_SUM DLT memory forms
15563         after reload.
15565 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
15567         * doc/invoke.texi (Option Summary): Fix spelling of
15568         -fdevirtualize-at-ltrans.
15569         ([-fdevirtualize]): Fix markup.
15570         ([-fdevirtualize-speculatively]): Fix typo.
15571         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
15572         implementor-speaky.
15573         * common.opt (fdevirtualize-at-ltrans): Likewise.
15574         * ipa-devirt.c: Fix typos in comments throughout the file.
15575         (ipa_devirt): Fix typos in format strings for dump output.
15577 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
15579         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
15580         discussion of defaults, light copy-editing.
15582 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15584         * tsan.c (instrument_expr): corrected previous checkin.
15586 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15588         Instrument bit field and unaligned accesses for TSAN.
15589         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
15590         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
15591         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
15592         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
15593         unaligned memory regions.
15595 2015-01-01  Anthony Green  <green@moxielogic.com>
15597         * config/moxie/predicates.md (moxie_general_movsrc_operand):
15598         Restrict move source register offsets to 16 bits.
15600 Copyright (C) 2015 Free Software Foundation, Inc.
15602 Copying and distribution of this file, with or without modification,
15603 are permitted in any medium without royalty provided the copyright
15604 notice and this notice are preserved.