Validate -pie if PIE is enabled by default
[official-gcc.git] / gcc / ChangeLog
blob2ca60430fc979fd15fc7c53934efcf59888ec8d5
1 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4         by default.
6 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
9         * cgraph.h: Include ipa-ref.h and plugin-api.h.
10         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
11         (symtab_node::address_can_be_compared_p): Move function.
12         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
13         definition here.
14         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15         * auto-profile.c: Likewise.
16         * bb-reorder.c: Likewise.
17         * builtins.c: Likewise.
18         * calls.c: Likewise.
19         * cfgexpand.c: Likewise.
20         * cgraphbuild.c: Likewise.
21         * cgraphclones.c: Likewise.
22         * cgraphunit.c: Likewise.
23         * combine.c: Likewise.
24         * coverage.c: Likewise.
25         * data-streamer-in.c: Likewise.
26         * data-streamer-out.c: Likewise.
27         * data-streamer.c: Likewise.
28         * dbxout.c: Likewise.
29         * dwarf2out.c: Likewise.
30         * except.c: Likewise.
31         * expr.c: Likewise.
32         * final.c: Likewise.
33         * fold-const.c: Likewise.
34         * ggc-page.c: Likewise.
35         * gimple-fold.c: Likewise.
36         * gimple-iterator.c: Likewise.
37         * gimple-pretty-print.c: Likewise.
38         * gimple-streamer-in.c: Likewise.
39         * gimple-streamer-out.c: Likewise.
40         * gimple.c: Likewise.
41         * gimplify.c: Likewise.
42         * ipa-chkp.c: Likewise.
43         * ipa-comdats.c: Likewise.
44         * ipa-cp.c: Likewise.
45         * ipa-devirt.c: Likewise.
46         * ipa-icf-gimple.c: Likewise.
47         * ipa-icf.c: Likewise.
48         * ipa-inline-analysis.c: Likewise.
49         * ipa-inline-transform.c: Likewise.
50         * ipa-inline.c: Likewise.
51         * ipa-polymorphic-call.c: Likewise.
52         * ipa-profile.c: Likewise.
53         * ipa-prop.c: Likewise.
54         * ipa-pure-const.c: Likewise.
55         * ipa-ref.c: Likewise.
56         * ipa-reference.c: Likewise.
57         * ipa-split.c: Likewise.
58         * ipa-utils.c: Likewise.
59         * ipa-visibility.c: Likewise.
60         * ipa.c: Likewise.
61         * langhooks.c: Likewise.
62         * lto-cgraph.c: Likewise.
63         * lto-compress.c: Likewise.
64         * lto-opts.c: Likewise.
65         * lto-section-in.c: Likewise.
66         * lto-section-out.c: Likewise.
67         * lto-streamer-in.c: Likewise.
68         * lto-streamer-out.c: Likewise.
69         * lto-streamer.c: Likewise.
70         * omp-low.c: Likewise.
71         * opts-global.c: Likewise.
72         * passes.c: Likewise.
73         * predict.c: Likewise.
74         * print-tree.c: Likewise.
75         * profile.c: Likewise.
76         * ree.c: Likewise.
77         * sanopt.c: Likewise.
78         * stor-layout.c: Likewise.
79         * symtab.c: Likewise.
80         * toplev.c: Likewise.
81         * trans-mem.c: Likewise.
82         * tree-cfg.c: Likewise.
83         * tree-chkp.c: Likewise.
84         * tree-eh.c: Likewise.
85         * tree-emutls.c: Likewise.
86         * tree-inline.c: Likewise.
87         * tree-nested.c: Likewise.
88         * tree-parloops.c: Likewise.
89         * tree-pretty-print.c: Likewise.
90         * tree-profile.c: Likewise.
91         * tree-sra.c: Likewise.
92         * tree-ssa-alias.c: Likewise.
93         * tree-ssa-live.c: Likewise.
94         * tree-ssa-loop-ivcanon.c: Likewise.
95         * tree-ssa-loop-ivopts.c: Likewise.
96         * tree-ssa-pre.c: Likewise.
97         * tree-ssa-sccvn.c: Likewise.
98         * tree-ssa-strlen.c: Likewise.
99         * tree-ssa-structalias.c: Likewise.
100         * tree-streamer-in.c: Likewise.
101         * tree-streamer-out.c: Likewise.
102         * tree-streamer.c: Likewise.
103         * tree-switch-conversion.c: Likewise.
104         * tree-tailcall.c: Likewise.
105         * tree-vect-data-refs.c: Likewise.
106         * tree-vect-stmts.c: Likewise.
107         * tree-vectorizer.c: Likewise.
108         * tree.c: Likewise.
109         * tsan.c: Likewise.
110         * ubsan.c: Likewise.
111         * value-prof.c: Likewise.
112         * varasm.c: Likewise.
113         * varpool.c: Likewise.
114         * config/arm/arm.c: Likewise.
115         * config/bfin/bfin.c: Likewise.
116         * config/c6x/c6x.c: Likewise.
117         * config/cris/cris.c: Likewise.
118         * config/darwin-c.c: Likewise.
119         * config/darwin.c: Likewise.
120         * config/i386/i386.c: Likewise.
121         * config/i386/winnt.c: Likewise.
122         * config/microblaze/microblaze.c: Likewise.
123         * config/mips/mips.c: Likewise.
124         * config/rs6000/rs6000.c: Likewise.
125         * config/rx/rx.c: Likewise.
126         * config/s390/s390.c: Likewise.
127         * config/tilegx/mul-tables.c: Likewise.
129 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
131         * config/aarch64/aarch64.c, config/alpha/alpha.c,
132         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
133         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
134         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
135         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
136         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
137         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
138         config/microblaze/microblaze.c, config/mips/mips.c,
139         config/mmix/mmix.c, config/mn10300/mn10300.c,
140         config/moxie/moxie.c, config/msp430/msp430.c,
141         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
142         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
143         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
144         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
145         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
146         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
147         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
148         target-def.h include.
149         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
151 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
153         * Makefile.in (TARGET_DEF): Add target-insns.def.
154         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
155         (build/gentarget-def.o): New rule.
156         (genprogrtl): Add target-def.
157         * target-insns.def, gentarget-def.c: New files.
158         * target.def: Add targetm.have_* and targetm.gen_* hooks,
159         based on the contents of target-insns.def.
160         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
161         (HAVE_return, gen_return): Delete.
162         * target-def.h: Include insn-target-def.h.
163         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
164         instead of direct calls.  Rely on them to do the appropriate assertions.
165         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
166         (convert_jumps_to_returns): Use targetm interface instead of
167         direct calls.
168         (thread_prologue_and_epilogue_insns): Likewise.
169         * reorg.c (find_end_label, dbr_schedule): Likewise.
170         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
171         * shrink-wrap.c (convert_to_simple_return): Likewise.
172         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
174 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
176         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
177         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
178         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
179         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
180         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
181         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
182         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
183         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
184         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
185         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
186         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
187         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
188         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
189         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
190         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
191         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
192         includes to end.
194 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
196         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
197         (unbounded_int_hashmap_traits::key_type): Likewise.
198         * hash-map.h (hash_map): Get the key type from the traits.
199         * hash-traits.h (default_hash_traits): By default, inherit from the
200         template parameter.
201         * alias.c (alias_set_traits): Delete.
202         (alias_set_entry_d::children): Use alias_set_hash as the first
203         template parameter.
204         (record_alias_subset): Update accordingly.
205         * except.c (tree_hash_traits): Delete.
206         (type_to_runtime_map): Use tree_hash as the first template parameter.
207         (init_eh): Update accordingly.
208         * genmatch.c (capture_id_map_hasher): Delete.
209         (cid_map_t): Use nofree_string_hash as first template parameter.
210         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
211         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
212         Use symbol_compare_hash as the first template parameter in
213         subdivide_hash_map.
214         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
215         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
216         template parameter.
217         * passes.c (pass_registry_hasher): Delete.
218         (name_to_pass_map): Use nofree_string_hash as the first template
219         parameter.
220         (register_pass_name): Update accordingly.
221         * sanopt.c (sanopt_tree_map_traits): Delete.
222         (sanopt_tree_triplet_map_traits): Delete.
223         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
224         template parameter.
225         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
226         the first template parameter.
227         * sese.c (rename_map_hasher): Delete.
228         (rename_map_type): Use tree_ssa_name_hash as the first template
229         parameter.
230         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
231         (function_summary::m_map): Use map_hash as the first template
232         parameter.
233         (function_summary::release): Update accordingly.
234         * tree-if-conv.c (phi_args_hash_traits): Delete.
235         (predicate_scalar_phi): Use tree_operand_hash as the first template
236         parameter to phi_arg_map.
237         * tree-inline.h (dependence_hasher): Delete.
238         (copy_body_data::dependence_map): Use dependence_hash as the first
239         template parameter.
240         * tree-inline.c (remap_dependence_clique): Update accordingly.
241         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
242         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
243         parameter.
244         (addr_stridxptr): Update accordingly.
245         * value-prof.c (profile_id_traits): Delete.
246         (cgraph_node_map): Use profile_id_hash as the first template
247         parameter.
248         (init_node_map): Update accordingly.
249         * config/alpha/alpha.c (string_traits): Delete.
250         (machine_function::links): Use nofree_string_hash as the first
251         template parameter.
252         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
253         * config/m32c/m32c.c (pragma_traits): Delete.
254         (pragma_htab): Use nofree_string_hash as the first template parameter.
255         (m32c_note_pragma_address): Update accordingly.
256         * config/mep/mep.c (pragma_traits): Delete.
257         (pragma_htab): Use nofree_string_hash as the first template parameter.
258         (mep_note_pragma_flag): Update accordingly.
259         * config/mips/mips.c (mips16_flip_traits): Delete.
260         (mflip_mips16_htab): Use nofree_string_hash as the first template
261         parameter.
262         (mflip_mips16_use_mips16_p): Update accordingly.
263         (local_alias_traits): Delete.
264         (mips16_local_aliases): Use nofree_string_hash as the first template
265         parameter.
266         (mips16_local_alias): Update accordingly.
268 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
270         * hash-map-traits.h (default_hashmap_traits): Delete.
272 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
274         * hash-map-traits.h (unbounded_hashmap_traits): New class.
275         (unbounded_int_hashmap_traits): Likewise.
276         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
278 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
280         * ipa-icf.h (symbol_compare_hash): New class.
281         (symbol_compare_hashmap_traits): Use it.
282         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
283         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
284         (mem_alloc_description::reverse_mem_map_t): Remove redundant
285         default_hashmap_traits.
286         * sanopt.c (sanopt_tree_triplet_hash): New class.
287         (sanopt_tree_triplet_map_traits): Use it.
289 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
291         * gengtype-parse.c (require_template_declaration): Allow '+' in
292         template parameters.  Consolidate cases.
293         * hash-traits.h (int_hash): New class.
294         * alias.c (alias_set_hash): New structure.
295         (alias_set_traits): Use it.
296         * symbol-summary.h (function_summary::map_hash): New class.
297         (function_summary::summary_hashmap_traits): Use it.
298         * tree-inline.h (dependence_hash): New class.
299         (dependence_hasher): Use it.
300         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
301         * value-prof.c (profile_id_hash): New class.
302         (profile_id_traits): Use it.
304 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
306         * config/mips/mips.c (mips16_flip_traits): Use it.
307         (local_alias_traits, mips16_local_aliases): Convert from a map of
308         rtxes to a map of symbol names.
309         (mips16_local_alias): Update accordingly.
311 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
313         * hash-traits.h (string_hash, nofree_string_hash): New classes.
314         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
315         * passes.c (pass_registry_hasher): Likewise.
316         * config/alpha/alpha.c (string_traits): Likewise.
317         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
318         * config/m32c/m32c.c (pragma_traits): Likewise.
319         * config/mep/mep.c (pragma_traits): Likewise.
321 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
323         * tree-hash-traits.h (tree_hash): New class.
324         * except.c: Include tree-hash-traits.h.
325         (tree_hash_traits): Use tree_hash.
327 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
329         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
330         * sese.c: Include tree-hash-traits.h.
331         (rename_map_hasher): Use tree_ssa_name_hasher.
333 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
335         * tree-hash-traits.h (tree_decl_hash): New class.
336         * tree-ssa-strlen.c: Include tree-hash-traits.h.
337         (stridxlist_hash_traits): Use tree_decl_hash.
339 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
341         * tree-hash-traits.h: New file.
342         (tree_operand_hash): New class.
343         * sanopt.c: Include tree-hash-traits.h.
344         (sanopt_tree_map_traits): Use tree_operand_hash.
345         * tree-if-conv.c: Include tree-hash-traits.h.
346         (phi_args_hash_traits): Use tree_operand_hash.
347         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
348         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
350 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
352         * hash-map-traits.h: Include hash-traits.h.
353         (simple_hashmap_traits): New class.
354         * mem-stats.h (hash_map): Change the default traits to
355         simple_hashmap_traits<default_hash_traits<Key> >.
357 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
359         * hash-table.h: Update comments.
361 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
363         * hash-traits.h (default_hash_traits): New structure.
364         * hash-set.h (default_hashset_traits): Delete.
365         (hash_set): Use default_hash_traits<Key> instead of
366         default_hashset_traits.  Delete hash_entry type and use Key directly.
367         * ipa-devirt.c (pair_traits): Delete.
368         (default_hash_traits <type_pair>): Override.
369         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
370         (odr_types_equivalent_p, add_type_duplicate): Likewise.
372 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
374         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
376 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
378         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
379         (has_is_empty, is_empty_helper): Delete.
380         (has_mark_deleted, mark_deleted_helper): Delete.
381         (has_mark_empty, mark_empty_helper): Delete.
382         (hash_table::is_deleted): Call the Descriptor unconditionally.
383         (hash_table::is_empty): Likewise.
384         (hash_table::mark_deleted): Likewise.
385         (hash_table::mark_empty): Likewise.
387 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
389         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
390         redundant typedefs and members.
391         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
392         redundant typedefs.
393         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
394         * ipa-devirt.c (odr_name_hasher): Likewise.
395         (polymorphic_call_target_hasher): Likewise.
396         * ira-costs.c (cost_classes_hasher): Likewise.
397         * statistics.c (stats_counter_hasher): Likewise.
398         * trans-mem.c (log_entry_hasher): Likewise.
399         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
400         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
401         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
402         * var-tracking.c (variable_hasher): Likewise.
403         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
404         Remove redundant typedefs and members.
406 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
408         * hash-traits.h (ggc_cache_hasher): Rename to...
409         (ggc_cache_remove): ...this and remove typedefs.
410         (ggc_cache_ptr_hash): New class.
411         * hash-table.h: Update commentary.
412         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
413         rather than ggc_cache_hasher.
414         (const_wide_int_hasher, reg_attr_hasher): Likewise.
415         (const_double_hasher, const_fixed_hasher): Likewise.
416         * function.c (insn_cache_hasher): Likewise.
417         * trans-mem.c (tm_wrapper_hasher): Likewise.
418         * tree.h (tree_decl_map_cache_hasher): Likewise.
419         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
420         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
421         * ubsan.c (tree_type_map_cache_hasher): Likewise.
422         * varasm.c (tm_clone_hasher): Likewise.
423         * config/i386/i386.c (dllimport_hasher): Likewise.
424         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
425         (tree_hasher): Likewise.
427 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
429         * hash-traits.h (ggc_hasher): Rename to...
430         (ggc_remover): ...this and remove typedefs.
431         (ggc_cache_hasher): Update accordingly.  Add typedefs.
432         (ggc_ptr_hash): New class.
433         * hash-table.h: Update comment.
434         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
435         ggc_hasher.
436         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
437         (tree_descriptor_hasher): Likewise.
438         * cgraph.c (function_version_hasher): Likewise.
439         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
440         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
441         (dw_loc_list_hasher, addr_hasher): Likewise.
442         * function.h (used_type_hasher): Likewise.
443         * function.c (temp_address_hasher): Likewise.
444         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
445         * libfuncs.h (libfunc_hasher): Likewise.
446         * lto-streamer.h (decl_state_hasher): Likewise.
447         * optabs.c (libfunc_decl_hasher): Likewise.
448         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
449         * varasm.c (section_hasher, object_block_hasher): Likewise.
450         (const_rtx_desc_hasher): Likewise.
451         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
452         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
454 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
456         * hash-traits.h (free_ptr_hash): New class.
457         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
458         rather than typed_free_remove.  Remove redudant typedefs.
459         (external_ref_hasher): Likewise.
460         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
461         (ehspec_hasher): Likewise.
462         * ggc-common.c (saving_hasher): Likewise.
463         * gimplify.c (gimplify_hasher): Likewise.
464         * haifa-sched.c (delay_i2_hasher): Likewise.
465         * loop-invariant.c (invariant_expr_hasher): Likewise.
466         * loop-iv.c (biv_entry_hasher): Likewise.
467         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
468         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
469         * tree-cfg.c (locus_discrim_hasher): Likewise.
470         * tree-eh.c (finally_tree_hasher): Likewise.
471         * tree-into-ssa.c (var_info_hasher): Likewise.
472         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
473         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
474         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
475         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
476         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
477         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
478         (shared_bitmap_hasher): Likewise.
479         * tree-ssa-threadupdate.c (redirection_data): Likewise.
480         * tree-vectorizer.h (peel_info_hasher): Likewise.
481         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
482         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
484 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
486         * hash-table.h: Update comments.
487         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
488         (nofree_ptr_hash): New class.
489         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
490         than typed_noop_remove.  Remove redudant typedefs.
491         * attribs.c (attribute_hasher): Likewise.
492         * cfg.c (bb_copy_hasher): Likewise.
493         * cselib.c (cselib_hasher): Likewise.
494         * dse.c (invariant_group_base_hasher): Likewise.
495         * dwarf2cfi.c (trace_info_hasher): Likewise.
496         * dwarf2out.c (macinfo_entry_hasher): Likewise.
497         (comdat_type_hasher, loc_list_hasher): Likewise.
498         * gcse.c (pre_ldst_expr_hasher): Likewise.
499         * genmatch.c (id_base): Likewise.
500         * genrecog.c (test_pattern_hasher): Likewise.
501         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
502         * haifa-sched.c (delay_i1_hasher): Likewise.
503         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
504         * ipa-icf.h (congruence_class_group_hash): Likewise.
505         * ipa-profile.c (histogram_hash): Likewise.
506         * ira-color.c (allocno_hard_regs_hasher): Likewise.
507         * lto-streamer.h (string_slot_hasher): Likewise.
508         * lto-streamer.c (tree_entry_hasher): Likewise.
509         * plugin.c (event_hasher): Likewise.
510         * postreload-gcse.c (expr_hasher): Likewise.
511         * store-motion.c (st_expr_hasher): Likewise.
512         * tree-sra.c (uid_decl_hasher): Likewise.
513         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
514         (ssa_name_var_hash): Likewise.
515         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
516         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
517         * tree-ssa-pre.c (pre_expr_d): Likewise.
518         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
519         * vtable-verify.h (registration_hasher): Likewise.
520         * vtable-verify.c (vtbl_map_hasher): Likewise.
521         * config/arm/arm.c (libcall_hasher): Likewise.
522         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
523         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
524         * config/sol2.c (comdat_entry_hasher): Likewise.
525         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
526         (print_fold_checksum, fold_checksum_tree): Likewise.
527         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
528         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
529         (fold_build_call_array_loc): Likewise.
530         * tree-ssa-ccp.c (gimple_htab): Likewise.
531         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
532         rather than pointer_type.
534 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
536         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
537         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
539 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
541         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
542         (ggc_hasher::ggc_mx): Likewise.
543         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
544         that duplicate ggc_hasher ones.
546 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
548         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
549         (gt_cleare_cache): Check here for deleted and empty entries.
550         Replace handle_cache_entry with a call to keep_cache_entry.
551         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
552         (ggc_cache_hasher::keep_cache_entry): New function.
553         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
554         (tm_wrapper_hasher::keep_cache_entry): New function.
555         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
556         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
557         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
558         (type_cache_hasher::keep_cache_entry): New function.
559         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
560         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
561         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
562         (tree_type_map_cache_hasher::keep_cache_entry): New function.
563         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
564         (tm_clone_hasher::keep_cache_entry): New function.
565         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
566         (dllimport_hasher::keep_cache_entry): New function.
568 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
570         * hash-table.h: Include hash-traits.h.
571         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
572         (ggc_cache_hasher): Move to...
573         * hash-traits.h: ...this new file.
575 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
577         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
578         struct cl_optimization.
579         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
580         * tree.c (make_node_stat): Allocate cl_optimization struct.
581         (copy_node_stat): Allocate and copy cl_optimization struct.
583 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
585         * function.h (struct incoming_args): Move struct.
586         (pass_by_reference, reference_callee_copied): Remove prototypes.
587         * emit-rtl.h (struct incoming_args): Relocate struct here.
588         * calls.h (pass_by_reference, reference_callee_copied): Relocate
589         prototypes here.
590         * function.c (pass_by_reference, reference_callee_copied): Move.
591         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
592         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
593         * ipa-chkp.c: Include calls.h.
595 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
597         * alias.h (alias_set_type): Move typedef.
598         * coretypes.h (alias_set_type): Relocate typedef here.
599         * rtl.h: Don't include alias.h.
601 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
603         * cgraph.h (cgraph_rtl_info): Move to rtl.h
604         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
605         and instance.
606         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
607         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
608         doesn't exist.
609         * calls.c: Include hard-reg-set.h before rtl.h.
610         * ira.c: Likewise.
612 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
613             Vladimir Makarov  <vmakarov@redhat.com>
615         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
616         Add assert.
618 2015-06-25  Richard Biener  <rguenther@suse.de>
620         * fold-const.c (fold_binary_loc): Move simplification of
621         (X <<>> C1) & C2 ...
622         * match.pd: ... here.
624 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
626         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
630         * match.pd: Add patterns for vec_conds between 1 and 0.
632 2015-06-25  Richard Biener  <rguenther@suse.de>
634         * tree-vect-stmts.c (vectorizable_conversion): Do not set
635         STMT_VINFO_VEC_STMT for SLP.
636         (vectorizable_store): Likewise.
637         (vectorizable_load): Likewise.
638         (vect_transform_stmt): Catch SLP vectorization clobbering
639         STMT_VINFO_VEC_STMT.
641 2015-06-25  Richard Biener  <rguenther@suse.de>
643         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
644         dumping.
645         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
646         cleanup resulting dead code and parameters.
647         (vect_transform_slp_perm_load): Adjust.
649 2015-06-25  Nick Clifton  <nickc@redhat.com>
651         * config/bfin/bfin.c (bfin_expand_prologue): Set
652         current_function_static_stack_size if flag_stack_usage_info is
653         set.
654         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
655         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
656         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
657         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
659 2015-06-25  Tom de Vries  <tom@codesourcery.com>
661         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
662         comment that the generated IV is unsigned.
664 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
666         PR target/29693
667         * config/arm/arm.c (arm_dbx_register_number): Return
668         DWARF_FRAME_REGISTERS by default.
670 2015-06-25  Tom de Vries  <tom@codesourcery.com>
672         * dominance.c (calculate_dominance_info): Fix verify_dominators call
673         argument.  Call verify_dominator when reusing dominator info.
675 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
677         PR target/66563
678         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
679         an additional element of the unspec vector.  Modify indices
680         of operands.
681         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
682         * config/sh/sh.c (prepare_move_operands): Pass incremented
683         const_int to gen_GOTaddr2picreg.
684         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
686 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
688         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
689         Condition on TARGET_FLOAT.
691 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
693         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
694         and (no)crypto.
696 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
698         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
700         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
701         aarch64_err_no_fpadvsimd.
703         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
704         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
705         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
706         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
707         Turn error into assert, test TARGET_FLOAT.
708         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
709         TARGET_FLOAT.
711 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
713         PR debug/66482
714         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
716 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
718         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
720 2015-06-24 Renlin Li <renlin.li@arm.com>
722         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
723         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
725 2015-06-24  Richard Biener  <rguenther@suse.de>
727         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
728         (main): Likewise.
729         (lower_opt_convert): Support lowering of conditional view_convert.
730         (parser::parse_operation): Likewise.
731         (parser::parse_for): Likewise.
733 2015-06-24  Renlin Li  <renlin.li@arm.com>
735         * varasm.c (emit_local): Use unsigned int for align variable.
737 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
739         PR target/63408
740         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
741         for negative numbers.
743 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
745         PR rtl-optimization/66306
746         * reload.c (find_reloads): Swap the match_dup info for
747         commutative operands.
749 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
751         * config/s390/vx-builtins.md
752         ("vec_scatter_element<mode>_<non_vec_int>")
753         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
754         attribute with bhfgq.
756 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
758         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
760 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
762         * config/s390/s390-builtin-types.def: Add flag to indicate the
763         options under which the function type is needed.
764         * config/s390/s390-builtins.def: Add flag to indicate the options
765         under which the builtin is enabled.
766         * config/s390/s390-builtins.h: Add flags parameter to macro
767         definitions.
768         (bflags_for_builtin): New function.
769         (flags_for_builtin): Renamed to ...
770         (opflags_for_builtin): ... this.
771         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
772         flags_for_builtin to bflags_for_builtin and
773         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
774         * config/s390/s390.c: Add initialization of bflags_builtin and
775         opflags_builtin arrays.
776         Remove code for flags_builtin.
777         (s390_init_builtins): Only create builtin function types if one of
778         their flags is active.
779         Only create builtins if all of their flags are active.
780         (s390_expand_builtin): Rename flags_for_builtin to
781         opflags_for_builtin.
783 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
785         * config/s390/vecintrin.h: Remove internal builtins.
787 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
789         * config/s390/s390.c (s390_secondary_reload): Fix check for
790         GENERAL_REGS register class.
792 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
794         * config/s390/s390.c (s390_support_vector_misalignment): Call
795         default implementation for !TARGET_VX.
797 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
799         * config/s390/s390.c (s390_legitimate_constant_p): Add
800         TARGET_VX check.
802 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
804         * config/s390/s390.c (s390_vector_abi): New variable definition.
805         (s390_check_type_for_vector_abi): New function.
806         (TARGET_ASM_FILE_END): New macro definition.
807         (s390_asm_file_end): New function.
808         (s390_function_arg): Call s390_check_type_for_vector_abi.
809         (s390_gimplify_va_arg): Likewise.
810         * configure: Regenerate.
811         * configure.ac: Check for .gnu_attribute Binutils feature.
813 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
815         PR target/65803
816         * config/bfin/bfin.c (hwloop_optimize): Initialize
817         JUMP_LABEL for newly created jump.
819 2015-06-23  Tristan Gingold  <gingold@adacore.com>
821         * collect-utils.c (collect_wait): Unlink the response file here
822         instead of...
823         (do_wait): ...here.
824         (utils_cleanup): ...and here.
826 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
828         * df-scan.c: Don't include target-def.h.
829         * targhooks.c: Likewise.
830         * config/arm/arm-c.c: Likewise.
831         * config/i386/i386-c.c: Likewise.
832         * config/nds32/nds32-cost.c: Likewise.
833         * config/nds32/nds32-fp-as-gp.c: Likewise.
834         * config/nds32/nds32-intrinsic.c: Likewise.
835         * config/nds32/nds32-isr.c: Likewise.
836         * config/nds32/nds32-md-auxiliary.c: Likewise.
837         * config/nds32/nds32-memory-manipulation.c: Likewise.
838         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
839         * config/nds32/nds32-predicates.c: Likewise.
841 2015-06-23  Richard Biener  <rguenther@suse.de>
843         PR tree-optimization/66636
844         * tree-vect-stmts.c (vectorizable_store): Properly compute the
845         def type for further defs for strided stores.
847 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
849         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
850         conditional selects.
851         (setcc_int<mode>, setcc_float<mode>): Reformat.
853 2015-06-23  Marek Polacek  <polacek@redhat.com>
855         * match.pd ((x + y) - (x | y) -> x & y,
856         (x + y) - (x & y) -> x | y): New patterns.
858 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
860         PR 65711
861         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
862         '-dynamic-linker' within %{!shared: ...}.
864 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
866         PR target/66560
867         * config/i386/predicates.md (addsub_vm_operator): New predicate.
868         (addsub_vs_operator): Ditto.
869         (addsub_vs_parallel): Ditto.
870         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
871         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
872         Put minus RTX before plus and adjust vec_merge selector.
873         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
874         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
875         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
876         (addsub vec_merge splitters): New combiner splitters.
877         (addsub vec_select/vec_concat splitters): Ditto.
879 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
881         PR tree-optimization/66449
882         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
883         POINTER_PLUS_EXPR for pointers.
885 2015-06-23  Alan Modra  <amodra@gmail.com>
887         * rtlanal.c (commutative_operand_precedence): Correct comments.
888         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
889         declaration.  Return an int.  Distinguish REG,REG return from
890         others.
891         (struct simplify_plus_minus_op_data): Make local to function.
892         (simplify_plus_minus): Don't set canonicalized if merely sorting
893         registers.  Avoid packing ops if nothing changes.  White space fixes.
895 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
897         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
898         -fdump-ada-spec is passed but not if -fsyntax-only is.
900 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
902         PR bootstrap/63740
903         * lra-lives.c (process_bb_lives): Check insn copying the same
904         reload pseudo and don't create a copy for it.
906 2015-06-22  Tom de Vries  <tom@codesourcery.com>
908         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
909         for cond_stmt.
911 2015-06-22  Tom de Vries  <tom@codesourcery.com>
913         * builtins.def (DEF_GOMP_BUILTIN): Test
914         'flag_tree_parallelize_loops > 1' instead of
915         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
917 2015-06-22  Tom de Vries  <tom@codesourcery.com>
919         * dominance.c (calculate_dominance_info): Verify dominators if
920         early-out.
922 2015-06-22  Marek Polacek  <polacek@redhat.com>
924         * match.pd ((x ^ y) ^ (x | y) -> x & y,
925         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
926         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
927         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
929 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
931         PR target/65871
932         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
933         cost of embedded comparison.
935 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
937         PR target/65914
938         * config/rs6000/predicates.md (altivec_register_operand): Permit
939         virtual stack registers.
940         (vsx_register_operand): Likewise.
941         (vfloat_operand): Likewise.
942         (vint_operand): Likewise.
943         (vlogical_operand): Likewise.
945 2015-06-22  Richard Biener  <rguenther@suse.de>
947         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
948         and single_scalar_iteration_cost members.
949         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
950         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
951         (vect_get_single_scalar_iteration_cost): Remove.
952         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
953         Use LOOP_VINFO_SCALAR_ITERATION_COST.
954         * tree-vect-loop.c (destroy_loop_vec_info): Free
955         scalar_cost_vec.
956         (vect_get_single_scalar_iteration_cost): Compute result into
957         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
958         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
959         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
960         (vect_estimate_min_profitable_iters): Use them.
962 2015-06-22  Christian Bruel  <christian.bruel@st.com>
964         PR target/52144
965         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
966         (TARGET_INSERT_ATTRIBUTES): Define.
967         (thumb_flipper): New var.
968         * config/arm/arm.opt (-mflip-thumb): New switch.
970 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
971             Martin Liska  <mliska@suse.cz>
973         PR ipa/65908
974         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
975         construction of arg_types.
976         (sem_function::sem_function): Likewise.
977         (sem_function::~sem_function): Remove destruction of arg_types.
978         (sem_function::compatible_parm_types_p): New function.
979         (sem_function::equals_wpa): Reorg matching of return values
980         and parameter types.
981         (sem_function::equals_private): Reorg mathcing of argument types.
982         (sem_function::parse_tree_args): Remove.
983         * ipa-icf.h (init_wpa): Do not call it.
984         (parse_tree_args): Remove.
985         (compatible_parm_types_p): Declare.
986         (result_type): Remove.
987         (arg_types): Remove.
989 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
991         PR ipa/66351
992         * ipa-polymorphic-call.c
993         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
994         initializing alias oracle; fix formating; set base_alias_set if it
995         is known.
997 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
999         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
1000         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
1001         (find_inc): Likewise.
1002         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
1003         swapping.
1004         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1005         * df-scan.c (df_swap_refs): Remove.
1006         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
1007         * dominance.c (link_roots): Use std::swap instead of manually swapping.
1008         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
1009         * fold-const.c (fold_relational_const): Likewise.
1010         * genattrtab.c (simplify_test_exp): Likewise.
1011         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
1012         gimple_simplify): Likewise.
1013         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
1014         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
1015         * ipa-devirt.c (add_type_duplicate): Likewise.
1016         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
1017         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
1018         * lra.c (lra_create_copy): Likewise.
1019         * lto-streamer-out.c (DFS::DFS): Likewise.
1020         * modulo-sched.c (get_sched_window): Likewise.
1021         * omega.c (omega_pretty_print_problem): Likewise.
1022         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
1023         * reload1.c (reloads_unique_chain_p): Likewise.
1024         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
1025         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
1026         use std::swap.
1027         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
1028         manually swapping.
1029         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
1030         predicate_mem_writes): Likewise.
1031         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
1032         * tree-predcom.c (combine_chains): Likewise.
1033         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
1034         refs_may_alias_p_1): Likewise.
1035         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
1036         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1037         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
1038         number_of_iterations_cond): Likewise.
1039         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1040         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1041         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1042         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1043         * tree-vrp.c (extract_range_from_binary_expr_1,
1044         extract_range_from_unary_expr_1): Likewise.
1046 2015-06-20  Marek Polacek  <polacek@redhat.com>
1048         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
1050 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1052         PR target/66591
1053         * config/sh/sh.c (prepare_move_operands): Replace subreg
1054         index term with R0 for base and index addressing.
1056 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
1058         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
1059         op1 is an fp zero.
1060         (movsf_aarch64): Change condition from register_operand to
1061         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
1062         load1.  Change type for alternative 7 to store1.
1063         (movdf_aarch64): Likewise.
1065 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
1067         * config/vax/vax.md: Adjust sign/zero extend patterns to
1068         handle SUBREGs in operands[1].
1070 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1072         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
1073         of manually swapping.
1074         (expand_vec_perm_interleave2): Likewise.
1076 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
1078         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
1079         reuse bounds created for abnormal ssa names.
1081 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
1083         * config/nvptx/nvptx.md (allocate_stack): Rename to...
1084         (allocate_stack_<mode>): ... this, and add :P on both
1085         match_operand and unspec.
1086         (allocate_stack): New expander.
1088 2015-06-19  Christian Bruel  <christian.bruel@st.com>
1090         PR target/66541
1091         PR target/52144
1092         * config/arm/arm.c (arm_set_current_function): Handle
1093         explicit default options.
1095 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
1097         * config/i386/i386.md (*movsicc_noc_zext): New insn.
1098         (zero-extended cmove with mem peephole2): New pattern.
1099         (cmove with mem peephole2): Merge patterns.
1101 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
1103         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
1105 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
1107         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
1108         * config/mips/mips.md (*madd4<mode>): Ditto.
1109         (*nmadd3<mode>) Ditto.
1110         (*nmadd4<mode>_fastmath): Ditto.
1111         (*nmadd3<mode>_fastmath): Ditto.
1112         (*nmsub4<mode>): Ditto.
1113         (*nmsub3<mode>): Ditto.
1114         (*nmsub4<mode>_fastmath): Ditto.
1115         (*nmsub3<mode>_fastmath): Ditto.
1117 2015-06-18  Michael Matz  <matz@suse.de>
1119         PR middle-end/66253
1120         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
1121         grouped strided stores.
1122         (vectorizable_load): Don't use the DR from first_stmt in
1123         the non-SLP grouped strided case.
1125 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1127         PR target/66569
1128         * function.c (assign_bounds): Add arguments assign_regs,
1129         assign_special, assign_bt.
1130         (assign_parms): For vararg functions handle bounds in BT
1131         and special slots after incoming vararg bounds.
1133 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1135         PR middle-end/66568
1136         * cfgexpand.c (expand_return): Handle missing bounds.
1137         (expand_gimple_stmt_1): Likewise.
1138         * tree-chkp.c (chkp_expand_zero_bounds): New.
1139         * tree-chkp.h (chkp_expand_zero_bounds): New.
1141 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1143         PR middle-end/66567
1144         * ipa-chkp.c (chkp_maybe_create_clone): Require
1145         functions to be instrumentable.
1146         * tree-chkp.c (chkp_replace_function_pointer): Use
1147         chkp_instrumentable_p instead of attribute check.
1149 2015-06-18  Richard Biener  <rguenther@suse.de>
1151         PR tree-optimization/66510
1152         * tree-vect-stmts.c (vectorizable_load): Properly compute the
1153         number of vector loads for SLP permuted loads.
1154         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
1155         check the stride for loop vectorization.
1156         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
1157         vectorization factor.
1158         (vect_analyze_group_access): If the group size is not a power
1159         of two require a epilogue loop.
1160         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
1161         compute and optimizing and alias test pruning after final
1162         vectorization factor computation.
1163         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
1164         vector alignment.
1165         (vect_transform_slp_perm_load): Properly compute the original
1166         number of vector load stmts.
1168 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
1170         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
1171         "unlikely character , in @var" warning.
1173 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
1175         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
1176         (ix86_function_arg_advance): Ditto.
1177         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
1179 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1181         * function.h (struct rtl_data): Remove struct and accessor macros.
1182         * emit-rtl.h (struct rtl_data): Relocate to here.
1183         * Makefile.in (GTFILES): Add emit-rtl.h.
1184         * df-core.c: Include emit-rtl.h.
1185         * genattrtab.c: Likewise.
1186         * genconditions.c: Likewise.
1187         * genpreds.c: Likewise.
1188         * genrecog.c: Likewise.
1189         * regcprop.c: Likewise.
1190         * resource.c: Likewise.
1191         * sched-rgn.c: Likewise.
1192         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1193         * config/i386/winnt.c: Likewise.
1195 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
1197         PR middle-end/66429
1198         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
1199         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
1200         and has_force_vectorize_loops flags from cfun into
1201         child_cfun.
1202         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
1203         if simduid is non-NULL.
1204         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
1205         * passes.def (pass_simduid_cleanup): Add new pass after loop
1206         passes.
1207         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
1208         indirection from htab argument's type.
1209         (shrink_simd_arrays): New function.
1210         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
1211         Don't call adjust_simduid_builtins if there are no loops.
1212         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
1213         (pass_simduid_cleanup::execute): New method.
1214         (make_pass_simduid_cleanup): New function.
1216 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
1218         * tree-core.h (tree_target_option): Make opts field a pointer to a
1219         cl_target_option instead of an instance of the struct.
1220         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
1221         the structure.
1222         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
1223         TARGET_OPTION_NODE.
1224         (copy_node_stat): Allocate and copy struct cl_target_option.
1226 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1228         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
1229         Remove conditional exposure of prototypes.
1230         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
1231         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
1232         definitions in tree.h with functions.
1233         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
1234         anon_aggrname_p.
1235         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
1237 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
1239         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
1240         (*cmp<mode>_signed): ... this.
1241         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
1242         (*cmp<mode>_unsigned): ... this.  Remove %b.
1244 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1246         * coretypes.h: Include input.h and as-a.h.
1247         * rtl.h: Include input.h and as-a.h for generator files.
1248         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
1249         * vec.c: Don't include diagnostic-core.h.
1250         * alias.c: Do not include input.h, line-map.h or is-a.h.
1251         * asan.c: Likewise.
1252         * attribs.c: Likewise.
1253         * auto-inc-dec.c: Likewise.
1254         * auto-profile.c: Likewise.
1255         * bb-reorder.c: Likewise.
1256         * bt-load.c: Likewise.
1257         * builtins.c: Likewise.
1258         * caller-save.c: Likewise.
1259         * calls.c: Likewise.
1260         * ccmp.c: Likewise.
1261         * cfg.c: Likewise.
1262         * cfganal.c: Likewise.
1263         * cfgbuild.c: Likewise.
1264         * cfgcleanup.c: Likewise.
1265         * cfgexpand.c: Likewise.
1266         * cfghooks.c: Likewise.
1267         * cfgloop.c: Likewise.
1268         * cfgloop.h: Likewise.
1269         * cfgloopanal.c: Likewise.
1270         * cfgloopmanip.c: Likewise.
1271         * cfgrtl.c: Likewise.
1272         * cgraph.c: Likewise.
1273         * cgraphbuild.c: Likewise.
1274         * cgraphclones.c: Likewise.
1275         * cgraphunit.c: Likewise.
1276         * cilk-common.c: Likewise.
1277         * combine-stack-adj.c: Likewise.
1278         * combine.c: Likewise.
1279         * compare-elim.c: Likewise.
1280         * convert.c: Likewise.
1281         * coverage.c: Likewise.
1282         * cppbuiltin.c: Likewise.
1283         * cprop.c: Likewise.
1284         * cse.c: Likewise.
1285         * cselib.c: Likewise.
1286         * data-streamer-in.c: Likewise.
1287         * data-streamer-out.c: Likewise.
1288         * data-streamer.c: Likewise.
1289         * dbxout.c: Likewise.
1290         * dce.c: Likewise.
1291         * ddg.c: Likewise.
1292         * debug.c: Likewise.
1293         * df-core.c: Likewise.
1294         * df-problems.c: Likewise.
1295         * df-scan.c: Likewise.
1296         * df.h: Likewise.
1297         * dfp.c: Likewise.
1298         * diagnostic-core.h: Likewise.
1299         * diagnostic.c: Likewise.
1300         * dojump.c: Likewise.
1301         * dominance.c: Likewise.
1302         * domwalk.c: Likewise.
1303         * double-int.c: Likewise.
1304         * dse.c: Likewise.
1305         * dumpfile.c: Likewise.
1306         * dumpfile.h: Likewise.
1307         * dwarf2asm.c: Likewise.
1308         * dwarf2cfi.c: Likewise.
1309         * dwarf2out.c: Likewise.
1310         * emit-rtl.c: Likewise.
1311         * et-forest.c: Likewise.
1312         * except.c: Likewise.
1313         * explow.c: Likewise.
1314         * expmed.c: Likewise.
1315         * expr.c: Likewise.
1316         * final.c: Likewise.
1317         * fixed-value.c: Likewise.
1318         * fold-const.c: Likewise.
1319         * function.c: Likewise.
1320         * fwprop.c: Likewise.
1321         * gcc-plugin.h: Likewise.
1322         * gcse.c: Likewise.
1323         * generic-match-head.c: Likewise.
1324         * ggc-page.c: Likewise.
1325         * gimple-builder.c: Likewise.
1326         * gimple-expr.c: Likewise.
1327         * gimple-fold.c: Likewise.
1328         * gimple-iterator.c: Likewise.
1329         * gimple-low.c: Likewise.
1330         * gimple-match-head.c: Likewise.
1331         * gimple-pretty-print.c: Likewise.
1332         * gimple-ssa-isolate-paths.c: Likewise.
1333         * gimple-ssa-strength-reduction.c: Likewise.
1334         * gimple-streamer-in.c: Likewise.
1335         * gimple-streamer-out.c: Likewise.
1336         * gimple-streamer.h: Likewise.
1337         * gimple-walk.c: Likewise.
1338         * gimple.c: Likewise.
1339         * gimplify-me.c: Likewise.
1340         * gimplify.c: Likewise.
1341         * godump.c: Likewise.
1342         * graph.c: Likewise.
1343         * graphite-blocking.c: Likewise.
1344         * graphite-dependences.c: Likewise.
1345         * graphite-interchange.c: Likewise.
1346         * graphite-isl-ast-to-gimple.c: Likewise.
1347         * graphite-optimize-isl.c: Likewise.
1348         * graphite-poly.c: Likewise.
1349         * graphite-scop-detection.c: Likewise.
1350         * graphite-sese-to-poly.c: Likewise.
1351         * graphite.c: Likewise.
1352         * haifa-sched.c: Likewise.
1353         * hw-doloop.c: Likewise.
1354         * ifcvt.c: Likewise.
1355         * init-regs.c: Likewise.
1356         * input.c: Likewise.
1357         * internal-fn.c: Likewise.
1358         * ipa-chkp.c: Likewise.
1359         * ipa-comdats.c: Likewise.
1360         * ipa-cp.c: Likewise.
1361         * ipa-devirt.c: Likewise.
1362         * ipa-icf-gimple.c: Likewise.
1363         * ipa-icf.c: Likewise.
1364         * ipa-inline-analysis.c: Likewise.
1365         * ipa-inline-transform.c: Likewise.
1366         * ipa-inline.c: Likewise.
1367         * ipa-polymorphic-call.c: Likewise.
1368         * ipa-profile.c: Likewise.
1369         * ipa-prop.c: Likewise.
1370         * ipa-pure-const.c: Likewise.
1371         * ipa-ref.c: Likewise.
1372         * ipa-reference.c: Likewise.
1373         * ipa-split.c: Likewise.
1374         * ipa-utils.c: Likewise.
1375         * ipa-visibility.c: Likewise.
1376         * ipa.c: Likewise.
1377         * ira-build.c: Likewise.
1378         * ira-color.c: Likewise.
1379         * ira-conflicts.c: Likewise.
1380         * ira-costs.c: Likewise.
1381         * ira-emit.c: Likewise.
1382         * ira-lives.c: Likewise.
1383         * ira.c: Likewise.
1384         * jump.c: Likewise.
1385         * langhooks.c: Likewise.
1386         * lcm.c: Likewise.
1387         * loop-doloop.c: Likewise.
1388         * loop-init.c: Likewise.
1389         * loop-invariant.c: Likewise.
1390         * loop-iv.c: Likewise.
1391         * loop-unroll.c: Likewise.
1392         * lower-subreg.c: Likewise.
1393         * lra-assigns.c: Likewise.
1394         * lra-coalesce.c: Likewise.
1395         * lra-constraints.c: Likewise.
1396         * lra-eliminations.c: Likewise.
1397         * lra-lives.c: Likewise.
1398         * lra-remat.c: Likewise.
1399         * lra-spills.c: Likewise.
1400         * lra.c: Likewise.
1401         * lto-cgraph.c: Likewise.
1402         * lto-compress.c: Likewise.
1403         * lto-opts.c: Likewise.
1404         * lto-section-in.c: Likewise.
1405         * lto-section-out.c: Likewise.
1406         * lto-streamer-in.c: Likewise.
1407         * lto-streamer-out.c: Likewise.
1408         * lto-streamer.c: Likewise.
1409         * mcf.c: Likewise.
1410         * mode-switching.c: Likewise.
1411         * modulo-sched.c: Likewise.
1412         * omega.c: Likewise.
1413         * omp-low.c: Likewise.
1414         * optabs.c: Likewise.
1415         * opts-global.c: Likewise.
1416         * opts.h: Likewise.
1417         * passes.c: Likewise.
1418         * plugin.c: Likewise.
1419         * postreload-gcse.c: Likewise.
1420         * postreload.c: Likewise.
1421         * predict.c: Likewise.
1422         * pretty-print.h: Likewise.
1423         * print-rtl.c: Likewise.
1424         * print-tree.c: Likewise.
1425         * profile.c: Likewise.
1426         * real.c: Likewise.
1427         * realmpfr.c: Likewise.
1428         * recog.c: Likewise.
1429         * ree.c: Likewise.
1430         * reg-stack.c: Likewise.
1431         * regcprop.c: Likewise.
1432         * reginfo.c: Likewise.
1433         * regrename.c: Likewise.
1434         * regstat.c: Likewise.
1435         * reload.c: Likewise.
1436         * reload1.c: Likewise.
1437         * reorg.c: Likewise.
1438         * resource.c: Likewise.
1439         * rtl-chkp.c: Likewise.
1440         * rtl-error.c: Likewise.
1441         * rtlanal.c: Likewise.
1442         * rtlhooks.c: Likewise.
1443         * sanopt.c: Likewise.
1444         * sched-deps.c: Likewise.
1445         * sched-ebb.c: Likewise.
1446         * sched-rgn.c: Likewise.
1447         * sched-vis.c: Likewise.
1448         * sdbout.c: Likewise.
1449         * sel-sched-dump.c: Likewise.
1450         * sel-sched-ir.c: Likewise.
1451         * sel-sched.c: Likewise.
1452         * sese.c: Likewise.
1453         * shrink-wrap.c: Likewise.
1454         * simplify-rtx.c: Likewise.
1455         * stack-ptr-mod.c: Likewise.
1456         * statistics.c: Likewise.
1457         * stmt.c: Likewise.
1458         * stor-layout.c: Likewise.
1459         * store-motion.c: Likewise.
1460         * streamer-hooks.c: Likewise.
1461         * stringpool.c: Likewise.
1462         * symtab.c: Likewise.
1463         * target-globals.c: Likewise.
1464         * targhooks.c: Likewise.
1465         * toplev.c: Likewise.
1466         * tracer.c: Likewise.
1467         * trans-mem.c: Likewise.
1468         * tree-affine.c: Likewise.
1469         * tree-browser.c: Likewise.
1470         * tree-call-cdce.c: Likewise.
1471         * tree-cfg.c: Likewise.
1472         * tree-cfgcleanup.c: Likewise.
1473         * tree-chkp-opt.c: Likewise.
1474         * tree-chkp.c: Likewise.
1475         * tree-chrec.c: Likewise.
1476         * tree-complex.c: Likewise.
1477         * tree-data-ref.c: Likewise.
1478         * tree-dfa.c: Likewise.
1479         * tree-diagnostic.c: Likewise.
1480         * tree-dump.c: Likewise.
1481         * tree-eh.c: Likewise.
1482         * tree-emutls.c: Likewise.
1483         * tree-if-conv.c: Likewise.
1484         * tree-inline.c: Likewise.
1485         * tree-into-ssa.c: Likewise.
1486         * tree-iterator.c: Likewise.
1487         * tree-loop-distribution.c: Likewise.
1488         * tree-nested.c: Likewise.
1489         * tree-nrv.c: Likewise.
1490         * tree-object-size.c: Likewise.
1491         * tree-outof-ssa.c: Likewise.
1492         * tree-parloops.c: Likewise.
1493         * tree-phinodes.c: Likewise.
1494         * tree-predcom.c: Likewise.
1495         * tree-pretty-print.c: Likewise.
1496         * tree-profile.c: Likewise.
1497         * tree-scalar-evolution.c: Likewise.
1498         * tree-sra.c: Likewise.
1499         * tree-ssa-address.c: Likewise.
1500         * tree-ssa-alias.c: Likewise.
1501         * tree-ssa-ccp.c: Likewise.
1502         * tree-ssa-coalesce.c: Likewise.
1503         * tree-ssa-copy.c: Likewise.
1504         * tree-ssa-copyrename.c: Likewise.
1505         * tree-ssa-dce.c: Likewise.
1506         * tree-ssa-dom.c: Likewise.
1507         * tree-ssa-dse.c: Likewise.
1508         * tree-ssa-forwprop.c: Likewise.
1509         * tree-ssa-ifcombine.c: Likewise.
1510         * tree-ssa-live.c: Likewise.
1511         * tree-ssa-loop-ch.c: Likewise.
1512         * tree-ssa-loop-im.c: Likewise.
1513         * tree-ssa-loop-ivcanon.c: Likewise.
1514         * tree-ssa-loop-ivopts.c: Likewise.
1515         * tree-ssa-loop-manip.c: Likewise.
1516         * tree-ssa-loop-niter.c: Likewise.
1517         * tree-ssa-loop-prefetch.c: Likewise.
1518         * tree-ssa-loop-unswitch.c: Likewise.
1519         * tree-ssa-loop.c: Likewise.
1520         * tree-ssa-math-opts.c: Likewise.
1521         * tree-ssa-operands.c: Likewise.
1522         * tree-ssa-phiopt.c: Likewise.
1523         * tree-ssa-phiprop.c: Likewise.
1524         * tree-ssa-pre.c: Likewise.
1525         * tree-ssa-propagate.c: Likewise.
1526         * tree-ssa-reassoc.c: Likewise.
1527         * tree-ssa-sccvn.c: Likewise.
1528         * tree-ssa-scopedtables.c: Likewise.
1529         * tree-ssa-sink.c: Likewise.
1530         * tree-ssa-strlen.c: Likewise.
1531         * tree-ssa-structalias.c: Likewise.
1532         * tree-ssa-tail-merge.c: Likewise.
1533         * tree-ssa-ter.c: Likewise.
1534         * tree-ssa-threadedge.c: Likewise.
1535         * tree-ssa-threadupdate.c: Likewise.
1536         * tree-ssa-uncprop.c: Likewise.
1537         * tree-ssa-uninit.c: Likewise.
1538         * tree-ssa.c: Likewise.
1539         * tree-ssanames.c: Likewise.
1540         * tree-stdarg.c: Likewise.
1541         * tree-streamer-in.c: Likewise.
1542         * tree-streamer-out.c: Likewise.
1543         * tree-streamer.c: Likewise.
1544         * tree-switch-conversion.c: Likewise.
1545         * tree-tailcall.c: Likewise.
1546         * tree-vect-data-refs.c: Likewise.
1547         * tree-vect-generic.c: Likewise.
1548         * tree-vect-loop-manip.c: Likewise.
1549         * tree-vect-loop.c: Likewise.
1550         * tree-vect-patterns.c: Likewise.
1551         * tree-vect-slp.c: Likewise.
1552         * tree-vect-stmts.c: Likewise.
1553         * tree-vectorizer.c: Likewise.
1554         * tree-vrp.c: Likewise.
1555         * tree.c: Likewise.
1556         * tsan.c: Likewise.
1557         * ubsan.c: Likewise.
1558         * valtrack.c: Likewise.
1559         * value-prof.c: Likewise.
1560         * var-tracking.c: Likewise.
1561         * varasm.c: Likewise.
1562         * varpool.c: Likewise.
1563         * vmsdbgout.c: Likewise.
1564         * vtable-verify.c: Likewise.
1565         * web.c: Likewise.
1566         * wide-int.cc: Likewise.
1567         * xcoffout.c: Likewise.
1568         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
1569         * common/common-targhooks.c: Likewise.
1570         * config/aarch64/aarch64-builtins.c: Likewise.
1571         * config/aarch64/aarch64.c: Likewise.
1572         * config/alpha/alpha.c: Likewise.
1573         * config/arc/arc.c: Likewise.
1574         * config/arm/aarch-common.c: Likewise.
1575         * config/arm/arm-builtins.c: Likewise.
1576         * config/arm/arm-c.c: Likewise.
1577         * config/arm/arm.c: Likewise.
1578         * config/avr/avr-c.c: Likewise.
1579         * config/avr/avr-log.c: Likewise.
1580         * config/avr/avr.c: Likewise.
1581         * config/bfin/bfin.c: Likewise.
1582         * config/c6x/c6x.c: Likewise.
1583         * config/cr16/cr16.c: Likewise.
1584         * config/cris/cris.c: Likewise.
1585         * config/darwin-c.c: Likewise.
1586         * config/darwin.c: Likewise.
1587         * config/default-c.c: Likewise.
1588         * config/epiphany/epiphany.c: Likewise.
1589         * config/epiphany/mode-switch-use.c: Likewise.
1590         * config/epiphany/resolve-sw-modes.c: Likewise.
1591         * config/fr30/fr30.c: Likewise.
1592         * config/frv/frv.c: Likewise.
1593         * config/ft32/ft32.c: Likewise.
1594         * config/glibc-c.c: Likewise.
1595         * config/h8300/h8300.c: Likewise.
1596         * config/i386/i386-c.c: Likewise.
1597         * config/i386/i386.c: Likewise.
1598         * config/i386/msformat-c.c: Likewise.
1599         * config/i386/winnt-cxx.c: Likewise.
1600         * config/i386/winnt-stubs.c: Likewise.
1601         * config/i386/winnt.c: Likewise.
1602         * config/ia64/ia64-c.c: Likewise.
1603         * config/ia64/ia64.c: Likewise.
1604         * config/iq2000/iq2000.c: Likewise.
1605         * config/lm32/lm32.c: Likewise.
1606         * config/m32c/m32c-pragma.c: Likewise.
1607         * config/m32c/m32c.c: Likewise.
1608         * config/m32r/m32r.c: Likewise.
1609         * config/m68k/m68k.c: Likewise.
1610         * config/mcore/mcore.c: Likewise.
1611         * config/mep/mep-pragma.c: Likewise.
1612         * config/mep/mep.c: Likewise.
1613         * config/microblaze/microblaze-c.c: Likewise.
1614         * config/microblaze/microblaze.c: Likewise.
1615         * config/mips/mips.c: Likewise.
1616         * config/mmix/mmix.c: Likewise.
1617         * config/mn10300/mn10300.c: Likewise.
1618         * config/moxie/moxie.c: Likewise.
1619         * config/msp430/msp430-c.c: Likewise.
1620         * config/msp430/msp430.c: Likewise.
1621         * config/nds32/nds32-cost.c: Likewise.
1622         * config/nds32/nds32-fp-as-gp.c: Likewise.
1623         * config/nds32/nds32-intrinsic.c: Likewise.
1624         * config/nds32/nds32-isr.c: Likewise.
1625         * config/nds32/nds32-md-auxiliary.c: Likewise.
1626         * config/nds32/nds32-memory-manipulation.c: Likewise.
1627         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1628         * config/nds32/nds32-predicates.c: Likewise.
1629         * config/nds32/nds32.c: Likewise.
1630         * config/nios2/nios2.c: Likewise.
1631         * config/nvptx/nvptx.c: Likewise.
1632         * config/pa/pa.c: Likewise.
1633         * config/pdp11/pdp11.c: Likewise.
1634         * config/rl78/rl78-c.c: Likewise.
1635         * config/rl78/rl78.c: Likewise.
1636         * config/rs6000/rs6000-c.c: Likewise.
1637         * config/rs6000/rs6000.c: Likewise.
1638         * config/rx/rx.c: Likewise.
1639         * config/s390/s390-c.c: Likewise.
1640         * config/s390/s390.c: Likewise.
1641         * config/sh/sh-c.c: Likewise.
1642         * config/sh/sh-mem.cc: Likewise.
1643         * config/sh/sh.c: Likewise.
1644         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1645         * config/sh/sh_treg_combine.cc: Likewise.
1646         * config/sol2-c.c: Likewise.
1647         * config/sol2-cxx.c: Likewise.
1648         * config/sol2-stubs.c: Likewise.
1649         * config/sol2.c: Likewise.
1650         * config/sparc/sparc-c.c: Likewise.
1651         * config/sparc/sparc.c: Likewise.
1652         * config/spu/spu-c.c: Likewise.
1653         * config/spu/spu.c: Likewise.
1654         * config/stormy16/stormy16.c: Likewise.
1655         * config/tilegx/mul-tables.c: Likewise.
1656         * config/tilegx/tilegx-c.c: Likewise.
1657         * config/tilegx/tilegx.c: Likewise.
1658         * config/tilepro/mul-tables.c: Likewise.
1659         * config/tilepro/tilepro-c.c: Likewise.
1660         * config/tilepro/tilepro.c: Likewise.
1661         * config/v850/v850-c.c: Likewise.
1662         * config/v850/v850.c: Likewise.
1663         * config/vax/vax.c: Likewise.
1664         * config/visium/visium.c: Likewise.
1665         * config/vms/vms-c.c: Likewise.
1666         * config/vms/vms.c: Likewise.
1667         * config/vxworks.c: Likewise.
1668         * config/winnt-c.c: Likewise.
1669         * config/xtensa/xtensa.c: Likewise.
1671 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
1673         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
1674         function.
1675         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
1677 2015-06-17  Richard Biener  <rguenther@suse.de>
1679         PR tree-optimization/66251
1680         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
1681         stmts for SLP strided stores.
1683         Revert
1684         2015-05-22  Richard Biener  <rguenther@suse.de>
1686         PR tree-optimization/66251
1687         * tree-vect-stmts.c (vectorizable_conversion): Properly
1688         set STMT_VINFO_VEC_STMT even for the SLP case.
1690         2015-05-26  Michael Matz  <matz@suse.de>
1692         PR middle-end/66251
1693         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1694         STMT_VINFO_VEC_STMT, also with SLP.
1696 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
1698         PR target/56766
1699         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
1700         (*avx_addsubv4df3_1s): Ditto.
1701         (*sse3_addsubv2df3_1): Ditto.
1702         (*sse3_addsubv2df3_1s): Ditto.
1703         (*avx_addsubv8sf3_1): Ditto.
1704         (*avx_addsubv8sf3_1s): Ditto.
1705         (*sse3_addsubv4sf3_1): Ditto.
1706         (*sse3_addsubv4sf3_1s): Ditto.
1708 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
1710         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
1711         (SYSROOT_SUFFIX_SPEC): Update.
1712         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
1713         (STARTFILE_PREFIX_SPEC): Update.
1714         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
1715         (MULTILIB_REQUIRED): New.
1716         (MULTILIB_OSDIRNAMES): New.
1717         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
1718         (MULTILIB_REQUIRED): New.
1719         (MULTILIB_OSDIRNAMES): New.
1721 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
1723         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
1724         * config/aarch64/aarch64-options-extensions.def: Update "fP",
1725         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
1726         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
1727         (AARCH64_FL_PAN): New.
1728         (AARCH64_FL_LOR): New.
1729         (AARCH64_FL_RDMA): New.
1730         (AARCH64_FL_FOR_ARCH8_1): New.
1731         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
1732         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
1734 2015-06-16  Martin Liska  <mliska@suse.cz>
1736         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
1737         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
1738         guard.
1740 2015-06-16  Richard Biener  <rguenther@suse.de>
1742         * tree-vect-stmts.c (vectorizable_store): Adjust.
1743         (vectorizable_load): Likewise.
1744         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1745         Simplify.
1746         (vect_create_data_ref_ptr): Likewise.
1747         (bump_vector_ptr): Adjust.
1749 2015-06-16  Richard Biener  <rguenther@suse.de>
1751         * tree-vect-stmts.c (vectorizable_load): Properly start loads
1752         with the first element if this is grouped loads.
1754 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
1756         * config/arm/arm-protos.h (struct tune_params): Rename
1757         log_op_non_sc to log_op_non_short_circuit, and rename enum
1758         values to expand SC to SHORT_CIRCUIT.
1759         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
1760         to LOG_OP_NON_SHORT_CIRCUIT.
1761         (arm_fastmul_tune):Likewise
1762         (arm_strongarm_tune): Likewise.
1763         (arm_xscale_tune): Likewise.
1764         (arm_9e_tune): Likewise.
1765         (arm_marvell_pj4_tune): Likewise.
1766         (arm_v6t2_tune): Likewise.
1767         (arm_cortex_tune): Likewise.
1768         (arm_cortex_a8_tune): Likewise.
1769         (arm_cortex_a7_tune): Likewise.
1770         (arm_cortex_a15_tune): Likewise.
1771         (arm_cortex_a53_tune): Likewise.
1772         (arm_cortex_a57_tune): Likewise.
1773         (arm_xgene1_tune): Likewise.
1774         (arm_cortex_a5_tune): Likewise.
1775         (arm_cortex_a9_tune): Likewise.
1776         (arm_cortex_a12_tune): Likewise.
1777         (arm_v7m_tune): Likewise.
1778         (arm_cortex_m7_tune): Likewise.
1779         (arm_v6m_tune): Likewise.
1780         (arm_fa726te_tune): Likewise.
1782 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
1784         * altivec.md: Delete UNSPEC_VMLADDUHM.
1785         (mulv4si3_p8): New pattern.
1786         (mulv4si3): Use it for POWER8.
1787         (mulv8hi3): Use vmladduhm with zero addend.
1788         (altivec_vmladduhm): Descriptive RTL.
1790 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
1792         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
1793         to use neon_move instead of mov_imm.
1794         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
1795         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
1797         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
1798         aarch64_float_const_zero_rtx_p check before TFmode check.
1799         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
1800         an fp zero.
1801         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
1802         code and attributes to match.  Change condition from register_operand
1803         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
1804         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
1805         to store2.
1807 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
1809         PR debug/66535
1810         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
1811         there is no parent.
1813 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
1815         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
1816         HOST_WIDE_INT parameter.
1818 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
1820         PR ipa/66181
1821         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
1822         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
1823         TYPE_NO_FORCE_BLK.
1824         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1826 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
1828         * rtl.h (classify_insn): Declare.
1829         * emit-rtl.c (classify_insn): Move to...
1830         * rtl.c: ...here and add generator support.
1831         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
1832         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
1833         * genemit.c (gen_emit_seq): New function.
1834         (gen_expand, gen_split): Use it.
1836 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
1838         * tree.c (make_vector_stat): Fix comment to state that the
1839         function returns a VECTOR_CST.
1841 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
1843         * gensupport.h (add_implicit_parallel): Declare.
1844         * genrecog.c (add_implicit_parallel): Move to...
1845         * gensupport.c (add_implicit_parallel): ...here.
1846         (process_one_cond_exec): Use it.
1847         * genemit.c (gen_insn): Likewise.
1849 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
1851         PR bootstrap/66448
1852         * passes.c (rest_of_decl_compilation): Do not register globals for
1853         early debug if they are declared in built-ins.
1855 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
1857         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
1859 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1861         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
1862         manually swapping.
1863         (noce_try_cmove_arith): Likewise.
1864         (noce_get_alt_condition): Likewise.
1866 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1868         * common/config/i386/i386-common.c
1869         (OPTION_MASK_ISA_MWAITX_SET): New.
1870         (ix86_handle_option): Handle mwaitx.
1871         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
1872         (x86_64-*-*): Likewise.
1873         * config/i386/mwaitxintrin.h: New header.
1874         * config/i386/cpuid.h (bit_MWAITX):  Define.
1875         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1876         MWAITX support.
1877         * config/i386/i386.opt (mwaitx): New.
1878         * config/i386/i386-builtin-types.def
1879         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
1880         * config/i386/i386-c.c: Define __MWAITX__ if needed.
1881         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
1882         (PTA_MWAITX): New.
1883         (ix86_option_override_internal): Handle new option.
1884         (processor_alias_table): Added PTA_MWAITX.
1885         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
1886         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
1887         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
1888         IX86_BUILTIN_MONITORX  built-ins.
1889         * config/i386/i386.h (TARGET_MWAITX): New.
1890         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
1891         UNSPEC_MONITORX.
1892         (mwaitx):  New pattern.
1893         (monitorx_<mode>): New pattern.
1894         * config/i386/x86intrin.h: Include mwaitxintrin.h.
1895         * doc/extend.texi: Document monitorx and mwaitx builtins.
1896         * doc/invoke.texi: Document -mmwaitx option.
1898 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
1900         * emit-rtl.c (need_atomic_barrier_p): Mask model with
1901         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
1903 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1905         * dbxout.c (xcoff_debug_hooks): Provide a function for
1906         register_main_translation_unit hook.
1908 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1910         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
1911         variants cases from switch.
1912         (rs6000_post_atomic_barrier): Same.
1913         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
1914         (rs6000_expand_atomic_exchange): Same.
1915         (rs6000_expand_atomic_op): Same.
1916         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
1917         SYNC variants cases from switch.
1918         (atomic_load): Same.
1919         (atomic_store): Same.
1921 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
1923         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
1924         CONST_INT for goto.
1926 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
1928         PR bootstrap/66448
1929         * dwarf2out.c (check_die): Check for common duplicate attributes.
1930         (add_location_or_const_value_attribute): Do not add duplicate
1931         attributes.
1932         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
1933         time around.
1934         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
1935         (gen_type_die_with_usage): Call check_die.
1936         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
1938 2015-06-11  Jason Merrill  <jason@redhat.com>
1940         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
1941         dies.
1943 2015-06-11  Marek Polacek  <polacek@redhat.com>
1945         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
1947 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
1949         PR bootstrap/66252
1950         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
1951         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
1952         (*addx_extend_sp32): Fix pasto.
1953         (*subx_extend): Rename into...
1954         (*subx_extend_sp32): ...this.
1955         (*adddi3_extend_sp32): Add earlyclobber.
1956         (*subdi3_insn_sp32): Likewise.
1957         (*subdi3_extend_sp32): Likewise.
1958         (*and_not_di_sp32): Likewise.
1959         (*or_not_di_sp32): Likewise.
1960         (*xor_not_di_sp32): Likewise.
1961         (*negdi2_sp32): Likewise.
1962         (*one_cmpldi2_sp32): Likewise.
1964 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
1966         * debug.h (struct gcc_debug_hooks): Add a
1967         register_main_translation_unit hook.
1968         * debug.c (do_nothing_debug_hooks): Provide a function for this
1969         new hook.
1970         * dbxout.c (dbx_debug_hooks): Likewise.
1971         * sdbout.c (sdb_debug_hooks): Likewise.
1972         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1973         * dwarf2out.c (main_translation_unit): New global variable.
1974         (dwarf2out_register_main_translation_unit): New function
1975         implementing the new hook.
1976         (dwarf2_debug_hooks): Assign
1977         dwarf2out_register_main_translation_unit to this new hook.
1978         (dwarf2out_init): Associate any main translation unit to
1979         comp_unit_die ().
1981 2015-06-11  Marek Polacek  <polacek@redhat.com>
1983         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
1985 2015-06-11  Marek Polacek  <polacek@redhat.com>
1987         * match.pd: Use single_use throughout.
1989 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1991         * config/arm/arm.c (arm_option_params_internal): When optimising
1992         for speed set max_insns_skipped when arm_restrict_it.
1994 2015-06-11  Christian Bruel  <christian.bruel@st.com>
1996         PR target/52144
1997         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
1998          macros in ...
1999         (arm_cpu_builtins): New function.
2000         (arm_pragma_target_parse): Call arm_cpu_builtins.
2001         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
2002         (arm_register_target_pragmas): Likewise.
2003         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
2004          Call arm_register_target_pragmas.
2005         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
2006         (arm_pragma_target_parse): Likewise.
2008 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2010         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
2011         of the second operand.
2013 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
2015         PR target/66473
2016         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2017         to prepare mask operand for AVX512 modes.
2019 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2021         PR target/66474
2022         * doc/md.texi (Machine Constraints): Document that on the PowerPC
2023         if you use a constraint that targets a VSX register, you must use
2024         %x<n> in the template.
2026 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
2028         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
2029         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
2030         (define_insn "trap"): New definition.
2032 2015-06-10  Richard Biener  <rguenther@suse.de>
2034         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
2035         out from ...
2036         (vect_supported_load_permutation_p): ... here.  Handle
2037         supportable permutations in reductions.
2038         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
2039         for vectorizing strided group loads.
2041 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
2043         PR target/66470
2044         * config/i386/i386.c (ix86_split_long_move): For collisions
2045         involving direct tls segment refs, move the UNSPEC_TP possibly
2046         wrapped in ZERO_EXTEND out of the address for lea, to each of
2047         the memory loads.
2049 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2051         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
2052         dmb sy. Adjust tabs.
2054 2015-06-10  Tom de Vries  <tom@codesourcery.com>
2056         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
2058 2015-06-10  Martin Liska  <mliska@suse.cz>
2060         PR bootstrap/66471
2061         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
2062         all enum values in mem_alloc_origin.
2063         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
2064         name.
2065         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
2066         * bitmap.c (bitmap_register): Likewise.
2067         (dump_bitmap_statistics): Likewise.
2068         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2069         (ggc_record_overhead): Likewise.
2070         * hash-map.h: Likewise.
2071         * hash-set.h: Likewise.
2072         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
2073         * hash-table.h: Likewise.
2074         * vec.c (vec_prefix::register_overhead): Likewise.
2075         (vec_prefix::release_overhead): Likewise.
2076         (dump_vec_loc_statistics): Likewise.
2078 2015-06-09  Christian Bruel  <christian.bruel@st.com>
2080         PR target/52144
2081         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
2082         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
2083         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
2084         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
2085         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
2086         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
2087         (arm_valid_target_attribute_p): Likewise.
2088         (arm_set_current_function, arm_can_inline_p): Likewise.
2089         (arm_valid_target_attribute_rec): Likewise.
2090         (arm_previous_fndecl): New variable.
2091         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2092         (TARGET_CAN_INLINE_P): Define.
2093         (arm_asm_trampoline_template): Emit mode.
2094         (arm_file_start): Don't set unified syntax.
2095         (arm_declare_function_name): Set unified syntax and mode.
2096         (arm_option_override): Init target_option_default_node.
2097         and target_option_current_node.
2098         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
2099         (*call_symbol): Likewise.
2100         * doc/extend.texi: Document ARM/Thumb target attribute.
2101         * doc/invoke.texi: Likewise.
2103 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2105         Revert:
2106         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2107         PR rtl-optimization/64164
2108         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2109         * tree-ssa-copyrename.c: Removed.
2110         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2111         -ftree-coalesce-vars.
2112         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2113         * common.opt (ftree-copyrename): Ignore.
2114         (ftree-coalesce-inlined-vars): Likewise.
2115         * doc/invoke.texi: Remove the ignored options above.
2116         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2117         * tree-ssa-coalesce.h: ... here.
2118         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2119         headers required by it.
2120         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2121         across variables when flag_tree_coalesce_vars.  Check register
2122         use and promoted modes to allow coalescing.  Moved to
2123         tree-ssa-coalesce.c.
2124         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2125         with its member functions to tree-ssa-coalesce.c.
2126         (var_map_base_init): Likewise.  Renamed to
2127         compute_samebase_partition_bases.
2128         (partition_view_normal): Drop want_bases parameter.
2129         (partition_view_bitmap): Likewise.
2130         * tree-ssa-live.h: Adjust declarations.
2131         * tree-ssa-coalesce.c: Include explow.h.
2132         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2133         default defs at the entry point.
2134         (dump_part_var_map): New.
2135         (compute_optimized_partition_bases): New, called by...
2136         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2137         of compute_samebase_partition_bases.  Adjust.
2138         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2139         * cfgexpand.c (leader_merge): New.
2140         (get_rtl_for_parm_ssa_default_def): New.
2141         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2142         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2143         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2144         redundant MEM attr setting.
2145         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2146         from...
2147         (expand_one_stack_var): ... this.  New wrapper to check and
2148         skip already expanded SSA partitions.
2149         (record_alignment_for_reg_var): New, factored out of...
2150         (expand_one_var): ... this.
2151         (expand_one_ssa_partition): New.
2152         (adjust_one_expanded_partition_var): New.
2153         (expand_one_register_var): Check and skip already expanded SSA
2154         partitions.
2155         (expand_used_vars): Don't create DECLs for anonymous SSA
2156         names.  Expand all SSA partitions, then adjust all SSA names.
2157         (pass::execute): Replace the loops that set
2158         SA.partition_to_pseudo from partition leaders and cleared
2159         DECL_RTL for multi-location variables, and that which used to
2160         rename vars and set attrs, with one that clears DECL_RTL and
2161         checks that PARMs and RESULTs default_defs match DECL_RTL.
2162         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2163         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2164         * explow.c (promote_ssa_mode): New.
2165         * explow.h (promote_ssa_mode): Declare.
2166         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2167         * function.c: Include cfgexpand.h.
2168         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2169         (use_register_for_parm_decl): Wrapper for the above to
2170         special-case the result_ptr.
2171         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2172         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2173         multiple locations.
2174         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2175         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2176         (assign_parm_setup_block): Prefer SSA-assigned location.
2177         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2178         if stack_parm is NULL.
2179         (assign_parm_setup_stack): Prefer SSA-assigned location.
2180         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2181         rtl before testing for pointer bounds.  Special-case result_ptr.
2182         (expand_function_start): Maybe reset DECL_RTL of result.
2183         Prefer SSA-assigned location for result and static chain.
2184         Factor out DECL_RESULT and SET_DECL_RTL.
2185         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2186         anonymous SSA names.  Use promote_ssa_mode.
2187         (get_temp_reg): Likewise.
2188         (remove_ssa_form): Adjust.
2189         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2190         and get its reg_usage for reg invalidation.
2191         (compute_bb_dataflow): Pass it insn.
2192         (emit_notes_in_bb): Likewise.
2193         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2194         fail assert on conversion between unsigned types.
2196 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2198         PR tree-optimization/65460
2199         * omp-low.c (expand_omp_target): Set parallelized_function on
2200         cgraph_node for child_fn.
2202 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2204         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
2205         parallelized_function before add_new_function.
2207 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
2209         * gcc-plugin.h: Move decls to plugin.h and include it.
2210         * plugin.h: Relocate decls from gcc-plugin.h
2211         * ggc-page.c: Include required header files.
2212         * passes.c: Likewise.
2213         * cgraphunit.c: Likewise.
2215 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2217         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
2219 2015-06-09  Jason Merrill  <jason@redhat.com>
2221         PR bootstrap/66448
2222         * toplev.c (check_global_declaration): Don't warn about a clone.
2224 2015-06-09  Marek Polacek  <polacek@redhat.com>
2226         PR tree-optimization/66299
2227         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
2228         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
2229         patterns.
2231 2015-06-09  Richard Biener  <rguenther@suse.de>
2233         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
2234         (vect_analyze_slp_instance): Instead do not falsely drop
2235         load permutations.
2237 2015-06-09  Richard Biener  <rguenther@suse.de>
2239         PR middle-end/66423
2240         * match.pd: Handle A % (unsigned)(1 << B).
2242 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
2244         * varasm.c (output_object_block_htab): Remove.
2245         (output_object_block_compare): New.
2246         (output_object_blocks): Sort named object_blocks before outputting
2247         them.
2249 2015-06-09  Richard Biener  <rguenther@suse.de>
2251         PR tree-optimization/66419
2252         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
2253         consider GROUP_GAP when detecting a perfect subchain.
2255 2015-06-09  Nick Clifton  <nickc@redhat.com>
2257         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
2258         place read only data in the .frodata section.
2260 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
2262         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
2263         (atomic_store<mode>): Likewise.
2265 2015-06-09  Richard Biener  <rguenther@suse.de>
2267         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
2269 2015-06-09  Richard Biener  <rguenther@suse.de>
2271         PR middle-end/66413
2272         * tree-inline.c (insert_init_debug_bind): Unshare value.
2274 2015-06-09  Richard Biener  <rguenther@suse.de>
2276         PR tree-optimization/66396
2277         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2278         Rename virtual operands.
2280 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2282         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
2283         always return false.
2285 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2287         PR rtl-optimization/64164
2288         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2289         * tree-ssa-copyrename.c: Removed.
2290         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2291         -ftree-coalesce-vars.
2292         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2293         * common.opt (ftree-copyrename): Ignore.
2294         (ftree-coalesce-inlined-vars): Likewise.
2295         * doc/invoke.texi: Remove the ignored options above.
2296         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2297         * tree-ssa-coalesce.h: ... here.
2298         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2299         headers required by it.
2300         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2301         across variables when flag_tree_coalesce_vars.  Check register
2302         use and promoted modes to allow coalescing.  Moved to
2303         tree-ssa-coalesce.c.
2304         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2305         with its member functions to tree-ssa-coalesce.c.
2306         (var_map_base_init): Likewise.  Renamed to
2307         compute_samebase_partition_bases.
2308         (partition_view_normal): Drop want_bases parameter.
2309         (partition_view_bitmap): Likewise.
2310         * tree-ssa-live.h: Adjust declarations.
2311         * tree-ssa-coalesce.c: Include explow.h.
2312         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2313         default defs at the entry point.
2314         (dump_part_var_map): New.
2315         (compute_optimized_partition_bases): New, called by...
2316         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2317         of compute_samebase_partition_bases.  Adjust.
2318         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2319         * cfgexpand.c (leader_merge): New.
2320         (get_rtl_for_parm_ssa_default_def): New.
2321         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2322         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2323         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2324         redundant MEM attr setting.
2325         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2326         from...
2327         (expand_one_stack_var): ... this.  New wrapper to check and
2328         skip already expanded SSA partitions.
2329         (record_alignment_for_reg_var): New, factored out of...
2330         (expand_one_var): ... this.
2331         (expand_one_ssa_partition): New.
2332         (adjust_one_expanded_partition_var): New.
2333         (expand_one_register_var): Check and skip already expanded SSA
2334         partitions.
2335         (expand_used_vars): Don't create DECLs for anonymous SSA
2336         names.  Expand all SSA partitions, then adjust all SSA names.
2337         (pass::execute): Replace the loops that set
2338         SA.partition_to_pseudo from partition leaders and cleared
2339         DECL_RTL for multi-location variables, and that which used to
2340         rename vars and set attrs, with one that clears DECL_RTL and
2341         checks that PARMs and RESULTs default_defs match DECL_RTL.
2342         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2343         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2344         * explow.c (promote_ssa_mode): New.
2345         * explow.h (promote_ssa_mode): Declare.
2346         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2347         * function.c: Include cfgexpand.h.
2348         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2349         (use_register_for_parm_decl): Wrapper for the above to
2350         special-case the result_ptr.
2351         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2352         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2353         multiple locations.
2354         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2355         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2356         (assign_parm_setup_block): Prefer SSA-assigned location.
2357         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2358         if stack_parm is NULL.
2359         (assign_parm_setup_stack): Prefer SSA-assigned location.
2360         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2361         rtl before testing for pointer bounds.  Special-case result_ptr.
2362         (expand_function_start): Maybe reset DECL_RTL of result.
2363         Prefer SSA-assigned location for result and static chain.
2364         Factor out DECL_RESULT and SET_DECL_RTL.
2365         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2366         anonymous SSA names.  Use promote_ssa_mode.
2367         (get_temp_reg): Likewise.
2368         (remove_ssa_form): Adjust.
2369         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2370         and get its reg_usage for reg invalidation.
2371         (compute_bb_dataflow): Pass it insn.
2372         (emit_notes_in_bb): Likewise.
2373         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2374         fail assert on conversion between unsigned types.
2376 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2378         PR debug/58315
2379         * tree-inline.c (reset_debug_binding): New.
2380         (reset_debug_bindings): Likewise.
2381         (expand_call_inline): Call it.
2383 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2385         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2386         TYPE_STRING_FLAG.
2388 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2390         * lto-streamer-out.c (lto_output_location): Stream
2391         reserved locations correctly.
2392         * lto-streamer-in.c (lto_output_location): Likewise.
2394 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2396         * coretypes.h: Include hash-table.h and hash-set.h for host files.
2397         * ggc.h: Don't include statistics.h>
2398         * hash-map.h: Remove all includes.
2399         * hash-set.h: Likewise.
2400         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2401         the include list. Remove <new>.
2402         * inchash.h: Remove all includes.
2403         * mem-stats.h: Likewise.
2404         * vec.h: No special processing for generators or ggc.  
2405         * alias.c : Adjust include files.
2406         * alloc-pool.c : Likewise.
2407         * alloc-pool.h : Likewise.
2408         * asan.c : Likewise.
2409         * attribs.c : Likewise.
2410         * auto-inc-dec.c : Likewise.
2411         * auto-profile.c : Likewise.
2412         * bb-reorder.c : Likewise.
2413         * bitmap.c : Likewise.
2414         * bitmap.h : Likewise.
2415         * bt-load.c : Likewise.
2416         * builtins.c : Likewise.
2417         * caller-save.c : Likewise.
2418         * calls.c : Likewise.
2419         * ccmp.c : Likewise.
2420         * cfg.c : Likewise.
2421         * cfganal.c : Likewise.
2422         * cfgbuild.c : Likewise.
2423         * cfgcleanup.c : Likewise.
2424         * cfgexpand.c : Likewise.
2425         * cfghooks.c : Likewise.
2426         * cfgloop.c : Likewise.
2427         * cfgloop.h : Likewise.
2428         * cfgloopanal.c : Likewise.
2429         * cfgloopmanip.c : Likewise.
2430         * cfgrtl.c : Likewise.
2431         * cgraph.c : Likewise.
2432         * cgraphbuild.c : Likewise.
2433         * cgraphclones.c : Likewise.
2434         * cgraphunit.c : Likewise.
2435         * cilk-common.c : Likewise.
2436         * combine-stack-adj.c : Likewise.
2437         * combine.c : Likewise.
2438         * compare-elim.c : Likewise.
2439         * context.c : Likewise.
2440         * convert.c : Likewise.
2441         * coverage.c : Likewise.
2442         * cppbuiltin.c : Likewise.
2443         * cprop.c : Likewise.
2444         * cse.c : Likewise.
2445         * cselib.c : Likewise.
2446         * data-streamer-in.c : Likewise.
2447         * data-streamer-out.c : Likewise.
2448         * data-streamer.c : Likewise.
2449         * data-streamer.h : Likewise.
2450         * dbxout.c : Likewise.
2451         * dce.c : Likewise.
2452         * ddg.c : Likewise.
2453         * debug.c : Likewise.
2454         * df-core.c : Likewise.
2455         * df-problems.c : Likewise.
2456         * df-scan.c : Likewise.
2457         * df.h : Likewise.
2458         * dfp.c : Likewise.
2459         * dojump.c : Likewise.
2460         * dominance.c : Likewise.
2461         * domwalk.c : Likewise.
2462         * double-int.c : Likewise.
2463         * dse.c : Likewise.
2464         * dumpfile.c : Likewise.
2465         * dwarf2asm.c : Likewise.
2466         * dwarf2cfi.c : Likewise.
2467         * dwarf2out.c : Likewise.
2468         * emit-rtl.c : Likewise.
2469         * et-forest.c : Likewise.
2470         * except.c : Likewise.
2471         * except.h : Likewise.
2472         * explow.c : Likewise.
2473         * expmed.c : Likewise.
2474         * expr.c : Likewise.
2475         * final.c : Likewise.
2476         * fixed-value.c : Likewise.
2477         * fold-const.c : Likewise.
2478         * function.c : Likewise.
2479         * fwprop.c : Likewise.
2480         * gcc-plugin.h : Likewise.
2481         * gcc.c : Likewise.
2482         * gcse-common.c : Likewise.
2483         * gcse.c : Likewise.
2484         * genattrtab.c : Likewise.
2485         * genautomata.c : Likewise.
2486         * genconditions.c : Likewise.
2487         * genemit.c : Likewise.
2488         * generic-match-head.c : Likewise.
2489         * genextract.c : Likewise.
2490         * gengtype-state.c : Likewise.
2491         * gengtype.c : Likewise.
2492         * genhooks.c : Likewise.
2493         * genmatch.c : Likewise.
2494         * genmodes.c : Likewise.
2495         * genrecog.c : Likewise.
2496         * gensupport.c : Likewise.
2497         * ggc-common.c : Likewise.
2498         * ggc-internal.h : Likewise.
2499         * ggc-none.c : Likewise.
2500         * ggc-page.c : Likewise.
2501         * gimple-builder.c : Likewise.
2502         * gimple-expr.c : Likewise.
2503         * gimple-fold.c : Likewise.
2504         * gimple-iterator.c : Likewise.
2505         * gimple-low.c : Likewise.
2506         * gimple-match-head.c : Likewise.
2507         * gimple-pretty-print.c : Likewise.
2508         * gimple-ssa-isolate-paths.c : Likewise.
2509         * gimple-ssa-strength-reduction.c : Likewise.
2510         * gimple-ssa.h : Likewise.
2511         * gimple-streamer-in.c : Likewise.
2512         * gimple-streamer-out.c : Likewise.
2513         * gimple-streamer.h : Likewise.
2514         * gimple-walk.c : Likewise.
2515         * gimple.c : Likewise.
2516         * gimplify-me.c : Likewise.
2517         * gimplify.c : Likewise.
2518         * godump.c : Likewise.
2519         * graph.c : Likewise.
2520         * graphds.c : Likewise.
2521         * graphite-blocking.c : Likewise.
2522         * graphite-dependences.c : Likewise.
2523         * graphite-interchange.c : Likewise.
2524         * graphite-isl-ast-to-gimple.c : Likewise.
2525         * graphite-optimize-isl.c : Likewise.
2526         * graphite-poly.c : Likewise.
2527         * graphite-scop-detection.c : Likewise.
2528         * graphite-sese-to-poly.c : Likewise.
2529         * graphite.c : Likewise.
2530         * haifa-sched.c : Likewise.
2531         * hard-reg-set.h : Likewise.
2532         * hw-doloop.c : Likewise.
2533         * ifcvt.c : Likewise.
2534         * inchash.c : Likewise.
2535         * incpath.c : Likewise.
2536         * init-regs.c : Likewise.
2537         * input.c : Likewise.
2538         * internal-fn.c : Likewise.
2539         * ipa-chkp.c : Likewise.
2540         * ipa-comdats.c : Likewise.
2541         * ipa-cp.c : Likewise.
2542         * ipa-devirt.c : Likewise.
2543         * ipa-icf-gimple.c : Likewise.
2544         * ipa-icf.c : Likewise.
2545         * ipa-inline-analysis.c : Likewise.
2546         * ipa-inline-transform.c : Likewise.
2547         * ipa-inline.c : Likewise.
2548         * ipa-polymorphic-call.c : Likewise.
2549         * ipa-profile.c : Likewise.
2550         * ipa-prop.c : Likewise.
2551         * ipa-pure-const.c : Likewise.
2552         * ipa-ref.c : Likewise.
2553         * ipa-reference.c : Likewise.
2554         * ipa-split.c : Likewise.
2555         * ipa-utils.c : Likewise.
2556         * ipa-visibility.c : Likewise.
2557         * ipa.c : Likewise.
2558         * ira-build.c : Likewise.
2559         * ira-color.c : Likewise.
2560         * ira-conflicts.c : Likewise.
2561         * ira-costs.c : Likewise.
2562         * ira-emit.c : Likewise.
2563         * ira-lives.c : Likewise.
2564         * ira.c : Likewise.
2565         * jump.c : Likewise.
2566         * langhooks.c : Likewise.
2567         * lcm.c : Likewise.
2568         * libfuncs.h : Likewise.
2569         * lists.c : Likewise.
2570         * loop-doloop.c : Likewise.
2571         * loop-init.c : Likewise.
2572         * loop-invariant.c : Likewise.
2573         * loop-iv.c : Likewise.
2574         * loop-unroll.c : Likewise.
2575         * lower-subreg.c : Likewise.
2576         * lra-assigns.c : Likewise.
2577         * lra-coalesce.c : Likewise.
2578         * lra-constraints.c : Likewise.
2579         * lra-eliminations.c : Likewise.
2580         * lra-lives.c : Likewise.
2581         * lra-remat.c : Likewise.
2582         * lra-spills.c : Likewise.
2583         * lra.c : Likewise.
2584         * lto-cgraph.c : Likewise.
2585         * lto-compress.c : Likewise.
2586         * lto-opts.c : Likewise.
2587         * lto-section-in.c : Likewise.
2588         * lto-section-out.c : Likewise.
2589         * lto-streamer-in.c : Likewise.
2590         * lto-streamer-out.c : Likewise.
2591         * lto-streamer.c : Likewise.
2592         * lto-streamer.h : Likewise.
2593         * mcf.c : Likewise.
2594         * mode-switching.c : Likewise.
2595         * modulo-sched.c : Likewise.
2596         * omega.c : Likewise.
2597         * omp-low.c : Likewise.
2598         * optabs.c : Likewise.
2599         * opts-global.c : Likewise.
2600         * opts.h : Likewise.
2601         * passes.c : Likewise.
2602         * plugin.c : Likewise.
2603         * postreload-gcse.c : Likewise.
2604         * postreload.c : Likewise.
2605         * predict.c : Likewise.
2606         * print-rtl.c : Likewise.
2607         * print-tree.c : Likewise.
2608         * profile.c : Likewise.
2609         * read-md.c : Likewise.
2610         * read-md.h : Likewise.
2611         * read-rtl.c : Likewise.
2612         * real.c : Likewise.
2613         * realmpfr.c : Likewise.
2614         * recog.c : Likewise.
2615         * ree.c : Likewise.
2616         * reg-stack.c : Likewise.
2617         * regcprop.c : Likewise.
2618         * reginfo.c : Likewise.
2619         * regrename.c : Likewise.
2620         * regstat.c : Likewise.
2621         * reload.c : Likewise.
2622         * reload1.c : Likewise.
2623         * reorg.c : Likewise.
2624         * resource.c : Likewise.
2625         * rtl-chkp.c : Likewise.
2626         * rtl.c : Likewise.
2627         * rtl.h : Likewise.
2628         * rtlanal.c : Likewise.
2629         * rtlhash.c : Likewise.
2630         * rtlhash.h : Likewise.
2631         * rtlhooks.c : Likewise.
2632         * sanopt.c : Likewise.
2633         * sched-deps.c : Likewise.
2634         * sched-ebb.c : Likewise.
2635         * sched-rgn.c : Likewise.
2636         * sched-vis.c : Likewise.
2637         * sdbout.c : Likewise.
2638         * sel-sched-dump.c : Likewise.
2639         * sel-sched-ir.c : Likewise.
2640         * sel-sched-ir.h : Likewise.
2641         * sel-sched.c : Likewise.
2642         * sese.c : Likewise.
2643         * shrink-wrap.c : Likewise.
2644         * shrink-wrap.h : Likewise.
2645         * simplify-rtx.c : Likewise.
2646         * stack-ptr-mod.c : Likewise.
2647         * statistics.c : Likewise.
2648         * stmt.c : Likewise.
2649         * stor-layout.c : Likewise.
2650         * store-motion.c : Likewise.
2651         * stringpool.c : Likewise.
2652         * symtab.c : Likewise.
2653         * target-globals.c : Likewise.
2654         * targhooks.c : Likewise.
2655         * tlink.c : Likewise.
2656         * toplev.c : Likewise.
2657         * tracer.c : Likewise.
2658         * trans-mem.c : Likewise.
2659         * tree-affine.c : Likewise.
2660         * tree-affine.h : Likewise.
2661         * tree-browser.c : Likewise.
2662         * tree-call-cdce.c : Likewise.
2663         * tree-cfg.c : Likewise.
2664         * tree-cfgcleanup.c : Likewise.
2665         * tree-chkp-opt.c : Likewise.
2666         * tree-chkp.c : Likewise.
2667         * tree-chrec.c : Likewise.
2668         * tree-complex.c : Likewise.
2669         * tree-data-ref.c : Likewise.
2670         * tree-dfa.c : Likewise.
2671         * tree-diagnostic.c : Likewise.
2672         * tree-dump.c : Likewise.
2673         * tree-eh.c : Likewise.
2674         * tree-eh.h : Likewise.
2675         * tree-emutls.c : Likewise.
2676         * tree-hasher.h : Likewise.
2677         * tree-if-conv.c : Likewise.
2678         * tree-inline.c : Likewise.
2679         * tree-inline.h : Likewise.
2680         * tree-into-ssa.c : Likewise.
2681         * tree-iterator.c : Likewise.
2682         * tree-loop-distribution.c : Likewise.
2683         * tree-nested.c : Likewise.
2684         * tree-nrv.c : Likewise.
2685         * tree-object-size.c : Likewise.
2686         * tree-outof-ssa.c : Likewise.
2687         * tree-parloops.c : Likewise.
2688         * tree-phinodes.c : Likewise.
2689         * tree-predcom.c : Likewise.
2690         * tree-pretty-print.c : Likewise.
2691         * tree-profile.c : Likewise.
2692         * tree-scalar-evolution.c : Likewise.
2693         * tree-sra.c : Likewise.
2694         * tree-ssa-address.c : Likewise.
2695         * tree-ssa-alias.c : Likewise.
2696         * tree-ssa-ccp.c : Likewise.
2697         * tree-ssa-coalesce.c : Likewise.
2698         * tree-ssa-copy.c : Likewise.
2699         * tree-ssa-copyrename.c : Likewise.
2700         * tree-ssa-dce.c : Likewise.
2701         * tree-ssa-dom.c : Likewise.
2702         * tree-ssa-dse.c : Likewise.
2703         * tree-ssa-forwprop.c : Likewise.
2704         * tree-ssa-ifcombine.c : Likewise.
2705         * tree-ssa-live.c : Likewise.
2706         * tree-ssa-loop-ch.c : Likewise.
2707         * tree-ssa-loop-im.c : Likewise.
2708         * tree-ssa-loop-ivcanon.c : Likewise.
2709         * tree-ssa-loop-ivopts.c : Likewise.
2710         * tree-ssa-loop-manip.c : Likewise.
2711         * tree-ssa-loop-niter.c : Likewise.
2712         * tree-ssa-loop-prefetch.c : Likewise.
2713         * tree-ssa-loop-unswitch.c : Likewise.
2714         * tree-ssa-loop.c : Likewise.
2715         * tree-ssa-math-opts.c : Likewise.
2716         * tree-ssa-operands.c : Likewise.
2717         * tree-ssa-phiopt.c : Likewise.
2718         * tree-ssa-phiprop.c : Likewise.
2719         * tree-ssa-pre.c : Likewise.
2720         * tree-ssa-propagate.c : Likewise.
2721         * tree-ssa-reassoc.c : Likewise.
2722         * tree-ssa-sccvn.c : Likewise.
2723         * tree-ssa-scopedtables.c : Likewise.
2724         * tree-ssa-sink.c : Likewise.
2725         * tree-ssa-strlen.c : Likewise.
2726         * tree-ssa-structalias.c : Likewise.
2727         * tree-ssa-tail-merge.c : Likewise.
2728         * tree-ssa-ter.c : Likewise.
2729         * tree-ssa-threadedge.c : Likewise.
2730         * tree-ssa-threadupdate.c : Likewise.
2731         * tree-ssa-uncprop.c : Likewise.
2732         * tree-ssa-uninit.c : Likewise.
2733         * tree-ssa.c : Likewise.
2734         * tree-ssanames.c : Likewise.
2735         * tree-stdarg.c : Likewise.
2736         * tree-streamer-in.c : Likewise.
2737         * tree-streamer-out.c : Likewise.
2738         * tree-streamer.c : Likewise.
2739         * tree-streamer.h : Likewise.
2740         * tree-switch-conversion.c : Likewise.
2741         * tree-tailcall.c : Likewise.
2742         * tree-vect-data-refs.c : Likewise.
2743         * tree-vect-generic.c : Likewise.
2744         * tree-vect-loop-manip.c : Likewise.
2745         * tree-vect-loop.c : Likewise.
2746         * tree-vect-patterns.c : Likewise.
2747         * tree-vect-slp.c : Likewise.
2748         * tree-vect-stmts.c : Likewise.
2749         * tree-vectorizer.c : Likewise.
2750         * tree-vectorizer.h : Likewise.
2751         * tree-vrp.c : Likewise.
2752         * tree.c : Likewise.
2753         * tsan.c : Likewise.
2754         * ubsan.c : Likewise.
2755         * valtrack.c : Likewise.
2756         * valtrack.h : Likewise.
2757         * value-prof.c : Likewise.
2758         * var-tracking.c : Likewise.
2759         * varasm.c : Likewise.
2760         * varpool.c : Likewise.
2761         * vec.c: Likewise.
2762         * vmsdbgout.c : Likewise.
2763         * vtable-verify.c : Likewise.
2764         * vtable-verify.h : Likewise.
2765         * web.c : Likewise.
2766         * wide-int.cc : Likewise.
2767         * xcoffout.c : Likewise.
2768         * config/aarch64/aarch64-builtins.c : Likewise.
2769         * config/aarch64/aarch64.c : Likewise.
2770         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
2771         * config/alpha/alpha.c : Likewise.
2772         * config/arc/arc.c : Likewise.
2773         * config/arm/aarch-common.c : Likewise.
2774         * config/arm/arm-builtins.c : Likewise.
2775         * config/arm/arm-c.c : Likewise.
2776         * config/arm/arm.c : Likewise.
2777         * config/avr/avr-c.c : Likewise.
2778         * config/avr/avr-log.c : Likewise.
2779         * config/avr/avr.c : Likewise.
2780         * config/bfin/bfin.c : Likewise.
2781         * config/c6x/c6x.c : Likewise.
2782         * config/cr16/cr16.c : Likewise.
2783         * config/cris/cris.c : Likewise.
2784         * config/darwin-c.c : Likewise.
2785         * config/darwin.c : Likewise.
2786         * config/default-c.c : Likewise.
2787         * config/epiphany/epiphany.c : Likewise.
2788         * config/epiphany/mode-switch-use.c : Likewise.
2789         * config/epiphany/resolve-sw-modes.c : Likewise.
2790         * config/fr30/fr30.c : Likewise.
2791         * config/frv/frv.c : Likewise.
2792         * config/ft32/ft32.c : Likewise.
2793         * config/glibc-c.c : Likewise.
2794         * config/h8300/h8300.c : Likewise.
2795         * config/i386/i386-c.c : Likewise.
2796         * config/i386/i386.c : Likewise.
2797         * config/i386/msformat-c.c : Likewise.
2798         * config/i386/winnt-cxx.c : Likewise.
2799         * config/i386/winnt-stubs.c : Likewise.
2800         * config/i386/winnt.c : Likewise.
2801         * config/ia64/ia64-c.c : Likewise.
2802         * config/ia64/ia64.c : Likewise.
2803         * config/iq2000/iq2000.c : Likewise.
2804         * config/lm32/lm32.c : Likewise.
2805         * config/m32c/m32c-pragma.c : Likewise.
2806         * config/m32c/m32c.c : Likewise.
2807         * config/m32r/m32r.c : Likewise.
2808         * config/m68k/m68k.c : Likewise.
2809         * config/mcore/mcore.c : Likewise.
2810         * config/mep/mep-pragma.c : Likewise.
2811         * config/mep/mep.c : Likewise.
2812         * config/microblaze/microblaze-c.c : Likewise.
2813         * config/microblaze/microblaze.c : Likewise.
2814         * config/mips/mips.c : Likewise.
2815         * config/mmix/mmix.c : Likewise.
2816         * config/mn10300/mn10300.c : Likewise.
2817         * config/moxie/moxie.c : Likewise.
2818         * config/msp430/msp430-c.c : Likewise.
2819         * config/msp430/msp430.c : Likewise.
2820         * config/nds32/nds32-cost.c : Likewise.
2821         * config/nds32/nds32-fp-as-gp.c : Likewise.
2822         * config/nds32/nds32-intrinsic.c : Likewise.
2823         * config/nds32/nds32-isr.c : Likewise.
2824         * config/nds32/nds32-md-auxiliary.c : Likewise.
2825         * config/nds32/nds32-memory-manipulation.c : Likewise.
2826         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
2827         * config/nds32/nds32-predicates.c : Likewise.
2828         * config/nds32/nds32.c : Likewise.
2829         * config/nios2/nios2.c : Likewise.
2830         * config/nvptx/nvptx.c : Likewise.
2831         * config/pa/pa.c : Likewise.
2832         * config/pdp11/pdp11.c : Likewise.
2833         * config/rl78/rl78-c.c : Likewise.
2834         * config/rl78/rl78.c : Likewise.
2835         * config/rs6000/rs6000-c.c : Likewise.
2836         * config/rs6000/rs6000.c : Likewise.
2837         * config/rx/rx.c : Likewise.
2838         * config/s390/s390-c.c : Likewise.
2839         * config/s390/s390.c : Likewise.
2840         * config/sh/sh-c.c : Likewise.
2841         * config/sh/sh-mem.cc : Likewise.
2842         * config/sh/sh.c : Likewise.
2843         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
2844         * config/sh/sh_treg_combine.cc : Likewise.
2845         * config/sol2-c.c : Likewise.
2846         * config/sol2-cxx.c : Likewise.
2847         * config/sol2-stubs.c : Likewise.
2848         * config/sol2.c : Likewise.
2849         * config/sparc/sparc-c.c : Likewise.
2850         * config/sparc/sparc.c : Likewise.
2851         * config/spu/spu-c.c : Likewise.
2852         * config/spu/spu.c : Likewise.
2853         * config/stormy16/stormy16.c : Likewise.
2854         * config/tilegx/mul-tables.c : Likewise.
2855         * config/tilegx/tilegx-c.c : Likewise.
2856         * config/tilegx/tilegx.c : Likewise.
2857         * config/tilepro/mul-tables.c : Likewise.
2858         * config/tilepro/tilepro-c.c : Likewise.
2859         * config/tilepro/tilepro.c : Likewise.
2860         * config/v850/v850-c.c : Likewise.
2861         * config/v850/v850.c : Likewise.
2862         * config/vax/vax.c : Likewise.
2863         * config/visium/visium.c : Likewise.
2864         * config/vms/vms-c.c : Likewise.
2865         * config/vms/vms.c : Likewise.
2866         * config/vxworks.c : Likewise.
2867         * config/winnt-c.c : Likewise.
2868         * config/xtensa/xtensa.c : Likewise.
2870 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2872         PR lto/65378
2873         * ipa-utils.h (warn_types_mismatch): Update prototype.
2874         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
2875         parameters.
2876         (type_mismatch_p): New function.
2877         (warn_types_mismatch): Reorg to work better on non-C++ types.
2878         (odr_types_equivalent_p): Add loc1/loc2 parameters.
2879         (add_type_duplicate): Update.
2881 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2883         PR rtl-optimization/66444
2884         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2885         call_used_regs.
2887 2015-06-08  Richard Biener  <rguenther@suse.de>
2889         PR tree-optimization/66422
2890         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2891         block after inserted gcc_unreachable.
2893 2015-06-08  Nick Clifton  <nickc@redhat.com>
2895         * config/rx/rx.c (rx_function_value): Do not promote vector types.
2896         (rx_promote_function_mode): Likewise.
2897         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
2899 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
2901         * genattrtab.c (insn_alternatives): Change type from int *
2902         to uint64_t *.
2903         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2904         (get_attr_value): Change type of num_alt to uint64_t.
2905         (compute_alternative_mask): Change return type from
2906         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2907         (make_alternative_compare, mk_attr_alt): Change argument type
2908         from int to uint64_t.
2909         (simplify_test_exp): Change type of i from int to uint64_t.
2910         Shift ((uint64_t) 1) instead of 1 up.
2911         (main): Adjust oballocvec first argument from int to uint64_t.
2912         Shift ((uint64_t) 1) instead of 1 up.
2914 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2916         PR other/65366
2917         * gdbhooks.py: Import sys.
2918         (intptr): New function.  Replace int(...) by intptr(...).
2920 2015-06-08  Richard Biener  <rguenther@suse.de>
2922         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
2923         adjustment for gaps at the end of a SLP load group properly.
2924         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
2925         all permutations we can generate.
2926         (vect_transform_slp_perm_load): Use the correct group-size.
2928 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
2930         * genmatch.c (expr::gen_transform): For conditions, guess the type
2931         from the second operand.
2933 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2935         PR tree-optimization/66442
2936         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
2937         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
2938         if the loop latch is not a singleton.  Use
2939         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
2941 2015-06-08  Marek Polacek  <polacek@redhat.com>
2943         PR sanitizer/66452
2944         * toplev.c (check_global_declaration): Don't warn about artificial
2945         decls.
2947 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2949         PR tree-optimization/66436
2950         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
2951         dump file.
2952         * gimplify.c: Add tree-dump.h include.
2953         (gimplify_function_tree): Dump function to gimple dump file.
2954         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
2955         dump file.
2957 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2959         PR tree-optimization/66435
2960         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
2961         function.
2963 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
2965         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
2966         of ptr_type_node to not be ptr_to_node.
2967         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
2968         TREE_TYPE of pointers.
2969         * gimple-expr.c (useless_type_conversion): Reorder the check for
2970         function pointers and TYPE_CANONICAL.
2972 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
2974         PR bootstrap/66319
2975         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2976         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2977         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2978         later.
2979         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2980         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2981         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2982         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2983         and non iso if unix2003.
2985 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
2987         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2989 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
2991         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
2992         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
2993         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
2994         except.c, final.c, function.c, gcse-common.c, genemit.c,
2995         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
2996         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
2997         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
2998         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
2999         more derived ones.
3001 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
3003         * combine.c (combine_split_insns): Remove cast.
3004         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
3005         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
3006         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
3007         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
3008         * genemit.c (gen_split): Change return type of generated functions to
3009         rtx_insn.
3010         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
3011         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
3012         gen_peephole2_* functions.
3013         (print_subroutine, main): Likewise.
3014         * recog.c (peephole2_optimize): Remove cast.
3015         (peep2_next_insn): Promote return type to rtx_insn.
3016         * recog.h (peep2_next_insn): Fix prototype.
3017         * rtl.h (try_split, split_insns): Likewise.
3019 2015-06-06  DJ Delorie  <dj@redhat.com>
3021         * config/msp430/msp430.c (msp430_asm_integer): Support addition
3022         and subtraction too.
3024 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3026         PR target/66410
3027         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
3028         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
3029         instead of Snd.  Disparage Sid/z alternative with '^'.
3031 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3033         * dwarf2out.c: Remove deferred_locations*.
3034         (dwarf2_debug_hooks): Add early_finish hook.
3035         Remove global_decl hook.
3036         Add early_global_decl and late_global_decl hook.
3037         New global early_dwarf.
3038         New structure set_early_dwarf.
3039         (output_die): Indicate whether a DIE was generated early
3040         when generating assembly with -dA.
3041         (struct limbo_die_struct): Document created_for field.
3042         Remove file_table_last_lookup.
3043         (remove_AT): Return TRUE if successful.
3044         (remove_child_TAG): Clear die_parent.
3045         (reparent_child): New function abstracted from...
3046         (splice_child_die): ...here.
3047         (new_die): ICE if a DIE ends up in limbo too late.
3048         (check_die): New.
3049         (defer_location): Remove.
3050         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
3051         (fill_variable_array_bounds): New.
3052         (decl_start_label): Call fill_variable_array_bounds.
3053         (gen_formal_parameter_die): Rewrite to reuse previously generated
3054         DIEs.
3055         (gen_subprogram_die): Same.
3056         (gen_variable_die): Same.
3057         (gen_const_die): Same.
3058         (gen_label_die): Same.
3059         (gen_lexical_block_die): Same.
3060         (decl_will_get_specification_p): New.
3061         (local_function_static): New.
3062         (gen_struct_or_union_type_die): Fill in variable-length fields.
3063         (gen_typedef_die): Fill in variable-length typedefs.
3064         (gen_tagged_type_die): Gracefully return on error_mark_node.
3065         Handle re-entrancy.
3066         (gen_type_die_with_usage): Handle variable-length types.
3067         Remove duplicate code for ARRAY_TYPE case.
3068         (process_scope_var): Only process imported modules during early
3069         dwarf.
3070         (dwarf2out_early_global_decl): New.
3071         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
3072         (dwarf2out_type_decl): Set early_dwarf while calling
3073         dwarf2out_decl.
3074         (dwarf2out_decl): Verify that we did not recreate a previously
3075         generated DIE.
3076         Do not return on DECL_EXTERNALs in VAR_DECLs.
3077         Abstract some code to local_function_static.
3078         (lookup_filename): Remove use of file_table_last_lookup.
3079         Gracefully exit on missing file_name.
3080         (dwarf2out_finish): Verify limbo list.
3081         Remove deferred_locations_list use.
3082         Move deferred_asm_name and limbo flushing to...
3083         (dwarf2out_early_finish): ...here.  New.
3084         (dwarf2out_c_finalize): Remove set of deferred_location_list,
3085         deferred_asm_name, and file_table_last_lookup.
3086         * cgraph.h (referred_to_p): Add default argument.
3087         * cgraphunit.c (referred_to_p): Add and handle include_self
3088         argument.
3089         (analyze_functions): Add first_time argument.
3090         Call check_global_declaration for all symbols.
3091         Call late_global_decl for nodes for moribund nodes.
3092         (finalize_compilation_unit): Add new argument to
3093         analyze_functions.
3094         Call early_global_decl for functions.
3095         Call early_finish debug hook.
3096         * dbxout.c (dbxout_early_global_decl): New.
3097         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
3098         (dbx_debug_hooks): Add new hooks.
3099         (xcoff_debug_hooks): Same.
3100         * debug.c (do_nothing_debug_hooks): Add early_finish field.
3101         Add early and late debug hooks.
3102         Remove global_decl hook.
3103         * debug.h (struct gcc_debug_hooks): Add early_finish,
3104         early_global_decl, and late_global_decl fields.
3105         Remove global_decl field.
3106         Document gcc_debug_hooks.
3107         * gengtype.c (output_typename): Remove.
3108         * godump.c (go_early_global_decl): New.
3109         (go_late_global_decl): New.
3110         (go_global_decl): Remove.
3111         (dump_go_spec_init): Remove global_decl.  Add
3112         {early,late}_global_decl.
3113         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
3114         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
3115         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
3116         (write_global_declarations): Remove.
3117         (global_decl_processing): New.
3118         * langhooks.h (struct lang_hooks_for_decls): Remove
3119         final_write_globals field.
3120         Add post_compilation_parsing_cleanups field.
3121         * passes.c (rest_of_decl_compilation): Call early_global_decl.
3122         * sdbout.c: Add early and late_global_decl hooks.  Remove
3123         sdbout_global_decl hook.
3124         Add early_finish field for sdb_debug_hooks.
3125         (sdbout_global_decl): Remove.
3126         (sdbout_early_global_decl): New.
3127         (sdbout_late_global_decl): New.
3128         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
3129         * toplev.c (check_global_declaration): Rename from
3130         check_global_declaration_1.
3131         Adapt to use symtab infrastructure.
3132         (check_global_declarations): Remove.
3133         (emit_debug_global_declarations): Remove.
3134         (compile_file): Remove call to final_write_globals langhook.
3135         Run the actual compilation process.
3136         Perform any post compilation parser cleanups.
3137         Generate late debug info.
3138         * toplev.h (check_global_declaration): New.
3139         (check_global_declaration_1): Remove.
3140         (check_global_declarations): Remove.
3141         (write_global_declarations): Remove.
3142         (emit_debug_global_declarations): Remove.
3143         (global_decl_processing): New.
3144         * tree-core.h (struct tree_block): Add DIE field.
3145         * tree.h (BLOCK_DIE): New.
3146         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
3147         throughout.
3148         (vmsdbgout_early_global_decl): New.
3149         (vmsdbgout_late_global_decl): New.
3150         Add early_finish debug hook field to vmsdbg_debug_hooks.
3151         Remove vmsdbgout_decl to vmsdbgout_function_decl.
3152         Add early and late_global_decl debug hooks.
3154 2015-06-05  Julian Brown  <julian@codesourcery.com>
3155             Sandra Loosemore  <sandra@codesourcery.com>
3157         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
3158         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
3159         to print-sysroot-suffix.sh script.
3161 2015-06-05  Tom de Vries  <tom@codesourcery.com>
3163         merge from gomp4 branch:
3164         2015-05-28  Tom de Vries  <tom@codesourcery.com>
3166         PR tree-optimization/65443
3167         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
3168         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
3169         (try_transform_to_exit_first_loop_alt): New function.
3170         (transform_to_exit_first_loop): Use
3171         try_transform_to_exit_first_loop_alt.
3173 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
3175         * builtins.c (expand_builtin_atomic_compare_exchange): Call
3176         emit_cmp_and_jump_insns with the mode of target.
3178 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3180         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
3182 2015-06-04  DJ Delorie  <dj@redhat.com>
3184         * config/msp430/msp430.md (movsi_s): New.  Special case for
3185         storing a 20-bit symbol into a 32-bit register.
3186         * config/msp430/msp430.c (msp430_subreg): Add support for it.
3187         * config/msp430/predicates.md (msp430_symbol_operand): New.
3189 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3191         * c-family/c-common.c (noplt): New attribute.
3192         (handle_noplt_attribute): New handler.
3193         * calls.c (prepare_call_address): Check for noplt
3194         attribute.
3195         * config/i386/i386.c (ix86_expand_call): Check
3196         for noplt attribute.
3197         (ix86_nopic_noplt_attribute_p): New function.
3198         (ix86_output_call_insn): Output indirect call for non-pic
3199         no plt calls.
3200         * doc/extend.texi (noplt): Document new attribute.
3201         * doc/invoke.texi: Document new attribute.
3203 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3205         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
3206         real.h, and fixed-value.h when included in host source files.
3207         * double-int.h: Remove redundant #includes listed above.
3208         * fixed-value.h: Likewise.
3209         * real.h: Likewise.
3210         * wide-int.h: Likewise.
3211         * inchash.h: Likewise.
3212         * rtl.h: Add some include files When included from a generator file.
3213         * target.h: Remove wide-int.h and insn-modes.h from the include list.
3214         * internal-fn.h: Don't include coretypes.h.
3215         * alias.c: Adjust includes for restructured coretypes.h.
3216         * asan.c: Likewise.
3217         * attribs.c: Likewise.
3218         * auto-inc-dec.c: Likewise.
3219         * auto-profile.c: Likewise.
3220         * bb-reorder.c: Likewise.
3221         * bt-load.c: Likewise.
3222         * builtins.c: Likewise.
3223         * caller-save.c: Likewise.
3224         * calls.c: Likewise.
3225         * ccmp.c: Likewise.
3226         * cfg.c: Likewise.
3227         * cfganal.c: Likewise.
3228         * cfgbuild.c: Likewise.
3229         * cfgcleanup.c: Likewise.
3230         * cfgexpand.c: Likewise.
3231         * cfghooks.c: Likewise.
3232         * cfgloop.c: Likewise.
3233         * cfgloop.h: Likewise.
3234         * cfgloopanal.c: Likewise.
3235         * cfgloopmanip.c: Likewise.
3236         * cfgrtl.c: Likewise.
3237         * cgraph.c: Likewise.
3238         * cgraphbuild.c: Likewise.
3239         * cgraphclones.c: Likewise.
3240         * cgraphunit.c: Likewise.
3241         * cilk-common.c: Likewise.
3242         * combine-stack-adj.c: Likewise.
3243         * combine.c: Likewise.
3244         * compare-elim.c: Likewise.
3245         * convert.c: Likewise.
3246         * coverage.c: Likewise.
3247         * cppbuiltin.c: Likewise.
3248         * cprop.c: Likewise.
3249         * cse.c: Likewise.
3250         * cselib.c: Likewise.
3251         * data-streamer-in.c: Likewise.
3252         * data-streamer-out.c: Likewise.
3253         * data-streamer.c: Likewise.
3254         * dbxout.c: Likewise.
3255         * dce.c: Likewise.
3256         * ddg.c: Likewise.
3257         * debug.c: Likewise.
3258         * df-core.c: Likewise.
3259         * df-problems.c: Likewise.
3260         * df-scan.c: Likewise.
3261         * df.h: Likewise.
3262         * dfp.c: Likewise.
3263         * dojump.c: Likewise.
3264         * dominance.c: Likewise.
3265         * domwalk.c: Likewise.
3266         * double-int.c: Likewise.
3267         * dse.c: Likewise.
3268         * dumpfile.c: Likewise.
3269         * dwarf2asm.c: Likewise.
3270         * dwarf2cfi.c: Likewise.
3271         * dwarf2out.c: Likewise.
3272         * dwarf2out.h: Likewise.
3273         * emit-rtl.c: Likewise.
3274         * et-forest.c: Likewise.
3275         * except.c: Likewise.
3276         * explow.c: Likewise.
3277         * expmed.c: Likewise.
3278         * expr.c: Likewise.
3279         * final.c: Likewise.
3280         * fixed-value.c: Likewise.
3281         * fold-const.c: Likewise.
3282         * function.c: Likewise.
3283         * fwprop.c: Likewise.
3284         * gcc-plugin.h: Likewise.
3285         * gcse.c: Likewise.
3286         * generic-match-head.c: Likewise.
3287         * ggc-page.c: Likewise.
3288         * gimple-builder.c: Likewise.
3289         * gimple-expr.c: Likewise.
3290         * gimple-fold.c: Likewise.
3291         * gimple-iterator.c: Likewise.
3292         * gimple-low.c: Likewise.
3293         * gimple-match-head.c: Likewise.
3294         * gimple-pretty-print.c: Likewise.
3295         * gimple-ssa-isolate-paths.c: Likewise.
3296         * gimple-ssa-strength-reduction.c: Likewise.
3297         * gimple-streamer-in.c: Likewise.
3298         * gimple-streamer-out.c: Likewise.
3299         * gimple-streamer.h: Likewise.
3300         * gimple-walk.c: Likewise.
3301         * gimple.c: Likewise.
3302         * gimplify-me.c: Likewise.
3303         * gimplify.c: Likewise.
3304         * godump.c: Likewise.
3305         * graph.c: Likewise.
3306         * graphite-blocking.c: Likewise.
3307         * graphite-dependences.c: Likewise.
3308         * graphite-interchange.c: Likewise.
3309         * graphite-isl-ast-to-gimple.c: Likewise.
3310         * graphite-optimize-isl.c: Likewise.
3311         * graphite-poly.c: Likewise.
3312         * graphite-scop-detection.c: Likewise.
3313         * graphite-sese-to-poly.c: Likewise.
3314         * graphite.c: Likewise.
3315         * haifa-sched.c: Likewise.
3316         * hooks.h: Likewise.
3317         * hw-doloop.c: Likewise.
3318         * ifcvt.c: Likewise.
3319         * incpath.c: Likewise.
3320         * init-regs.c: Likewise.
3321         * internal-fn.c: Likewise.
3322         * ipa-chkp.c: Likewise.
3323         * ipa-comdats.c: Likewise.
3324         * ipa-cp.c: Likewise.
3325         * ipa-devirt.c: Likewise.
3326         * ipa-icf-gimple.c: Likewise.
3327         * ipa-icf.c: Likewise.
3328         * ipa-inline-analysis.c: Likewise.
3329         * ipa-inline-transform.c: Likewise.
3330         * ipa-inline.c: Likewise.
3331         * ipa-polymorphic-call.c: Likewise.
3332         * ipa-profile.c: Likewise.
3333         * ipa-prop.c: Likewise.
3334         * ipa-pure-const.c: Likewise.
3335         * ipa-ref.c: Likewise.
3336         * ipa-reference.c: Likewise.
3337         * ipa-split.c: Likewise.
3338         * ipa-utils.c: Likewise.
3339         * ipa-visibility.c: Likewise.
3340         * ipa.c: Likewise.
3341         * ira-build.c: Likewise.
3342         * ira-color.c: Likewise.
3343         * ira-conflicts.c: Likewise.
3344         * ira-costs.c: Likewise.
3345         * ira-emit.c: Likewise.
3346         * ira-lives.c: Likewise.
3347         * ira.c: Likewise.
3348         * jump.c: Likewise.
3349         * langhooks.c: Likewise.
3350         * lcm.c: Likewise.
3351         * loop-doloop.c: Likewise.
3352         * loop-init.c: Likewise.
3353         * loop-invariant.c: Likewise.
3354         * loop-iv.c: Likewise.
3355         * loop-unroll.c: Likewise.
3356         * lower-subreg.c: Likewise.
3357         * lra-assigns.c: Likewise.
3358         * lra-coalesce.c: Likewise.
3359         * lra-constraints.c: Likewise.
3360         * lra-eliminations.c: Likewise.
3361         * lra-lives.c: Likewise.
3362         * lra-remat.c: Likewise.
3363         * lra-spills.c: Likewise.
3364         * lra.c: Likewise.
3365         * lto-cgraph.c: Likewise.
3366         * lto-compress.c: Likewise.
3367         * lto-opts.c: Likewise.
3368         * lto-section-in.c: Likewise.
3369         * lto-section-out.c: Likewise.
3370         * lto-streamer-in.c: Likewise.
3371         * lto-streamer-out.c: Likewise.
3372         * lto-streamer.c: Likewise.
3373         * mcf.c: Likewise.
3374         * mode-switching.c: Likewise.
3375         * modulo-sched.c: Likewise.
3376         * omega.c: Likewise.
3377         * omp-low.c: Likewise.
3378         * optabs.c: Likewise.
3379         * opts-global.c: Likewise.
3380         * passes.c: Likewise.
3381         * plugin.c: Likewise.
3382         * postreload-gcse.c: Likewise.
3383         * postreload.c: Likewise.
3384         * predict.c: Likewise.
3385         * print-rtl.c: Likewise.
3386         * print-tree.c: Likewise.
3387         * profile.c: Likewise.
3388         * real.c: Likewise.
3389         * realmpfr.c: Likewise.
3390         * realmpfr.h: Likewise.
3391         * recog.c: Likewise.
3392         * ree.c: Likewise.
3393         * reg-stack.c: Likewise.
3394         * regcprop.c: Likewise.
3395         * reginfo.c: Likewise.
3396         * regrename.c: Likewise.
3397         * regs.h: Likewise.
3398         * regstat.c: Likewise.
3399         * reload.c: Likewise.
3400         * reload1.c: Likewise.
3401         * reorg.c: Likewise.
3402         * resource.c: Likewise.
3403         * rtl-chkp.c: Likewise.
3404         * rtlanal.c: Likewise.
3405         * rtlhooks.c: Likewise.
3406         * sanopt.c: Likewise.
3407         * sched-deps.c: Likewise.
3408         * sched-ebb.c: Likewise.
3409         * sched-rgn.c: Likewise.
3410         * sched-vis.c: Likewise.
3411         * sdbout.c: Likewise.
3412         * sel-sched-dump.c: Likewise.
3413         * sel-sched-ir.c: Likewise.
3414         * sel-sched.c: Likewise.
3415         * sese.c: Likewise.
3416         * shrink-wrap.c: Likewise.
3417         * shrink-wrap.h: Likewise.
3418         * simplify-rtx.c: Likewise.
3419         * stack-ptr-mod.c: Likewise.
3420         * statistics.c: Likewise.
3421         * stmt.c: Likewise.
3422         * stor-layout.c: Likewise.
3423         * store-motion.c: Likewise.
3424         * stringpool.c: Likewise.
3425         * symtab.c: Likewise.
3426         * target-globals.c: Likewise.
3427         * targhooks.c: Likewise.
3428         * toplev.c: Likewise.
3429         * tracer.c: Likewise.
3430         * trans-mem.c: Likewise.
3431         * tree-affine.c: Likewise.
3432         * tree-affine.h: Likewise.
3433         * tree-browser.c: Likewise.
3434         * tree-call-cdce.c: Likewise.
3435         * tree-cfg.c: Likewise.
3436         * tree-cfgcleanup.c: Likewise.
3437         * tree-chkp-opt.c: Likewise.
3438         * tree-chkp.c: Likewise.
3439         * tree-chrec.c: Likewise.
3440         * tree-complex.c: Likewise.
3441         * tree-data-ref.c: Likewise.
3442         * tree-dfa.c: Likewise.
3443         * tree-diagnostic.c: Likewise.
3444         * tree-dump.c: Likewise.
3445         * tree-eh.c: Likewise.
3446         * tree-emutls.c: Likewise.
3447         * tree-if-conv.c: Likewise.
3448         * tree-inline.c: Likewise.
3449         * tree-into-ssa.c: Likewise.
3450         * tree-iterator.c: Likewise.
3451         * tree-loop-distribution.c: Likewise.
3452         * tree-nested.c: Likewise.
3453         * tree-nrv.c: Likewise.
3454         * tree-object-size.c: Likewise.
3455         * tree-outof-ssa.c: Likewise.
3456         * tree-parloops.c: Likewise.
3457         * tree-phinodes.c: Likewise.
3458         * tree-predcom.c: Likewise.
3459         * tree-pretty-print.c: Likewise.
3460         * tree-pretty-print.h: Likewise.
3461         * tree-profile.c: Likewise.
3462         * tree-scalar-evolution.c: Likewise.
3463         * tree-sra.c: Likewise.
3464         * tree-ssa-address.c: Likewise.
3465         * tree-ssa-alias.c: Likewise.
3466         * tree-ssa-ccp.c: Likewise.
3467         * tree-ssa-coalesce.c: Likewise.
3468         * tree-ssa-copy.c: Likewise.
3469         * tree-ssa-copyrename.c: Likewise.
3470         * tree-ssa-dce.c: Likewise.
3471         * tree-ssa-dom.c: Likewise.
3472         * tree-ssa-dse.c: Likewise.
3473         * tree-ssa-forwprop.c: Likewise.
3474         * tree-ssa-ifcombine.c: Likewise.
3475         * tree-ssa-live.c: Likewise.
3476         * tree-ssa-loop-ch.c: Likewise.
3477         * tree-ssa-loop-im.c: Likewise.
3478         * tree-ssa-loop-ivcanon.c: Likewise.
3479         * tree-ssa-loop-ivopts.c: Likewise.
3480         * tree-ssa-loop-manip.c: Likewise.
3481         * tree-ssa-loop-niter.c: Likewise.
3482         * tree-ssa-loop-prefetch.c: Likewise.
3483         * tree-ssa-loop-unswitch.c: Likewise.
3484         * tree-ssa-loop.c: Likewise.
3485         * tree-ssa-loop.h: Likewise.
3486         * tree-ssa-math-opts.c: Likewise.
3487         * tree-ssa-operands.c: Likewise.
3488         * tree-ssa-phiopt.c: Likewise.
3489         * tree-ssa-phiprop.c: Likewise.
3490         * tree-ssa-pre.c: Likewise.
3491         * tree-ssa-propagate.c: Likewise.
3492         * tree-ssa-reassoc.c: Likewise.
3493         * tree-ssa-sccvn.c: Likewise.
3494         * tree-ssa-scopedtables.c: Likewise.
3495         * tree-ssa-sink.c: Likewise.
3496         * tree-ssa-strlen.c: Likewise.
3497         * tree-ssa-structalias.c: Likewise.
3498         * tree-ssa-tail-merge.c: Likewise.
3499         * tree-ssa-ter.c: Likewise.
3500         * tree-ssa-threadedge.c: Likewise.
3501         * tree-ssa-threadupdate.c: Likewise.
3502         * tree-ssa-uncprop.c: Likewise.
3503         * tree-ssa-uninit.c: Likewise.
3504         * tree-ssa.c: Likewise.
3505         * tree-ssanames.c: Likewise.
3506         * tree-stdarg.c: Likewise.
3507         * tree-streamer-in.c: Likewise.
3508         * tree-streamer-out.c: Likewise.
3509         * tree-streamer.c: Likewise.
3510         * tree-switch-conversion.c: Likewise.
3511         * tree-tailcall.c: Likewise.
3512         * tree-vect-data-refs.c: Likewise.
3513         * tree-vect-generic.c: Likewise.
3514         * tree-vect-loop-manip.c: Likewise.
3515         * tree-vect-loop.c: Likewise.
3516         * tree-vect-patterns.c: Likewise.
3517         * tree-vect-slp.c: Likewise.
3518         * tree-vect-stmts.c: Likewise.
3519         * tree-vectorizer.c: Likewise.
3520         * tree-vrp.c: Likewise.
3521         * tree.c: Likewise.
3522         * tsan.c: Likewise.
3523         * ubsan.c: Likewise.
3524         * valtrack.c: Likewise.
3525         * value-prof.c: Likewise.
3526         * var-tracking.c: Likewise.
3527         * varasm.c: Likewise.
3528         * varpool.c: Likewise.
3529         * vmsdbgout.c: Likewise.
3530         * vtable-verify.c: Likewise.
3531         * web.c: Likewise.
3532         * wide-int-print.cc: Likewise.
3533         * wide-int-print.h: Likewise.
3534         * wide-int.cc: Likewise.
3535         * xcoffout.c: Likewise.
3536         * config/aarch64/aarch64-builtins.c: Likewise.
3537         * config/aarch64/aarch64.c: Likewise.
3538         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3539         * config/alpha/alpha.c: Likewise.
3540         * config/arc/arc.c: Likewise.
3541         * config/arm/aarch-common.c: Likewise.
3542         * config/arm/arm-builtins.c: Likewise.
3543         * config/arm/arm-c.c: Likewise.
3544         * config/arm/arm.c: Likewise.
3545         * config/avr/avr-c.c: Likewise.
3546         * config/avr/avr-log.c: Likewise.
3547         * config/avr/avr.c: Likewise.
3548         * config/bfin/bfin.c: Likewise.
3549         * config/c6x/c6x.c: Likewise.
3550         * config/cr16/cr16.c: Likewise.
3551         * config/cris/cris.c: Likewise.
3552         * config/darwin-c.c: Likewise.
3553         * config/darwin.c: Likewise.
3554         * config/default-c.c: Likewise.
3555         * config/epiphany/epiphany.c: Likewise.
3556         * config/epiphany/mode-switch-use.c: Likewise.
3557         * config/epiphany/resolve-sw-modes.c: Likewise.
3558         * config/fr30/fr30.c: Likewise.
3559         * config/frv/frv.c: Likewise.
3560         * config/ft32/ft32.c: Likewise.
3561         * config/glibc-c.c: Likewise.
3562         * config/h8300/h8300.c: Likewise.
3563         * config/i386/i386-c.c: Likewise.
3564         * config/i386/i386.c: Likewise.
3565         * config/i386/msformat-c.c: Likewise.
3566         * config/i386/winnt-cxx.c: Likewise.
3567         * config/i386/winnt-stubs.c: Likewise.
3568         * config/i386/winnt.c: Likewise.
3569         * config/ia64/ia64-c.c: Likewise.
3570         * config/ia64/ia64.c: Likewise.
3571         * config/iq2000/iq2000.c: Likewise.
3572         * config/lm32/lm32.c: Likewise.
3573         * config/m32c/m32c-pragma.c: Likewise.
3574         * config/m32c/m32c.c: Likewise.
3575         * config/m32r/m32r.c: Likewise.
3576         * config/m68k/m68k.c: Likewise.
3577         * config/mcore/mcore.c: Likewise.
3578         * config/mep/mep-pragma.c: Likewise.
3579         * config/mep/mep.c: Likewise.
3580         * config/microblaze/microblaze-c.c: Likewise.
3581         * config/microblaze/microblaze.c: Likewise.
3582         * config/mips/mips.c: Likewise.
3583         * config/mmix/mmix.c: Likewise.
3584         * config/mn10300/mn10300.c: Likewise.
3585         * config/moxie/moxie.c: Likewise.
3586         * config/msp430/msp430-c.c: Likewise.
3587         * config/msp430/msp430.c: Likewise.
3588         * config/nds32/nds32-cost.c: Likewise.
3589         * config/nds32/nds32-fp-as-gp.c: Likewise.
3590         * config/nds32/nds32-intrinsic.c: Likewise.
3591         * config/nds32/nds32-isr.c: Likewise.
3592         * config/nds32/nds32-md-auxiliary.c: Likewise.
3593         * config/nds32/nds32-memory-manipulation.c: Likewise.
3594         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3595         * config/nds32/nds32-predicates.c: Likewise.
3596         * config/nds32/nds32.c: Likewise.
3597         * config/nios2/nios2.c: Likewise.
3598         * config/nvptx/nvptx.c: Likewise.
3599         * config/pa/pa.c: Likewise.
3600         * config/pdp11/pdp11.c: Likewise.
3601         * config/rl78/rl78-c.c: Likewise.
3602         * config/rl78/rl78.c: Likewise.
3603         * config/rs6000/rs6000-c.c: Likewise.
3604         * config/rs6000/rs6000.c: Likewise.
3605         * config/rx/rx.c: Likewise.
3606         * config/s390/s390-c.c: Likewise.
3607         * config/s390/s390.c: Likewise.
3608         * config/sh/sh-c.c: Likewise.
3609         * config/sh/sh-mem.cc: Likewise.
3610         * config/sh/sh.c: Likewise.
3611         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3612         * config/sh/sh_treg_combine.cc: Likewise.
3613         * config/sol2-c.c: Likewise.
3614         * config/sol2-cxx.c: Likewise.
3615         * config/sol2-stubs.c: Likewise.
3616         * config/sol2.c: Likewise.
3617         * config/sparc/sparc-c.c: Likewise.
3618         * config/sparc/sparc.c: Likewise.
3619         * config/spu/spu-c.c: Likewise.
3620         * config/spu/spu.c: Likewise.
3621         * config/stormy16/stormy16.c: Likewise.
3622         * config/tilegx/mul-tables.c: Likewise.
3623         * config/tilegx/tilegx-c.c: Likewise.
3624         * config/tilegx/tilegx.c: Likewise.
3625         * config/tilepro/mul-tables.c: Likewise.
3626         * config/tilepro/tilepro-c.c: Likewise.
3627         * config/tilepro/tilepro.c: Likewise.
3628         * config/v850/v850-c.c: Likewise.
3629         * config/v850/v850.c: Likewise.
3630         * config/vax/vax.c: Likewise.
3631         * config/visium/visium.c: Likewise.
3632         * config/vms/vms-c.c: Likewise.
3633         * config/vms/vms.c: Likewise.
3634         * config/vxworks.c: Likewise.
3635         * config/winnt-c.c: Likewise.
3636         * config/xtensa/xtensa.c: Likewise.
3637         * common/config/bfin/bfin-common.c: Likewise.
3639 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
3641         * tree.h (tree_code_for_canonical_type_merging): New function.
3642         * tree.c (gimple_canonical_types_compatible_p): Use
3643         tree_code_for_canonical_type_merging..
3645 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3647         PR c++/66192
3648         PR target/66200
3649         * doc/tm.texi: Regenerate.
3650         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
3651         * target.def (TARGET_RELAXED_ORDERING): Likewise.
3652         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
3653         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
3654         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
3655         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
3656         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
3657         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
3658         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
3660 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3662         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
3663         register fma steering pass.
3664         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
3665         AARCH64_TUNE_FMA_STEERING.
3667 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
3669         * tree.c (verify_type_variant): Verify that type and variant is
3670         compatible.
3671         (gimple_canonical_types_compatible_p): Look for main variants.
3673 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3675         * config.gcc (powerpc*-*-*): Add support for a new configure
3676         option --with-advance-toolchain=<xxx> which overrides using the
3677         default header files, libraries and dynamic linker.
3679         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
3680         specs to support the configure --with-advance-toolchain=<xxx>
3681         option.
3682         (INCLUDE_EXTRA_SPEC): Likewise.
3683         (LINK_OS_EXTRA_SPEC32): Likewise.
3684         (LINK_OK_EXTRA_SPEC64): Likewise.
3685         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
3686         (DYNAMIC_LINKER_PREFIX): Likewise.
3687         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
3688         toolchain support.
3689         (GLIBC_DYNAMIC_LINKER32): Likewise.
3690         (GLIBC_DYNAMIC_LINKER64): Likewise.
3691         (LINK_OS_LINUX_SPEC32): Likewise.
3692         (LINK_OS_LINUX_SPEC64): Likewise.
3694         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
3695         configuration option.
3697 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
3699         PR target/66275
3700         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
3701         to determine current function ABI.
3702         (ix86_function_value_regno_p): Ditto.
3704 2015-06-03  Martin Liska  <mliska@suse.cz>
3706         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
3707         * bitmap.h (struct bitmap_usage): Likewise.
3708         * ggc-common.c (struct ggc_usage): Likewise.
3709         * mem-stats.h (struct mem_location): Likewise.
3710         (struct mem_usage): Likewise.
3711         * vec.c (struct vec_usage): Likewise.
3713 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
3715         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
3716         -Bsymbolic.
3718 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
3720         * doc/plugins.texi (enum plugin_event): New event.
3721         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
3722         and PLUGIN_FINISH_FUNCTION.
3723         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
3724         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
3726 2015-06-03  Richard Biener  <rguenther@suse.de>
3728         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3729         compute GROUP_GAP for the first element.
3730         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
3731         on in-group gaps.
3733 2015-06-03  Nick Clifton  <nickc@redhat.com>
3735         * config/rl78/rl78-real.md: Add peepholes to avoid a register
3736         copy when calling a function.
3737         * config/rl78/rl78.c (need_to_save): Do not push the frame
3738         pointer in an interrupt handler prologue if it is never used.
3740 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3742         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
3744 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3746         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
3747         reference when cloning alias node.
3749 2015-06-03  Martin Liska  <mliska@suse.cz>
3751         * alloc-pool.h (struct pool_usage): Correct space padding.
3752         * ggc-page.c (ggc_print_statistics): Align columns in a report.
3753         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
3754         * tree.c (dump_tree_statistics): Align columns in a report.
3756 2015-06-03  Martin Liska  <mliska@suse.cz>
3758         * alloc-pool.c (allocate_pool_descriptor): Remove.
3759         (struct pool_output_info): Likewise.
3760         (print_alloc_pool_statistics): Likewise.
3761         (dump_alloc_pool_statistics): Likewise.
3762         * alloc-pool.h (struct pool_usage): New struct.
3763         (pool_allocator::initialize): Change usage of memory statistics
3764         to a new interface.
3765         (pool_allocator::release): Likewise.
3766         (pool_allocator::allocate): Likewise.
3767         (pool_allocator::remove): Likewise.
3768         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
3769         for a pool allocator.
3770         * mem-stats.h (struct mem_location): Add new ctor.
3771         (struct mem_usage): Add counter for number of
3772         instances.
3773         (mem_alloc_description::register_descriptor): New overload of
3774         * mem-stats.h (mem_location::to_string): New function.
3775         * bitmap.h (struct bitmap_usage): Use this new function.
3776         * ggc-common.c (struct ggc_usage): Likewise.
3777         the function.
3779 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3781         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
3782         of GCC_INSN_FLAGS_H block.
3784 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
3786         * explow.c (plus_constant): Update check after force_const_mem call
3787         to see if the value returned is not a NULL_RTX.
3789 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3791         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
3792         remove instumentation thunks calling reachable functions.
3793         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
3794         * lto/lto-partition.c (privatize_symbol_name_1): New.
3795         (privatize_symbol_name): Privatize both decl and orig_decl
3796         names for instrumented functions.
3797         * cgraph.c (cgraph_node::verify_node): Add transparent
3798         alias chain check for instrumented node.
3800 2015-06-03  Marek Polacek  <polacek@redhat.com>
3802         PR c/64223
3803         PR c/29358
3804         * tree.c (attribute_value_equal): Handle attribute format.
3805         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
3807 2015-06-03  Richard Biener  <rguenther@suse.de>
3809         PR tree-optimization/63916
3810         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3811         Forward-propagate non-invariant addresses by splicing their
3812         reference ops if the result isn't going to be used by PRE.
3813         (vn_reference_lookup_3): Remove pointless assert.
3815 2015-06-03  Richard Biener  <rguenther@suse.de>
3817         PR tree-optimization/66375
3818         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
3819         add to the evolution before following SSA edges.
3821 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
3823         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
3824         (dump_use, dump_cand, find_induction_variables): Pass new argument
3825         to dump_iv.
3826         (record_use): Preserve the ssa name information in IV.
3828 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3830         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
3831         NO_MODE_TEST.
3832         (add_mode_tests): Don't add mode tests if the predicate only
3833         accepts scalar constant integers.  Otherwise, allow the mode
3834         of "op" to be VOIDmode if the predicate does accept such integers.
3836 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
3838         PR target/66258
3839         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
3840         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
3841         (aarch64_secondary_reload): Likewise
3842         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
3843         to !TARGET_FLOAT.
3844         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
3845         Likewise.
3847 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
3848             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3850         PR target/65768
3851         * cprop.c (try_replace_reg): Check cost of constants before propagating.
3853 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3855         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
3856         provide access to the IBM extended double floating point mode if
3857         long double is IEEE 128-bit floating point.
3858         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
3859         point if long double is the IBM extended double type.
3861         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
3862         enable adding IEEE 128-bit floating point support.
3863         (-mfloat128-software): Likewise.
3864         (-mfloat128-sw): Likewise.
3866         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
3867         128-bit floating point types to occupy any register if
3868         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
3869         -mfloat128-software is enabled.
3870         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
3871         support.
3872         (rs6000_option_override_internal): Add -mfloat128-* support.
3873         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
3875         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
3876         and float128 type nodes.
3877         (ieee128_float_type_node): Likewise.
3878         (ibm128_float_type_node): Likewise.
3880 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3882         PR target/66136
3883         * config/aarch64/geniterators.sh: Rewrite in awk.
3885 2015-06-02  Martin Liska  <mliska@suse.cz>
3887         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
3888         values to avoid -Wmaybe-uninitialized errors.
3890 2015-06-02  Richard Biener  <rguenther@suse.de>
3892         PR debug/65549
3893         * dwarf2out.c (lookup_context_die): New function.
3894         (resolve_addr): Avoid forcing a full DIE for the
3895         target of a DW_TAG_GNU_call_site during late compilation.
3896         Instead create a stub DIE without a type if we have a
3897         context DIE present.
3899 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
3901         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
3903 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3905         PR tree-optimization/48052
3906         * cfgloop.h (struct control_iv): New.
3907         (struct loop): New field control_ivs.
3908         * tree-ssa-loop-niter.c : Include "stor-layout.h".
3909         (number_of_iterations_lt): Set no_overflow information.
3910         (number_of_iterations_exit): Init control iv in niter struct.
3911         (record_control_iv): New.
3912         (estimate_numbers_of_iterations_loop): Call record_control_iv.
3913         (loop_exits_before_overflow): New.  Interface factored out of
3914         scev_probably_wraps_p.
3915         (scev_probably_wraps_p): Factor loop niter related code into
3916         loop_exits_before_overflow.
3917         (free_numbers_of_iterations_estimates_loop): Free control ivs.
3918         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
3920 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3922         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
3923         the target doesn't belong to the current function.
3925 2015-06-02  Marek Polacek  <polacek@redhat.com>
3927         PR middle-end/66345
3928         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
3929         get_maxval_strlen does not produce an INTEGER_CST.
3931 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
3933         * config/arc/constraints.md: Use lower-case names in match_code.
3934         * config/mmix/constraints.md: Likewise.
3936 2015-06-02  Richard Biener  <rguenther@suse.de>
3938         PR tree-optimization/65961
3939         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
3940         check and clarify dump message.
3941         (vect_build_slp_tree): If all children are built up from scalars
3942         build up the parent from scalars instead.
3943         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
3945 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3947         PR other/65366
3948         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
3949         instead of print ... .
3951 2015-06-02  Alan Modra  <amodra@gmail.com>
3953         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
3954         2014-08-11 change.
3956 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3958         PR tree-optimization/52563
3959         PR tree-optimization/62173
3960         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
3961         (alloc_iv, set_iv): New parameter.
3962         (determine_biv_step): Delete.
3963         (find_bivs): Inline original determine_biv_step.  Pass new
3964         argument to set_iv.
3965         (idx_find_step): Use no_overflow information for conversion.
3966         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
3967         resolve_mixers handle folded_casts.
3968         (instantiate_scev_name): Change bool parameter to bool pointer.
3969         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
3970         (instantiate_array_ref, instantiate_scev_not): Ditto.
3971         (instantiate_scev_3, instantiate_scev_2): Ditto.
3972         (instantiate_scev_1, instantiate_scev_r): Ditto.
3973         (instantiate_scev_convert, ): Change parameter.  Pass argument
3974         to chrec_convert_aggressive.
3975         (instantiate_scev): Change argument.
3976         (resolve_mixers): New parameter and set it.
3977         (scev_const_prop): New argument.
3978         * tree-scalar-evolution.h (resolve_mixers): New parameter.
3979         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
3980         of chrec_conert_1.
3981         (chrec_convert): New parameter.  Move definition below.
3982         (chrec_convert_aggressive): New parameter and set it.  Call
3983         convert_affine_scev.
3984         * tree-chrec.h (chrec_convert): New parameter.
3985         (chrec_convert_aggressive): Ditto.
3987 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3989         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
3990         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
3991         the LHS of a no-return call if its type has variable size.
3992         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3993         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
3995 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
3997         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
3998         * config.in: Regenerate.
4000 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
4002         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4003         consecutive accesses within outer-loop with force_vectorize
4004         for references with zero step in inner-loop.
4006 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4008         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
4009         rather than from gcc/build directory.
4011 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4013         PR target/65697
4014         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
4015         for __sync memory models, emit initial loads and final barriers as
4016         appropriate.
4018 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4020         PR target/65697
4021         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
4022         (aarch64_split_atomic_op): Check for __sync memory models, emit
4023         appropriate initial loads and final barriers.
4025 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4027         * Makefile.in: Fix gcov dependencies that should
4028         not point to a build folder.
4030 2015-06-01  Richard Biener  <rguenther@suse.de>
4032         Revert
4033         2015-05-29  Richard Biener  <rguenther@suse.de>
4035         PR tree-optimization/66314
4036         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4037         parameter that says which loop the new block belongs to.
4038         (ssa_create_duplicates): Blocks duplicated for the threaded
4039         path belong to the loop of the thread destination.
4041 2015-06-01  Martin Liska  <mliska@suse.cz>
4043         * sched-deps.c: Include pool-alloc.h before
4044         cselib.h header file is included.
4046 2015-06-01  Richard Biener  <rguenther@suse.de>
4048         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
4049         functions.
4051 2015-06-01  Martin Liska  <mliska@suse.cz>
4053         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
4054         a function local variable.
4056 2015-06-01  Martin Liska  <mliska@suse.cz>
4058         * alloc-pool.c (create_alloc_pool): Remove.
4059         (empty_alloc_pool): Likewise.
4060         (free_alloc_pool): Likewise.
4061         (free_alloc_pool_if_empty): Likewise.
4062         (pool_alloc): Likewise.
4063         (pool_free): Likewise.
4064         * alloc-pool.h: Remove old declarations.
4066 2015-06-01  Martin Liska  <mliska@suse.cz>
4068         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
4069         (ira_create_object): Likewise.
4070         (ira_create_allocno): Likewise.
4071         (ira_create_live_range): Likewise.
4072         (copy_live_range): Likewise.
4073         (ira_finish_live_range): Likewise.
4074         (ira_free_allocno_costs): Likewise.
4075         (finish_allocno): Likewise.
4076         (finish_allocnos): Likewise.
4077         (initiate_prefs): Likewise.
4078         (ira_create_pref): Likewise.
4079         (finish_pref): Likewise.
4080         (finish_prefs): Likewise.
4081         (initiate_copies): Likewise.
4082         (ira_create_copy): Likewise.
4083         (finish_copy): Likewise.
4084         (finish_copies): Likewise.
4085         (finish_prefs): Likewise.
4087 2015-06-01  Martin Liska  <mliska@suse.cz>
4089         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
4090         (allocate_and_init_ipcp_value): Likewise.
4091         (ipcp_lattice::add_value): Likewise.
4092         (merge_agg_lats_step): Likewise.
4093         (ipcp_driver): Likewise.
4094         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
4095         (ipa_free_all_structures_after_iinln): Likewise.
4096         * ipa-prop.h: Likewise.
4098 2015-06-01  Martin Liska  <mliska@suse.cz>
4100         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
4101         pool allocator.
4102         (set_hint_predicate): Likewise.
4103         (inline_summary_alloc): Likewise.
4104         (reset_inline_edge_summary): Likewise.
4105         (reset_inline_summary): Likewise.
4106         (set_cond_stmt_execution_predicate): Likewise.
4107         (set_switch_stmt_execution_predicate): Likewise.
4108         (compute_bb_predicates): Likewise.
4109         (estimate_function_body_sizes): Likewise.
4110         (inline_free_summary): Likewise.
4112 2015-06-01  Martin Liska  <mliska@suse.cz>
4114         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
4115         (ipa_edge_duplication_hook): Likewise.
4116         (ipa_free_all_structures_after_ipa_cp): Likewise.
4117         (ipa_free_all_structures_after_iinln): Likewise.
4119 2015-06-01  Martin Liska  <mliska@suse.cz>
4121         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
4122         (ipa_profile_generate_summary): Likewise.
4123         (ipa_profile_read_summary): Likewise.
4124         (ipa_profile): Likewise.
4126 2015-06-01  Martin Liska  <mliska@suse.cz>
4128         * tree-ssa-structalias.c (new_var_info): Use new type-based
4129         pool allocator.
4130         (new_constraint): Likewise.
4131         (init_alias_vars): Likewise.
4132         (delete_points_to_sets): Likewise.
4134 2015-06-01  Martin Liska  <mliska@suse.cz>
4136         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
4137         (free_strinfo): Likewise.
4138         (pass_strlen::execute): Likewise.
4140 2015-06-01  Martin Liska  <mliska@suse.cz>
4142         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
4143         pool allocator.
4144         (vn_reference_insert_pieces): Likewise.
4145         (vn_phi_insert): Likewise.
4146         (visit_reference_op_call): Likewise.
4147         (copy_phi): Likewise.
4148         (copy_reference): Likewise.
4149         (process_scc): Likewise.
4150         (allocate_vn_table): Likewise.
4151         (free_vn_table): Likewise.
4153 2015-06-01  Martin Liska  <mliska@suse.cz>
4155         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
4156         pool allocator.
4157         (add_repeat_to_ops_vec): Likewise.
4158         (get_ops): Likewise.
4159         (maybe_optimize_range_tests): Likewise.
4160         (init_reassoc): Likewise.
4161         (fini_reassoc): Likewise.
4163 2015-06-01  Martin Liska  <mliska@suse.cz>
4165         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
4166         pool allocator.
4167         (bitmap_set_new): Likewise.
4168         (get_or_alloc_expr_for_constant): Likewise.
4169         (get_or_alloc_expr_for): Likewise.
4170         (phi_translate_1): Likewise.
4171         (compute_avail): Likewise.
4172         (init_pre): Likewise.
4173         (fini_pre): Likewise.
4175 2015-06-01  Martin Liska  <mliska@suse.cz>
4177         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
4178         (delete_dep_node): Likewise.
4179         (create_deps_list): Likewise.
4180         (free_deps_list): Likewise.
4181         (sched_deps_init): Likewise.
4182         (sched_deps_finish): Likewise.
4184 2015-06-01  Martin Liska  <mliska@suse.cz>
4186         * regcprop.c (free_debug_insn_changes): Use new type-based
4187         pool allocator.
4188         (replace_oldest_value_reg): Likewise.
4189         (pass_cprop_hardreg::execute): Likewise.
4191 2015-06-01  Martin Liska  <mliska@suse.cz>
4193         * ira-build.c (initiate_cost_vectors): Use new type-based
4194         pool allocator.
4195         (ira_allocate_cost_vector): Likewise.
4196         (ira_free_cost_vector): Likewise.
4197         (finish_cost_vectors): Likewise.
4199 2015-06-01  Martin Liska  <mliska@suse.cz>
4201         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
4202         pool allocator.
4203         (free_sched_pools): Likewise.
4204         * sel-sched-ir.h (_list_alloc): Likewise.
4205         (_list_remove): Likewise.
4207 2015-06-01  Martin Liska  <mliska@suse.cz>
4209         * stmt.c (add_case_node): Use new type-based pool allocator.
4210         (expand_case): Likewise.
4211         (expand_sjlj_dispatch_table): Likewise.
4213 2015-06-01  Martin Liska  <mliska@suse.cz>
4215         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
4216         (free_bb): Likewise.
4217         (pass_cse_reciprocals::execute): Likewise.
4219 2015-06-01  Martin Liska  <mliska@suse.cz>
4221         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
4222         (sra_deinitialize) Likewise.
4223         (create_access_1) Likewise.
4224         (build_accesses_from_assign) Likewise.
4225         (create_artificial_child_access) Likewise.
4227 2015-06-01  Martin Liska  <mliska@suse.cz>
4229         * dse.c (get_group_info):Use new type-based pool allocator.
4230         (dse_step0) Likewise.
4231         (free_store_info) Likewise.
4232         (delete_dead_store_insn) Likewise.
4233         (free_read_records) Likewise.
4234         (record_store) Likewise.
4235         (replace_read) Likewise.
4236         (check_mem_read_rtx) Likewise.
4237         (scan_insn) Likewise.
4238         (dse_step1) Likewise.
4239         (dse_step7) Likewise.
4241 2015-06-01  Martin Liska  <mliska@suse.cz>
4243         * df-scan.c (struct df_scan_problem_data):Use new type-based
4244         pool allocator.
4245         (df_scan_free_internal) Likewise.
4246         (df_scan_alloc) Likewise.
4247         (df_grow_reg_info) Likewise.
4248         (df_free_ref) Likewise.
4249         (df_insn_create_insn_record) Likewise.
4250         (df_mw_hardreg_chain_delete) Likewise.
4251         (df_insn_info_delete) Likewise.
4252         (df_free_collection_rec) Likewise.
4253         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
4254         (df_sort_and_compress_mws) Likewise.
4255         (df_ref_create_structure) Likewise.
4256         (df_ref_record) Likewise.
4258 2015-06-01  Martin Liska  <mliska@suse.cz>
4260         * df-problems.c (df_chain_create):Use new type-based pool allocator.
4261         (df_chain_unlink_1) Likewise.
4262         (df_chain_unlink) Likewise.
4263         (df_chain_remove_problem) Likewise.
4264         (df_chain_alloc) Likewise.
4265         (df_chain_free) Likewise.
4266         * df.h (struct dataflow) Likewise.
4268 2015-06-01  Martin Liska  <mliska@suse.cz>
4270         * cselib.c (new_elt_list):Use new type-based pool allocator.
4271         (new_elt_loc_list) Likewise.
4272         (unchain_one_elt_list) Likewise.
4273         (unchain_one_elt_loc_list) Likewise.
4274         (unchain_one_value) Likewise.
4275         (new_cselib_val) Likewise.
4276         (cselib_init) Likewise.
4277         (cselib_finish) Likewise.
4279 2015-06-01  Martin Liska  <mliska@suse.cz>
4281         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
4282         (sh_reorg) Likewise.
4284 2015-06-01  Martin Liska  <mliska@suse.cz>
4286         * cfg.c (initialize_original_copy_tables):Use new type-based
4287         pool allocator.
4288         (free_original_copy_tables) Likewise.
4289         (copy_original_table_clear) Likewise.
4290         (copy_original_table_set) Likewise.
4292 2015-06-01  Martin Liska  <mliska@suse.cz>
4294         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
4295         pool allocator.
4296         (asan_mem_ref_new) Likewise.
4297         (free_mem_ref_resources) Likewise.
4299 2015-06-01  Martin Liska  <mliska@suse.cz>
4301         * var-tracking.c (variable_htab_free):Use new type-based
4302         pool allocator.
4303         (attrs_list_clear) Likewise.
4304         (attrs_list_insert) Likewise.
4305         (attrs_list_copy) Likewise.
4306         (shared_hash_unshare) Likewise.
4307         (shared_hash_destroy) Likewise.
4308         (unshare_variable) Likewise.
4309         (var_reg_delete_and_set) Likewise.
4310         (var_reg_delete) Likewise.
4311         (var_regno_delete) Likewise.
4312         (drop_overlapping_mem_locs) Likewise.
4313         (variable_union) Likewise.
4314         (insert_into_intersection) Likewise.
4315         (canonicalize_values_star) Likewise.
4316         (variable_merge_over_cur) Likewise.
4317         (dataflow_set_merge) Likewise.
4318         (remove_duplicate_values) Likewise.
4319         (variable_post_merge_new_vals) Likewise.
4320         (dataflow_set_preserve_mem_locs) Likewise.
4321         (dataflow_set_remove_mem_locs) Likewise.
4322         (variable_from_dropped) Likewise.
4323         (variable_was_changed) Likewise.
4324         (set_slot_part) Likewise.
4325         (clobber_slot_part) Likewise.
4326         (delete_slot_part) Likewise.
4327         (loc_exp_insert_dep) Likewise.
4328         (notify_dependents_of_changed_value) Likewise.
4329         (emit_notes_for_differences_1) Likewise.
4330         (vt_emit_notes) Likewise.
4331         (vt_initialize) Likewise.
4332         (vt_finalize) Likewise.
4334 2015-06-01  Martin Liska  <mliska@suse.cz>
4336         * ira-color.c (init_update_cost_records):Use new type-based
4337         pool allocator.
4338         (get_update_cost_record) Likewise.
4339         (free_update_cost_record_list) Likewise.
4340         (finish_update_cost_records) Likewise.
4341         (initiate_cost_update) Likewise.
4343 2015-06-01  Martin Liska  <mliska@suse.cz>
4345         * lra.c (init_insn_regs): Use new type-based pool allocator.
4346         (new_insn_reg) Likewise.
4347         (free_insn_reg) Likewise.
4348         (free_insn_regs) Likewise.
4349         (finish_insn_regs) Likewise.
4350         (init_insn_recog_data) Likewise.
4351         (init_reg_info) Likewise.
4352         (finish_reg_info) Likewise.
4353         (lra_free_copies) Likewise.
4354         (lra_create_copy) Likewise.
4355         (invalidate_insn_data_regno_info) Likewise.
4357 2015-06-01  Martin Liska  <mliska@suse.cz>
4359         * lra-lives.c (free_live_range): Use new type-based pool allocator.
4360         (free_live_range_list) Likewise.
4361         (create_live_range) Likewise.
4362         (copy_live_range) Likewise.
4363         (lra_merge_live_ranges) Likewise.
4364         (remove_some_program_points_and_update_live_ranges) Likewise.
4365         (lra_live_ranges_init) Likewise.
4366         (lra_live_ranges_finish) Likewise.
4368 2015-06-01  Martin Liska  <mliska@suse.cz>
4370         * et-forest.c (et_new_occ): Use new type-based pool allocator.
4371         (et_new_tree): Likewise.
4372         (et_free_tree): Likewise.
4373         (et_free_tree_force): Likewise.
4374         (et_free_pools): Likewise.
4375         (et_split): Likewise.
4377 2015-06-01  Martin Liska  <mliska@suse.cz>
4379         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4380         to header file.
4381         * alloc-pool.h (pool_allocator::pool_allocator): New function.
4382         (pool_allocator::release): Likewise.
4383         (inline pool_allocator::release_if_empty): Likewise.
4384         (inline pool_allocator::~pool_allocator): Likewise.
4385         (pool_allocator::allocate): Likewise.
4386         (pool_allocator::remove): Likewise.
4388 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4390         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4391         in comment.
4393 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4395         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4396         to fusible_ops.
4397         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4398         (arm_macro_fusion_p): Likewise.
4399         (arm_macro_fusion_pair_p): Likewise.
4401 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4403         * config/aarch64/aarch64-protos.h (tune_params): Rename
4404         fuseable_ops to fusible_ops.
4405         * config/aarch64/aarch64.c (generic_tunings): Rename
4406         fuseable_ops to fusible_ops.
4407         (cortexa53_tunings): Likewise.
4408         (cortexa57_tunings): Likewise.
4409         (thunderx_tunings): Likewise.
4410         (xgene1_tunings): Likewise.
4411         (aarch64_macro_fusion_p): Likewise.
4412         (aarch64_macro_fusion_pair_p): Likewise.
4414 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4416         * config/s390/driver-native.c: New file.
4417         * config/s390/x-native: New file.
4418         * config.host: Add new files for s390.
4419         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4420         and -march=native
4421         * config.gcc: Likewise.
4422         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4423         * config/s390/s390-opts.h (enum processor_type): Ditto.
4424         * config/s390/s390.c (s390_option_override): Catch unhandled
4425         PROCESSOR_NATIVE
4427 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
4429         PR target/65527
4430         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
4431         redirection for instrumented calls.
4432         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
4433         (append_compiler_options): Append -fcheck-pointer-bounds.
4434         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
4435         (chkp_redirect_edge): New.
4436         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
4437         (chkp_redirect_edge): New.
4439 2015-06-01  Richard Biener  <rguenther@suse.de>
4441         PR tree-optimization/66280
4442         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
4443         def-use walking.
4445 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4447         * config/aarch64/aarch64.md
4448         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
4449         logic_shift_imm.
4451 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4453         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4454         Remove obsolete kludge.
4456 2015-06-01  Richard Biener  <rguenther@suse.de>
4458         * tree-ssa-reassoc.c (get_rank): Simplify.
4460 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4462         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
4463         * configure: Regenerated.
4465 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
4467         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
4468         issue (add space between string literal and macro).
4469         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
4471 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4473         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
4474         implict or explicit -fPIE or -fpie.
4476 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
4478         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
4480 2015-05-28  DJ Delorie  <dj@redhat.com>
4482         * expmed.c (extract_bit_field_1): Avoid clobbering a
4483         yet-to-be-used base/index register.
4485 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
4487         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
4488         (alias_stats): Add num_universal.
4489         (alias_set_subset_of): Special case pointers; be ready for NULL
4490         children.
4491         (alias_sets_conflict_p): Special case pointers; be ready for NULL
4492         children.
4493         (init_alias_set_entry): Break out from ...
4494         (record_alias_subset): ... here; propagate new fields;
4495         allocate children only when really needed.
4496         (get_alias_set): Do less generous pointer globbing.
4497         (dump_alias_stats_in_alias_c): Update statistics.
4499 2015-05-30  Alan Modra  <amodra@gmail.com>
4501         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
4502         correct block for use of r12.
4503         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
4505 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4507         PR target/66215
4508         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
4509         with -mhotpatch=.
4511 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
4513         PR tree-optimization/66142
4514         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
4515         virtual phis that feed themselves.
4517 2015-05-29  Richard Biener  <rguenther@suse.de>
4519         PR tree-optimization/66314
4520         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4521         parameter that says which loop the new block belongs to.
4522         (ssa_create_duplicates): Blocks duplicated for the threaded
4523         path belong to the loop of the thread destination.
4525 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4527         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
4528         to cleanup-saved-temps.
4529         * doc/sourcebuild.texi (Clean up generated test files): Expand
4530         introduction.
4531         (dg-keep-saved-temps): Document new proc.
4532         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
4533         cleanup-saved-temps): Remove.
4535 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
4537         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
4538         gcc_AC_CHECK_DECLS.
4539         * configure: Regenerate.
4541 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4543         * config/nios2/linux.h (CPP_SPEC): Define.
4545 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4547         * config/microblaze/linux.h (CPP_SPEC): Define.
4549 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
4551         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
4552         -pthread is specified.
4554 2015-05-28  Richard Biener  <rguenther@suse.de>
4556         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
4557         (vect_fixup_scalar_cycles_with_patterns): Likewise.
4558         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
4559         after pattern recog.
4560         (vect_create_epilog_for_reduction): Properly handle reductions
4561         with patterns.
4562         (vectorizable_reduction): Likewise.
4563         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
4564         reduction chains.
4565         (vect_get_constant_vectors): Create the correct number of
4566         initial values for reductions.
4567         (vect_schedule_slp_instance): Handle reduction chains that are
4568         type changing properly.
4569         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
4571 2015-05-28  Richard Biener  <rguenther@suse.de>
4573         PR tree-optimization/66142
4574         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
4575         values better in memcpy destination handling.  Handle non-aliasing
4576         we discover here.
4578 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
4580         PR target/63810
4581         * config/darwin-c.c (version_components): New global enum.
4582         (parse_version, version_as_legacy_macro)
4583         (version_as_modern_macro, macosx_version_as_macro): New functions.
4584         (version_as_macro): Remove.
4585         (darwin_cpp_builtins): Use new function.
4587 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
4589         * builtins.c (expand_builtin_acc_on_device): Mark parameters
4590         with ATTRIBUTE_UNUSED.
4592 2015-05-28  Julian Brown  <julian@codesourcery.com>
4594         PR libgomp/65742
4596         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
4597         sequence for !ACCEL_COMPILER.
4599 2015-05-28  Nick Clifton  <nickc@redhat.com>
4601         * config/rx/rx.c (push_regs): New function.  Extracts code from...
4602         (rx_expand_prologue): ... here.  Use push_regs to push even small
4603         spans of registers.
4604         (pop_regs): New function.
4605         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
4606         registers.
4608 2015-05-28  Richard Biener  <rguenther@suse.de>
4610         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
4611         member.
4612         (SLP_INSTANCE_BODY_COST_VEC): Remove.
4613         (vect_update_slp_costs_according_to_vf): Likewise.
4614         (vect_slp_analyze_operations): Update prototype.
4615         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
4616         vect_update_slp_costs_according_to_vf, adjust.
4617         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
4618         (vect_analyze_slp_cost_1): Likewise.
4619         (vect_analyze_slp_cost): Likewise.  Properly deal with
4620         widening reduction ops.  Commit body costs.
4621         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
4622         cost for loops from here.
4623         (vect_slp_analyze_operations): But do it from here when
4624         the vectorization factor is known and stmts are analyzed.
4625         (vect_bb_vectorization_profitable_p): Simplify.
4626         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
4627         (vect_update_slp_costs_according_to_vf): Remove.
4629 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
4630             H.J. Lu  <hongjiu.lu@intel.com>
4632         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
4633         (BUILD_CFLAGS): Likewise.
4634         (BUILD_CXXFLAGS): Likewise.
4635         (LINKER): Add @NO_PIE_FLAG@.
4636         (BUILD_LDFLAGS): Likewise.
4637         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
4638         --enable-default-pie.
4639         * common.opt (fPIE): Initialize to -1.
4640         (fpie): Likewise.
4641         (no-pie): New option.
4642         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
4643         * configure.ac: Add --enable-default-pie.
4644         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
4645         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
4646         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
4647         * gcc.c (NO_PIE_SPEC): New.
4648         (PIE_SPEC): Likewise.
4649         (NO_FPIE1_SPEC): Likewise.
4650         (FPIE1_SPEC): Likewise.
4651         (NO_FPIE2_SPEC): Likewise.
4652         (FPIE2_SPEC): Likewise.
4653         (NO_FPIE2_SPEC): Likewise.
4654         (FPIE_SPEC): Likewise.
4655         (NO_FPIE_SPEC): Likewise.
4656         (NO_FPIC1_SPEC): Likewise.
4657         (FPIC1_SPEC): Likewise.
4658         (NO_FPIC2_SPEC): Likewise.
4659         (FPIC2_SPEC): Likewise.
4660         (NO_FPIC2_SPEC): Likewise.
4661         (FPIC_SPEC): Likewise.
4662         (NO_FPIC_SPEC): Likewise.
4663         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
4664         (FPIE1_OR_FPIC1_SPEC): Likewise.
4665         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
4666         (FPIE2_OR_FPIC2_SPEC): Likewise.
4667         (NO_FPIE_AND_FPIC_SPEC): Likewise.
4668         (FPIE_OR_FPIC_SPEC): Likewise.
4669         (LD_PIE_SPEC): Likewise.
4670         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
4671         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
4672         * config/darwin.h (PIE_SPEC): Renamed to ...
4673         (DARWIN_PIE_SPEC): This.
4674         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
4675         * config/darwin9.h (PIE_SPEC): Renamed to ...
4676         (DARWIN_PIE_SPEC): This.
4677         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
4678         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4679         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
4680         FPIE2_OR_FPIC2_SPEC.
4681         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
4682         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
4683         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
4684         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4685         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4686         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4687         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4688         * config/m32r/m32r.h (ASM_SPEC): Likewise.
4689         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
4690         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4691         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
4692         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
4693         * config/sparc/linux.h (ASM_SPEC): Likewise.
4694         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4695         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4696         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4697         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4698         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4699         * config/sparc/sparc.h (ASM_SPEC): Likewise.
4700         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4701         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
4702         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
4703         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
4704         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
4705         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
4706         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
4707         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
4708         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
4709         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
4710         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
4711         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
4712         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4713         * config/vax/linux.h (ASM_SPEC): Likewise.
4714         * doc/install.texi: Document --enable-default-pie.
4715         * doc/invoke.texi: Document -no-pie.
4716         * config.in: Regenerated.
4717         * configure: Likewise.
4719 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4721         PR rtl-optimization/66168
4722         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
4723         can_move_invariant_reg.
4725 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
4727         PR target/66148
4728         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
4729         REG_EQUAL note when doing insert.
4731         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
4732         instead of "%d" for 'o' operand.
4734 2015-05-27  Nathan Sidwell  <nathan@acm.org>
4736         PR c++/66270
4737         * tree.c (build_pointer_type_for_mode): Canonical type does not
4738         inherit can_alias_all.
4739         (build_reference_type_for_mode): Likewise.
4741 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4743         * expr.h (array_at_struct_end_p): Move to...
4744         (array_ref_element_size): Likewise.
4745         (component_ref_field_offset): Likewise.
4746         * tree.h (array_ref_element_size): ...here.
4747         (array_at_struct_end_p): Likewise.
4748         (component_ref_field_offset): Likewise.
4749         * expr.c (array_ref_element_size): Move to...
4750         (array_ref_low_bound): Likewise.
4751         (array_at_struct_end_p): Likewise.
4752         (array_ref_up_bound): Likewise.
4753         (component_ref_field_offset): Likewise.
4754         * tree.c (array_ref_element_size): ...here.
4755         (array_ref_low_bound): Likewise.
4756         (array_ref_up_bound): Likewise.
4757         (array_at_struct_end_p): Likewise.
4758         (component_ref_field_offset): Likewise.
4760 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4761             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4763         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
4765 2015-05-27  Jason Merrill  <jason@redhat.com>
4767         PR bootstrap/66304
4768         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
4769         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
4770         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
4772 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
4774         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
4775         is true.
4777         * statistics.c (statistics_fini_pass): Print pass name.
4779 2015-05-27  Richard Biener  <rguenther@suse.de>
4781         PR tree-optimization/66272
4782         Revert parts of
4783         2014-08-15  Richard Biener  <rguenther@suse.de>
4785         PR tree-optimization/62031
4786         * tree-data-ref.c (dr_analyze_indices): Do not set
4787         DR_UNCONSTRAINED_BASE.
4788         (dr_may_alias_p): All indirect accesses have to go the
4789         formerly DR_UNCONSTRAINED_BASE path.
4790         * tree-data-ref.h (struct indices): Remove
4791         unconstrained_base member.
4792         (DR_UNCONSTRAINED_BASE): Remove.
4794 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
4796         * dwarf2out.c: Remove block_map.
4797         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
4798         (gen_lexical_block_die): Same.
4799         (dwarf2out_function_decl): Remove block_map use.
4800         (dwarf2out_c_finalize): Same.
4801         * tree-core.h (struct tree_block): Add die field.
4802         * tree.h (BLOCK_DIE): New.
4804 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4806         PR target/65358
4807         * expr.c (memory_load_overlap): New function.
4808         (emit_push_insn): When pushing partial args to the stack would
4809         clobber the register part load the overlapping part into a pseudo
4810         and put it into the hard reg after pushing.  Change return type
4811         to bool.  Add bool argument.
4812         * expr.h (emit_push_insn): Change return type to bool.
4813         Add bool argument.
4814         * calls.c (expand_call): Cancel sibcall optimization when encountering
4815         partial argument on targets with ARGS_GROW_DOWNWARD and
4816         !STACK_GROWS_DOWNWARD.
4817         (emit_library_call_value_1): Update callsite of emit_push_insn.
4818         (store_one_arg): Likewise.
4820 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4822         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
4824 2015-05-27  Martin Liska  <mliska@suse.cz>
4826         * Makefile.in: Add additional dependencies related to memory report
4827         enhancement.
4828         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
4829         * bitmap.c (struct bitmap_descriptor_d): Remove.
4830         (struct loc): Likewise.
4831         (struct bitmap_desc_hasher): Likewise.
4832         (bitmap_desc_hasher::hash): Likewise.
4833         (bitmap_desc_hasher::equal): Likewise.
4834         (get_bitmap_descriptor): Likewise.
4835         (bitmap_register): User new memory descriptor API.
4836         (register_overhead): Likewise.
4837         (bitmap_find_bit): Register nsearches and search_iter statistics.
4838         (struct bitmap_output_info): Remove.
4839         (print_statistics): Likewise.
4840         (dump_bitmap_statistics): Use new memory descriptor.
4841         * bitmap.h (struct bitmap_usage): New class.
4842         * genmatch.c: Extend header file inclusion.
4843         * genpreds.c: Likewise.
4844         * ggc-common.c (struct ggc_usage): New class.
4845         (struct ggc_loc_desc_hasher): Remove.
4846         (ggc_loc_desc_hasher::hash): Likewise.
4847         (ggc_loc_desc_hasher::equal): Likewise.
4848         (struct ggc_ptr_hash_entry): Likewise.
4849         (struct ptr_hash_hasher): Likewise.
4850         (ptr_hash_hasher::hash): Likewise.
4851         (ptr_hash_hasher::equal): Likewise.
4852         (make_loc_descriptor): Likewise.
4853         (ggc_prune_ptr): Likewise.
4854         (dump_ggc_loc_statistics): Use new memory descriptor.
4855         (ggc_record_overhead): Likewise.
4856         (ggc_free_overhead): Likewise.
4857         (final_cmp_statistic): Remove.
4858         (cmp_statistic): Likewise.
4859         (ggc_add_statistics): Liekwise.
4860         (ggc_prune_overhead_list): Likewise.
4861         * hash-map-traits.h: New file.
4862         * hash-map.h (struct default_hashmap_traits): Move the traits to a
4863         separate header file.
4864         * hash-set.h: Pass memory statistics info to ctor.
4865         * hash-table.c (void dump_hash_table_loc_statistics): New function.
4866         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
4867         (hash_table::~hash_table): Register memory release operation.
4868         (hash_table::alloc_entries): Handle memory allocation operation.
4869         (hash_table::expand): Likewise.
4870         * inchash.c (iterative_hash_hashval_t): Move implementation to header
4871         file.
4872         (iterative_hash_host_wide_int): Likewise.
4873         * inchash.h (class hash): Likewise.
4874         * mem-stats-traits.h: New file.
4875         * mem-stats.h: New file.
4876         (mem_location): Add new class.
4877         (mem_usage): Likewise.
4878         (mem_alloc_description): Likewise.
4879         * sese.c: Add new header file inclusision.
4880         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
4881         and hash_set.
4882         * tree-sra.c: Add new header file inclusision.
4883         * vec.c (struct vec_descriptor): Remove.
4884         (hash_descriptor): Likewise.
4885         (struct vec_usage): Likewise.
4886         (struct ptr_hash_entry): Likewise.
4887         (hash_ptr): Likewise.
4888         (eq_ptr): Likewise.
4889         (vec_prefix::register_overhead): Use new memory descriptor API.
4890         (vec_prefix::release_overhead): Likewise.
4891         (add_statistics): Remove.
4892         (dump_vec_loc_statistics): Use new memory descriptor API.
4893         * vec.h (struct vec_prefix): Likewise.
4894         (va_heap::reserve): Likewise.
4895         (va_heap::release): Likewise.
4896         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
4898 2015-05-27  Richard Biener  <rguenther@suse.de>
4900         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
4901         earlier and remove ??? comment.
4902         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
4903         and got called from loop analysis bail out.  Always pass the SLP
4904         node to the vectorizable_* functions.
4905         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
4906         the premature SLP check here.
4907         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
4908         detected SLP stmts.
4909         (vect_detect_hybrid_slp_1): Likewise.
4911 2015-05-26  Jeff Law  <law@redhat.com>
4913         * combine.c (find_split_point): Verify that the shift count is a
4914         constant when choosing (plus (ashift ...)) as a split point.
4916         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
4917         No functional changes.
4919 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
4921         * ipa-polymorphic-call.c
4922         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
4923         case when call target is already known.
4925 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
4927         PR target/65979
4928         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
4929         take into account the case that operands[1] and operands[2]
4930         are the same register.
4932 2015-05-26  Michael Matz  <matz@suse.de>
4934         PR middle-end/66251
4936         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
4937         stores.
4938         (vect_create_vectorized_demotion_stmts): Always set
4939         STMT_VINFO_VEC_STMT, also with SLP.
4940         (vectorizable_store): Handle strided group stores.
4942 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4944         PR target/66049
4945         * config/aarch64/aarch64.md
4946         (*adds_shift_imm_<mode>):  New pattern.
4947         (*subs_shift_imm_<mode>):  Likewise.
4948         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
4949         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4950         (*add_uxt<mode>_shift2): Likewise.
4951         (*add_uxtsi_shift2_uxtw): Likewise.
4952         (*sub_uxt<mode>_shift2): Likewise.
4953         (*sub_uxtsi_shift2_uxtw): Likewise.
4955 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
4957         * config/rs6000/constraints.md (Y, U): Use match_test.
4959 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4961         PR target/52144
4962         * config/arm/arm.c (arm_option_check_internal)
4963         (arm_option_params_internal): Check opts->target_flags to set macros.
4964         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4965         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
4966         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4967         (builtin_define): Replaced with def_or_undef_macro.
4968         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4969         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
4970         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4971         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
4972         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
4973         (TARGET_ARM_FEATURE_LDREX_P)
4974         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
4975         * config/arm/arm-c.c (def_or_undef_macro): New function.
4976         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
4978 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4980         * c-common.h (builtin_define_with_int_value)
4981         (builtin_define_type_sizeof): Declare.
4982         * c-cppbuiltin.c (builtin_define_with_int_value)
4983         (builtin_define_type_sizeof): Externalize.
4984         (builtin_define_std): Cleanup declaration.
4985         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
4986         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
4987         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
4988         (builtin_define, builtin_assert): New macros.
4990 2015-05-26  Richard Biener  <rguenther@suse.de>
4992         PR tree-optimization/66142
4993         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
4994         MEM_REFs for the same base address.
4996 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4998         PR ipa/66181
4999         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
5001 2015-05-26  Jason Merrill  <jason@redhat.com>
5003         * configure.ac: Set CXXFLAGS for ISL test.
5004         * configure: Regenerate.
5006         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
5007         strstr and basename.
5008         * configure: Regenerate.
5010 2015-05-26  Richard Biener  <rguenther@suse.de>
5012         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
5013         X % C -> X & (C - 1) for C being a power-of two to ...
5014         * match.pd: ... patterns.
5016 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
5018         * match.pd (swapped_tcc_comparison): New operator list.
5019         (-A CMP -B): New simplification.
5020         * fold-const.c (fold_comparison): Remove corresponding code.
5022 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5024         * caller-save.c (init_caller_save): Base temporary register numbers
5025         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
5026         * cfgloopanal.c (init_set_costs): Likewise.
5027         * dojump.c (prefer_and_bit_test): Likewise.
5028         * expr.c (init_expr_target): Likewise.
5029         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5030         * lower-subreg.c (init_lower_subreg): Likewise.
5031         * postreload.c (reload_cse_regs_1): Likewise.
5033 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5035         * gensupport.h (compute_test_codes): Declare.
5036         * gensupport.c (compute_predicate_codes): Rename to...
5037         (compute_test_codes): ...this.  Generalize error message.
5038         (process_define_predicate): Update accordingly.
5039         * genpreds.c (compute_maybe_allows): Delete.
5040         (add_constraint): Use compute_test_codes to determine whether
5041         something can accept a SUBREG, REG or MEM.
5043 2015-05-26  Torvald Riegel  <triegel@redhat.com>
5045         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
5046         'memory model' to align with C++11; fix description of memory orders;
5047         fix a few typos.
5049 2015-05-26  Richard Biener  <rguenther@suse.de>
5051         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
5052         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
5053         detect whether we apply SLP.  Remove call to
5054         vect_update_slp_costs_according_to_vf.
5055         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
5056         vect_update_slp_costs_according_to_vf from here.  Dispatch
5057         to vect_slp_analyze_operations to analyze SLP stmts.
5058         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
5059         unused bb_vec_info parameter, adjust assert.
5060         (vect_slp_analyze_operations): Pass in the slp instance tree
5061         instead of bb_vec_info.
5062         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
5063         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
5065 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
5067         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
5068         Q_REGS.  Expand comment.
5069         (REG_CLASS_NAMES): Ditto.
5070         (REG_CLASS_CONTENTS): Ditto.
5072 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
5074         PR target/66274
5075         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
5076         when LEGACY_INT_REGNO_P is processed.
5078 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
5080         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
5082 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5084         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
5085         register if not marked dead/unused, before return.
5087 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5089         PR lto/66180
5090         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
5091         is set; check for assembler name at LTO time.
5092         (type_in_anonymous_namespace): Remove hacks, check that all
5093         anonymous types are called "<anon>"
5094         (odr_type_p): Simplify; add check for "<anon>"
5095         (odr_subtypes_equivalent): Add odr_type_p check.
5096         * tree.c (need_assembler_name_p): Even anonymous namespace needs
5097         assembler name.
5099 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5101         * ipa-utils.h (method_class_type): Remove.
5102         * cgraphunit.c (walk_polymorphic_call_targets): Use
5103         TYPE_METHOD_BASETYPE.
5104         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
5105         on main variants only.
5106         (method_class_type): Remove.
5107         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
5108         (build_type_inheritance_graph): Likewise.
5109         * ipa-icf.c (sem_function::equals_wpa): Likewise.
5110         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
5111         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
5113 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5115         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
5116         is_typedef_decl, typedef_variant_p): Constify.
5117         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
5118         is_typedef_decl, typedef_variant_p): Constify.
5120 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5122         * defaults.h (gen_tablejump): New function.
5123         (HAVE_tablejump): Add default value.
5124         * expr.c: Adjust.
5125         * stmt.c: Likewise.
5127 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5129         * defaults.h (gen_store_multiple): New function.
5130         (HAVE_store_multiple): Add default value.
5131         * expr.c (move_block_from_reg): Adjust.
5133 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5135         * defaults.h (gen_load_multiple): New function.
5136         (HAVE_load_multiple): Add default value.
5137         * expr.c (move_block_to_reg): Adjust.
5139 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5141         * defaults.h (gen_mem_signal_fence): New function.
5142         (HAVE_mem_signal_fence): Add default value.
5143         * optabs.c: Adjust.
5145 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5147         * defaults.h (gen_memory_barrier): New function.
5148         (HAVE_memory_barrier): Add default value.
5149         * optabs.c: Adjust.
5151 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5153         * defaults.h (gen_mem_thread_fence): New function.
5154         (HAVE_mem_thread_fence): Add default definition.
5155         * optabs.c: Adjust.
5157 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5159         * combine.c (find_split_point): Check the value of HAVE_lo_sum
5160         instead of if it is defined.
5161         (combine_simplify_rtx): Likewise.
5162         * lra-constraints.c (process_address_1): Likewise.
5163         * config/darwin.c: Adjust.
5164         * genconfig.c (main): Always define HAVE_lo_sum.
5166 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5168         * genmatch.c (parser::parse_operation): Reject expanding
5169         operator-list inside 'for'.
5171 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5173         * genmatch.c (parser::parse_for): Reject iterator if used as
5174         operator-list.
5176 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5178         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
5179         after end of id-list.
5181 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
5183         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
5184         we do not try to compute canonical type for type that does not need
5185         alias set.
5186         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
5187         FUNCITON_TYPE.
5188         * tree.h (type_with_alias_set_p): New.
5190 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
5192         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
5193         function attributes.
5194         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
5196 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
5198         * Makefile.in (check_gcc_parallelize): Delete.
5199         (lang_checks_parallelized): Update comment.
5201 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
5203         PR rtl-optimization/66237
5204         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
5205         location of an "as_a" cast.
5207 2015-05-22  Jeff Law  <law@redhat.com>
5209         * config/pa/pa.md (non-canonical shift-add insns): Remove.
5210         (peepholes with non-canonical RTL sources): Remove.
5211         (peepholes for indexed stores of FP regs in integer modes): Match and
5212         generate canonical RTL.
5214 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5216         PR tree-optimization/63387
5217         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
5218         ((x ord x) & (y ord y) -> (x ord y),
5219         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
5220         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
5221         vectors like scalars.
5223 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5225         * convert.c (convert_to_integer, convert_to_vector): Include the
5226         types in the error message.
5228 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5230         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
5231         simplifications.
5233 2015-05-22  Jeff Law  <law@redhat.com>
5235         * config/pa/pa.md (integer_indexed_store splitters): Use
5236         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
5237         insns -- adjusting the constant 2nd operand accordingly.
5239         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
5240         (plus (ashift X log2) Y) if it is a split point.
5242         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
5243         out of hppa_legitimize_address to handle both forms of a multiply
5244         by 2, 4 or 8.
5245         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
5246         Always generate the ASHIFT variant as the result is not directly
5247         used in a MEM.  Update comments and refactor slightly to improve
5248         readability.
5250 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5252         PR target/65491
5253         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
5254         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
5255         (aarch64_composite_type_p): Return false if given type and mode are
5256         for a short vector.
5258 2015-05-22  Richard Biener  <rguenther@suse.de>
5260         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
5261         member.
5262         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
5263         patterns when determining whether SLP is pure.
5264         (vect_is_slp_reduction): Remove check for pattern stmts.
5265         (vect_is_simple_reduction_1): Remove dead code.
5266         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
5267         (vect_get_and_check_slp_defs): Pass in the stmt number.
5268         Allow the first def in a reduction to be not a pattern stmt when
5269         the rest of the stmts def are patterns.
5270         (vect_build_slp_tree_1): Allow tcc_expression codes like
5271         SAD_EXPR and DOT_PROD_EXPR.
5272         (vect_build_slp_tree): Adjust.
5273         (vect_analyze_slp): Refactor and move BB vect error message ...
5274         (vect_slp_analyze_bb_1): ... here.
5276 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
5278         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
5279         for CSWTCH temporary.
5281 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5283         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
5284         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
5285         unknown unspecs.
5287 2015-05-22  Richard Biener  <rguenther@suse.de>
5289         PR tree-optimization/66251
5290         * tree-vect-stmts.c (vectorizable_conversion): Properly
5291         set STMT_VINFO_VEC_STMT even for the SLP case.
5293 2015-05-22  Marek Polacek  <polacek@redhat.com>
5295         * doc/extend.texi: Use @pxref instead of @xref.
5297 2015-05-22  hiraditya  <hiraditya@msn.com>
5299         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
5300         redundant if.
5302 2015-05-22  Richard Biener  <rguenther@suse.de>
5304         PR tree-optimization/65701
5305         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5306         Move peeling cost models into one place.  Peel for alignment
5307         for single loads only if an aligned load is cheaper than
5308         an unaligned load.
5310 2015-05-22  Marek Polacek  <polacek@redhat.com>
5312         PR c/47043
5313         * doc/extend.texi (Enumerator Attributes): New section.
5314         Document syntax of enumerator attributes.
5316 2015-05-22  Richard Biener  <rguenther@suse.de>
5318         * tree-vect-loop.c (get_reduction_op): New function.
5319         (vect_model_reduction_cost): Use it, add reduc_index parameter.
5320         Make ready for BB reductions.
5321         (vect_create_epilog_for_reduction): Use get_reduction_op.
5322         (vectorizable_reduction): Init reduc_index to a valid value.
5323         Adjust vect_model_reduction_cost call.
5324         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5325         operand for reduction defaults.  Add SAD_EXPR support.
5326         Assert we have a neutral op for SLP reductions.
5327         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5328         walking pattern stmt ops only recurse to SSA names.
5330 2015-05-22  Richard Biener  <rguenther@suse.de>
5332         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5333         assert with guard, remove check on detected reduction.
5334         (vect_recog_sad_pattern): Likewise.
5335         (vect_recog_widen_sum_pattern): Likewise.
5337 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5339         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5340         __always_inline__ attribute.
5341         (vaesdq_u8): Likewise.
5342         (vaesmcq_u8): Likewise.
5343         (vaesimcq_u8): Likewise.
5344         (vsha1cq_u32): Likewise.
5345         (vsha1mq_u32): Likewise.
5346         (vsha1pq_u32): Likewise.
5347         (vsha1h_u32): Likewise.
5348         (vsha1su0q_u32): Likewise.
5349         (vsha1su1q_u32): Likewise.
5350         (vsha256hq_u32): Likewise.
5351         (vsha256h2q_u32): Likewise.
5352         (vsha256su0q_u32): Likewise.
5353         (vsha256su1q_u32): Likewise.
5354         (vmull_p64): Likewise.
5355         (vmull_high_p64): Likewise.
5357 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5359         * final.c (final_scan_insn): Don't check HAVE_peephole with the
5360         preprocessor.
5361         * output.h: Likewise.
5362         * genconfig.c (main): Alwways define HAVE_peephole.
5363         * genpeep.c: Don't emit checks of HAVE_peephole.
5365 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5367         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5368         check HAVE_conditional_move with the preprocessor.
5370 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5372         * genconfig.c (main): Always define HAVE_conditional_move.
5373         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5374         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5375         is defined.
5377 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5379         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5380         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5381         and FRAME_POINTER_REGNUM with the preprocessor.
5383 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5385         * defaults.h: Add default for STACK_PUSH_CODE.
5386         * expr.c: Don't redefine STACK_PUSH_CODE.
5387         * recog.c: Likewise.
5389 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5391         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5392         sched-deps.c: Use if instead of preprocessor checks with
5393         STACK_GROWS_DOWNWARD.
5395 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5397         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5398         is defined.
5399         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5400         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5401         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5402         * doc/tm.texi: Regenerate.
5404 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5406         PR target/66232
5407         * config/i386/constraints.md (Bg): New constraint for GOT memory
5408         operand.
5409         * config/i386/i386.md (*call_got_x32): New pattern.
5410         (*call_value_got_x32): Likewise.
5411         * config/i386/predicates.md (GOT_memory_operand): New predicate.
5413 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
5415         PR tree-optimization/66233
5416         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5417         Simplify.
5419 2015-05-21  Jeff Law  <law@redhat.com>
5421         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5422         than MULT for shadd sequences.
5424 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
5426         * alias.c (alias_stats): New static var.
5427         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
5428         (dump_alias_stats_in_alias_c): New function.
5429         * alias.h (dump_alias_stats_in_alias_c): Declare.
5430         * tree-ssa-alias.c (dump_alias_stats): Call it.
5432 2015-05-08  Michael Matz  <matz@suse.de>
5434         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
5435         to strided_p.
5436         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
5437         (STMT_VINFO_STRIDED_P): ... this.
5438         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
5439         (vect_verify_datarefs_alignment): Likewise.
5440         (vect_enhance_data_refs_alignment): Likewise.
5441         (vect_analyze_data_ref_access): Likewise.
5442         (vect_analyze_data_refs): Accept strided stores.
5443         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
5444         (vect_model_load_cost): Adjust for macro rename.
5445         (vectorizable_mask_load_store): Likewise.
5446         (vectorizable_load): Likewise.
5447         (vectorizable_store): Open code strided stores.
5449 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5451         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
5452         Document sqrt_insn.
5454 2015-05-21  Richard Biener  <rguenther@suse.de>
5456         PR c++/66211
5457         * match.pd: Guard pattern optimzing (int)(float)int
5458         conversions to apply only on GIMPLE.
5460 2015-05-21  Jeff Law  <law@redhat.com>
5462         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
5463         multiply-accumulate/shift-add insn generation.
5465 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
5467         PR target/54236
5468         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
5469         operands[1] are the same.
5471 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5473         PR middle-end/66221
5474         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
5475         build_distinct_type_copy to copy bounds.
5477 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5479         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
5480         Change to unsigned int.
5482 2015-05-20  Jeff Law  <law@redhat.com>
5484         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
5485         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
5486         (pa_shadd_constant_p): Allow constants for shadd insns rather
5487         than valid scaling constants for memory addresses.
5488         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
5489         * config/pa/predicates.md (mem_shadd_operand): New predicate.
5490         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
5491         (shift-add insns using ASHIFT): New patterns.
5493 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
5495         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
5496         feasible.
5497         (fix_up_fall_thru_edges): Likewise.
5498         (fix_crossing_conditional_branches): Likewise. Promote jump targets
5499         from to rtx_insn to rtx_code_label where feasible.
5500         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
5501         gen_move_insn (returned type changed to rtx_insn).
5502         * builtins.c (expand_errno_check): Fix arguments of
5503         do_compare_rtx_and_jump (now expects rtx_code_label).
5504         (expand_builtin_acc_on_device): Likewise.
5505         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
5506         invert_jump (now exprects rtx_jump_insn).
5507         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
5508         (construct_init_block): Use rtx_code_label.
5509         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
5510         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
5511         calling redirect_jump.
5512         (patch_jump_insn): Likewise.
5513         (redirect_branch_edge): Likewise.
5514         (force_nonfallthru_and_redirect): Likewise.
5515         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
5516         when suitable.
5517         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
5518         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
5519         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
5520         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
5521         to store the value retured by gen_label_rtx.
5522         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
5523         rtx_jump_insn.
5524         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
5525         (split_branches): Fix calls of redirect_jump.
5526         * dojump.c (jumpifnot): Promote argument type from rtx to
5527         rtx_code_label.
5528         (jumpifnot_1): Likewise.
5529         (jumpif): Likewise.
5530         (jumpif_1): Likewise.
5531         (do_jump_1): Likewise.
5532         (do_jump): Likewise. Use rtx_code_label when feasible.
5533         (do_jump_by_parts_greater_rtx): Likewise.
5534         (do_jump_by_parts_zero_rtx): Likewise.
5535         (do_jump_by_parts_equality_rtx): Likewise.
5536         (do_compare_rtx_and_jump): Likewise.
5537         * dojump.h: Update function prototypes.
5538         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
5539         returns rtx_insn).
5540         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
5541         rtx_jump_insn.
5542         (emit_label_before): Likewise.
5543         (emit_jump_insn_after_noloc): Likewise.
5544         (emit_jump_insn_after_setloc): Likewise.
5545         (emit_jump_insn_after): Likewise
5546         (emit_jump_insn_before_setloc): Likewise.
5547         (emit_jump_insn_before): Likewise.
5548         (emit_label_before): Promote return type to rtx_code_label.
5549         (emit_label): Likewise.
5550         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
5551         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
5552         gen_move_insn.
5553         (emit_stack_restore): Likewise.
5554         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
5555         (do_cmp_and_jump): Likewise.
5556         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
5557         from rtx to rtx_code_label.
5558         (gen_move_insn_uncast): New function.
5559         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
5560         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
5561         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
5562         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
5563         invert_jump_1 and redirect_jump_1.
5564         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
5565         do_compare_rtx_and_jump.
5566         (expand_addsub_overflow): Likewise.
5567         (expand_neg_overflow): Likewise.
5568         (expand_mul_overflow): Likewise.
5569         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
5570         return value of gen_move_insn.
5571         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
5572         * loop-doloop.c (add_test): Use rtx_code_label.
5573         (doloop_modify): Likewise.
5574         (doloop_optimize): Likewise.
5575         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
5576         * lra-constraints.c (emit_spill_move): Remove cast of value returned
5577         by gen_move_insn.
5578         (inherit_reload_reg): Add cast when calling dump_insn_slim.
5579         (split_reg): Likewise.
5580         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
5581         gen_move_insn.
5582         * optabs.c (expand_binop_directly): Remove casts of values returned by
5583         maybe_gen_insn.
5584         (expand_unop_direct): Likewise.
5585         (expand_abs): Likewise.
5586         (maybe_emit_unop_insn): Likewise.
5587         (maybe_gen_insn): Promote return type to rtx_insn.
5588         * optabs.h: Update prototype of maybe_gen_insn.
5589         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
5590         redundant cast.
5591         * recog.c (struct peep2_insn_data): Promote type of insn field to
5592         rtx_insn.
5593         (peep2_reinit_state): Use NULL instead of NULL_RTX.
5594         (peep2_attempt): Remove casts of insn in peep2_insn_data.
5595         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
5596         * recog.h (struct insn_gen_fn): Promote return types of function
5597         pointers and operator ().from rtx to rtx_insn.
5598         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
5599         (fill_eager_delay_slots): Likewise.
5600         (relax_delay_slots): Likewise.
5601         (make_return_insns): Likewise.
5602         (dbr_schedule): Likewise.
5603         (optimize_skips): Likewise.
5604         (reorg_redirect_jump): Likewise.
5605         (fill_slots_from_thread): Likewise.
5606         * reorg.h: Update prototypes.
5607         * resource.c (find_dead_or_set_registers): Use dyn_cast to
5608         rtx_jump_insn instead of check.  Use it's jump_target method.
5609         * rtl.h (rtx_jump_insn::jump_label): Define new method.
5610         (rtx_jump_insn::jump_target): Define new method.
5611         (rtx_jump_insn::set_jump_target): Define new method.
5612         * rtlanal.c (tablejump_p): Promote type of one local variable.
5613         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
5614         (sched_analyze_insn): Likewise.
5615         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
5616         (print_insn): Likewise.
5617         * stmt.c (label_rtx): Promote return type to rtx_insn.
5618         (force_label_rtx): Likewise.
5619         (jump_target_rtx): Define new function.
5620         (expand_label): Use it, get rid of one cast.
5621         (expand_naked_return): Promote rtx to rtx_code_label.
5622         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
5623         (expand_case): Use rtx_code_label instread of rtx where feasible.
5624         (expand_sjlj_dispatch_table): Likewise.
5625         (emit_case_nodes): Likewise.
5626         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
5627         * store-motion.c (insert_store): Make use of new return type of
5628         gen_move_insn and remove a cast.
5629         (replace_store_insn): Likewise.
5631 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
5633         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
5634         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
5636 2015-05-20  Jeff Law  <law@redhat.com>
5638         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
5639         dispose of the jump thread path when the jump threading
5640         opportunity is cancelled.
5642 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5644         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
5645         when printing the caret character.
5647 2015-05-20  Marek Polacek  <polacek@redhat.com>
5649         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
5651 2015-05-20  Marek Polacek  <polacek@redhat.com>
5653         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
5654         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
5655         * gimple-fold.c (canonicalize_bool): Likewise.
5656         (same_bool_result_p): Likewise.
5657         * tree-if-conv.c (parse_predicate): Likewise.
5659 2015-05-20  Marek Polacek  <polacek@redhat.com>
5661         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
5662         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
5664 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5666         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
5667         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
5668         values.
5670 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
5672         * config/mips/mips.h (micromips_globals): Declare.
5674 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
5676         * timevar.def (TV_INITIALIZE_RTL): New.
5677         * toplev.c (initialize_rtl): Use an auto_timevar to account this
5678         function's time to TV_INITIALIZE_RTL.
5680 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
5682         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
5683         gimple_build_nop calls.
5684         (chkp_find_bounds_for_elem): Likewise.
5685         (chkp_get_zero_bounds): Likewise.
5686         (chkp_get_none_bounds): Likewise.
5687         (chkp_get_bounds_by_definition): Likewise.
5688         (chkp_generate_extern_var_bounds): Likewise.
5689         (chkp_get_bounds_for_decl_addr): Likewise.
5690         (chkp_get_bounds_for_string_cst): Likewise.
5692 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
5694         PR tree-optimization/65447
5695         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
5696         (dump_use, dump_uses): Support to dump sub use.
5697         (record_use): New parameters to support sub use.  Remove call to
5698         dump_use.
5699         (record_sub_use, record_group_use): New functions.
5700         (compute_max_addr_offset, split_all_small_groups): New functions.
5701         (group_address_uses, rewrite_use_address): New functions.
5702         (strip_offset): New declaration.
5703         (find_interesting_uses_address): Call record_group_use.
5704         (add_candidate): New assertion.
5705         (infinite_cost_p): Move definition forward.
5706         (add_costs): Check INFTY cost and return immediately.
5707         (get_computation_cost_at): Clear setup cost and dependent bitmap
5708         for sub uses.
5709         (determine_use_iv_cost_address): Compute cost for sub uses.
5710         (rewrite_use_address_1): Rename from old rewrite_use_address.
5711         (free_loop_data): Free sub uses.
5712         (tree_ssa_iv_optimize_loop): Call group_address_uses.
5714 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5715             Jim Wilson  <jim.wilson@linaro.org>
5717         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
5718         new  fields loadv and storev.
5719         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
5720         Initialize loadv and storev.
5721         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
5722         (cortexa53_extra_costs): Likewise.
5723         (cortexa57_extra_costs): Likewise.
5724         (xgene1_extra_costs): Likewise.
5725         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
5726         rtx_costs.
5728 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5730         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
5731          storev.
5732         (cortexa8_extra_costs): Likewise.
5733         (cortexa5_extra_costs): Likewise.
5734         (cortexa7_extra_costs): Likewise.
5735         (cortexa12_extra_costs): Likewise.
5736         (cortexa15_extra_costs): Likewise.
5737         (v7m_extra_costs): Likewise.
5739 2015-05-20  Jeff Law  <law@redhat.com>
5741         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
5742         instead of open-coded version.  Also delete the jump thread created
5743         within this function.
5745 2015-05-20  Alan Modra  <amodra@gmail.com>
5747         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
5748         stack adjusting insn.  Formatting.
5749         (rs6000_emit_prologue): Track stack adjusting insn, and use of
5750         r12.  If possible, emit first -fsplit-stack arg pointer insn
5751         before stack adjust.  Don't use r12 to save cr if split-stack.
5753 2015-05-20  Alan Modra  <amodra@gmail.com>
5755         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
5756         Define.
5757         (rs6000_supports_split_stack): New function.
5758         * gcc/config/rs6000/rs6000.c (machine_function): Add
5759         split_stack_arg_pointer.
5760         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
5761         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
5762         rather than virtual_incoming_args_rtx.
5763         (rs6000_va_start): Likewise.
5764         (split_stack_arg_pointer_used_p): New function.
5765         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
5766         (morestack_ref): New var.
5767         (gen_add3_const, rs6000_expand_split_stack_prologue,
5768         rs6000_internal_arg_pointer, rs6000_live_on_entry,
5769         rs6000_split_stack_space_check): New functions.
5770         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
5771         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
5772         (UNSPECV_SPLIT_STACK_RETURN): Define.
5773         (split_stack_prologue, load_split_stack_limit,
5774         load_split_stack_limit_di, load_split_stack_limit_si,
5775         split_stack_return, split_stack_space_check): New expands and insns.
5776         * gcc/config/rs6000/rs6000-protos.h
5777         (rs6000_expand_split_stack_prologue): Declare.
5778         (rs6000_split_stack_space_check): Declare.
5780 2015-05-20  Alan Modra  <amodra@gmail.com>
5782         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
5783         (rs6000_stack_info): Don't zero offsets when not saving registers.
5784         (debug_stack_info): Adjust to omit printing unused offsets,
5785         as before.
5786         (direct_return): Test vrsave_size rather than vrsave_mask.
5787         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
5788         (rs6000_emit_epilogue): Likewise.
5790 2015-05-20  Alan Modra  <amodra@gmail.com>
5792         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
5793         when not saving registers.
5794         (debug_stack_info): Adjust to omit printing unused offsets,
5795         as before.
5796         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
5797         expression.
5799 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5801         PR c++/65835
5802         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
5803         value_type to const char *.
5805 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5807         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
5808         to build a biarch toolchain again.
5810 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5812         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
5813         or implicit declarations.
5814         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
5815         into it.
5816         (get_odr_type): Check type has linkage before adding bases.
5817         (register_odr_type): Check that type has linkage before adding it.
5818         (type_known_to_have_no_deriavations_p): Rename to ..
5819         (type_known_to_have_no_derivations_p): This one.
5820         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
5821         (type_known_to_have_no_derivations_p): This one.
5822         * ipa-polymorphic-call.c
5823         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
5824         type has linkage.
5826 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5828         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
5829         (layout_type): Use RECORD_OR_UNION_TYPE_P.
5831 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5833         * config/s390/s390.c (s390_vector_bool_type_p): New function.
5834         (s390_invalid_binary_op): New function.
5835         (TARGET_INVALID_BINARY_OP): Define macro.
5837 2015-05-19  David Sherwood  <david.sherwood@arm.com>
5839         * loop-invariant.c (create_new_invariant): Don't calculate address cost
5840         if mode is not a scalar integer.
5841         (get_inv_cost): Increase computational cost for unused invariants.
5843 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5845         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
5846         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
5847         * config/s390/s390-builtin-types.def: New file.
5848         * config/s390/s390-builtins.def: New file.
5849         * config/s390/s390-builtins.h: New file.
5850         * config/s390/s390-c.c: New file.
5851         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
5852         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
5853         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
5854         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
5855         prototypes.
5856         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
5857         Include.
5858         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
5859         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
5860         variable definitions.
5861         (s390_const_operand_ok): New function.
5862         (s390_expand_builtin): Rewrite.
5863         (s390_init_builtins): New function.
5864         (s390_handle_vectorbool_attribute): New function.
5865         (s390_attribute_table): Add s390_vector_bool attribute.
5866         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
5867         (s390_branch_condition_mask): Generate masks for new modes.
5868         (s390_expand_vec_compare_cc): New function.
5869         (s390_mangle_type): Add mangling for vector bool types.
5870         (enum s390_builtin): Remove.
5871         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
5872         efpc builtins.
5873         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
5874         s390_cpu_cpp_builtins.
5875         (REGISTER_TARGET_PRAGMAS): New macro.
5876         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
5877         (insn_cmp mode attribute): Add new CC modes.
5878         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
5879         (lcbb): New pattern definition.
5880         * config/s390/s390intrin.h: Include vecintrin.h.
5881         * config/s390/t-s390: New file.
5882         * config/s390/vecintrin.h: New file.
5883         * config/s390/vector.md: Include vx-builtins.md.
5884         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
5885         support.
5887 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5889         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
5890         CCVFHE.
5891         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
5892         (s390_select_ccmode): Likewise.
5893         (s390_canonicalize_comparison): Swap operands if necessary.
5894         (s390_expand_vec_compare_scalar): Expand DFmode compare using
5895         single element vector instructions.
5896         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
5897         (s390_branch_condition_mask): Generate CC masks for the new modes.
5898         * config/s390/s390.md (v0, vf, vd): New mode attributes.
5899         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
5900         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
5901         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
5902         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
5903         (*extend<DSF:mode><BFP:mode>2): New insn definition.
5904         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
5905         (extend<DSF:mode><BFP:mode>2): Turn into expander.
5906         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
5907         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
5908         (sqrt<mode>2): Add vector instruction.
5910 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5912         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
5913         constraints.
5914         * config/s390/predicates.md (const0_operand, constm1_operand)
5915         (constable_operand): Accept vector operands.
5916         * config/s390/s390-modes.def: Add supported vector modes.
5917         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
5918         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
5919         (s390_bytemask_vector_p, s390_expand_vec_strlen)
5920         (s390_expand_vec_compare, s390_expand_vcond)
5921         (s390_expand_vec_init): Add prototypes.
5922         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
5923         (s390_vector_mode_supported_p): New function.
5924         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
5925         (s390_contiguous_bitmask_vector_p): New function.
5926         (s390_bytemask_vector_p): New function.
5927         (s390_split_ok_p): Vector regs don't work either.
5928         (regclass_map): Add VEC_REGS.
5929         (s390_legitimate_constant_p): Handle vector constants.
5930         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
5931         (legitimate_reload_vector_constant_p): New function.
5932         (s390_preferred_reload_class): Handle CONST_VECTOR.
5933         (s390_reload_symref_address):  Likewise.
5934         (s390_secondary_reload): Vector memory instructions only support
5935         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
5936         (s390_emit_ccraw_jump): New function.
5937         (s390_expand_vec_strlen): New function.
5938         (s390_expand_vec_compare): New function.
5939         (s390_expand_vcond): New function.
5940         (s390_expand_vec_init): New function.
5941         (s390_dwarf_frame_reg_mode): New function.
5942         (print_operand): Handle addresses with 'O' and 'R' constraints.
5943         (NR_C_MODES, constant_modes): Add vector modes.
5944         (s390_output_pool_entry): Handle vector constants.
5945         (s390_hard_regno_mode_ok): Handle vector registers.
5946         (s390_class_max_nregs): Likewise.
5947         (s390_cannot_change_mode_class): New function.
5948         (s390_invalid_arg_for_unprototyped_fn): New function.
5949         (s390_function_arg_vector): New function.
5950         (s390_function_arg_float): Remove size variable.
5951         (s390_pass_by_reference): Handle vector arguments.
5952         (s390_function_arg_advance): Likewise.
5953         (s390_function_arg): Likewise.
5954         (s390_return_in_memory): Vector values are returned in a VR if
5955         possible.
5956         (s390_function_and_libcall_value): Handle vector arguments.
5957         (s390_gimplify_va_arg): Likewise.
5958         (s390_call_saved_register_used): Consider the arguments named.
5959         (s390_conditional_register_usage): Disable v16-v31 for non-vec
5960         targets.
5961         (s390_preferred_simd_mode): New function.
5962         (s390_support_vector_misalignment): New function.
5963         (s390_vector_alignment): New function.
5964         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
5965         (TARGET_VECTOR_MODE_SUPPORTED_P)
5966         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
5967         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5968         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
5969         (TARGET_VECTOR_ALIGNMENT): Define target macro.
5970         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
5971         (FIRST_PSEUDO_REGISTER): Increase value.
5972         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
5973         (VECTOR_REG_P): Define macros.
5974         (FIXED_REGISTERS, CALL_USED_REGISTERS)
5975         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
5976         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
5977         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
5978         Add vector registers.
5979         (CANNOT_CHANGE_MODE_CLASS): Call C function.
5980         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
5981         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
5982         memory.
5983         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
5984         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
5985         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
5986         (VR*_REGNUM): New constants.
5987         (ALL): New mode iterator.
5988         (INTALL): Remove mode iterator.
5989         Include vector.md.
5990         (movti): Implement TImode moves for VRs.
5991         Disable TImode splitter for VR targets.
5992         Implement splitting TImode GPR<->VR moves.
5993         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
5994         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
5995         reload<mode>_la_in, reload<mode>_la_out.
5996         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
5997         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
5998         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
5999         (mov<mode> SF SD): Prefer lder, lde for loading.
6000         Add lrl and strl instructions.
6001         Add vector instructions.
6002         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
6003         Call s390_expand_vec_strlen on z13.
6004         (*cc_to_int): Change predicate to nonimmediate_operand.
6005         (addti3): Rename to *addti3.  New expander.
6006         (subti3): Rename to *subti3.  New expander.
6007         * config/s390/vector.md: New file.
6009 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6011         * common/config/s390/s390-common.c (processor_flags_table): Add
6012         z13.
6013         * config.gcc: Add z13.
6014         * config/s390/s390-opts.h (enum processor_type): Add
6015         PROCESSOR_2964_Z13.
6016         * config/s390/s390.c (s390_adjust_priority): Check for
6017         PROCESSOR_2964_Z13.
6018         (s390_reorg): Likewise.
6019         (s390_sched_reorder): Likewise.
6020         (s390_sched_variable_issue): Likewise.
6021         (s390_loop_unroll_adjust): Likewise.
6022         (s390_option_override): Likewise. Default to -mvx when available.
6023         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
6024         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
6025         (TARGET_VX_ABI): Define macros.
6026         macros.
6027         (TARGET_DEFAULT): Add MASK_OPT_VX.
6028         * config/s390/s390.md ("cpu" attribute): Add z13.
6029         ("cpu_facility" attribute): Add vec.
6030         * config/s390/s390.opt (processor_type): Add z13.
6031         (mvx): New options.
6032         * doc/invoke.texi: Add z13 option for -march.
6034 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6036         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
6037         mode check to make sure that only scalar integer values are
6038         accepted.
6040 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6042         * tree.c (verify_type_variant): Fix #undef.
6043         (gimple_canonical_types_compatible_p): Move here from lto.c
6044         (verify_type): Verify TYPE_CANONICAL compatibility.
6045         * tree.h (gimple_canonical_types_compatible_p): Declare.
6047 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6049         PR middle-end/66199
6050         * tree.h (OMP_TEAMS_COMBINED): Define.
6051         * gimplify.c (enum gimplify_omp_var_data): Add
6052         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
6053         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
6054         (omp_notice_variable): Accept both ORT_TEAMS
6055         and ORT_COMBINED_TEAMS.  Don't recurse if
6056         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
6057         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
6058         GOVD_FIRSTPRIVATE.
6059         (omp_no_lastprivate): New function.
6060         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
6061         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
6062         notice_outer and set appropriate bits, otherwise make
6063         sure default(none) combined constructs won't complain.
6064         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
6065         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
6066         omp_no_lastprivate either remove the clause or turn it
6067         into OMP_CLAUSE_PRIVATE.
6068         (gimplify_omp_for): Fix up handling of implicit
6069         lastprivate or linear iterators.
6070         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
6071         ORT_COMBINED_TEAMS.
6072         * omp-low.c (lower_omp_for_lastprivate): For combined
6073         for simd use fd.loop.n2 from the for rather than simd.
6075 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6077         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
6078         instead of gen_rtx_raw_REG.
6079         (cris_expand_epilogue): Likewise.
6080         * config/microblaze/microblaze.c (microblaze_classify_address):
6081         Likewise.
6082         * config/sparc/sparc.md: Likewise.
6084 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
6086         * config/alpha/alpha.c (alpha_legitimize_reload_address)
6087         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
6088         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
6089         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
6090         Use CASE_CONST_SCALAR_INT.
6091         (print_operand) <case 'M'>: Use mode_width_operand to check the
6092         value of the constant.
6093         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
6094         * config/alpha/predicates.md (input_operand): Use general_operand
6095         instead of match_code as operand check.
6096         (symbolic_operand): Use match_code with subexpression digits.
6097         * config/alpha/constraints.md (Q): Ditto.
6099 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6101         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
6103 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6105         * config/s390/s390.c (s390_secondary_reload): Fix check for
6106         load/store relative.
6108 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6110         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
6111         alternative_mask to uint64_t.
6113 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6115         PR tree-optimization/66187
6116         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6117         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
6118         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
6120 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
6122         * diagnostic.c (diagnostic_report_current_module): Strengthen
6123         local "new_map" from const line_map * to
6124         const line_map_ordinary *.
6125         * genmatch.c (error_cb): Likewise for local "map".
6126         (output_line_directive): Likewise for local "map".
6127         * input.c (expand_location_1): Likewise for local "map".
6128         Pass NULL rather than &map to
6129         linemap_unwind_to_first_non_reserved_loc, since the value is never
6130         read from there, and the value written back not read from here.
6131         (is_location_from_builtin_token): Strengthen local "map" from
6132         const line_map * to const line_map_ordinary *.
6133         (dump_location_info): Strengthen locals "map" from
6134         line_map *, one to const line_map_ordinary *, the other
6135         to const line_map_macro *.
6136         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
6137         const line_map * to const line_map_macro *.
6138         (maybe_unwind_expanded_macro_loc): Add a call to
6139         linemap_check_macro when writing to the "map" field of the
6140         loc_map_pair.
6141         Introduce local const line_map_ordinary * "ord_map", using it in
6142         place of "map" in the part of the function where we know we have
6143         an ordinary map.  Strengthen local "m" from const line_map * to
6144         const line_map_ordinary *.
6146 2015-05-19  Nick Clifton  <nickc@redhat.com>
6148         PR target/66156
6149         * config/msp430/msp430.md (zero_extendhisi2): Add support for
6150         separate source and destination registers.
6152 2015-05-19  Richard Biener  <rguenther@suse.de>
6154         PR tree-optimization/66165
6155         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
6156         for no load permutation.
6158         PR tree-optimization/66185
6159         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
6160         when building the SLP node from scalars.
6162 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6163             Tristan Gingold  <gingold@adacore.com>
6165         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
6166         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
6167         (expand_stack_restore): Call record_new_stack_level.
6168         (expand_stack_save): Do not call do_pending_stack_adjust.
6169         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
6170         * calls.c (expand_call): Call record_new_stack_level for alloca.
6171         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
6172         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
6173         (update_sjlj_context): New global function.
6174         * except.h (update_sjlj_context): Declare.
6175         * explow.c (record_new_stack_level): New global function.
6176         (allocate_dynamic_stack_space): Call record_new_stack_level.
6177         * explow.h (record_new_stack_level): Declare.
6178         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
6179         * cfgrtl.c (duplicate_insn_chain): Likewise.
6181 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6183         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
6184         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
6185         STACK_GROWS_DOWNWARD as normal if.
6186         (expand_call): Likewise.
6188 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
6190         PR target/54236
6191         * config/sh/sh.md (*round_int_even): New insn_and_split and
6192         accompanying new unnamed split.
6194 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6196         * bitmap.c (bitmap_set_range): Handle count==1 specially.
6197         (bitmap_clear_range): Likewise.
6198         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
6199         bitmap_set_range unconditionally.
6200         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6201         * df-scan.c (df_mark_reg): Likewise.
6202         * haifa-sched.c (setup_ref_regs): Likewise.
6203         * sched-rgn.c (update_live_1): Likewise.
6205 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6207         * regs.h (END_HARD_REGNO): Delete.
6208         (END_REGNO): Move to...
6209         * rtl.h: ...here.
6210         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
6211         * caller-save.c (mark_set_regs): Likewise.
6212         * combine.c (move_deaths, distribute_notes): Likewise.
6213         * cse.c (invalidate, invalidate_for_call): Likewise.
6214         * df-scan.c (df_ref_record): Likewise.
6215         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
6216         (record_last_reg_set_info): Likewise.
6217         * reg-stack.c (convert_regs_exit): Likewise.
6218         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
6219         * resource.c (update_live_status): Likewise.
6220         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
6222 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6224         * rtl.h (reg_info): Add an nregs field.
6225         (REG_NREGS): Use it.
6226         (SET_REGNO_RAW): Delete.
6227         (set_regno_raw): New function.
6228         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
6229         (END_REGNO): Redefine in terms of REG_NREGS.
6230         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
6231         SET_REGNO_RAW.
6232         * emit-rtl.c (set_mode_and_regno): Likewise.
6233         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
6234         instead of SET_REGNO_RAW.
6236 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6238         * rtl.h (PUT_MODE_RAW): New macro.
6239         (PUT_REG_NOTE_KIND): Use it.
6240         (set_mode_and_regno): Declare.
6241         (gen_raw_REG): Change regno to "unsigned int".
6242         (gen_rtx_REG): Change "unsigned" to "unsigned int".
6243         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
6244         use set_mode_and_regno to change the mode of registers.
6245         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
6246         * emit-rtl.c (set_mode_and_regno): New function.
6247         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
6248         * caller-save.c (reg_save_code): Use set_mode_and_regno.
6249         * expr.c (init_expr_target): Likewise.
6250         * ira.c (setup_prohibited_mode_move_regs): Likewise.
6251         * postreload.c (reload_cse_simplify_operands): Likewise.
6253 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6255         * caller-save.c (init_caller_save): Use word_mode and
6256         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
6257         * expr.c (init_expr_target): Likewise.
6258         * ira.c (setup_prohibited_mode_move_regs): Likewise.
6259         * postreload.c (reload_cse_regs_1): Likewise.
6261 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6263         * rtl.def (REG): Change format to "r".
6264         * rtl.h (rtunion): Remove rt_reg.
6265         (reg_info): New structure.
6266         (rtx_def): Add reg field to main union.
6267         (X0REGATTR): Delete.
6268         (REG_CHECK): New macro.
6269         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
6270         * rtl.c (rtx_format): Document "r".
6271         (rtx_code_size): Handle REG specially.
6272         * gengenrtl.c (special_format): Return true for formats
6273         that include 'r'.
6274         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
6275         Deal with REG_ATTRS after the field loop.
6276         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
6277         * expmed.c (init_expmed): Call gen_raw_REG instead of
6278         gen_rtx_raw_REG.
6279         * expr.c (init_expr_target): Likewise.
6280         * regcprop.c (maybe_mode_change): Likewise.
6281         * varasm.c (make_decl_rtl): Likewise.
6282         * final.c (leaf_renumber_regs_insn): Return early after
6283         handling REGs.
6284         * genemit.c (gen_exp): Handle 'r' fields.
6285         * genpeep.c (match_rtx): Likewise.
6286         * gensupport.c (subst_pattern_match): Likewise.
6287         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
6288         (alter_constraints, subst_dup): Likewise.
6289         * read-rtl.c (read_rtx_code): Likewise.
6290         * print-rtl.c (print_rtx): Likewise.
6291         * genrecog.c (find_operand, find_matching_operand): Likewise.
6292         (validate_pattern, match_pattern_2): Likewise.
6293         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
6294         (rtx_test::regno_field): New function.
6295         (operator ==, safe_to_hoist_p, transition_parameter_type)
6296         (parameter_type_string, print_parameter_value)
6297         (print_nonbool_test, print_test): Handle new enum values.
6298         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
6299         * lra-constraints.c (operands_match_p): Likewise.
6301 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6303         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
6304         Change type of new_regno to unsigned int.
6305         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6306         new_regno to unsigned int.
6307         (df_ref_change_reg_with_loc): Remove old_regno parameter.
6308         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
6309         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6310         (SET_REGNO_RAW): Add space after ",".
6312 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6314         * rtl.h (REG_NREGS): New macro
6315         * alias.c (record_set): Use it.
6316         * cfgcleanup.c (mark_effect): Likewise.
6317         * combine.c (likely_spilled_retval_1): Likewise.
6318         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6319         (move_deaths, distribute_notes): Likewise.
6320         * cselib.c (cselib_record_set): Likewise.
6321         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6322         * df-scan.c (df_mark_reg): Likewise.
6323         * dse.c (look_for_hardregs): Likewise.
6324         * dwarf2out.c (reg_loc_descriptor): Likewise.
6325         (multiple_reg_loc_descriptor): Likewise.
6326         * expr.c (write_complex_part, read_complex_part): Likewise.
6327         (emit_move_complex): Likewise.
6328         * haifa-sched.c (setup_ref_regs): Likewise.
6329         * ira-lives.c (mark_hard_reg_live): Likewise.
6330         * lra.c (lra_set_insn_recog_data): Likewise.
6331         * mode-switching.c (create_pre_exit): Likewise.
6332         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6333         (reload_combine_recognize_pattern): Likewise.
6334         (reload_combine_note_use, move2add_record_mode): Likewise.
6335         (reload_cse_move2add): Likewise.
6336         * reg-stack.c (subst_stack_regs_pat): Likewise.
6337         * regcprop.c (kill_value, copy_value): Likewise.
6338         (copyprop_hardreg_forward_1): Likewise.
6339         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6340         (build_def_use): Likewise.
6341         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6342         (deps_analyze_insn): Likewise.
6343         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6344         * sel-sched.c (count_occurrences_equiv): Likewise.
6345         * valtrack.c (dead_debug_insert_temp): Likewise.
6347 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6349         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6350         * dse.c (note_add_store): Likewise.
6351         * ira-lives.c (mark_hard_reg_dead): Likewise.
6352         * loop-invariant.c (mark_reg_store): Likewise.
6353         (mark_reg_death): Likewise.
6354         * postreload.c (reload_combine): Likewise.
6355         (reload_combine_note_store): Likewise.
6356         (reload_combine_note_use): Likewise.
6357         * recog.c (peep2_reg_dead_p): Likewise.
6359 2015-05-19  Alan Modra  <amodra@gmail.com>
6361         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6362         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6363         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6364         unused predicates.
6365         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6366         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
6367         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6368         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6370 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
6372         * config/mips/mips.md (JOIN_MODE): New mode iterator.
6373         (join2_load_Store<JOIN_MODE:mode>): New pattern.
6374         (join2_loadhi): Likewise.
6375         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6376         load-load and store-stores.
6377         * config/mips/mips.opt (mload-store-pairs): New option.
6378         (TARGET_LOAD_STORE_PAIRS): New macro.
6379         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6380         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6381         * config/mips/mips.c (mips_load_store_bonding_p): New function.
6383 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
6385         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6386         explicit swaps.
6387         * dojump.c (do_compare_rtx_and_jump): Likewise.
6388         * expmed.c (emit_store_flag_1): Likewise.
6389         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6390         * final.c (sprint_ul): Use std::reverse for reversing a string.
6391         * fold-const.c (extract_muldiv_1): Use std::swap.
6392         * genmodes.c (emit_mode_int_n): Likewise.
6393         * ifcvt.c (dead_or_predicable): Likewise.
6394         * ira-build.c (ira_merge_live_ranges): Likewise.
6395         (swap_allocno_copy_ends_if_necessary): Likewise.
6396         * ira.c (ira_setup_alts): Likewise.
6397         * loop-iv.c (iv_analyze_expr): Likewise.
6398         (implies_p): Likewise.
6399         (canon_condition): Likewise.
6400         * lra-constraints.c (swap_operands): Likewise.
6401         * lra-lives.c (lra_merge_live_ranges): Likewise.
6402         * omega.c (swap): Remove.
6403         (bswap): Remove.
6404         (omega_unprotect_1): Use std::swap.
6405         (omega_solve_geq): Likewise.
6406         * optabs.c (expand_binop_directly): Likewise.
6407         (expand_binop): Likewise.
6408         (emit_conditional_move): Likewise.
6409         (emit_conditional_add): Likewise.
6410         * postreload.c (reload_cse_simplify_operands): Likewise.
6411         * reg-stack.c (emit_swap_insn): Likewise.
6412         (swap_to_top): Likewise.
6413         (compare_for_stack_reg): Likewise.
6414         (subst_asm_stack_regs): Likewise.
6415         * reload.c (find_reloads): Likewise.
6416         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6417         * sel-sched.c (invoke_reorder_hooks): Likewise.
6418         (create_block_for_bookkeeping): Likewise.
6419         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6420         (lambda_matrix_right_hermite): Use std::swap.
6421         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6422         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6423         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6424         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
6425         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
6426         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
6427         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6428         * tree-vrp.c (compare_ranges): Likewise.
6429         * var-tracking.c (add_with_sets): Likewise.
6430         (vt_find_locations): Likewise.
6432 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
6434         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
6435         pie executables.
6436         (FBSD_ENDFILE_SPEC): Likewise.
6437         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
6438         config/freebsd-spec.h.
6439         (ENDFILE_SPEC): Likewise.
6441 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
6442             Richard Henderson  <rth@redhat.com>
6444         PR target/57032
6445         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
6446         Check for a memory location that is not a reference (using an AND)
6447         to an unaligned location here.
6448         * config/alpha/predicates.md (normal_memory_operand): Remove.
6450 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
6452         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
6453         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
6455 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
6457         * config/mips/mips.c (micromips_globals): New variable.
6458         (mips_set_compression_mode): Save and reinitialize target-dependent
6459         state for microMIPS.
6461 2015-05-18  Martin Liska  <mliska@suse.cz>
6463         * dbgcnt.def: Add new counter.
6464         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
6466 2015-05-18  Martin Liska  <mliska@suse.cz>
6468         * dbgcnt.def: Sort counters.
6469         * opts.c (common_handle_option): Do not compile if
6470         -fdbg-cnt-list is enabled.
6472 2015-05-18  Tom de Vries  <tom@codesourcery.com>
6474         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
6475         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
6476         address operator to va_list operand.
6477         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
6478         unconditionally.
6479         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
6480         operand.
6481         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
6482         * config/s390/s390.c (s390_gimplify_va_arg): Same.
6483         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
6485 2015-05-18  Tom de Vries  <tom@codesourcery.com>
6487         * tree-ssa-tail-merge.c: Fix whitespace.
6489 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
6491         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
6492         cortex-a17, and cortex-a17.cortex-a7.
6494 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
6496         PR target/54236
6497         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
6499 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
6501         PR target/66174
6502         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
6503         QImode inner modes for TARGET_AVX512BW.  Force mask operand
6504         to a register for AVX512F modes.
6506 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6508         * toplev.c (emit_debug_global_declarations): Do not output debug info
6509         when doing slim LTO objects.
6511 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6513         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
6514         odr_types_equivalent_p): Declare.
6515         (odr_type_p): Use gcc_checking_assert.
6516         (type_in_anonymous_namespace_p) Declare.
6517         (type_with_linkage_p): Declare.
6518         * common.opt (Wlto-type-mismatch): New warning.
6519         * ipa-devirt.c (compound_type_base): New function.
6520         (odr_or_derived_type_p): New function.
6521         (odr_types_equivalent_p): New function.
6522         (add_type_duplicate): Simplify.
6523         (type_with_linkage_p): Add hack to prevent false positives on C types
6524         (type_in_anonymous_namespace_p): Likewise.
6525         * tree.c (need_assembler_name_p): Use type_with_linkage.
6526         * tree.h (type_in_anonymous_namespace_p): Remove.
6527         * doc/invoke.texi (-Wlto-type-mismatch): Document
6529 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
6531         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
6532         (verify_type): Verify STRING_FLAG.
6534 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6536         PR fortran/44054
6537         * tree-pretty-print.c (percent_K_format): Replace locus pointer
6538         with accessor function.
6539         * tree-diagnostic.c (diagnostic_report_current_function): Use
6540         diagnostic_location function.
6541         (maybe_unwind_expanded_macro_loc): Likewise.
6542         (virt_loc_aware_diagnostic_finalizer): Likewise.
6543         (default_tree_printer): Replace locus pointer with accessor function.
6544         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
6545         (diagnostic_set_info_translated): Initialize second location.
6546         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
6547         (diagnostic_show_locus): Handle two locations. Call
6548         diagnostic_print_caret_line.
6549         (diagnostic_print_caret_line): New.
6550         (default_diagnostic_starter): Use diagnostic_location function.
6551         (diagnostic_report_diagnostic): Use diagnostic_location function.
6552         (verbatim): Do not set text.locus.
6553         * diagnostic.h (struct diagnostic_info): Remove location field.
6554         (struct diagnostic_context): Make caret_chars an array of two.
6555         (diagnostic_location): New inline.
6556         (diagnostic_expand_location): Handle two locations.
6557         (diagnostic_same_line): New inline.
6558         (diagnostic_print_caret_line): Declare.
6559         (CARET_LINE_MARGIN): New constant.
6560         * pretty-print.c (pp_printf): Do not set text.locus.
6561         (pp_verbatim): Do not set text.locus.
6562         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
6563         (struct text_info): Replace locus pointer with locations
6564         array. Add accessor functions.
6566 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
6567             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6569         PR target/65768
6570         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
6571         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
6572          large constants in register instead of splitting them.
6574 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
6576         PR target/66140
6577         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
6578         replacements in memory addresses.
6579         (get_unaligned_address): Ditto.
6581 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
6583         * config/ft32/*: New files for FT32 port.
6584         * doc/install.texi: Add FT32 information.
6585         * doc/invoke.texi: Add FT32 information.
6586         * doc/md.texi: Add FT32 information.
6587         * doc/contrib.texi: Self added.
6589 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
6591         PR tree-optimization/64454
6592         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
6593         (-1 - A -> ~A): Remove unnecessary condition.
6595 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
6597         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
6598         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
6599         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
6601 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
6603         * ipa-chkp.h (chkp_wrap_function): New.
6604         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
6605         (chkp_wrap_function_name): New.
6606         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
6607         to get wrapper name.
6608         * lto-cgraph.c: Include ipa-chkp.h.
6609         (input_cgraph_1): Avoid alias chain for wrappers.
6611 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
6613         PR middle-end/66134
6614         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
6615         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
6617 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6619         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
6620         (AARCH64_FL_SLOWMUL): Delete.
6621         (AARCH64_FL_CRC): Redefine to 1<<3.
6622         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
6624 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6626         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
6627         casting.
6629 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
6631         * config/alpha/alpha.md (extendqidi2): Use general_operand
6632         instead of some_operand for operand[1] predicate.
6633         (extendhidi2): Ditto.
6634         (cbranchdi4): Use general_operand instead of some_operand
6635         for operand[1] and operands[2] predicates.
6636         (cstoredi4): Ditto.
6637         * config/alpha/predicates.md (some_operand): Remove unused predicate.
6638         (some_ni_operand): Ditto.
6640 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
6642         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
6643         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
6644         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
6645         low part of the constant using alpha_emit_set_const_1.
6646         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
6648 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
6650         * varasm.c (output_constant_pool_1): Pass down alignment from
6651         constant pool entry's descriptor to output_constant_pool_2.
6652         (output_object_block): Add comment prior to call to
6653         output_constant_pool_1.
6655 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
6657         PR rtl-optimization/65862
6658         * target.def (ira_change_pseudo_allocno_class): New hook.
6659         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
6660         value of the hook.
6661         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
6662         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
6663         hook.
6664         * ira-costs.c (find_costs_and_classes): Call the hook and change
6665         classes when it is necessary.
6666         * doc/tm.texi: Update.
6668 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
6670         * config/i386/i386.md (sibcall_memory): Check that register with
6671         callee address is not also used as one of the arguments, instead
6672         of checking that it is not live after the sibcall.
6673         (sibcall_pop_memory): Ditto.
6674         (sibcall_value_memory): Ditto.
6675         (sibcall_value_pop_memory): Ditto.
6677 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
6679         * generic-match-head.c (types_match): Handle non-types.
6680         * gimple-match-head.c (types_match): Likewise.
6681         * match.pd: Remove unnecessary TREE_TYPE for types_match.
6683 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
6685         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
6686         (csneg3<mode>_insn): Enable expansion of pattern.
6688 2015-05-14  Nick Clifton  <nickc@redhat.com>
6690         * config/rl78/rl78.c (rl78_select_section): Select the correct
6691         default section based upon the category of the decl.
6693 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6695         PR rtl-optimization/30967
6696         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
6697         destination mode for the cost of scc patterns.
6699 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6701         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
6702         using SWIM248 mode iterator.
6703         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
6704         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
6705         for operand[2] constraint.
6706         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
6708 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6710         PR middle-end/66133
6711         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
6712         make sure it is never noreturn, even when the task body does not
6713         return.
6714         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
6715         right before GIMPLE_OMP_RETURN.
6716         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
6717         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
6718         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
6720 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6722         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
6723         * tree-ssa-math-opts.c: Include params.h
6724         (pow_synth_sqrt_info): New struct.
6725         (representable_as_half_series_p): New function.
6726         (get_fn_chain): Likewise.
6727         (print_nested_fn): Likewise.
6728         (dump_fractional_sqrt_sequence): Likewise.
6729         (dump_integer_part): Likewise.
6730         (expand_pow_as_sqrts): Likewise.
6731         (gimple_expand_builtin_pow): Use above to attempt to expand
6732         pow as series of square roots.  Removed now unused variables.
6734 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6736         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
6737         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
6738         Remove *p0 and *p1 arguments.  Rewrite function.
6739         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
6740         (alpha_split_const_mov): Update calls to alpha_extract_integer and
6741         alpha_emit_set_long_const.
6742         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
6743         (alpha_output_mi_thunk_osf): Ditto.
6744         * config/alpha/alpha.md (movti): Do not check operands[1]
6745         for CONST_DOUBLE.
6747 2015-05-13  Richard Biener  <rguenther@suse.de>
6749         PR tree-optimization/66129
6750         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
6751         commutative.
6752         (vect_schedule_slp_instance): Fix typo.
6754 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
6756         * common.opt (fdump-internal-locations): New option.
6757         * input.c: Include diagnostic-core.h.
6758         (get_end_location): New function.
6759         (write_digit): New function.
6760         (write_digit_row): New function.
6761         (dump_location_range): New function.
6762         (dump_labelled_location_range): New function.
6763         (dump_location_info): New function.
6764         * input.h (dump_location_info): New prototype.
6765         * toplev.c (compile_file): Handle flag_dump_locations.
6767 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6769         * gimple-expr.h (is_gimple_constant): Reorder.
6770         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
6772 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6774         * combine.c (simplify_set): When generating a CC set, if the
6775         source already is in the correct mode, do not wrap it in a
6776         compare.  Simplify the rest of that code.
6778 2015-05-13  Richard Biener  <rguenther@suse.de>
6780         PR tree-optimization/66123
6781         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
6782         a taken edge.
6784 2015-05-13  Richard Biener  <rguenther@suse.de>
6786         PR middle-end/66110
6787         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
6788         specially.
6789         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
6791 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
6793         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
6794         * aclocal.m4: Regenerated with automake-1.11.6.
6796 2015-05-13  Tom de Vries  <tom@codesourcery.com>
6798         PR tree-optimization/66010
6799         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
6800         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
6801         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
6802         and rval based on do_deref.
6804 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6806         PR target/65103
6807         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
6808         link time constants into adress expressions and therefore set
6809         their cost to 0.
6811 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6813         PR target/66112
6814         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
6815         Use SWI248 iterator instead of SWI.
6816         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
6817         Use eq_attr "alternative" "0" instead of match_test in
6818         length_immediate attribute computation.
6819         (*mulvhi4, *mulvhi4_1): New define_insns.
6821         PR target/66112
6822         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
6823         SIGNED to get precision of non-negative value.
6825 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6827         PR target/66048
6828         * function.c (diddle_return_value_1): Process bounds first.
6829         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
6830         register.
6832 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6834         PR rtl-optimization/64616
6835         * loop-invariant.c (can_move_invariant_reg): New.
6836         (move_invariant_reg): Call above new function to decide whether
6837         instruction can just be moved, skipping creation of temporary
6838         register.
6840 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6842         PR target/pr66047.c
6843         * i386.c (ix86_function_sseregparm): Only return -1 if local function
6844         with implied regparm is called from -mno-sse function.
6845         (init_cumulative_args): Output error if ix86_function_sseregparm
6846         return -1 and SSE register would be needed.
6847         (function_arg_advance_32): Likewise.
6848         (function_arg_32): Likewise.
6849         * i386.h (ix86_args): Add decl field.
6851 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6853         PR ipa/65873
6854         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
6855         inlines across optimization boundary.
6857 2015-05-12  Jason Merrill  <jason@redhat.com>
6859         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
6860         string literal and macro name.
6862 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
6864         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
6865         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
6866         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
6868 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6870         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
6871         (-Wmisleading-indentation): New option.
6872         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
6874 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
6876         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
6877         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
6878         (alpha_extract_integer): Ditto.
6879         (alpha_legitimate_constant_p): Ditto.
6880         (alpha_split_tmode_pair): Ditto.
6881         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
6882         (alpha_expand_mov): Ditto.
6883         (print_operand): Remove handling of 'H' modifier.
6884         <case 'm'>: Remove CONST_DOUBLE handling.
6885         (summarize_insn): Handle CONST_WIDE_INT.
6886         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
6887         (anddi3): Ditto.
6888         (movti): Handle CONST_WIDE_INT.
6889         * config/alpha/constraints.md ('H'): Remove constraint definition.
6890         ('G'): Do not match MODE_FLOAT class.
6891         * config/alpha/predicates.md (const0_operand): Also match
6892         const_wide_int.
6893         (non_add_const_operand): Ditto.
6894         (non_zero_const_operand): Ditto.
6895         (some_operand): Ditto.
6896         (input_operand): Ditto.  Handle CONST_WIDE_INT.
6897         (and_operand): Do not match const_double.
6898         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
6900 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
6902         PR target/65697
6903         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
6904         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
6905         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6906         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
6907         is_mm_seq_cst, is_mm_sync): New accessor functions.
6908         * builtins.c (expand_builtin_sync_operation,
6909         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
6910         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
6911         (get_memmodel,  expand_builtin_atomic_compare_exchange,
6912         expand_builtin_atomic_load, expand_builtin_atomic_store,
6913         expand_builtin_atomic_clear): Use new accessor routines.
6914         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
6915         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
6916         (maybe_emit_sync_lock_test_and_set): Use new accessors and
6917         MEMMODEL_SYNC_ACQUIRE.
6918         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
6919         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
6920         expand_atomic_store): Use new accessors.
6921         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
6922         * tsan.c (instrument_builtin_call): Update check for memory model beyond
6923         final enum to use MEMMODEL_LAST.
6924         * c-family/c-common.c: Use new accessor for memmodel_base.
6925         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
6926         accessors.
6927         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
6928         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
6929         mem_thread_fence, *dmb): Likewise.
6930         * config/alpha/alpha.c (alpha_split_compare_and_swap,
6931         alpha_split_compare_and_swap_12): Likewise.
6932         * config/arm/arm.c (arm_expand_compare_and_swap,
6933         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
6934         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
6935         atomic_loaddi): Likewise.
6936         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
6937         Likewise.
6938         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
6939         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
6940         use new accessors.
6941         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
6942         atomic_store<mode>, atomic_compare_and_swap<mode>,
6943         atomic_exchange<mode>): Use new accessors.
6944         * config/mips/mips.c (mips_process_sync_loop): Likewise.
6945         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
6946         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
6947         rs6000_post_atomic_barrier): Add new cases.
6948         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
6949         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
6950         (atomic_load<mode>): Add new cases and use new accessors.
6951         (store_quadpti): Add new cases.
6952         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
6953         accessors.
6954         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
6955         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
6956         model, not 8.
6958 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6960         * ipa-devirt.c (type_with_linkage_p): New function.
6961         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
6962         type has linkage.
6963         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
6964         (can_be_name_hashed_p): Simplify.
6965         (hash_odr_name): Check that type has linkage before checking if it is
6966         anonymous.
6967         (types_same_for_odr): Likewise.
6968         (odr_name_hasher::equal): Likewise.
6969         (odr_subtypes_equivalent_p): Likewise.
6970         (warn_types_mismatch): Likewise.
6971         (get_odr_type): Likewise.
6972         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
6973         * ipa-utils.h (odr_type_p): Move offline.
6974         * tree.c (need_assembler_name_p): Fix handling of types
6975         without linkages.
6976         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
6978 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6980         * timevar.c (timevar_enable): Delete in favor of...
6981         (g_timer): New global.
6982         (struct timevar_def): Move to timevar.h inside class timer.
6983         (struct timevar_stack_def): Likewise.
6984         (timevars): Delete global in favor of field "m_timevars" within
6985         class timer in timevar.h
6986         (stack): Likewise, in favor of field "m_stack".
6987         (unused_stack_instances): Likewise, in favor of field
6988         "m_unused_stack_instances".
6989         (start_time): Likewise, in favor of field "m_start_time".
6990         (get_time): Eliminate check for timevar_enable.
6991         (timer::timer): New function, built from part of timevar_init.
6992         (timevar_init): Rewrite idempotency test from using
6993         "timevar_enable" bool to using dynamic allocation of "g_timer".
6994         Move rest of implementation into timer's constructor.
6995         (timevar_push_1): Rename to...
6996         (timer::push): ...this, adding "m_" prefixes to variables that
6997         are now fields of timer.
6998         (timevar_pop_1): Likewise, rename to...
6999         (timer::pop): ...this, and add "m_" prefixes.
7000         (timevar_start): Replace test for "timevar_enable" with one for
7001         "g_timer", and move bulk of implementation to...
7002         (timer::start): ...here, adding "m_" prefixes.
7003         (timevar_stop): Likewise, from here...
7004         (timer::stop): ...to here.
7005         (timevar_cond_start): Likewise, from here...
7006         (timer::cond_start): ...to here.
7007         (timevar_cond_stop): Likewise, from here...
7008         (timer::cond_stop): ...to here.
7009         (validate_phases): Rename to...
7010         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
7011         locals "total" and "tv" const.
7012         (timevar_print): Rename to...
7013         (timer::print): ...this, and add "m_" prefixes.  Make locals
7014         "total" and "tv" const.  Eliminate test for timevar_enable.
7015         * timevar.h (timevar_enable): Eliminate.
7016         (g_timer): New declaration.
7017         (timevar_push_1): Eliminate.
7018         (timevar_pop_1): Eliminate.
7019         (timevar_print): Eliminate.
7020         (class timer): New class.
7021         (timevar_push): Rewrite to use g_timer.
7022         (timevar_pop): Likewise.
7023         * toplev.c (toplev::~toplev): Likewise.
7025 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
7027         * arm-protos.h (arm_sched_autopref): Delete.
7028         (tune_params): Re-organize, use enums for flag values.
7029         (FUSE_OPS): New macro.
7030         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
7031         (ARM_PREFETCH_BENEFICIAL): Likewise.
7032         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
7033         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7034         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
7035         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
7036         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
7037         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
7038         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
7039         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
7040         format.
7041         (arm_option_override, thumb2_reorg, arm_print_tune_info)
7042         (aarch_macro_fusion_pair_p): Update uses of current_tune.
7043         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
7045 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
7047         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
7048         "break".
7050 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
7051             Sandra Loosemore <sandra@codesourcery.com>
7053         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
7054         value.
7055         (REG_CLASS_NAMES): Add "IJMP_REGS".
7056         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
7057         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
7058         use new "c" register constraint.
7059         * config/nios2/constraint.md (c): New register constraint
7060         corresponding to IJMP_REGS.
7062 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7064         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
7065         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
7066         define_splits): Delete, revamp, transmogrify into ...
7067         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7068         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7069         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7070         New.
7072 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7074         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
7075         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
7077 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7079         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
7080         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
7081         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
7082         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
7083         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
7084         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
7085         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
7086         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
7087         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
7088         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7089         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
7090         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
7091         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
7092         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
7093         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
7094         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
7095         and 30 corresponding splitters): Delete.
7097 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7099         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
7100         zero_extract.
7102 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7104         * combine.c (recog_for_combine_1): New function, factored out
7105         from recog_for_combine.
7106         (change_zero_ext): New function.
7107         (recog_for_combine): If recog fails, try again with the pattern
7108         modified by change_zero_ext; if that still fails, restore the
7109         pattern.
7111 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7113         * combine.c (get_undo_marker): New function.
7114         (undo_to_marker): New function, largely factored out from ...
7115         (undo_all): ... this.  Adjust.
7117 2015-05-12  Richard Biener  <rguenther@suse.de>
7119         PR tree-optimization/66101
7120         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
7121         fixup if we turn a loop exit edge to a fallthru edge.
7123 2015-05-12  Richard Biener  <rguenther@suse.de>
7125         PR tree-optimization/37021
7126         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
7127         (SLP_TREE_TWO_OPERATORS): New define.
7128         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
7129         SLP_TREE_TWO_OPERATORS.
7130         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
7131         SLP node.
7132         (vect_build_slp_tree): Adjust.
7133         (vect_analyze_slp_cost_1): Likewise.
7134         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
7135         emitting two vector stmts and mixing the results.
7137 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7139         * call.c (print_z_candidates): Remove dead code.
7141 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7143         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
7144         and zEC12_simple_fp.
7145         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
7146         to 1.
7148 2015-05-12  Tom de Vries  <tom@codesourcery.com>
7150         PR tree-optimization/66010
7151         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
7152         ifn_va_arg.
7153         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
7154         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
7155         va_lists are passed, and remove corresponding handling.
7156         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
7157         do_deref argument to ifn_va_arg.
7158         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
7159         ifn_va_arg.
7161 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7163         PR target/65955
7164         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
7165         REG before taking its REGNO.
7167 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7169         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
7170         rsp->sign_bit_copies and rsp->nonzero_bits into ...
7171         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
7172         present to get more accurate information about the number of sign bit
7173         copies and non zero bits.
7175 2015-05-12  Richard Biener  <rguenther@suse.de>
7177         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
7178         do not allow unrolling.
7180 2015-05-11  Richard Henderson  <rth@redhat.com>
7182         * config/i386/i386-modes.def (CCP): New.
7183         * config/i386/i386.c (put_condition_code): Handle it.
7184         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
7186 2015-05-11  Richard Henderson  <rth@redhat.com>
7188         * target.def (md_asm_clobbers): Replace with...
7189         (md_asm_adjust): this.
7190         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
7191         (TARGET_MD_ASM_ADJUST): New.
7192         * tm.texi: Rebuild.
7193         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
7194         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
7195         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
7197         * cfgexpand.c (check_operand_nalternatives): Accept vector of
7198         constraints instead of lists of outputs and inputs.
7199         (expand_asm_stmt): Save and restore input_location around the
7200         body of the function.  Move asm data into vectors instead of
7201         building tree lists.  Generate cleanup sequences as needed,
7202         rather than waiting til the end.  Use new md_asm_adjust hook.
7204         * config/vxworks.c: Include vec.h before target.h.
7205         * gimple.c: Likewise.
7206         * incpath.c: Likewise.
7207         * mode-switching.c: Likewise.
7209         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
7210         (cris_md_asm_adjust): this.
7211         (TARGET_MD_ASM_CLOBBERS): Remove.
7212         (TARGET_MD_ASM_ADJUST): New.
7213         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
7214         (ix86_md_asm_adjust): this.
7215         (TARGET_MD_ASM_CLOBBERS): Remove.
7216         (TARGET_MD_ASM_ADJUST): New.
7217         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
7218         (mn10300_md_asm_adjust): this.
7219         (TARGET_MD_ASM_CLOBBERS): Remove.
7220         (TARGET_MD_ASM_ADJUST): New.
7221         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
7222         (rs6000_md_asm_adjust): this.
7223         (TARGET_MD_ASM_CLOBBERS): Remove.
7224         (TARGET_MD_ASM_ADJUST): New.
7225         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
7226         (visium_md_asm_adjust): this.
7227         (TARGET_MD_ASM_CLOBBERS): Remove.
7228         (TARGET_MD_ASM_ADJUST): New.
7230 2015-05-11  Richard Henderson  <rth@redhat.com>
7232         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
7233         if noutputs is zero.
7234         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
7236         * cfgexpand.c (expand_asm_operands): Merge into...
7237         (expand_asm_stmt): ... here.
7239         * cfgexpand.c (expand_asm_operands): Don't call
7240         resolve_asm_operand_names.
7241         * stmt.c (resolve_asm_operand_names): Clarify block comment.
7243 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
7245         * dwarf2out.c (gen_member_die): Sanity check that we access
7246         TYPE_MAIN_VARIANT for TYPE_METHODS.
7247         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
7248         checking TYPE_METHODS.
7249         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
7250         if non-null.
7251         (build_distinct_type_copy): Clear TYPE_METHODS.
7252         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
7253         (verify_type): Allow TYPE_METHODS to be error_mark_node.
7254         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
7256 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
7258         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
7259         (emit_pattern_before_setloc): Likewise.
7261 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7263         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
7264         for define_peephole2s.
7265         (get_peephole2_pattern): New function.
7266         (main): Use it.  Call validate_pattern.
7268 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7270         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
7271         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
7272         (Last callee saved reg is different for AVR_TINY architecture)
7274 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7276         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
7277         when looking for memory references.
7279 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7281         PR target/65753
7282         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
7283         via function pointers.
7285 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7287         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
7288         indirect call by forcing address into a pseudo with -fno-plt.
7289         * common.opt (flag_plt): New option.
7290         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
7291         ([-fno-plt]): Document.
7293 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
7295         PR bootstrap/66105
7296         * config/rs6000/option-defaults.h: Add space between string literal
7297         and macro name.
7299 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7301         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
7302         accross ARM targets.
7304 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7306         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
7307         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
7309 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7311         PR rtl-optimization/66076
7312         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7313         Don't grow the heap array if it is already big enough from a
7314         previous iteration.
7316 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7318         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7319         (is_called_in_ARM_mode): Remove.
7320         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7321         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7322         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7323          arm_declare_function_name.
7325 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7327         * config/arm/arm.c (arm_option_override): Reoganized and split into :
7328         (arm_option_params_internal); New function.
7329         (arm_option_check_internal): New function.
7330         (arm_option_override_internal): New function.
7331         (thumb_code, thumb1_code): Remove.
7332         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7333         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7334         (thumb_code, thumb1_code): Remove.
7335         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7337 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7339         * config/alpha/alpha.c (alpha_emit_set_const_1)
7340         (alpha_emit_set_long_const, alpha_extract_integer)
7341         (alpha_legitimate_constant_p, alpha_split_const_mov)
7342         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7343         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7344         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7345         HOST_WIDE_INT_1U.
7346         * config/alpha/predicates.md (mode_mask_operand): Do not match
7347         const_double RTX.
7348         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7349         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7350         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7351         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7352         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7354 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
7356         PR target/65780
7357         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7358         default_binds_local_p_2.
7359         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7360         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7362 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7364         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7366 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7368         Patch by Richard Biener
7369         * coverage.c (coverage_obj_init): Delay building of type variant
7370         until the type is finished.
7372 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7374         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7375         mismatch between C and C++ type; compoare correctly ARG_TYPES
7376         for non-prototypes and output correctly parameter index for METHOD_TYPE.
7377         (odr_types_equivalent_p): Fix wording of warning about attributes;
7378         it is OK to match prototype and non-prototype.
7380 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7382         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7383         TYPE_ARG_TYPES list.
7384         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7385         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7387 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7389         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7390         * tree.h (is_lang_specific): Constify.
7392 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
7394         PR tree-optimization/64454
7395         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7396         Rewrite.
7398 2015-05-08  Jason Merrill  <jason@redhat.com>
7400         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7401         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7402         config/darwin.h, config/darwin9.h, config/elfos.h,
7403         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7404         config/microblaze/microblaze.h, config/mips/mips.h,
7405         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7406         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7407         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7408         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7409         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7410         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7411         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7412         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7413         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7414         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7415         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7416         between string literal and macro name.
7418 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7420         * jump.c: Change argument types to rtx_insn *.
7421         * rtl.h: Adjust.
7423 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7425         * lra-constraints.c: Change argument type to rtx_insn *.
7427 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7429         * df-problems.c: Change argument type to rtx_insn *.
7431 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7433         * combine.c: Change argument type to rtx_insn *.
7435 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7437         * rtl.h: Adjust.
7438         * rtlanal.c: Change argument type to rtx_insn *.
7440 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7442         * sched-deps.c: Change argument types to rtx_insn *.
7443         * sched-int.h: Adjust.
7445 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7447         * dwarf2cfi.c: Change argument type to rtx_insn *.
7449 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7451         * ira.c (decrease_live_ranges_number): Changetype of local
7452         variable to rtx_insn *.
7453         * recog.c: Change argument types to rtx_insn *.
7454         * recog.h: Adjust.
7456 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7458         * reorg.c: Change argument types to rtx_insn *.
7460 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7462         * ira-color.c: Change argument types to rtx_insn *.
7463         * lra-eliminations.c: Likewise.
7464         * ira.h: Adjust.
7466 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7468         * gcse.c: Change argument types to rtx_insn *.
7470 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7472         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
7474 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7476         * emit-rtl.c (emit_debug_insn_before): Change argument type to
7477         rtx_insn *.
7478         * rtl.h: Adjust.
7480 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7482         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
7483         * rtl.h: Adjust.
7485 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7487         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
7488         * rtl.h: Adjust.
7490 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7492         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
7493         * rtl.h: Adjust.
7495 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7497         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
7498         * rtl.h: Adjust.
7500 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7502         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
7503         to rtx_insn *.
7504         * rtl.h: Adjust.
7506 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7508         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
7509         to rtx_insn *.
7510         * rtl.h: Likewise.
7512 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7514         * except.c (can_nonlocal_goto): Change type of argument to
7515         rtx_insn *.
7516         * rtl.h: Adjust.
7518 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7520         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
7521         * rtl.h: Adjust.
7523 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7525         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
7526         * cfgrtl.c (can_delete_label_p): Adjust.
7527         * rtl.h: likewise.
7529 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7531         * reorg.c (stop_search_p): Change argument to rtx_insn *.
7533 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7535         * except.c (make_reg_eh_region_note): Change argument to
7536         rtx_insn *.
7537         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
7538         * except.h: Adjust.
7540 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7542         * mode-switching.c (commit_mode_sets): Change type of local
7543         variable from rtx to rtx_insn *.
7545 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
7547         * doc/install.texi (--enable-languages): Add missing jit and lto info.
7548         Add ^ to grep command.
7549         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
7550         arg to last gimple_simplify declaration.  Add missing gimple_build
7551         declaration for built-in function case with four tree args.
7553 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
7554             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7556         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
7557         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
7558         (GNU_USER_DYNAMIC_LINKERN32): Update.
7560 2015-05-08  Richard Biener  <rguenther@suse.de>
7562         PR tree-optimization/66036
7563         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7564         Handle strided group loads.
7565         (vect_verify_datarefs_alignment): Likewise.
7566         (vect_enhance_data_refs_alignment): Likewise.
7567         (vect_analyze_group_access): Likewise.
7568         (vect_analyze_data_ref_access): Likewise.
7569         (vect_analyze_data_ref_accesses): Likewise.
7570         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
7571         (vectorizable_load): Likewise.
7573 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
7575         * config/rs6000/rs6000.md: Require operand inequality in one
7576         of the peepholes.
7578 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
7579             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7581         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
7582         from (set ...).
7583         * config/rx/rx.md (movdi, movdf): Likewise.
7584         Likewise for define_peephole2s.
7586 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7588         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
7589         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
7590         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
7591         vtst_u64): Rewrite using gcc vector extensions.
7593 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7595         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
7596         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
7598 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
7600         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
7602 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7604         * config/glibc-stdint.h (OPTION_MUSL): Define.
7605         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
7606         Change the definition based on OPTION_MUSL for 64 bit targets.
7607         * config/linux.h (OPTION_MUSL): Redefine.
7608         * config/alpha/linux.h (OPTION_MUSL): Redefine.
7609         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
7610         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
7612 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
7613             Szabolcs Nagy  <szabolcs.nagy@arm.com>
7615         * config.gcc (LIBC_MUSL): New tm_defines macro.
7616         * config/linux.h (OPTION_MUSL): Define.
7617         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
7618         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
7619         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
7620         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
7621         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
7622         * config/linux.opt (mmusl): New option.
7623         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
7624         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
7625         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
7626         * configure: Regenerate.
7628 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7629             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7631         PR target/48904
7632         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
7633         * config/i386/knetbsd-gnu64.h: New file.
7635 2015-05-08  Marek Polacek  <polacek@redhat.com>
7637         PR c/64918
7638         * doc/invoke.texi: Document -Woverride-init-side-effects.
7640 2015-05-07  Marek Polacek  <polacek@redhat.com>
7642         PR c/65179
7643         * doc/invoke.texi: Document -Wshift-negative-value.
7645 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
7647         * gcov-tool.c (do_merge): Refactore to remove int ret.
7648         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
7649         !type == FUNC to type != FUNC.
7650         * reload.h (struct target_reload): Changee to type of
7651         x_spill_indirect_levels from bool to unsigned char.
7653 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
7655         * rtl.h (always_void_p): New function.
7656         * gengenrtl.c (always_void_p): Likewise.
7657         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
7658         with code foo are always VOIDmode.
7659         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
7660         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
7661         compare-elim.c, config/aarch64/aarch64.c,
7662         config/aarch64/aarch64.md, config/alpha/alpha.c,
7663         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
7664         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
7665         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
7666         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7667         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
7668         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
7669         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
7670         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
7671         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
7672         config/ia64/vect.md, config/iq2000/iq2000.c,
7673         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
7674         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
7675         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
7676         config/mep/mep.c, config/microblaze/microblaze.c,
7677         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
7678         config/mn10300/mn10300.c, config/msp430/msp430.c,
7679         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
7680         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
7681         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
7682         config/rs6000/altivec.md, config/rs6000/rs6000.c,
7683         config/rs6000/rs6000.md, config/rs6000/vector.md,
7684         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
7685         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
7686         config/sh/sh.md, config/sh/sh_treg_combine.cc,
7687         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
7688         config/spu/spu.md, config/stormy16/stormy16.c,
7689         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
7690         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
7691         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
7692         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
7693         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
7694         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
7695         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
7696         var-tracking.c: Update calls accordingly.
7698 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
7700         PR middle-end/192
7701         PR middle-end/54303
7702         * varasm.c (function_mergeable_rodata_prefix): New function.
7703         (mergeable_string_section): Use it.
7704         (mergeable_constant_section): Use it.
7706 2015-05-07  Jeff Law  <law@redhat.com>
7708         PR target/39726
7709         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7710         simplifier to narrow arithmetic.
7711         * generic-match-head.c: (types_match, single_use): New functions.
7712         * gimple-match-head.c: (types_match, single_use): New functions.
7714 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7716         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
7717         rtx type.
7719 2015-05-07  Richard Biener  <rguenther@suse.de>
7721         PR tree-optimization/66002
7722         * passes.def: Schedule another pass_merge_phi after ifcombine, right
7723         before phiopt.
7725 2015-05-07  Marek Polacek  <polacek@redhat.com>
7726             Martin Uecker  <uecker@eecs.berkeley.edu>
7728         * doc/invoke.texi: Document -fsanitize=bounds-strict.
7729         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
7730         into SANITIZE_NONDEFAULT.
7731         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
7733 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
7735         PR target/66015
7736         * config/alpha/alpha.c (alpha_override_options_after_change): New.
7737         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
7738         (alpha_override_options): Move align_loops, align_jumps and
7739         align_functions handling into alpha_override_options_after_change.
7741 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7742             Chris Jones  <chrisj@nvidia.com>
7743             Joshua Conner  <jconner@nvidia.com>
7745         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
7746         linking of crtfastmath.o.
7747         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
7749 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
7751         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
7752         (cstore<mode>4_unsigned_imm): New expander.
7753         (cstore<mode>4): Remove empty constraint strings.  Use the new
7754         expanders.
7756 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
7758         PR target/64208
7759         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
7760         alternatives.
7762 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7764         * config/aarch64/geniterators.sh: Use standard BRE in sed.
7766 2015-05-06  Alan Modra  <amodra@gmail.com>
7768         PR target/66033
7769         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
7770         (UNSPEC_NOP): Define.
7771         (reload_vsx_from_gpr<mode>): Add missing DONE.
7772         (reload_gpr_from_vsx<mode>): Likewise.
7773         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
7774         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
7776 2015-05-06  Christian Bruel  <christian.bruel@st.com>
7778         PR target/66015
7779         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
7780         align_jumps, align_functions into aarch64_override_options_after_change.
7782 2015-05-06  Richard Biener  <rguenther@suse.de>
7784         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
7785         vect_transform_slp_perm_load to check if we support a permutation
7786         for basic-block vectorization.
7788 2015-05-06  Nick Clifton  <nickc@redhat.com>
7790         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
7791         used, even if it is not being used as a frame pointer.
7793 2015-05-05  Jason Merrill  <jason@redhat.com>
7795         * dwarf2out.c (gen_member_die): Don't emit anything for an
7796         anonymous class constructor.
7798 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
7800         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
7801         that it reflects the block structure.
7802         (afdo_propagate_edge): Likewise.
7803         (afdo_calculate_branch_prob): Likewise.
7804         (afdo_annotate_cfg): Likewise.
7805         * cfgcleanup.c (equal_different_set_p): Likewise.
7806         (try_crossjump_to_edge): Likewise.
7807         * cgraph.c (cgraph_node::verify_node): Likewise.
7808         * cgraphunit.c (expand_all_functions): Likewise.
7809         * config/i386/i386.c (ix86_expand_copysign): Likewise.
7810         (exact_dependency_1): Likewise.
7811         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
7812         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
7813         * gensupport.c (process_define_subst): Likewise.
7814         * lto-wrapper.c (merge_and_complain): Likewise.
7815         * tree-if-conv.c (if_convertible_bb_p): Likewise.
7816         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
7817         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
7818         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7819         * tree-vect-loop.c (vectorizable_reduction): Likewise.
7820         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7821         * tree-vect-stmts.c (vectorizable_shift): Likewise.
7822         * tree-vrp.c (vrp_finalize): Likewise.
7823         * tree.c (variably_modified_type_p): Likewise.
7825 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
7827         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
7828         on darwin12 and later.
7829         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
7830         file to pass -rdynamic on darwin12 and later.
7831         * config/darwin.opt (rdynamic): Add.
7833 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7835         * doc/extend.texi (C Extensions): Update menu for moved Variable
7836         Attributes and Type Attributes sections.
7838 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7840         PR target/65990
7841         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
7842         if rep_8byte stringop strategy was specified for 32-bit target.
7844 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
7846         PR target/65915
7847         * config/i386/i386.md (vector convert to float spltiter): Check for
7848         xmm16+, when splitting scalar float conversion.
7849         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
7851 2015-05-05  Nick Clifton  <nickc@redhat.com>
7853         * config/msp430/msp430-opts.h (enum msp430_regions): New.
7854         * config/msp430/msp430.c (msp430_override_options): Complain if
7855         -mcode-region or -mdata-region is used on a non MSP430X.
7856         (msp430_section_attr): New function.  Checks lower, upper and
7857         either attributes.
7858         (msp430_attribute_table): Add lower, upper and either.
7859         (gen_prefix): New function.  Generates a prefix for a section
7860         name.
7861         (msp430_select_section): New function - handles the choice of
7862         section for an object.  Takes into account memory region
7863         attributes and options.
7864         (msp430_function_section): Use gen_prefix.
7865         (TARGET_SECTION_TYPE_FLAGS): Define.
7866         (msp430_section_type_flags): New function.
7867         (TARGET_ASM_UNIQUE_SECTION): Define.
7868         (msp430_unique_section): New function.
7869         (msp430_output_aligned_decl_common): New function.
7870         (msp430_do_not_relax_short_jumps): New function.
7871         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
7872         Define.
7873         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7874         * config/msp430/msp430-protos.h
7875         (msp430_do_not_relax_short_jumps): New prototype.
7876         (msp430_output_aligned_decl_common): New prototype.
7877         * config/msp430/msp430.md (length): New attribute.
7878         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
7879         then use a long code sequence for short jumps.
7880         * config/msp430/msp430.opt (mcode-region): New.
7881         (mdata-region): New.
7882         * doc/invoke.texi: Document new options.
7883         * doc/extend.texi: Document new attributes.
7885 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7887         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
7888         (tune_params): Add field branch_costs.
7889         (aarch64_branch_cost): Declare.
7890         * gcc/config/aarch64.c (generic_branch_cost): New.
7891         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
7892         (cortexa53_tunings): Likewise.
7893         (cortexa57_tunings): Likewise.
7894         (thunderx_tunings): Likewise.
7895         (xgene1_tunings): Likewise.
7896         (aarch64_branch_cost): Define.
7897         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
7899 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7901         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
7902         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
7903         * config/i386/i386.md: Ditto.
7904         * config/i386/winnt.c: Ditto.
7906 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7908         * doc/extend.texi (__atomic Builtins): Move implementation details
7909         to the end of the description, rewrite opening paragraphs, state
7910         difference with __sync builtins, state C11/C++11 assumptions,
7911         weaken itemized descriptions, add explanation of memory model
7912         behaviour, expand description of compare-exchange, simplify text.
7914 2015-05-05  Renlin Li  <renlin.li@arm.com>
7916         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
7918 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
7920         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
7921         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7922         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
7923         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7924         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
7925         * configure: Regenerate.
7926         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
7927         * doc/install.texi (aarch64*-*-*): Document new
7928         --enable-fix-cortex-a53-843419 option.
7929         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
7930         and -mno-fix-cortex-a53-843419 options.
7932 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7934         PR target/65871
7935         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
7937 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
7939         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
7940         fix overactive TYPE_MIN_VALUE check and add FIXME for type
7941         compatibility problems.
7943 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7945         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
7946         constraints.
7947         (cbranchsi4_reg): New.
7948         * config/microblaze/microblaze.c
7949         (microblaze_expand_conditional_branch_reg): New.
7950         * config/microblaze/microblaze-protos.h
7951         (microblaze_expand_conditional_branch_reg): New prototype.
7953 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7955         * config/microblaze/microblaze.md (peephole2): New.
7957 2015-05-04  Jeff Law  <law@redhat.com>
7959         Revert:
7960         2015-05-04  Jeff Law  <law@redhat.com>
7962         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7963         simplifier to narrow arithmetic.
7964         * generic-match-head.c: (types_match, single_use): New functions.
7965         * gimple-match-head.c: (types_match, single_use): New functions.
7967 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7969         PR target/65987
7970         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
7971         (split_branches): Likewise.
7973 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
7975         * common.opt (fdelete-null-pointer-checks): Init to -1.
7976         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
7977         override flag_delete_null_pointer_checks default.
7978         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
7979         behavior re address zero.  Better document target-specific behavior.
7980         (-fisolate-errneous-paths-dereference): Mention relationship to
7981         -fdelete-null-pointer-checks.
7983 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7985         PR tree-optimization/65984
7986         * ubsan.c: Include tree-cfg.h.
7987         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
7988         stmt_could_throw_p test, rename can_throw variable to ends_bb.
7990 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7992         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
7993         to CONST_DOUBLE_P predicate.
7994         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
7995         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
7996         allow only operands that satisfy standard_sse_constant_p predicate.
7997         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
7998         to CONST_DOUBLE_P predicate.
8000 2015-05-04  Jeff Law  <law@redhat.com>
8002         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8003         simplifier to narrow arithmetic.
8004         * generic-match-head.c: (types_match, single_use): New functions.
8005         * gimple-match-head.c: (types_match, single_use): New functions.
8007 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
8009         * config/arm/arm.c: Restore bootstrap.
8011 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8013         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
8014         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
8015         as CONST_WIDE_INT, not CONST_DOUBLE.
8016         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
8017         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
8018         (ix86_find_base_term): Do not check for CONST_DOUBLE.
8019         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
8020         (ix86_build_signbit_mask): Rewrite using wide ints.
8021         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
8022         (ix86_rtx_costs): Handle CONST_WIDE_INT.
8023         (find_constant): Ditto.
8024         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
8025         using gen_int_mode.
8026         * config/i386/predicates.md (x86_64_immediate_operand)
8027         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8028         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
8029         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8030         (const0_operand): Also match const_wide_int.
8031         (constm1_operand): Ditto.
8032         (const1_operand): Ditto.
8034 2015-05-04  Richard Biener  <rguenther@suse.de>
8036         PR tree-optimization/65965
8037         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8038         store groups at gaps.
8040 2015-05-04  Richard Biener  <rguenther@suse.de>
8042         PR tree-optimization/65935
8043         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
8044         then make sure to apply that swapping to the IL.
8046 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8048         * Makefile.in (PATCHLEVEL_c): New variable.
8049         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
8050         expand the same way as if DEVPHASE_c was non-empty.
8052 2015-05-04  Kai Tietz  <ktietz@redhat.com>
8054         PR target/65559
8055         * lto-wrapper.c (run_gcc): Open filename
8056         in binary-mode.
8058 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
8060         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
8061         sections up in file, to immediately after the Function Attributes
8062         section.
8064 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
8066         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
8068 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8070         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
8071         (insert_partition_copy_on_edge): Adjust.
8072         (insert_rtx_to_part_on_edge): Likewise.
8073         (insert_part_to_rtx_on_edge): Likewise.
8075 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8077         * function.c (set_return_jump_label): Change type of argument to
8078         rtx_insn *.
8079         * function.h (set_return_jump_label): Adjust.
8081 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8083         * reload.h (struct reg_equivs_t): Change type of init to
8084         rtx_insn *.
8085         * ira.c (fix_reg_equiv_init): Adjust.
8086         * reload1.c (eliminate_regs_1): Likewise.
8087         (init_eliminable_invariants): Likewise.
8089 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8091         * cselib.c (fp_setter_insn): Take a rtx_insn *.
8092         * cselib.h (fp_setter_insn): Adjust.
8094 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8096         * recog.c (struct validate_replace_src_data): Change type of
8097         insn field to rtx_insn *.
8098         (validate_replace_src_group): Change type of argument to rtx_insn *.
8099         * recog.h (validate_replace_src_group): Adjust.
8101 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8103         * haifa-sched.c: Change the type of some variables to rtx_insn *.
8104         * sched-deps.c: Likewise.
8105         * sched-int.h: Likewise.
8106         * sched-rgn.c: Likewise.
8107         * sel-sched.c: Likewise.
8109 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8111         to rtx_insn *.
8112         * config/i386/i386.c: Change the type of some arguments to
8113         rtx_insn *.
8114         * config/arm/arm.c: Likewise.
8116 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8118         * lra-constraints.c: Change type of some arguments to rtx_insn *.
8120 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8122         * regcprop.c (kill_autoinc_value): Change type of argument to
8123         rtx_insn *.
8125 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8127         * genrecog.c (print_subroutine): Adjust.
8128         * recog.c (get_bool_attr_mask_uncached): Likewise.
8129         * recog.h (struct recog_data_d): Change the type of insn to
8130         rtx_insn *.
8132 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8134         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
8136 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8138         * df-problems.c (df_set_note): Change type of argument to
8139         rtx_insn *.
8141 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8143         * builtins.c (expand_builtin_trap): Change type of local
8144         variable to rtx_insn *.
8145         (add_sched_insns_for_speculation): Likewise.
8146         (ix86_emit_save_regs): Likewise.
8147         (get_scratch_register_on_entry): Likewise.
8148         (ix86_emit_restore_reg_using_pop): Likewise.
8149         (ix86_emit_leave): Likewise.
8150         (ix86_emit_restore_regs_using_mov): Likewise.
8151         (ix86_expand_epilogue): Likewise.
8152         Likewise.
8153         (rl78_alloc_physical_registers_umul): Likewise.
8154         * cselib.c (discard_useless_locs): Likewise.
8155         (cselib_invalidate_regno): Likewise.
8156         (cselib_invalidate_mem): Likewise.
8157         * function.c (expand_function_start): Likewise.
8158         (emit_use_return_register_into_block): Likewise.
8159         * gcse.c: Likewise.
8160         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
8161         * ifcvt.c (noce_get_alt_condition): Likewise.
8162         * loop-doloop.c (doloop_condition_get): Likewise.
8163         * lra-constraints.c (inherit_in_ebb): Likewise.
8164         * modulo-sched.c (sms_schedule_by_order): Likewise.
8165         * recog.c (next_insn_tests_no_inequality): Likewise.
8166         * reorg.c (emit_delay_sequence): Likewise.
8167         (update_reg_dead_notes): Likewise.
8168         (fix_reg_dead_note): Likewise.
8169         (fill_slots_from_thread): Likewise.
8170         (delete_computation): Likewise.
8172 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
8174         * doc/extend.texi (Variable Attributes): Add menu and proper
8175         @nodes to subsections.  Move Microsoft Windows attributes to
8176         their own subsection.
8177         (Type Attributes): Reorganize introduction to remove duplicate
8178         list of attributes.  Add menu and proper @nodes to subsections.
8179         Alphabetize the main table of common attributes.
8181 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
8183         * match.pd: New simplification patterns.
8184         (x + (x & 1))  -> ((x + 1) & ~1)
8185         (x & ~(x & y)) -> ((x & ~y))
8186         (x | ~(x | y)) -> ((x | ~y))
8188 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8190         * target.def (attribute_table): Mention that struct attribute_spec
8191         is defined in tree-core.h rather than tree.h
8192         * doc/tm.texi: Regenerate.
8194 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
8196         * genrecog.c (test): Rename to rtx_test.  Update rest of file
8197         accordingly.
8199 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8201         PR translation/65959
8202         * params.h (DEFPARAM): Rename msgid to nocmsgid.
8204 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8206         * gcc/config/aarch64/aarch64-protos.h (tune_params):
8207         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
8208         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
8209         Return value depending on target.
8210         (generic_tunings): Initialize new target settings.
8211         (cortexa53_tunings): Likewise.
8212         (cortexa57_tunings): Likewise.
8213         (thunderx_tunings): Likewise.
8214         (xgene1_tunings): Likewise.
8216 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8218         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
8219         Make Cortex-A53 shift costs more accurate.
8221 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8223         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
8224         UNSIGNED_FLOAT.
8226 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8228         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
8229         Calculate cost of op0 and op1 in PLUS and MINUS cases.
8231 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8233         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8234         Add cost of op0 in the compare-with-fpzero case.
8236 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
8238         * builtins.c (fold_builtin_1): Remove spurious second
8239         semicolon.
8240         * cgraph.h (symtab_node::get_availability): Likewise.
8241         * opts.c (common_handle_option): Remove spurious second semicolon.
8242         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8243         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8245 2015-04-30  Caroline Tice  <cmtice@google.com>
8247         PR gcov-profile/65929
8248         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
8249         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
8250         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
8251         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
8252         * doc/tm.texi: Regenerate.
8253         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
8254         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
8255         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
8256         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
8258 2015-04-30  Marek Polacek  <polacek@redhat.com>
8260         * varasm.c (handle_cache_entry): Fix logic.
8262 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8264         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
8265         (*extrsi5_insn_uxtw_alt): Likewise.
8266         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
8267         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
8268         operations.
8270 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8272         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
8273         fabd in ABS case.
8275 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8277         * config/aarch64/aarch64.md
8278         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
8279         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
8280         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
8281         appropriately.  Handle alternative EON form.
8283 2015-04-30  Renlin Li  <renlin.li@arm.com>
8285         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
8286         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
8288 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8290         PR ipa/65873
8291         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
8292         -fstrict-aliasing boundaries.
8294 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8296         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
8297         and [SU]MNEGL patterns.
8299 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8301         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
8302         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
8303         combined arithmetic-shift ops.  Properly handle all shift and extend
8304         operations that can occur in combination with PLUS/MINUS.
8305         Rename maybe_fma to compound_p.
8306         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
8307         arithmetic and shift operations.
8309 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8311         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8312         rather than arith_shift cost when costing ADD/MINUS of an
8313         extended value.
8315 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8317         PR lto/65948
8318         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8319         to itself.
8321 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
8323         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8324         are for the same position.
8326 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
8328         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
8329         vectorize_loops.
8330         (vectorize_loops): Use it.
8332 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8334         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8335         for aggregate types.
8336         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8337         type to be non_ODR.
8338         * tree.c (need_assembler_name_p): Compute mangled name for
8339         non-fundamental types and integer types.
8341 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
8343         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8344         manual swaps.
8345         * expr.c (expand_expr_real_2): Likewise.
8347 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8349         * tree.c (build_common_builtin_nodes): Do not build
8350         __builtin_alloca_with_align as equivalent of library alloca.
8352 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8354         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8355         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8356         bugus variants.
8357         * tree.c: Include print-tree.h and ipa-utils.h
8358         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8359         (free_lang_data_in_cgraph): Call verify_type.
8360         (verify_type_variant): New function.
8361         (verify_type): New function.
8362         * tree.h (verify_type): Declare.
8364 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
8366         * config/mips/mips-cpus.def: (mips4): Change default processor
8367         from PROCESSOR_R8000 to PROCESSOR_R10000.
8369 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
8371         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8372         la/jalr instead of jal.
8374 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
8376         PR target/65871
8377         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8378         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8379         (setcc+movzbl peephole2): Check also clobbered reg.
8380         (setcc+andl peephole2): Ditto.
8382 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8384         PR libgomp/65099
8385         * config/nvptx/mkoffload.c (target_ilp32): New variable.
8386         (main): Set it depending on "-foffload-abi=[...]".
8387         (compile_native, main): Use it to pass "-m32" or "-m64" to the
8388         compiler.
8390 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8392         PR target/65770
8393         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8394         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8395         Flip lane index back at assembly time for bigendian.
8397 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8399         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8400         * gimplify.c (gimplify_omp_workshare): Use it.
8402 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8404         * Makefile.in (build/genrecog.o): Depend on inchash.h.
8405         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8406         build/inchash.o
8407         * genrecog.c: Rewrite most of the code except for the third page.
8409 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8411         * inchash.h, inchash.c: Include bconfig.h for build objects.
8412         * Makefile.in (build/inchash.o): New rule.
8414 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
8416         PR target/65924
8417         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8418         number in type attribute expression.
8420 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8422         * loop-iv.c (canon_condition): Generalize to all types of integer
8423         constant.
8425 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
8427         * gimple-walk.c: Prune duplicate or unneeded includes.
8428         (walk_gimple_asm): Only call parse_input_constraint or
8429         parse_output_constraint if their findings are used.
8430         Honour parse_input_constraint and parse_output_constraint
8431         result.
8433 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8435         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
8437 2015-04-29  Tom de Vries  <tom@codesourcery.com>
8439         PR tree-optimization/65893
8440         * passes.def (pass_all_optimizations): Move pass_stdarg to after
8441         pass_dce.
8443 2015-04-29  Richard Biener  <rguenther@suse.de>
8445         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8446         compute GROUP_SIZE for basic-block SLP.
8447         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
8448         take into account gaps.
8449         (vect_get_mask_element): Properly reject references to previous
8450         vectors.
8451         (vect_transform_slp_perm_load): Likewise.
8453 2015-04-29  Christian Bruel  <christian.bruel@st.com>
8455         PR target/64835
8456         * config/i386/i386.c (ix86_default_align): New function.
8457         (ix86_override_options_after_change): Call ix86_default_align.
8458         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
8459         (ix86_override_options_after_change): New function.
8461 2015-04-28  Jeff Law  <law@redhat.com>
8463         * tree-ssa-dom.c (record_equality); Fix comment typos.
8465 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8467         PR tree-optimization/65887
8468         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
8470 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
8472         * doc/extend.texi (Declaring Attributes of Functions): Split into
8473         subsections by target.  Alphabetize the table of common attributes.
8474         Rewrite some of the introductory text to reflect the new structure.
8475         Update some cross-references to point to the new subsections.
8476         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
8477         duplicate copies in the discussion of function, label, and type
8478         attributes.
8480 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
8482         PR bootstrap/65910
8483         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
8485 2015-04-28  Jason Merrill  <jason@redhat.com>
8487         PR c++/65734
8488         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
8489         (finalize_type_size): Respect TYPE_USER_ALIGN.
8490         (layout_type) [ARRAY_TYPE]: Likewise.
8492 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
8494         * config/arm/arm.md (*arm_movt): Fix type attribute.
8495         (*cmpsi_shiftsi): Likewise.
8496         (*cmpsi_shiftsi_swp): Likewise.
8497         (*movsicc_insn): Likewise.
8498         (*cond_move): Likewise.
8499         (*if_plus_move): Likewise.
8500         (*if_move_plus): Likewise.
8501         (*if_arith_move): Likewise.
8502         (*if_move_arith): Likewise.
8503         (*if_shift_move): Likewise.
8504         (*if_move_shift): Likewise.
8505         (*arm_movtas_ze): Likewise.
8506         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
8507         redundancy and type attribute.
8508         (*thumb2_movsi_insn): Fix type attribute.
8509         (*thumb2_addsi_short): Likewise.
8510         (thumb2_addsi3_compare0): Likewise.
8511         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
8512         attributes accordingly.
8514 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8516         PR other/65911
8517         * function.c (pad_to_arg_alignment): Add parentheses.
8519 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
8521         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
8522         libgcc/config/frv/elf-lib.h.
8524 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8526         * tree-call-cdce.c: Fix example in header comment.
8528 2015-04-28  Richard Biener  <rguenther@suse.de>
8530         PR tree-optimization/62283
8531         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
8532         fails fatally and we are vectorizing a basic-block simply
8533         cause the child to be constructed piecewise.
8534         (vect_analyze_slp_cost_1): Adjust.
8535         (vect_detect_hybrid_slp_stmts): Likewise.
8536         (vect_bb_slp_scalar_cost): Likewise.
8537         (vect_get_constant_vectors): For piecewise constructed
8538         constants place them after the last def.
8539         (vect_get_slp_defs): Adjust.
8540         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
8541         externals for basic-block vectorization.
8543 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8545         PR target/63503
8546         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
8547         aarch64-*-*.
8548         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
8549         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
8550         (AARCH64_TUNE_FMA_STEERING): Likewise.
8551         * config/aarch64/aarch64-cores.def: Set
8552         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
8553         FMUL/FMADD instructions.
8554         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
8555         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
8556         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
8557         * config/aarch64/cortex-a57-fma-steering.h: New file.
8558         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8560 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
8562         * gensupport.c (std_preds): Add missing codes to address_operand entry.
8564 2015-04-28  Richard Biener  <rguenther@suse.de>
8566         PR tree-optimization/65851
8567         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
8568         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
8569         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
8570         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
8571         (ccp_visit_phi_node): Adjust.
8572         (evaluate_stmt): For simplifications to SSA names return its
8573         lattice value if that isn't VARYING.  Return immediately when
8574         simplified to a constant.
8575         (visit_assignment): Adjust.
8576         (ccp_visit_stmt): Likewise.
8578 2015-04-28  Tom de Vries  <tom@codesourcery.com>
8580         PR tree-optimization/65818
8581         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
8582         evaluated.
8584 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8586         * calls.c (save_fixed_argument_area): Don't check
8587         ARGS_GROW_DOWNWARD with the preprocessor.
8588         (restore_fixed_argument_area): Likewise.
8589         (mem_overlaps_already_clobbered_arg_p): Likewise.
8590         (check_sibcall_argument_overlap): Likewise.
8591         (expand_call): Likewise.
8592         (emit_library_call_value_1): Likewise.
8593         (store_one_arg): Likewise.
8594         * function.c (assign_parms): Likewise.
8595         (locate_and_pad_parm): Likewise.
8596         (pad_to_arg_alignment): Likewise.
8597         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8599 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8601         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
8602         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
8603         * calls.c (save_fixed_argument_area): Don't chekc if
8604         ARGS_GROW_DOWNWARD is defined.
8605         (restore_fixed_argument_area): Likewise.
8606         (mem_overlaps_already_clobbered_arg_p): Likewise.
8607         (check_sibcall_argument_overlap): Likewise.
8608         (expand_call): Likewise.
8609         (emit_library_call_value_1): Likewise.
8610         (store_one_arg): Likewise.
8611         * function.c (assign_parms): Likewise.
8612         (locate_and_pad_parm): Likewise.
8613         (pad_to_arg_alignment): Likewise.
8614         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
8616 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8618         * defaults.h (gen_epilogue): New function.
8619         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
8620         defined.
8621         * cfgrtl.c (cfg_layout_finalize): Likewise.
8622         * df-scan.c: Likewise.
8623         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8624         (reposition_prologue_and_epilogue_notes): Likewise.
8625         * reorg.c (find_end_label): Likewise.
8626         * toplev.c: Likewise.
8628 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8630         * bb-reorder.c (HAVE_return): Don't check if its undefined.
8631         * defaults.h (gen_simple_return): New function.
8632         (gen_simple_return): Likewise.
8633         (HAVE_return): Add default definition to false.
8634         (HAVE_simple_return): Likewise.
8635         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
8636         HAVE_return and HAVE_simple_return are defined.
8637         * function.c (gen_return_pattern): Likewise.
8638         (convert_jumps_to_returns): Likewise.
8639         (thread_prologue_and_epilogue_insns): Likewise.
8640         * reorg.c (find_end_label): Likewise.
8641         (dbr_schedule): Likewise.
8642         * shrink-wrap.c: Likewise.
8643         * shrink-wrap.h: Likewise.
8645 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8647         * defaults.h (EPILOGUE_USES): Add default definition of false.
8648         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
8649         * resource.c (init_resource_info): Likewise.
8651 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8653         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
8654         to false.
8655         * dwarf2out.c (field_byte_offset): REmove check if
8656         PCC_BITFIELD_TYPE_MATTERS is defined.
8657         * stor-layout.c (layout_decl): Likewise.
8658         (update_alignment_for_field): Likewise.
8659         (place_field): Likewise.
8661 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8663         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
8664         true.
8665         * regrename.c (check_new_reg_p): Remove check if
8666         HARD_REGNO_RENAME_OK is defined.
8667         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
8669 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8671         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
8672         * cse.c (fold_rtx): Likewise.
8673         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
8674         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
8675         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
8676         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
8677         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
8678         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
8679         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
8680         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
8681         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
8682         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
8683         * Likewise.
8684         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
8685         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
8686         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
8687         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
8688         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
8689         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
8690         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
8691         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
8692         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
8693         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
8694         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
8695         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
8696         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
8697         * doc/tm.texi: Regenerate.
8698         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
8699         either true or false.
8701 2015-04-27  Jeff Law  <law@redhat.com>
8703         PR tree-optimization/65217
8704         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
8705         of them has a single use, make sure it is the LHS of the implied
8706         copy.
8708 2015-04-28  Alan Modra  <amodra@gmail.com>
8710         PR target/65810
8711         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
8712         (offsettable_ok_by_alignment): Use minimum of decl and toc
8713         pointer alignment.  Replace dead code with assertion.
8714         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
8715         case if size exceeds toc pointer alignment.
8716         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
8717         (rs6000_emit_move): Likewise.
8718         * configure.ac: Add linker toc pointer alignment check.
8719         * configure: Regenerate.
8720         * config.in: Regenerate.
8722 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
8724         * config.gcc: Add h8300-*-linux.
8725         * config/h8300/linux.h: New.
8726         * config/h8300/t-linux: New.
8727         * config/h8300/h8300.c (h8300_option_override): Normal mode
8728         is not supported for h8300-*-linux.
8729         (h8300_file_start): Target priority change.
8730         (get_shift_alg): Likewise.
8731         (h8300_shift_need_scratch_p): Likewise.
8732         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8733         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
8735 2015-04-27  Caroline Tice  <cmtice@google.com>
8737         * final.c (final_scan_insn):  Output cold_function_name as function
8738         type.
8739         * varasm.c (cold_function_name):  Make global.
8740         (assemble_start_function):  Re-set cold_function_name.
8741         (assemble_end_function): Output cold partition size.
8742         * varasm.h (cold_function_name):  Declare global.
8744 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
8746         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
8747         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
8748         constraint.
8749         (*movxi_internal_avx512f): Ditto.
8750         (define_split): Check for xmm16+, when splitting scalar float_extend.
8751         (*extendsfdf2_mixed): Use "v" constraint.
8752         (define_split): Check for xmm16+, when splitting scalar float_truncate.
8753         (*truncdfsf_fast_sse): Use "v" constraint.
8754         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
8755         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
8756         (define_peephole2): Check for xmm16+, when converting scalar
8757         float_truncate.
8758         (define_peephole2): Check for xmm16+, when converting scalar
8759         float_extend.
8760         (*fop_<mode>_comm_mixed): Use "v" constraint.
8761         (*fop_<mode>_comm_sse): Ditto.
8762         (*fop_<mode>_1_mixed): Ditto.
8763         (*sqrt<mode>2_sse): Ditto.
8764         (*ieee_s<ieee_maxmin><mode>3): Ditto.
8766 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8768         * combine.c (simplify_if_then_else): Use std::swap instead
8769         of manually swapping.
8770         (known_cond): Likewise.
8771         (simplify_comparison): Likewise.
8773 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
8775         PR target/64579
8776         * config/rs6000/htm.md: Remove all define_expands.
8777         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
8778         UNSPECV_HTM_TABORTWCI): Remove.
8779         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
8780         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
8781         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
8782         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
8783         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
8784         tabortwci_internal): Remove define_insns.
8785         (tabort<wd>c, tabort<wd>ci): New define_insns.
8786         (tabort): Use gpc_reg_operand.
8787         (tcheck): Remove operand.
8788         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
8789         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
8790         expected value.
8791         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
8792         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
8793         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
8794         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
8795         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
8796         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
8797         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
8798         (tcheck): Remove builtin argument.
8799         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
8800         not TARGET_64BIT.
8801         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
8802         tabortdc and tabortdci builtins when not in 64-bit mode.
8803         Modify code to handle the loss of the HTM define_expands.
8804         Emit code to copy the CR register to TARGET.
8805         (htm_init_builtins): Modify code to handle the loss of the HTM
8806         define_expands.
8807         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
8808         (RS6000_BTC_64BIT): Likewise.
8809         (RS6000_BTC_CR): New macro.
8810         * doc/extend.texi: Update documentation for htm builtins.
8812 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8814         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
8815         of manually swapping.
8816         (simplify_associative_operation): Likewise.
8817         (simplify_binary_operation): Likewise.
8818         (simplify_plus_minus): Likewise.
8819         (simplify_relational_operation): Likewise.
8820         (simplify_ternary_operation): Likewise.
8822 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8824         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
8825         (xs_hi_nonmemory_operand): Remove error.
8826         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
8827         general_operand rather than xs_hi_general_operand.
8829 2015-04-27  Richard Biener  <rguenther@suse.de>
8831         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
8832         (record_equivalences_from_stmt): Valueize rhs.
8833         (record_equality): Canonicalize x and y order via
8834         tree_swap_operands_p.  Do not swap operands for same loop depth.
8836 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
8838         PR target/65296
8839         PR target/65895
8840         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
8841         Add hint how to use own spec file.
8843 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
8845         PR tree-optimization/65875
8846         * tree-vrp.c (update_value_range): If in is_new case setting
8847         old_vr to VR_VARYING, also set new_vr to it.  Remove
8848         old_vr->type == VR_VARYING test.
8849         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
8850         SSA_PROP_INTERESTING if update_value_range returned true,
8851         but new range is VR_VARYING.
8853 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8855         * combine.c (sign_extend_short_imm): New.
8856         (set_nonzero_bits_and_sign_copies): Use above new function for sign
8857         extension of src short immediate.
8858         (reg_nonzero_bits_for_combine): Likewise for tem.
8860 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8862         * stor-layout.c (self_referential_component_ref_p): New predicate.
8863         (copy_self_referential_tree_r): Use it.
8864         (self_referential_size): Punt for simple operations directly involving
8865         self-referential component references.
8866         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
8868 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8870         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
8872 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8874         * vec.h (vec): Make splice arguments const.  Update definitions
8875         accordingly.
8877 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
8879         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
8880         alternatives.
8882 2015-04-26  Tom de Vries  <tom@codesourcery.com>
8884         PR tree-optimization/65826
8885         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
8887 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
8889         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
8890         (*madd3<mode>): Ditto.
8891         (*msub4<mode>): Ditto.
8892         (*msub3<mode>): Ditto.
8893         (*nmadd4<mode>): Ditto.
8894         (*nmadd3<mode>): Ditto.
8895         (*nmadd4<mode>_fastmath): Ditto.
8896         (*nmadd3<mode>_fastmath): Ditto.
8897         (*nmsub4<mode>): Ditto.
8898         (*nmsub3<mode>): Ditto.
8899         (*nmsub4<mode>_fastmath): Ditto.
8900         (*nmsub3<mode>_fastmath): Ditto.
8902 2015-04-24  Jason Merrill  <jason@redhat.com>
8904         PR c++/50800
8905         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
8906         down when building TYPE_CANONICAL.
8907         (build_pointer_type_for_mode): Likewise.
8909 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
8911         * genrecog.c (validate_pattern): Check matching constraint refers
8912         to a lower numbered operand.
8914 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8916         PR target/65849
8917         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
8918         save to independent variables use the Save attribute.  This will
8919         allow these options to be modified with the #pragma/attribute
8920         target support.
8921         (-mallow-movmisalign): Likewise.
8922         (-mallow-df-permute): Likewise.
8923         (-msched-groups): Likewise.
8924         (-malways-hint): Likewise.
8925         (-malign-branch-targets): Likewise.
8926         (-mvectorize-builtins): Likewise.
8927         (-msave-toc-indirect): Likewise.
8929         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
8930         can be set via the #pragma/attribute target support.
8931         (rs6000_opt_vars): Likewise.
8932         (rs6000_inner_target_options): If VSX was set, also set
8933         -mno-avoid-indexed-addresses.
8935 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8937         * config/arm/iterators.md (shiftable_ops): Rename to...
8938         (SHIFTABLE_OPS): ... This.  Update use in comments.
8939         (ior_xor): Rename to...
8940         (IOR_XOR): ... This.
8941         (vqh_ops): Rename to...
8942         (VQH_OPS): ... This.
8943         (vqhs_ops): Rename to...
8944         (VQHS_OPS): ... This.
8945         (rshifts): Rename to...
8946         (RSHIFTS): ... This.
8947         (returns): Rename to...
8948         (RETURNS): ... This.
8949         * config/arm/arm.md: Update uses of the above.
8950         * config/arm/neon.md: Likewise.
8952 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8954         * config.host (case ${host}): Add aarch64*-*-linux case.
8955         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
8956         fields to all the cores.
8957         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
8958         Add MCPU_MTUNE_NATIVE_SPECS.
8959         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
8960         field to all extensions.
8961         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
8962         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
8963         Adjust definition of AARCH64_OPT_EXTENSION.
8964         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
8965         (MCPU_MTUNE_NATIVE_SPECS): Define.
8966         * config/aarch64/driver-aarch64.c: New file.
8967         * config/aarch64/x-arch64: New file.
8968         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
8969         -mtune and -march.
8971 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8972             Wei Mi  <wmi@google.com>
8974         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
8975         * config/i386/i386.c (extract_base_offset_in_addr): New function.
8976         (ix86_operands_ok_for_move_multiple): Ditto.
8977         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
8978         (movlpd/movhpd to movupd peephole2): Ditto.
8980 2015-04-24  Marek Polacek  <polacek@redhat.com>
8982         PR c/61534
8983         * input.h (from_macro_expansion_at): Define.
8985         PR c/63357
8986         * doc/invoke.texi: Update description of -Wlogical-op.
8988 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8990         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
8991         ternary operator in fprintf and harmonize spacing.
8993 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8995         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
8996         Mark operand1 commutative.
8998 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9000         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
9001         input operands in memory.
9002         (*vec_concatv2si_sse4_1): Ditto.
9003         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
9004         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
9005         register_operand.
9006         (vec_extract_hi_v32hi): Ditto.
9007         (vec_extract_hi_v64hi): Ditto.
9008         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9010 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9011             Steven Bosscher <steven@gcc.gnu.org>
9013         PR rtl-optimization/34503
9014         * cprop.c (cprop_reg_p): New.
9015         (hash_scan_set): Use above function to check if register can be
9016         propagated.
9017         (find_avail_set): Return up to two sets, one whose source is a
9018         register and one whose source is a constant.  Sets are returned in an
9019         array passed as parameter rather than as a return value.
9020         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
9021         sets returned by find_avail_set, starting with the one whose source is
9022         a constant. Use cprop_reg_p to check if register can be propagated.
9023         (do_local_cprop): Use cprop_reg_p to check if register can be
9024         propagated.
9025         (implicit_set_cond_p): Likewise.
9027 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9029         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
9030         (sem_function::equals): IGNORED_NODES parameter is now unused;
9031         update call of equals_private.
9032         (sem_function::equals_private): Do not call equals_wpa; skip
9033         gimple body matching if there is no body.
9034         (sem_function::init): Add logic to hash tthunk info.
9035         (sem_function::parse): Also parse thunks.
9036         * ipa-icf.h (equals_private): Update declaration.
9038 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9040         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
9041         asterisk from name so this can be generated directly.
9042         (*altivec_stvx_<mode>_internal): Likewise.
9043         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
9044         that this is never called during or after reload/lra.
9045         (rs6000_frame_related): Remove split_reg
9046         argument and logic that references it.
9047         (emit_frame_save): Remove last parameter from call to
9048         rs6000_frame_related.
9049         (rs6000_emit_prologue): Remove last parameter from eight calls to
9050         rs6000_frame_related.  Force generation of stvx instruction for
9051         Altivec register saves.  Remove split_reg handling, which is no
9052         longer needed.
9053         (rs6000_emit_epilogue):  Force generation of lvx instruction for
9054         Altivec register restores.
9056 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9058         * config/rs6000/rs6000.opt (mcrypto): Change option description to
9059         match category changes in ISA 2.07B.
9061 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9063         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
9064         iterators.
9065         (cmp_op, cmp_type): New code attributes.
9066         (NEON_VCMP, NEON_VACMP): New int iterators.
9067         (cmp_op_unsp): New int attribute.
9068         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
9069         (neon_vceq<mode>): Delete.
9070         (neon_vc<cmp_op><mode>_insn): New pattern.
9071         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
9072         (neon_vcgeu<mode>): Delete.
9073         (neon_vcle<mode>): Likewise.
9074         (neon_vclt<mode>: Likewise.
9075         (neon_vcage<mode>): Likewise.
9076         (neon_vcagt<mode>): Likewise.
9077         (neon_vca<cmp_op><mode>): New define_expand.
9078         (neon_vca<cmp_op><mode>_insn): New pattern.
9079         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
9081 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9083         * tree.h (attribute_value_equal): Declare.
9084         * tree.c (attribute_value_equal): Export.
9086 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9088         * ipa-icf.c (sem_item::compare_attributes): New function.
9089         (sem_item::compare_referenced_symbol_properties): Compare variable
9090         attributes.
9091         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
9092         (sem_function::param_used_p): New function.
9093         (sem_function::equals_wpa): Fix attribute comparsion; match
9094         parameter type codes; do not compare paremter flags when
9095         they are not used; compare edge flags; compare indirect calls.
9096         (sem_item::update_hash_by_addr_refs): Hash reference type.
9097         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
9098         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
9099         reference use type.
9100         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
9101         * ipa-icf.h (compare_attributes, param_used_p): Declare.
9103 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9105         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
9106         cleanup.
9107         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
9108         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
9109         (sem_item::compare_referenced_symbol_properties): New.
9110         (sem_item::hash_referenced_symbol_properties): New.
9111         (sem_item::compare_cgraph_references): Rename to ...
9112         (sem_item::compare_symbol_references): ... this one; use
9113         compare_referenced_symbol_properties.
9114         (sem_function::equals_wpa): Do not compare
9115         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
9116         DECL_IS_OPERATOR_NEW; compare pointer sizes.
9117         (sem_item::update_hash_by_addr_refs): Call
9118         hash_referenced_symbol_properties.
9119         (sem_item::update_hash_by_local_refs): Cleanup.
9120         (sem_function::merge): Do not mix up symbol properties.
9121         (sem_variable::equals_wpa): Use compare_symbol_references.
9122         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
9123         (sem_item::hash_referenced_symbol_properties): New.
9124         (sem_item::compare_symbol_references): New.
9125         (sem_item::compare_cgraph_references): Remove.
9127 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
9129         PR target/26702
9130         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9131         Emit size of local.
9133 2015-04-23  Nick Clifton  <nickc@redhat.com>
9135         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
9136         ATTRIBUTE_UNUSED to x parameter.
9137         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
9139 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9141         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
9142         TARGET_CRYPTO to TARGET_P8_VECTOR>
9143         (crypto_vpermxor_<mode>): Likewise.
9144         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
9145         (BU_CRYPTO_3A): Likewise.
9146         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
9147         (BU_CRYPTO_OVERLOAD_3A): New #define.
9148         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
9149         (VPMSUMH): Likewise.
9150         (VPMSUMW): Likewise.
9151         (VPMSUMD): Likewise.
9152         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
9153         (VPERMXOR_V4SI): Likewise.
9154         (VPERMXOR_V8HI): Likewise.
9155         (VPERMXOR_V16QI): Likewise.
9156         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
9157         BU_CRYPTO_OVERLOAD_2A.
9158         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
9159         BU_CRYPTO_OVERLOAD_3A.
9160         * config/rs6000/rs6000.opt (mcrypto): Change description of
9161         option.
9163 2015-04-23  Richard Biener  <rguenther@suse.de>
9165         * passes.def: Remove copy propagation passes run directly after CCP.
9166         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
9167         SSA names.
9168         (ccp_visit_phi_node): Rework to handle first executable edge
9169         specially.
9171 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
9173         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9174         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9175         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9176         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
9177         (thumb_legimitimize_reload_address): Remove.
9178         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
9179         Remove.
9180         (thumb_legimitimize_reload_address): Remove.
9182 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9184         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
9186 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9188         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
9189         MAX_LDM_STM_OPS.
9190         (store_multiple): Likewise.
9192 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9194         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
9195         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
9196         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
9197         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
9198         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
9199         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
9200         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
9201         Specify issue_rate value.
9202         (arm_issue_rate): Look up issue rate from tuning structs. Remove
9203         large switch statement.
9204         (arm_marvell_pj4_tune): New struct.
9205         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
9206         struct.
9208 2015-04-23  Richard Biener  <rguenther@suse.de>
9210         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
9211         (vect_find_last_store_in_slp_instance): Rename to ...
9212         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
9213         (vect_analyze_slp_cost_1): Use vector_load for constant defs
9214         and vec_construct for external defs when estimating prologue cost.
9215         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
9216         Compute costs here only when vectorizing loops.
9217         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
9218         have been determined.
9219         (vect_schedule_slp_instance): Simplify vectorized code placement
9220         and prepare for in-BB external defs.
9221         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
9222         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
9223         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
9224         guard.
9225         (vect_model_load_cost): Likewise.
9226         (vectorizable_store): Instead add it here.
9227         (vectorizable_load): Likewise.
9228         (vect_is_simple_use): Dump def type textually.
9230 2015-04-23  Richard Biener  <rguenther@suse.de>
9232         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
9233         * cfgloop.c (verify_loop_structure): Verify the root loop node.
9234         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
9235         instead of get_eh_region_from_lp_number.
9236         * loop-init.c (fix_loop_structure): If we removed a loop, reset
9237         the SCEV cache.
9239 2015-04-23  Anton Blanchard  <anton@samba.org>
9241         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
9242         need for -mprofile-kernel to save LR to stack.
9244 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9246         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
9247         adjustments.
9248         (insn_is_swappable_p): Return 1 for a convert from double to
9249         single precision when all of its uses are splats of BE element
9250         zero.
9252 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
9254         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
9256 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9258         PR target/65456
9259         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
9260         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
9261         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
9262         option.
9263         (rs6000_builtin_mask_for_load): Return 0 for targets with
9264         efficient unaligned VSX accesses so that the vectorizer will use
9265         direct unaligned loads.
9266         (rs6000_builtin_support_vector_misalignment): Always return true
9267         for targets with efficient unaligned VSX accesses.
9268         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
9269         stores on targets with efficient unaligned VSX accesses is almost
9270         always the same as the cost of an aligned load or store, so model
9271         it that way.
9272         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
9273         unaligned vectors if we have efficient unaligned VSX accesses.
9274         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
9275         undocumented option.
9277 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9279         Revert:
9280         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9282         * config.gcc (LIBC_MUSL): New tm_defines macro.
9283         * config/linux.h (OPTION_MUSL): Define.
9284         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9285         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9286         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9288         * config/linux.opt (mmusl): New option.
9289         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9290         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9292         * configure: Regenerate.
9294 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9296         * config.gcc (LIBC_MUSL): New tm_defines macro.
9297         * config/linux.h (OPTION_MUSL): Define.
9298         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9299         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9300         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9302         * config/linux.opt (mmusl): New option.
9303         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9304         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9306         * configure: Regenerate.
9308 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
9310         * doc/invoke.texi (-fsanitize-sections): Update description.
9311         * asan.c (set_sanitized_sections): Parse incoming arg.
9312         (section_sanitized_p): Support wildcards.
9314 2015-04-22  Tom de Vries  <tom@codesourcery.com>
9316         PR tree-optimization/65823
9317         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9318         equality between ap_copy and ap.
9320 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9322         PR target/47098
9323         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9325 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9327         PR target/47122
9328         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9330 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9332         PR target/55144
9333         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9334         remove already contained t-files.
9336 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9338         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9339         Remove unneeded forward declarations.
9340         (suitable_for_tail_call_opt_p): Commentary typo fix.
9342 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9344         * varasm.c (emit_bss): Remove redundant guard.
9346 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9348         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9350 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9352         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9354 2015-04-22  Hale Wang  <hale.wang@arm.com>
9355             Terry Guo  <terry.guo@arm.com>
9357         PR rtl-optimization/64818
9358         * combine.c (can_combine_p): Don't combine user-specified
9359         register if it is in an asm input.
9361 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
9363         PR ipa/65076
9364         * passes.def (early_optimizations): Add pass_dse.
9366 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9368         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9369         * reorg.c (redundant_insn): Remove ifdef
9370         INSN_REFERENCES_ARE_DELAYED.
9371         * resource.c (mark_referenced_resources): Likewise.
9373 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9375         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9376         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9377         * resource.c (mark_set_resources): Likewise.
9379 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9381         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9382         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9383         (flow_find_head_matching_sequence): Likewise.
9384         (try_head_merge_bb): Likewise.
9385         * combine.c (can_combine_p): Likewise.
9386         (try_combine): Likewise.
9387         (distribute_notes): Likewise.
9388         * df-problems.c (can_move_insns_across): Likewise.
9389         * final.c (final): Likewise.
9390         * gcse.c (insert_insn_end_basic_block): Likewise.
9391         * ira.c (find_moveable_pseudos): Likewise.
9392         * reorg.c (try_merge_delay_insns): Likewise.
9393         (fill_simple_delay_slots): Likewise.
9394         (fill_slots_from_thread): Likewise.
9395         * sched-deps.c (sched_analyze_2): Likewise.
9397 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9399         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9400         PIC_OFFSET_TABLE_REGNUM.
9402 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9404         * alias.c (init_alias_target): Remove ifdef
9405         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9406         * df-scan.c (df_insn_refs_collect): Likewise.
9407         (df_get_regular_block_artificial_uses): Likewise.
9408         (df_get_eh_block_artificial_uses): Likewise.
9409         (df_get_entry_block_def_set): Likewise.
9410         (df_get_exit_block_use_set): Likewise.
9411         * emit-rtl.c (gen_rtx_REG): Likewise.
9412         * ira.c (ira_setup_eliminable_regset): Likewise.
9413         * reginfo.c (init_reg_sets_1): Likewise.
9414         * regrename.c (rename_chains): Likewise.
9415         * reload1.c (reload): Likewise.
9416         (eliminate_regs_in_insn): Likewise.
9417         * resource.c (mark_referenced_resources): Likewise.
9418         (init_resource_info): Likewise.
9420 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9422         * defaults.h (MASK_RETURN_ADDR): New definition.
9423         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9424         MASK_RETURN_ADDR.
9426 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9428         * defaults.h (RETURN_ADDR_OFFSET): New definition.
9429         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9430         RETURN_ADDR_OFFSET.
9431         (expand_builtin_frob_return_addr): Likewise.
9433 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9435         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
9436         (try_redirect_by_replacing_jump): Likewise.
9437         (rtl_tidy_fallthru_edge): Likewise.
9438         * combine.c (insn_a_feeds_b): Likewise.
9439         (find_split_point): Likewise.
9440         (simplify_set): Likewise.
9441         * cprop.c (cprop_jump): Likewise.
9442         * cse.c (cse_extended_basic_block): Likewise.
9443         * df-problems.c (can_move_insns_across): Likewise.
9444         * function.c (emit_use_return_register_into_block): Likewise.
9445         * haifa-sched.c (sched_init): Likewise.
9446         * ira.c (find_moveable_pseudos): Likewise.
9447         * loop-invariant.c (find_invariant_insn): Likewise.
9448         * lra-constraints.c (curr_insn_transform): Likewise.
9449         * postreload.c (reload_combine_recognize_const_pattern):
9450         * Likewise.
9451         * reload.c (find_reloads): Likewise.
9452         * reorg.c (delete_scheduled_jump): Likewise.
9453         (steal_delay_list_from_target): Likewise.
9454         (steal_delay_list_from_fallthrough): Likewise.
9455         (redundant_insn): Likewise.
9456         (fill_simple_delay_slots): Likewise.
9457         (fill_slots_from_thread): Likewise.
9458         (delete_computation): Likewise.
9459         * sched-rgn.c (add_branch_dependences): Likewise.
9461 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9463         * genconfig.c (main): Always define HAVE_cc0.
9464         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
9465         HAVE_cc0.
9466         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9467         (flow_find_head_matching_sequence): Likewise.
9468         (try_head_merge_bb): Likewise.
9469         * cfgrtl.c (rtl_merge_blocks): Likewise.
9470         (try_redirect_by_replacing_jump): Likewise.
9471         (rtl_tidy_fallthru_edge): Likewise.
9472         * combine.c (do_SUBST_MODE): Likewise.
9473         (insn_a_feeds_b): Likewise.
9474         (combine_instructions): Likewise.
9475         (can_combine_p): Likewise.
9476         (try_combine): Likewise.
9477         (find_split_point): Likewise.
9478         (subst): Likewise.
9479         (simplify_set): Likewise.
9480         (distribute_notes): Likewise.
9481         * cprop.c (cprop_jump): Likewise.
9482         * cse.c (cse_extended_basic_block): Likewise.
9483         * df-problems.c (can_move_insns_across): Likewise.
9484         * final.c (final): Likewise.
9485         (final_scan_insn): Likewise.
9486         * function.c (emit_use_return_register_into_block): Likewise.
9487         * gcse.c (insert_insn_end_basic_block): Likewise.
9488         * haifa-sched.c (sched_init): Likewise.
9489         * ira.c (find_moveable_pseudos): Likewise.
9490         * loop-invariant.c (find_invariant_insn): Likewise.
9491         * lra-constraints.c (curr_insn_transform): Likewise.
9492         * optabs.c (prepare_cmp_insn): Likewise.
9493         * postreload.c (reload_combine_recognize_const_pattern):
9494         * Likewise.
9495         * reload.c (find_reloads): Likewise.
9496         (find_reloads_address_1): Likewise.
9497         * reorg.c (delete_scheduled_jump): Likewise.
9498         (steal_delay_list_from_target): Likewise.
9499         (steal_delay_list_from_fallthrough): Likewise.
9500         (try_merge_delay_insns): Likewise.
9501         (redundant_insn): Likewise.
9502         (fill_simple_delay_slots): Likewise.
9503         (fill_slots_from_thread): Likewise.
9504         (delete_computation): Likewise.
9505         (relax_delay_slots): Likewise.
9506         * sched-deps.c (sched_analyze_2): Likewise.
9507         * sched-rgn.c (add_branch_dependences): Likewise.
9509 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9511         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
9512         that is trivially ded on non cc0 targets.
9513         (simplify_set): Likewise.
9514         (mark_used_regs_combine): Likewise.
9515         * cse.c (new_basic_block): Likewise.
9516         (fold_rtx): Likewise.
9517         (cse_insn): Likewise.
9518         (cse_extended_basic_block): Likewise.
9519         (set_live_p): Likewise.
9520         * rtlanal.c (canonicalize_condition): Likewise.
9521         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
9523 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9525         * conditions.h: Define macros even if HAVE_cc0 is undefined.
9526         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
9527         * final.c: Likewise.
9528         * jump.c: Likewise.
9529         * recog.c: Likewise.
9530         * recog.h: Declare functions even when HAVE_cc0 is undefined.
9531         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
9533 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9535         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
9536         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
9537         * builtins.c (expand_builtin): Remove check if
9538         EH_RETURN_DATA_REGNO is defined.
9539         * df-scan.c (df_bb_refs_collect): Likewise.
9540         (df_get_exit_block_use_set): Likewise.
9541         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
9542         * ira-lives.c (process_bb_node_lives): Likewise.
9543         * lra-lives.c (process_bb_lives): Likewise.
9545 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
9547         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
9548         FIRST_PSEUDO_REG): New.
9549         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
9550         (ARG_POINTER_REGNUM): Define to ARGP_REG.
9551         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
9552         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
9553         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
9554         (FIRST_INT_REG): New.
9555         (LAST_INT_REG): New.
9556         (FIRST_*_REG): Define using *_REG.
9557         (LAST_*_REG): Ditto.
9558         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
9559         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
9560         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
9562 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9564         * expmed.c: (synth_mult): Only assume overlapping
9565         shift with previous steps in alg_sub_t_m2 case.
9567 2015-04-21  Richard Biener  <rguenther@suse.de>
9569         PR tree-optimization/65650
9570         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
9571         transitions involving copies.
9572         (set_lattice_value): Adjust for copy lattice state.
9573         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
9574         if that doesn't dominate the merge point.
9575         (bit_value_unop): Adjust what we treat as varying mask.
9576         (bit_value_binop): Likewise.
9577         (bit_value_assume_aligned): Likewise.
9578         (evaluate_stmt): When we simplified to a SSA name record a copy
9579         instead of dropping to varying.
9580         (visit_assignment): Simplify.
9582         * gimple-match.h (gimple_simplify): Add another callback.
9583         * gimple-fold.c (fold_stmt_1): Adjust caller.
9584         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
9585         for the 2nd callback.
9586         * gimple-match-head.c (gimple_simplify): Add a callback that is
9587         used to valueize the stmt operands and use it that way.
9589 2015-04-21  Richard Biener  <rguenther@suse.de>
9591         PR tree-optimization/65788
9592         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
9594 2015-04-21  Richard Biener  <rguenther@suse.de>
9596         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
9597         vec_construct cost by vec_stmt_cost.
9599 2015-04-21  Richard Biener  <rguenther@suse.de>
9601         * cfghooks.h (create_basic_block): Replace with two overloads
9602         for RTL and GIMPLE.
9603         (split_block): Likewise.
9604         * cfghooks.c (split_block): Rename to ...
9605         (split_block_1): ... this.
9606         (split_block): Add two type-safe overloads for RTL and GIMPLE.
9607         (split_block_after_labels): Call split_block_1.
9608         (create_basic_block): Rename to ...
9609         (create_basic_block_1): ... this.
9610         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
9611         (create_empty_bb): Call create_basic_block_1.
9612         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
9613         split_block_after_labels.
9614         * omp-low.c (expand_parallel_call): Likewise.
9615         (expand_omp_target): Likewise.
9616         (simd_clone_adjust): Likewise.
9617         * tree-chkp.c (chkp_get_entry_block): Likewise.
9618         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
9619         create_basic_block overload.
9620         (cgraph_node::expand_thunk): Likewise.
9621         * tree-cfg.c (make_blocks): Likewise.
9622         (handle_abnormal_edges): Likewise.
9623         * tree-inline.c (copy_bb): Likewise.
9625 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9627         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
9628         New pattern.
9629         (*xor_one_cmplsidi3_ze): Likewise.
9631 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9633         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
9634         use df_remove_problem rather than manually removing problems, leaving
9635         holes in df->problems_in_order[].
9637 2015-04-21  Tom de Vries  <tom@codesourcery.com>
9639         PR tree-optimization/65802
9640         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
9642 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9644         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
9645         Increase to 128.
9646         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
9647         at '.'.  Assert that there's enough space for everything.
9649 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
9651         PR tree-optimization/64950
9652         Revert:
9653         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
9655         PR target/41089
9656         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9657         as volatile.
9659 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
9661         PR rtl-optimization/64916
9662         * cfgcleanup.c (values_equal_p): New function.
9663         (can_replace_by): Use it.
9665 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
9667         PR c++/65801
9668         * doc/invoke.texi ([-Wnarrowing]): Update.
9670 2015-04-20  Jeff Law  <law@redhat.com>
9672         PR tree-optimization/65658
9673         * tree-ssa-threadupdate.c (redirection_block_p): Remove
9674         redundant test for GIMPLE_ASSIGN in last change.
9676 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
9678         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
9679         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
9680         (legitimize_tls_address): Ditto.
9681         (ix86_expand_move): Ditto.
9682         (ix86_expand_binary_operator): Remove reload_in_progress checks.
9683         (ix86_expand_unary_operator): Ditto.
9684         * config/i386/predicates.md (index_register_operand): Ditto.
9686 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
9688         * reorg.c (try_merge_delay_insns): Improve correctness checking
9689         for targets with multiple delay slots.
9691 2015-04-20  Jeff Law  <law@redhat.com>
9693         PR tree-optimization/65658
9694         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
9695         statements too.
9697 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9699         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
9700         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
9701         Delete.
9703 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
9705         PR debug/65807
9706         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
9708 2015-04-20  Richard Biener  <rguenther@suse.de>
9710         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
9711         * gimple-fold.c (gimple_build_valueize): New function.
9712         (gimple_build): Always use gimple_build_valueize as valueize hook.
9714 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9716         PR target/64134
9717         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
9718         and overwrite variable parts if <= 1/2 the elements are variable.
9720 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
9722         PR rtl-optimization/65805
9723         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
9724         Don't use difference of offset and previous offset if
9725         update_sp_offset is non-zero.
9726         (eliminate_regs_in_insn): Ditto.
9727         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
9728         lra_eliminate_regs_1 call.
9729         * lra-constraints.c (get_equiv_with_elimination): Ditto.
9731 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
9733         * hash-table.h: Remove version of hash_table that stored value_type *.
9734         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
9735         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
9736         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
9737         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
9738         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
9739         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
9740         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9741         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
9742         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
9743         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
9744         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
9745         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
9746         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
9747         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9748         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9749         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
9751 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9752             Jakub Jelinek  <jakub@redhat.com>
9754         PR target/65787
9755         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
9756         subsequent SH_NONE operand does not overwrite an existing *special
9757         value.
9758         (adjust_extract): Handle case where a vec_extract operation is
9759         wrapped in a PARALLEL.
9761 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9763         PR target/65780
9764         * config/i386/i386.c (ix86_binds_local_p): Define only if
9765         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
9767 2015-04-17  Jeff Law  <law@redhat.com>
9769         PR tree-optimization/47679
9770         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
9771         * tree-ssa-scopedtables.c: New file.
9772         * tree-ssa-scopedtables.h: New file.
9773         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
9774         (const_and_copies): Change name/type.
9775         (record_const_or_copy): Move into tree-ssa-scopedtables.c
9776         (record_const_or_copy_1): Similarly.
9777         (restore_vars_to_original_value): Similarly.
9778         (pass_dominator::execute): Create and destroy const_and_copies table.
9779         (thread_across_edge): Update passing of const_and_copies.
9780         (record_temporary_equivalence): Use method calls rather than
9781         manipulating const_and_copies directly.
9782         (record_equality, cprop_into_successor_phis): Similarly.
9783         (dom_opt_dom_walker::before_dom_children): Similarly.
9784         (dom_opt_dom_walker::after_dom_children): Similarly.
9785         (eliminate_redundant_computations): Similarly.
9786         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
9787         (record_temporary_equivalence): Likewise.
9788         (invalidate_equivalences): Likewise.
9789         (record_temporary_equivalences_from_phis): Update due to type
9790         change of const_and_copies.  Use method calls rather than
9791         manipulating the stack directly.
9792         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
9793         (thread_through_normal_block, thread_across_edge): Likewise.
9794         (thread_across_edge): Likewise.
9795         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9796         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
9797         of equiv_stack.
9798         (identify_jump_threads): Update due to type change of equiv_stack.
9799         (finalize_jump_threads): Delete the equiv_stack when complete.
9801 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
9803         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9804         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
9805         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
9807 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
9809         PR target/65535
9810         * config.gcc: Exit with a comment when we do not have a major version
9811         number for the FreeBSD target.
9813 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9815         PR target/65689
9816         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
9817         maybe_allows_mem bitfields.
9818         (maybe_allows_none_start, maybe_allows_none_end,
9819         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
9820         maybe_allows_mem_end): New variables.
9821         (compute_maybe_allows): New function.
9822         (add_constraint): Use it to initialize maybe_allows_reg and
9823         maybe_allows_mem fields.
9824         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
9825         is_address constraints such that those that allow neither mem nor
9826         reg come first, then those that only allow reg but not mem, then
9827         those that only allow mem but not reg, then the rest.
9828         (write_allows_reg_mem_function): New function.
9829         (write_tm_preds_h): Call it.
9830         * stmt.c (parse_output_constraint, parse_input_constraint): Use
9831         the generated insn_extra_constraint_allows_reg_mem function
9832         instead of always setting *allows_reg = true; *allows_mem = true;
9833         for unknown extra constraints.
9835 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9837         PR target/65780
9838         * output.h (default_binds_local_p_3): New.
9839         * varasm.c (default_binds_local_p_3): Make it public.  Take an
9840         argument to indicate if common symbol may be local.  If common
9841         symbol may be local, treat non-external variable as defined
9842         locally.
9843         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
9844         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
9845         * config/i386/i386.c (ix86_binds_local_p): New.
9846         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
9847         ix86_binds_local_p.
9849 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9851         PR debug/65771
9852         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
9853         trying mem_loc_descriptor on XEXP (rtl, 0).
9855 2015-04-17  Martin Liska  <mliska@suse.cz>
9857         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9858         Release symbol_compare_collection.
9859         * ipa-reference.c: Add TODO that a vector should be released.
9861 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
9863         PR target/65296
9864         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
9865         to new AVR-LibC file layout (bug #44574).
9866         (*avrlibc_devicelib): Same.
9867         * config/avr/avr-mcus.def: Adjust comments.
9868         * config/avr/avr.opt (nodevicelib): Adjust help.
9870 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
9872         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
9874 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
9876         PR c++/64527
9877         * gimplify.c (gimplify_init_constructor): Always emit a
9878         side-effecting constructor.
9880 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9882         PR tree-optimization/64950
9883         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
9884         in cfun->curr_properties.
9885         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
9886         if we generate an IFN_VA_ARG.
9887         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
9888         function if PROP_gimple_lva is not set in src function.
9890 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9891             Michael Matz  <matz@suse.de>
9893         PR tree-optimization/64950
9894         * gimple-iterator.c (update_modified_stmts): Remove static.
9895         * gimple-iterator.h (update_modified_stmts): Declare.
9896         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
9897         (gimplify_va_arg_internal): New function.
9898         (gimplify_va_arg_expr): Use IFN_VA_ARG.
9899         * gimplify.h (gimplify_va_arg_internal): Declare.
9900         * internal-fn.c (expand_VA_ARG): New unreachable function.
9901         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
9902         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
9903         (expand_ifn_va_arg): New function.
9904         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
9905         (pass_stdarg::execute): Call expand_ifn_va_arg.
9906         (pass_data_lower_vaarg): New pass_data.
9907         (pass_lower_vaarg): New gimple_opt_pass.
9908         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
9909         (make_pass_lower_vaarg): New function.
9910         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
9911         properties_required field.
9912         * passes.def (all_passes): Add pass_lower_vaarg.
9913         * tree-pass.h (PROP_gimple_lva): Add define.
9914         (make_pass_lower_vaarg): Declare.
9916 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9918         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
9919         * calls.c (call_expr_flags): Same.
9921 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9923         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
9924         (pass_stdarg::execute): ... here.
9926 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9927             Michael Matz  <matz@suse.de>
9929         * tree-cfg.c (make_blocks_1): Factor out of ...
9930         (make_blocks): ... here.
9931         (make_edges_bb): Factor out of ...
9932         (make_edges): ... here.
9933         (gimple_find_sub_bbs): New function.
9934         * tree-cfg.h (gimple_find_sub_bbs): Declare.
9936 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9938         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
9940 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
9942         * asan.c (set_sanitized_sections): New function.
9943         (section_sanitized_p): Ditto.
9944         (asan_protect_global): Optionally sanitize user-defined
9945         sections.
9946         * asan.h (set_sanitized_sections): Declare new function.
9947         * common.opt (fsanitize-sections): New option.
9948         * doc/invoke.texi (-fsanitize-sections): Document new option.
9949         * opts-global.c (handle_common_deferred_options): Handle new
9950         option.
9952 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9954         PR debug/65771
9955         * dwarf2out.c (loc_list_from_tree): Return NULL
9956         for DEBUG_EXPR_DECL.
9958 2015-04-17  Christian Bruel  <christian.bruel@st.com>
9960         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
9961         same attributes.
9963 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9965         * ira-color.c (setup_left_conflict_sizes_p): Do not process
9966         node itself when computing left conflict subnode size.
9968 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9970         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
9971         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
9972         *fop_<mode>_1_sse using enabled attribute.  Use
9973         register_mixssei387nonimm_operand operand 1 predicate. Change
9974         alternative 3 constraints from "x" to "v".
9976 2015-04-16  Richard Biener  <rguenther@suse.de>
9978         PR tree-optimization/65774
9979         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
9980         bit-value tracking on.
9982 2015-04-16  Richard Biener  <rguenther@suse.de>
9984         PR tree-optimization/64277
9985         * tree-vrp.c (check_array_ref): Fix anti-range handling,
9986         simplify upper bound handling.
9987         (search_for_addr_array): Simplify.
9988         (check_array_bounds): Handle ADDR_EXPRs here.
9989         (check_all_array_refs): Simplify.
9991 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9993         * config/i386/i386.c (print_reg): Rewrite function.
9995 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9997         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
9998         Invert the condition.
10000 2015-04-16  Renlin Li  <renlin.li@arm.com>
10002         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
10003         simplifications for UNSIGNED_FLOAT.
10005 2015-04-16  Nick Clifton  <nickc@redhat.com>
10007         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
10008         MUL_UNINIT.
10009         (enum rl78_cpu_type): New.
10010         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
10011         (umulhi3_shift_virt): Remove m constraint from operand 1.
10012         (umulqihi3_virt): Likewise.
10013         * config/rl78/rl78.c (rl78_option_override): Add code to process
10014         -mcpu and -mmul options.
10015         (rl78_alloc_physical_registers): Add code to handle divhi and
10016         divsi valloc attributes.
10017         (set_origin): Likewise.
10018         * config/rl78/rl78.h (RL78_MUL_G14): Define.
10019         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
10020         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
10021         __RL78_Gxx__.
10022         (ASM_SPEC): Pass -mcpu on to assembler.
10023         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
10024         (mulqi3_rl78): Likewise.
10025         (mulhi3_g13): Likewise.
10026         (mulhi3): Generate the G13 or G14 versions of the insn directly.
10027         (mulsi3): Likewise.
10028         (mulhi3_g14): Add clobbers of AX and BC.
10029         (mulsi3_g14): Likewise.
10030         (mulsi3_g13): Likewise.
10031         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
10032         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
10033         * config/rl78/rl78.opt (mmul): Initialise value to
10034         RL78_MUL_UNINIT.
10035         (mcpu): New option.
10036         (m13, m14, mrl78): New option aliases.
10037         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
10038         (MULTILIB_DIRNAMES): Add g13 and g14.
10039         * doc/invoke.texi: Document -mcpu and -mmul options.
10041 2015-04-16  Richard Biener  <rguenther@suse.de>
10043         * tree-ssa-ccp.c (likely_value): See if we have operands that
10044         are marked as never simulate again and return CONSTANT in this
10045         case.
10046         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
10047         not have any operands that will be simulated again as
10048         not being simulated again.
10050 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
10052         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
10053         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
10054         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
10055         attribute.
10056         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
10057         enabled attribute.
10058         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
10059         *float<SWI48:mode><MODEF:mode>2_sse.
10060         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
10061         enabled attribute.
10062         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
10063         enabled attribute.
10065 2015-04-15  Tom de Vries  <tom@codesourcery.com>
10067         PR other/65487
10068         * function.c (push_dummy_function): New function.
10069         (init_dummy_function_start): Use push_dummy_function.
10070         (pop_dummy_function): New function.  Factored out of ...
10071         (expand_dummy_function_end): ... here.
10072         * function.h (push_dummy_function, pop_dummy_function): Declare.
10073         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
10074         pop_dummy_function.
10075         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
10077 2015-04-15  Jeff Law  <law@redhat.com>
10079         PR tree-optimization/47679
10080         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
10081         need for forward declaration in upcoming changes.
10082         (record_conditions, record_edge_info): Likewise.
10084         PR rtl-optimization/42522
10085         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
10086         SIGN_EXTRACT as a whole object rather than simplifying
10087         its operand.
10089 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
10091         PR ipa/65765
10092         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
10093         and GIMPLE_PREDICT use break instead of return true. For
10094         GIMPLE_EH_DISPATCH, compare dispatch region.
10096 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
10098         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
10099         details about the implementation.  Make clear preference for
10100         __atomic builtins.  Reduce possibility of future change.
10102 2015-04-15  Nick Clifton  <nickc@redhat.com>
10104         * config/rx/rx.opt (mallow-string-insns): New option.
10105         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
10106         builtin if string instructions are denied.
10107         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
10108         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
10109         appropriate.
10110         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
10111         * config/rx/rx.md (movstr): Enable pattern only if string
10112         instructions are allowed.
10113         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
10114         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
10115         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
10116         (MULTILIB_DIRNAMES): Add no-strings.
10117         * doc/invoke.texi: Document -mno-allow-string-insns.
10119 2015-04-15  Alan Modra  <amodra@gmail.com>
10121         PR target/65408
10122         PR target/58744
10123         PR middle-end/36043
10124         * calls.c (load_register_parameters): Don't load past end of
10125         mem unless suitably aligned.
10127 2015-04-15  Nick Clifton  <nickc@redhat.com>
10129         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
10130         decrement instruction as being frame related.
10131         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
10132         based addresses.
10133         If zero extending a function address enclose the operation in
10134         %code(...).
10135         (rl78_preferred_reload_class): New function.
10136         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10137         * config/rl78/rl78.md: Remove useless constraints in expanders.
10138         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
10139         (mulhi3_rl78): Likewise.
10140         (mulhi3_g13): Likewise.
10141         (mulsi3_rl78): Likewise.
10142         (es_addr): Move to before the multiply patterns.
10144 2015-04-15  Alan Modra  <amodra@gmail.com>
10146         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
10147         and sequence_stack.  Add seq.
10148         (seq_stack): Delete.
10149         * function.c (prepare_function_start): Don't access x_last_insn.
10150         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
10151         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
10152         * emit_rtl.c (start_sequence, push_topmost_sequence,
10153         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
10154         sequence accessors.
10155         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
10156         remove_insn): Likewise.  Simplify.
10157         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
10158         and pop_topmost_sequence.
10159         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
10160         debug insns.
10161         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
10163 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
10165         PR target/65729
10166         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
10167         the assertiion.
10169 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
10171         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
10172         (LEGACY_INT_REGNO_P): Ditto.
10173         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
10174         (ANY_MASK_REG_P): Remove.
10175         (BND_REG_P): Rename from ANY_BND_REG_P.
10176         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
10177         legacy integer registers.  Do not handle MMX_REG_P in a special way.
10178         Merge 64byte and 32byte SSE handling.
10180 2015-04-14  Nick Clifton  <nickc@redhat.com>
10182         * expr.c (expand_assignment): Force an address offset computation
10183         into a register before changing its mode.
10184         (expand_expr_real_1): Likewise.
10186 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
10188         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
10189         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
10190         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
10191         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
10192         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
10193         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
10194         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
10195         and __aarch64_vget_lane_any.
10197 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
10199         PR rtl-optimization/65761
10200         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
10201         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
10203 2015-04-14  Richard Biener  <rguenther@suse.de>
10205         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
10206         (graphite_can_represent_scev): Use POINTER_TYPE_P.
10208 2015-04-14  Richard Biener  <rguenther@suse.de>
10210         PR tree-optimization/65758
10211         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
10212         against -1.
10213         (ccp_lattice_meet): Likewise.
10214         (bit_value_unop): Likewise.
10215         (bit_value_binop): Likewise.
10216         (bit_value_assume_aligned): Likewise.
10218 2015-04-14  Christian Bruel  <christian.bruel@st.com>
10220         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
10221         function.
10223 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
10225         PR tree-optimization/63387
10226         * match.pd ((x unord x) | (y unord y) -> (x unord y),
10227         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
10229 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
10231         * config/i386/predicates.md (any_QIreg_operand): Rename from
10232         q_regs_operand.  Do not process subregs.
10233         (QIreg_operand): Use QI_REGNO_P predicate.
10234         (ext_QIreg_operand): Ditto.
10235         (ext_register_operand): Ditto.
10236         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
10237         (AND splitters): Ditto.
10238         (AND with -65536 splitter): Add SWI48 mode for operand 0.
10239         (AND with -256 splitter): Use any_QIreg_operand predicate and
10240         SWI248 mode for operand 0.
10241         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
10242         mode for operand 0.
10243         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
10245 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
10247         * doc/plugins.texi: Rewrite first introductory paragraph.
10249 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10251         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
10252         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
10254 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10256         * ipa-profie.c (ipa_profile): Check number of parameters
10257         and possible polymorphic call targets before
10258         devirtualizing.
10260 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
10262         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
10263         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
10265 2015-04-13  Richard Biener  <rguenther@suse.de>
10267         PR tree-optimization/65204
10268         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
10269         takens for bit-CCP.
10271 2015-04-13  Richard Biener  <rguenther@suse.de>
10273         PR target/65660
10274         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
10275         and cond_not_taken_branch_cost to 4 and 2.
10276         (bdver2_cost): Likewise.
10277         (bdver3_cost): Likewise.
10278         (bdver4_cost): Likewise.
10280 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10282         * hash-table.h (hash_table constructor): Add mem stats.
10283         (alloc_entries): Likewise.
10285 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10287         * ipa-cp.c (ipcp_driver): Relase prev_edge.
10288         * passes.c (execute_one_pass): Only add transform if pass has one.
10290 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
10292         * config/i386/i386.c (ix86_option_override_internal): Don't set
10293         -fprefetch-loop-arrays if optimizing for size.
10295 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10296             Gerald Pfeifer  <gerald@pfeifer.com>
10298         * doc/contrib.texi (Contributors): Add Martin Jambor and
10299         Michael Matz.
10301 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
10303         * BASE-VER: Set to 6.0.0.
10305         PR tree-optimization/65747
10306         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
10307         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
10309 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10311         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10312         sentence.  Improve grammar.
10314 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10316         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10318 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10320         PR ipa/65743
10321         * ipa-inline-transform.c (speculation_removed): Remove static var.
10322         (check_speculations): New function.
10323         (clone_inlined_nodes): Do not check spculations.
10324         (inline_call): Call check_speculations.
10325         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10326         consider non-invariants.
10328 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10329             Martin Liska  <mliska@suse.cz>
10331         PR ipa/65722
10332         * ipa-icf.c (sem_item::compare_cgraph_references): function and
10333         variable can not match.
10334         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10335         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10337 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
10339         PR tree-optimization/65735
10340         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10341         Remove visited_phis argument, add visited_bbs, avoid recursing into the
10342         same bb rather than just into the same phi node.
10343         (thread_through_normal_block): Adjust caller.
10345 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10347         * doc/contrib.texi (Contributors): Add Ira Rosen.
10349 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
10351         * gcov.c (find_source): Fix miswording in error message.
10352         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10353         (ix86_expand_sse_comi_round): Fix typo in error message.
10355 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10357         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10359 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
10361         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10363 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10365         PR target/65710
10366         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10367         Print bad_spills_num and insn_pseudos_num.
10369 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10371         PR target/65694
10372         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10373         when creating +1 values for SImode.
10375 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10377         PR target/65729
10378         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10379         assert.
10381 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
10382             Iain Sandoe  <iain@codesourcery.com>
10384         PR target/65351
10385         * configure: Regenerate.
10387 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10389         PR target/65671
10390         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10392 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
10394         * doc/contrib.texi (Contributors): Add John Marino.
10396 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10398         PR tree-optimization/65709
10399         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10400         TREE_TYPE (TREE_TYPE (t)).
10402 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
10404         PR target/65710
10405         * lra-int.h (lra_bad_spill_regno_start): New.
10406         * lra.c (lra_bad_spill_regno_start): New.
10407         (lra): Set up lra_bad_spill_regno_start.  Set up
10408         lra_constraint_new_regno_start unconditionally.
10409         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10410         spill preferences.
10412 2015-04-09  Marek Polacek  <polacek@redhat.com>
10413             Jakub Jelinek  <jakub@redhat.com>
10415         PR middle-end/65554
10416         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10417         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10418         of STRIP_NOPS.
10420 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
10422         PR rtl-optimization/65693
10423         * combine.c (is_parallel_of_n_reg_sets): Move outside of
10424         #ifndef HAVE_cc0.
10426 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
10428         PR target/65296
10429         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
10430         device specs file if "device-specs%s" didn't resolve to a path.
10432 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10434         PR target/65676
10435         * config/i386/i386.c (fixup_modeless_constant): New.
10436         (ix86_expand_args_builtin): Fixup modeless constant operand.
10437         (ix86_expand_round_builtin): Ditto.
10438         (ix86_expand_special_args_builtin): Ditto.
10439         (ix86_expand_builtin): Ditto.
10441 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10443         PR target/65693
10444         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
10445         any pow2 integer in between 2 and 0x80000000U inclusive.
10447 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
10449         PR rtl-optimization/65693
10450         * combine.c (is_parallel_of_n_reg_sets): Change first argument
10451         from an rtx_insn * to an rtx.
10452         (try_combine): Adjust both callers.  Use it once more.
10454 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10456         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
10457         (chkp_make_static_const_bounds): Search existing
10458         symbol by assembler name.  Use make_decl_one_only.
10459         (chkp_get_zero_bounds_var): Remove node search which
10460         is now performed in chkp_make_static_const_bounds.
10461         (chkp_get_none_bounds_var): Likewise.
10463 2015-04-08  Michael Witten  <mfwitten@gmail.com>
10465         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
10466         to an example.
10468 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10470         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
10472 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
10474         * doc/extend.texi (__sync Builtins): Fix grammar.
10476 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10478         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
10480 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10482         * varasm.c (emit_local): Move definition of align.
10484 2015-04-08  Julian Brown  <julian@codesourcery.com>
10486         * config/nvptx/mkoffload.c (process): Support variable mapping.
10488 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
10490         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
10491         alpha_links **.
10492         (alpha_write_one_linkage): Correct typo.
10494 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10496         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
10498 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
10500         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
10502 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
10504         * tree-chkp.h (chkp_insert_retbnd_call): New.
10505         * tree-chkp.c (chkp_insert_retbnd_call): New.
10506         * ipa-split.c (insert_bndret_call_after): Remove.
10507         (split_function): Use chkp_insert_retbnd_call.
10508         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
10509         bounds for instrumented functions.
10511 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
10513         PR ipa/65540
10514         * calls.c (initialize_argument_information): When producing tail
10515         call also turn SSA_NAMES passed by references to original PARM_DECLs
10517 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
10519         PR target/65648
10520         * lra-remat.c (do_remat): Process input and non-input insn
10521         registers separately.
10523 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
10525         PR debug/65678
10526         * valtrack.c (debug_lowpart_subreg): New function.
10527         (dead_debug_insert_temp): Use it.
10529         PR middle-end/65680
10530         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
10531         into signed HOST_WIDE_INT the same as negative bit_offset.
10533 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
10535         * ipa-comdats.c (ipa_comdats): Visit all thunks
10536         to set proper comdat group.
10538 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10540         PR target/65489
10541         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
10542         on constants for NEON VSTRUCT modes.
10544 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
10545             Iain Sandoe  <iain@codesourcery.com>
10547         PR target/65351
10548         * configure: Regenerate.
10550 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10552         PR target/65614
10553         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
10554         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
10555         that LFD is used to load double constants instead of LFS.  Add
10556         defaults for all costs structures.  Add comments for missing
10557         initialization fields.
10558         (size32_cost): Likewise.
10559         (size64_cost): Likewise.
10560         (rs64a_cost): Likewise.
10561         (mpccore_cost): Likewise.
10562         (ppc403_cost): Likewise.
10563         (ppc405_cost): Likewise.
10564         (ppc440_cost): Likewise.
10565         (ppc476_cost): Likewise.
10566         (ppc601_cost): Likewise.
10567         (ppc603_cost): Likewise.
10568         (ppc604_cost): Likewise.
10569         (ppc604e_cost): Likewise.
10570         (ppc620_cost): Likewise.
10571         (ppc630_cost): Likewise.
10572         (ppccell_cost): Likewise.
10573         (ppc750_cost): Likewise.
10574         (ppc7450_cost): Likewise.
10575         (ppc8540_cost): Likewise.
10576         (ppce300c2c3_cost): Likewise.
10577         (ppce500mc_cost): Likewise.
10578         (ppce500mc64_cost): Likewise.
10579         (ppce5500_cost): Likewise.
10580         (ppce6500_cost): Likewise.
10581         (titan_cost): Likewise.
10582         (power4_cost): Likewise.
10583         (power6_cost): Likewise.
10584         (power7_cost): Likewise.
10585         (power8_cost): Likewise.
10586         (ppca2_cost): Likewise.
10587         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
10589         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
10590         instead of XXLOR to copy SFmode to clear out dirty bits created
10591         when SFmode denormals are generated.
10592         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
10593         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
10595 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
10597         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
10598         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
10599         * config/aarch64/aarch64-tune.md: Regenerate.
10601 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
10603         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
10604         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
10605         * config/arm/arm-cores.def (exynos-m1): New core.
10606         * config/arm/arm-tune.md: Regenerate.
10607         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
10608         * config/arm/bpabi.h: Likewise.
10610 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
10612         * ipa-cp (set_single_call_flag): Remove too
10613         restrictive assert.
10615 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
10617         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
10618         GOMP_offload_unregister from the destructor.
10620 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
10622         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
10623         flags for instrumentation thunk.
10624         (chkp_produce_thunks): Likewise.
10626 2015-04-05  Martin Liska  <mliska@suse.cz>
10628         PR ipa/65665
10629         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
10630         has computed data structure.
10631         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10633 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
10635         * invoke.texi (inline-unit-growth): Increase growth to 20%
10636         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
10638 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
10640         PR target/65647
10641         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
10642         value checking.
10643         (lra_rematerialization_iter): New.
10644         * lra.c (lra): Initialize lra_rematerialization_iter.
10645         Stop updating lra_constraint_new_regno_start after switching of
10646         inheritance and rematerialization.
10647         * lra-remat.c (lra_rematerialization_iter): New.
10648         (lra_remat): Add printing pass iteration.  Do rematerialization
10649         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
10651 2015-04-04  Richard Biener  <rguenther@suse.de>
10653         PR tree-optimization/64909
10654         PR tree-optimization/65660
10655         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
10656         to take a cost vector for scalar iteration cost.
10657         (vect_get_single_scalar_iteration_cost): Likewise.
10658         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
10659         Compute the scalar iteration cost into a cost vector.
10660         (vect_get_known_peeling_cost): Use the scalar cost vector to
10661         account for the cost of the peeled iterations.
10662         (vect_estimate_min_profitable_iters): Likewise.
10663         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10664         Likewise.
10666 2015-04-04  Alan Modra  <amodra@gmail.com>
10668         PR target/65576
10669         PR target/65240
10670         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
10671         0.0 constant unless TARGET_VSX.
10672         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
10673         alternative.
10675 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10677         PR ipa/65654
10678         * ipa-inline-transform.c (inline_call): Skip sanity check to work
10679         around the ICE
10681 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10683         PR ipa/65655
10684         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
10685         speculative indirect edges to avoid ordering issue.
10687 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10689         PR ipa/65076
10690         * ipa-inline.c (edge_badness): Add combined size to the denominator.
10692 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
10694         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
10695         TYPE_ARTIFICIAL on the .omp_data* types.
10697 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10699         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
10700         instrumentation thunks.
10702 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10704         * config/i386/i386.c (ix86_expand_call): Avoid nested
10705         PARALLEL in returned call value.
10707 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10709         * lto-cgraph.c (input_cgraph_1): Always link instrumented
10710         assembler name with original one.
10712 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10714         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
10716 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10718         Revert parts of r216820.
10719         * config/i386/i386.md (movqi_internal): Correct type calculation
10720         for alternatives 3 and 5.
10722 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
10724         PR preprocessor/61977
10725         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
10726         predefine __vector/__bool/__pixel macros nor context sensitive
10727         macros for CLK_ASM.
10728         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
10730 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
10732         * config/pa/pa.c (pa_output_move_double): Directly handle register
10733         indexed memory operand.  Simplify handling of scaled register indexed
10734         memory operands.
10736 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10738         PR driver/65444
10739         * config/i386/linux-common.h (MPX_SPEC): New.
10740         (CHKP_SPEC): Add MPX_SPEC.
10741         * doc/invoke.texi (-fcheck-pointer-boudns): Document
10742         possible issues with '-z bndplt' support in linker.
10744 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10746         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
10747         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
10748         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
10749         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
10750         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
10752 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
10754         * config/i386/sync.md (UNSPEC_MOVA): Remove.
10755         (atomic_load<mode>): Change operand 0 predicate to
10756         nonimmediate_operand and fix up the destination when needed.
10757         Use UNSPEC_LDA.
10758         (atomic_loaddi_fpu): Use UNSPEC_LDA.
10759         (atomic_store<mode>): Change operand 1 predicate to
10760         nonimmendate_operand and move the source to register when needed.
10761         Use UNSPEC_STA.
10762         (atomic_store<mode>_1): Use UNSPEC_STA.
10763         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
10764         Fix moves from memory operand.  Use UNSPEC_STA.
10766 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10768         * expmed.c (strict_volatile_bitfield_p): Check that the access will
10769         not cross a MODESIZE boundary.
10770         (store_bit_field, extract_bit_field): Added assertions in the
10771         strict volatile bitfields code path.
10773 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10775         PR target/65624
10776         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10777         Increase args array size by one to avoid buffer overflow.
10779 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10781         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10782         split_part.
10783         * ipa-inline.c (edge_badness): Add wrapper penalty.
10784         (sum_callers): Move up.
10785         (inline_small_functions): Set single_caller.
10786         * ipa-inline.h (inline_summary): Add single_caller.
10787         * ipa-split.c (split_function): Set split_part.
10788         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
10789         * cgraph.h (cgraph_node): Add split_part.
10791 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
10793         PR target/58945
10794         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10795         Do not split operands 0 and operands 2 to halfmode.
10796         (atomic_compare_and_swap<mode>): Update for
10797         atomic_compare_and_swap<dwi>_doubleword changes.
10799 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10801         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
10802         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
10803         no caching is done.
10805 2015-03-31  Martin Liska  <mliska@suse.cz>
10807         PR ipa/65557
10808         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
10809         has already filled up function summary.
10810         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10812 2015-03-31  Richard Biener  <rguenther@suse.de>
10814         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
10815         of types.
10817 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10819         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
10820         nested functions.
10821         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
10822         (s390_asm_output_function_label): Adapt to new signature of
10823         s390_function_num_hotpatch_hw
10824         Optimise the code generating assembler output.
10825         Add comments to assembler file.
10827 2015-03-31  Richard Biener  <rguenther@suse.de>
10829         PR middle-end/65626
10830         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
10831         of the noreturn call so it is last and cleanup_control_flow_bb
10832         can do the CFG part.
10834 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
10836         PR target/65531
10837         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
10838         same_comdat_group for external symbols.
10839         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
10840         infinite same_comdat_group traversal loop.
10842 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
10844         PR plugins/61176
10845         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
10846         automatically to $headers.
10848 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
10850         PR ipa/65610
10851         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
10852         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
10853         function.
10854         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
10855         Use it.
10856         * ipa-prop.c (param_type_may_change_p): Likewise.
10857         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
10858         (remove_unused_scope_block_p): Add in_ctor_dtor_block
10859         argument.  Before inlining, preserve
10860         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
10861         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
10862         recursive calls.
10863         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
10865 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10867         PR ipa/65076
10868         * ipa-inline.c (edge_badness): Base denominator on callee's
10869         grwoth squared.
10871 2015-03-27  Martin Jambor  <mjambor@suse.cz>
10873         PR ipa/65478
10874         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
10875         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
10876         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
10877         node_calling_single_call.
10878         * ipa-cp.c (count_callers): New function.
10879         (set_single_call_flag): Likewise.
10880         (initialize_node_lattices): Count callers and set single_flag_call if
10881         necessary.
10882         (incorporate_penalties): New function.
10883         (good_cloning_opportunity_p): Use it, dump new flags.
10884         (propagate_constants_topo): Set node_within_scc flag if appropriate.
10885         * doc/invoke.texi (ipa-cp-recursion-penalty,
10886         ipa-cp-single-call-pentalty): Document.
10888 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10890         PR ipa/65588
10891         * symtab.c (symtab_node::get_partitioning_class): Register vars
10892         are duplicated.
10893         * varpool.c (symbol_table::output_variables) Do not assemble unefined
10894         decls for non-symbols.
10896 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10898         PR target/65248
10899         * output.h (default_binds_local_p_2): New.
10900         * varasm.c (default_binds_local_p_2): Renamed to ...
10901         (default_binds_local_p_3): This.  Don't return true on protected
10902         data symbol if protected data may be external.
10903         (default_binds_local_p): Use default_binds_local_p_3.
10904         (default_binds_local_p_1): Likewise.
10905         (default_binds_local_p_2): New.
10906         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
10907         default_binds_local_p_2 if TARGET_MACHO is undefined.
10909 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
10911         PR target/65593
10912         * config/i386/i386.c (legitimize_pic_address): If base
10913         is SYMBOL_REF or LABEL_REF using %rip addressing, force
10914         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
10916 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10918         PR target/65531
10919         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
10920         comdat groups.
10922 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10924         PR ipa/65600
10925         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
10926         of optimized out indirect call.
10927         (redirect_to_unreachable): Always build symbol table node for
10928         BUILT_IN_UNREACHABLE
10930 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
10932         PR target/65407
10933         * ira-costs.c (record_reg_classes): Process all constraint string
10934         containing 0-9.
10936 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
10938         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
10939         memory_operand.
10941         PR target/65052
10942         * config/c6x/constraints.md (S3): New constraint.
10943         * config/c6x/c6x.md (real_jump): Use it.
10945 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10947         PR middle-end/65595
10948         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
10949         do redirection if the call is not optimized out.
10951 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
10953         PR target/65495
10954         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
10955         (fchkp-check-incomplete-type): Add LTO.
10956         (fchkp-zero-input-bounds-for-main): Likewise.
10957         (fchkp-first-field-has-own-bounds): Likewise.
10958         (fchkp-narrow-bounds): Likewise.
10959         (fchkp-narrow-to-innermost-array): Likewise.
10960         (fchkp-use-static-bounds): Likewise.
10961         (fchkp-use-static-const-bounds): Likewise.
10962         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10964 2015-03-27  Marek Polacek  <polacek@redhat.com>
10966         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
10968 2015-03-27  Marek Polacek  <polacek@redhat.com>
10970         PR sanitizer/65583
10971         * ubsan.c (ubsan_create_edge): New function.
10972         (instrument_bool_enum_load): Call it.
10973         (instrument_nonnull_arg): Likewise.
10974         (instrument_nonnull_return): Likewise.
10975         (instrument_object_size): Likewise.
10977 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10979         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
10980         auto_vec.
10982 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10984         PR lto/65536
10985         * lto-streamer.h (class lto_location_cache): New.
10986         (struct data_in): Add location_cache.
10987         (lto_input_location): Update prototype.
10988         (stream_input_location_now): New.
10989         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
10990         pointer to location.
10991         (stream_input_location): Update.
10992         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
10993         (warn_odr): Apply location cache before warning.
10994         (lto_input_location): Update prototype.
10995         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
10996         Use stream_input_location_now.
10997         * lto-streamer-in.c (lto_location_cache::current_cache): New static
10998         variable.
10999         (lto_location_cache::cmp_loc): New function.
11000         (lto_location_cache::apply_location_cache): New function.
11001         (lto_location_cache::accept_location_cache): New function.
11002         (lto_location_cache::revert_location_cache): New function.
11003         (lto_location_cache::input_location): New function.
11004         (lto_input_location): Do location caching.
11005         (stream_input_location_now): New function.
11006         (input_eh_region, input_struct_function_base): Use
11007         stream_input_location_now.
11008         (lto_data_in_create): use new.
11009         (lto_data_in_delete): Use delete.
11010         * tree-streamer-in.c (unpack_ts_block_value_fields,
11011         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
11012         lto_input_ts_exp_tree_pointers): Update for cached location api.
11014 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11016         PR ipa/65076
11017         * passes.def: Add pass_nothrow.
11018         * ipa-pure-const.c: (pass_data_nothrow): New.
11019         (pass_nothrow): New.
11020         (pass_nothrow::execute): New.
11021         (make_pass_nothrow): New.
11022         * tree-pass.h (make_pass_nothrow): Declare.
11024 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11026         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
11027         edge to change by speculation resolution or redirection.
11028         (edge_set_predicate): Likewise.
11029         (inline_summary_t::duplicate): Likewise.
11030         (remap_edge_summaries): Likewise.
11032 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11034         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
11035         New macros.
11036         (can_inline_edge_p): Relax option matching for always inline functions.
11038 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
11040         PR target/65561
11041         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
11042         Check operand 4 and operand 0 for equality.
11043         (avx512f_vextract<shuffletype>32x4_1_maskm):
11044         Check operand 6 and operand 0 for equality.
11045         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
11046         for equality.
11047         (vec_extract_hi_<mode>_maskm): Ditto.
11049 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11051         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
11052         dead calls back to live.
11053         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
11054         cross check to ...
11055         (cgraph_node::verify_node): ... here; verify only callee edges,
11056         not caller.
11057         * cif-code.def (CILK_SPAWN): New code.
11059 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11061         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
11062         (edge_set_predicate): Use it to mark unreachable edges.
11063         (inline_summary_t::duplicate): Remove unnecesary code.
11064         (remap_edge_summaries): Likewise.
11065         (dump_inline_summary): Report contains_cilk_spawn.
11066         (compute_inline_parameters): Compute contains_cilk_spawn.
11067         (inline_read_section, inline_write_summary): Stream
11068         contains_cilk_spawn.
11069         * ipa-inline.c (can_inline_edge_p): Do not touch
11070         DECL_STRUCT_FUNCTION that may not be available;
11071         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
11072         remove check for callee_fun->can_throw_non_call_exceptions and
11073         replace it by optimization attribute check; check for flag_exceptions.
11074         * ipa-inline-transform.c (inline_call): Maintain
11075         DECL_FUNCTION_PERSONALITY
11076         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
11078 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
11080         PR tree-optimization/65551
11081         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
11082         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
11084 2015-03-26  Richard Biener  <rguenther@suse.de>
11086         PR middle-end/65555
11087         * tree-cfg.c (verify_gimple_call): Do not require a call to
11088         have no LHS if it wasn't recognized as control altering yet.
11090 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
11092         PR tree-optimization/64715
11093         * passes.def: Add another instance of pass_object_sizes before ccp1.
11094         * tree-object-size.c (pass_object_sizes::execute): In
11095         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
11096         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
11097         __bos result and the computed constant.  Remove redundant
11098         checks, obsoleted by gimple_call_builtin_p test.
11100         * var-tracking.c (variable_tracking_main_1): Don't track
11101         variables for targetm.no_register_allocation targets.
11103 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
11105         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
11106         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
11108 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11110         PR target/65569
11111         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
11112         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
11113         0.0 is correctly setup.
11114         (extenddftf2_internal): Likewise.
11116 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
11118         PR tree-optimization/65177
11119         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
11120         (bb_in_bbs): New.
11121         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
11122         edges not adjacent on the path to the original code.
11124 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
11126         PR bootstrap/65537
11127         * doc/install.texi (Building a native compiler): Document new
11128         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
11129         configuration assumes that the host supports the linker plugin.
11131 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
11133         PR target/65508
11134         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
11135         chain for generated call.
11137 2015-03-25  Richard Biener  <rguenther@suse.de>
11139         * passes.c (pass_manager::execute_early_local_passes): Guard
11140         execution of pass_chkp_instrumentation_passes with
11141         flag_check_pointer_bounds.
11142         (pass_chkp_instrumentation_passes::gate): Likewise.
11144 2015-03-25  Martin Liska  <mliska@suse.cz>
11146         PR tree-optimization/65538
11147         * symbol-summary.h (function_summary::~function_summary):
11148         Relese memory for allocated summaries.
11149         (function_summary::release): New function.
11151 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
11153         PR lto/65515
11154         * lto-streamer-out.c (DFS::worklist): New struct.
11155         (DFS::worklist_vec): New data member.
11156         (DFS::next_dfs_num): Remove.
11157         (DFS::DFS): Rewritten using worklist instead of recursion,
11158         using most of code from DFS::DFS_write_tree.
11159         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
11160         pass it to DFS_write_tree calls.
11161         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
11162         quick initial checks push it into worklist_vec and return.
11164 2015-03-25  Richard Biener  <rguenther@suse.de>
11166         PR middle-end/65519
11167         * genmatch.c (expr::gen_transform): Re-write to avoid
11168         using gimple_build.
11170 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
11172         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
11174 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
11176         * config/arm/arm.opt (print_tune_info): New option.
11177         * config/arm/arm.c (arm_print_tune_info): New function.
11178         (arm_file_start): Call arm_print_tune_info.
11179         * config/arm/arm-protos.h (struct tune_params): Add comment.
11180         * doc/invoke.texi (@item -mprint-tune-info): New item.
11181         (-mtune): mention it in ARM Option Summary.
11183 2015-03-25  DJ Delorie  <dj@redhat.com>
11185         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
11186         correct clause.
11188 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
11189             Martin Liska  <mliska@suse.cz>
11191         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
11192         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
11193         (sem_item::add_type): New function.
11194         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
11195         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
11196         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
11197         (sem_function::equals_wpa): Fix typo.
11198         * ipa-icf.h (sem_item::add_type): New function.
11199         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
11200         order.
11202 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
11204         PR tree-optimization/65533
11205         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
11206         with swapped operands, call vect_free_slp_tree on
11207         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
11208         vector.
11210 2015-03-24  Richard Biener  <rguenther@suse.de>
11212         PR middle-end/65517
11213         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
11214         for fixup if necessary.
11216 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
11218         * doc/extend.texi (Function Attributes): Add @cindex entries
11219         for all attributes and regularize their format.  Delete text
11220         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
11221         information about "eightbit_data", "tiny_data", and "model"
11222         variable attributes to the Variable Attributes section.  Fix
11223         some obvious typos and copy-editing issues.
11224         (Variable Attributes, Type Attributes): Likewise add/fix
11225         @cindex entries for all attributes.
11227 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
11229         PR target/65523
11230         * tree-chkp.c (chkp_build_returned_bound): Ignore
11231         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
11233 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
11235         PR target/65505
11236         * config/sh/predicates.md (simple_mem_operand,
11237         displacement_mem_operand): Add test for reg.
11238         (short_displacement_mem_operand): Test for displacement_mem_operand
11239         before invoking sh_disp_addr_displacement.
11240         * config/sh/constraints.md (Sdd, Sra): Simplify.
11241         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
11242         Remove redundant displacement_mem_operand tests.
11244 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
11246         PR target/65296
11247         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
11248         the same -mmcu=MCU more than once.
11250 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
11252         PR bootstrap/65522
11253         * ipa-devirt.c: Remove duplicate demangle.h include.
11255         PR target/65504
11256         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
11257         on the pseudo.
11258         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
11259         REG_POINTER on *destptr after adjusting it for prologue size.
11261         PR ipa/65521
11262         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
11263         ultimate_alias_target ()->order ints instead of
11264         ultimate_alias_target () pointers.
11266 2015-03-23  Richard Biener  <rguenther@suse.de>
11268         PR tree-optimization/65518
11269         * tree-vect-stmts.c (vectorizable_load): Reject single-element
11270         interleaving cases we generate absymal code for.
11272 2015-03-23  Richard Biener  <rguenther@suse.de>
11274         PR tree-optimization/65494
11275         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
11276         matches here.
11277         (vect_analyze_slp_instance): But do that here, always and once.
11279 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11281         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
11282         adding T or multiplying by T+1 and subracting T.
11284 2015-03-22  Jeff Law  <law@redhat.com>
11286         PR rtl-optimization/64317
11287         * Makefile.in (OBJS): Add gcse-common.c
11288         * gcse.c: Include gcse-common.h
11289         (struct modify_pair_s): Move structure definition to gcse-common.h
11290         (compute_transp): Move function to gcse-common.c.
11291         (canon_list_insert): Similarly.
11292         (record_last_mem_set_info): Break out some code and put it into
11293         gcse-common.c.  Call into the new common code.
11294         (compute_local_properties): Pass additional arguments to compute_transp.
11295         * postreload-gcse.c: Include gcse-common.h and df.h
11296         (modify_mem_list_set, blocks_with_calls): New variables.
11297         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
11298         (get_bb_avail_insn): Pass in the expression index too.
11299         (alloc_mem): Allocate memory for the new bitmaps and lists.
11300         (free_mem): Free memory for the new bitmaps and lists.
11301         (insert_expr_in_table): Record a bitmap index for each entry we
11302         add to the table.
11303         (record_last_mem_set_info): Call into common code in gcse-common.c.
11304         (get_bb_avail_insn): If no available insn was found in the requested
11305         BB.  If BB has a single predecessor, see if the expression is
11306         transparent in BB and available in that single predecessor.
11307         (compute_expr_transp): New wrapper for compute_transp.
11308         (eliminate_partially_redundant_load): Pass expression's bitmap_index
11309         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
11310         (gcse_after_reload_main): If there are elements in the hash table,
11311         then compute transparency for all the elements in the hash table.
11312         * gcse-common.h: New file.
11313         * gcse-common.c: New file.
11315 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
11317         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11318         as an adjective.
11319         (System Headers): Likewise.
11320         (Ifdef): Likewise.
11321         (Traditional macros): Likewise.
11322         (Invocation): Likewise.
11323         (Option Index): Likewise.
11324         * doc/cppopts.texi (-M): Likewise.
11325         (-finput-charset): Likewise.
11326         (--help): Likewise.
11327         * doc.invoke.texi (AVR Options): Likewise.
11328         (V850 Options): Likewise.
11330 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
11332         PR ipa/65475
11333         * ipa-devirt.c: Include demangle.h
11334         (odr_type_d): Add field rtti_broken.
11335         (odr_subtypes_equivalent_p): Do not require name to match.
11336         (compare_virtual_tables): Fix typo; if type already has ODR violation,
11337         bypass the tests; be ready for function referneces in vtables that are
11338         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11339         (warn_odr): Give up for nameless types.
11340         (warn_types_mismatch): Report mismatch in mangled names;
11341         report mismatch in anonymous namespaces; look into component types to
11342         give useful error; report when mismatch is dragged in from other ODR
11343         type.
11344         (odr_types_equivalent_p): Match types for being polymorphic; avoid
11345         duplicated diagnostics.
11346         (add_type_duplicate): Reorder checks so more informative ones come
11347         first; fix typo; do not output "the extra base is defined here" when
11348         we did not warn.
11349         (BINFO_N_BASE_BINFOS): Relax sanity check.
11351 2015-03-22  Martin Liska  <mliska@suse.cz>
11352             Jakub Jelinek  <jakub@redhat.com>
11354         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11355         masks that can potentially include a builtin.
11356         (ix86_add_new_builtins): Introduce fast filter for isa values
11357         that cannot trigger builtin inclusion.
11359 2015-03-22  Martin Liska  <mliska@suse.cz>
11361         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11362         (sem_item::update_hash_by_local_refs): Likewise.
11363         (sem_variable::get_hash): Empty line is fixed.
11364         (sem_item_optimizer::execute): Include adding of hash references.
11365         (sem_item_optimizer::update_hash_by_addr_refs): New function.
11366         (sem_item_optimizer::build_hash_based_classes): Use local hash.
11367         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11368         (sem_item::update_hash_by_local_refs): Likewise.
11370 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11372         PR ipa/65502
11373         * ipa-comdats.c (enqueue_references): Walk through thunks.
11374         (ipa_comdats): Likewise.
11375         (set_comdat_group_1): New function.
11377 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11379         PR ipa/65475
11380         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11381         non-polymorphic
11383 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
11384             Gerald Pfeifer  <gerald@pfeifer.com>
11386         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11388 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11389             Sandra Loosemore  <sandra@codesourcery.com>
11391         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11392         function parameter declaration.
11393         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11394         Update arguments to nios2_adjust_call_address().
11395         (sibcall_internal): Rename from *sibcall.
11396         (sibcall_value_internal): Rename from *sibcall_value.
11397         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11398         (nios2_large_got_address): Add target temp reg parameter.
11399         (nios2_got_address): Adjust call to nios2_large_got_address, add
11400         force_reg around it.
11401         (nios2_load_pic_address): Add target temp reg parameter, replace call
11402         to nios2_got_address with corresponding code.
11403         (nios2_legitimize_constant_address): Update call to
11404         nios2_load_pic_address.
11405         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11406         to use temp reg for PIC loading purposes.
11407         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11408         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11409         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11411 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11413         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11414         usage of "the @option{...}".
11415         (-Wopenmp-simd): Likewise.
11416         (-fsanitize-recover): Likewise.
11417         (-fsanitize-undefined-trap-on-error): Likewise.
11418         (-flto): Likewise.
11419         (tracer-dynamic-coverage-feedback): Likewise.
11420         (reorder-block-duplicate-feedback): Likewise.
11421         (loop-unroll-jam-size): Likewise.
11422         (-B): Likewise.
11423         (-I-): Likewise.
11424         (-mabs=legacy): Likewise.
11425         (-mupper-regs-df): Likewise.
11426         (-mupper-regs-sf): Likewise.
11427         (-mpointers-to-nested-functions): Likewise.
11429 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11431         * doc/extend.texi (Cilk Plus Builtins): Add markup.
11433 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11435         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
11436         additional index entries and cross-references.
11437         (-fchkp-check-incomplete-type): Likewise.
11438         (-fchkp-first-field-has-own-bounds): Likewise.
11439         (-fchkp-narrow-to-innermost-array): Likewise.
11440         (-fchkp-use-fast-string-functions): Likewise.
11441         (-fchkp-use-nochk-string-functions): Likewise.
11442         (-fchkp-use-static-const-bounds): Likewise.
11443         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11444         (-fchkp-instrument-marked-only): Likewise.
11445         (-fchkp-use-wrappers): Likewise.
11446         (-static-libmpx): Likewise.
11447         (-static-libmpxwrappers): Likewise.
11448         * doc/extend.texi (bnd_legacy): Likewise.
11449         (bnd_instrument): Likewise.
11450         (bnd_variable_size): Likewise.
11451         (Pointer Bounds Checker builtins): Likewise.
11453 2015-03-21  Tom de Vries  <tom@codesourcery.com>
11455         PR tree-optimization/65458
11456         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
11457         * cgraph.h (cgraph_node): Add parallelized_function field.
11458         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
11459         (input_overwrite_node): Read parallelized_function field.
11460         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
11461         parallelized_function on cgraph_node for child_fn.
11462         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
11463         Remove include of gt-tree-parloops.h.
11464         (parallelized_functions): Remove static variable.
11465         (parallelized_function_p): Rewrite using parallelized_function field of
11466         cgraph_node.
11467         (create_loop_fn): Remove adding to parallelized_functions.
11468         * Makefile.in (GTFILES): Remove tree-parloops.c
11470 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
11472         PR rtl-optimization/64366
11473         * lra.c (lra_update_insn_regno_info): Consider regs in
11474         CALL_INSN_FUNCTION_USAGE memory.
11476 2015-03-20  Richard Biener  <rguenther@suse.de>
11478         PR middle-end/64715
11479         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
11480         for type comparison and gcc_checking_assert.
11481         (chrec_fold_plus_poly_poly): Likewise.
11482         (chrec_fold_multiply_poly_poly): Likewise.
11483         (chrec_convert_1): Likewise.
11484         * gimplify.c (gimplify_expr): Remove premature folding of
11485         &X + CST to &MEM[&X, CST].
11487 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11489         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
11490         already is final.
11491         (ipa_inline): Recompute inline_failed codes.
11492         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
11493         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
11494         CIF_FINAL_ERROR.
11496 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
11498         PR rtl-optimization/60851
11499         * recog.c (constrain_operands): Accept a pseudo register before reload
11500         for LRA enabled targets.
11502 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
11504         PR target/65240
11505         * config/rs6000/predicates.md (easy_fp_constant): Remove special
11506         -ffast-math handling that kept non-0 constants live in the RTL
11507         until reload.  Remove logic testing the number of instructions it
11508         took to create a constant in a GPR that was never used, due to a
11509         test for soft-float earlier.
11510         (memory_fp_constant): Delete, no longer used.
11512         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
11513         alternatives for loading non-0 constants into GPRs for hard
11514         floating point that is no longer needed due to changes in
11515         easy_fp_constant.  Add support for loading 0.0 into GPRs.
11516         (mov<mode>_hardfloat32): Likewise.
11517         (mov<mode>_hardfloat64): Likewise.
11518         (mov<mode>_64bit_dm): Likewise.
11519         (movtd_64bit_nodm): Likewise.
11520         (pre-reload move FP constant define_split): Delete define_split,
11521         since it is no longer used.
11522         (extenddftf2_internal): Remove GHF constraints that are not valid
11523         for extenddftf2.
11525 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
11527         PR rtl-optimization/63491
11528         * lra-constraints.c (check_and_process_move): Use src instead of
11529         sreg.  Remove some dead code.
11531 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
11533         PR ipa/65380
11534         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
11535         (sem_variable::merge): Likewise.
11537 2015-03-19  Martin Liska  <mliska@suse.cz>
11539         PR ipa/65465
11540         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
11541         all fields of cgraph_thunk_info.
11543 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
11545         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
11546         clone instrumented thunks.
11548 2015-03-19  Richard Biener  <rguenther@suse.de>
11550         Revert
11551         2015-03-10  Richard Biener  <rguenther@suse.de>
11553         PR middle-end/63155
11554         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11555         * tree-ssa-coalesce.c: Include timevar.h.
11556         (attempt_coalesce): Handle graph being NULL.
11557         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11558         Split out abnormal coalescing to ...
11559         (perform_abnormal_coalescing): ... this function.
11560         (coalesce_ssa_name): Perform abnormal coalescing without computing
11561         live/conflict.
11562         (verify_ssa_coalescing_worker): New function.
11563         (verify_ssa_coalescing): Likewise.
11565 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11566             Jakub Jelinek  <jakub@redhat.com>
11568         PR sanitizer/65400
11569         * tsan.c (instrument_gimple): Clear tail call flag on
11570         calls.
11572 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11574         PR sanitizer/65400
11575         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
11576         call in the return bb.
11577         (find_split_points): Add RETURN_BB argument, don't call
11578         find_return_bb.
11579         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
11580         if true append TSAN_FUNC_EXIT internal call after the call to
11581         the split off function.
11582         (execute_split_functions): Call find_return_bb here.
11583         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
11584         Adjust find_split_points and split_function calls.
11586 2015-03-18  DJ Delorie  <dj@redhat.com>
11588         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
11589         (iorqi3_virt): Likewise.
11591 2015-03-18  Tom de Vries  <tom@codesourcery.com>
11593         * tree-parloops.c (parallelize_loops): Make static.
11594         * tree-parloops.h (parallelize_loops): Remove extern declaration.
11596 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
11598         PR middle-end/64491
11599         Revert:
11600         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
11602         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
11603         condition would be removed due to undefined behaviour.
11605 2015-03-18  Martin Liska  <mliska@suse.cz>
11607         PR ipa/65432
11608         * cgraph.c (cgraph_node::get_create): Remove unnecessary
11609         xstrdup_for_dump wrapper.
11610         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
11611         sem_item::name.
11612         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
11613         with xstrdup_for_dump.
11614         (sem_variable::equals): Likewise.
11615         (sem_item_optimizer::read_section): Use symtab_node::name instead of
11616         sem_item::name.
11617         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
11618         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
11619         symtab_node::asm_name with xstrdup_for_dump.
11620         (congruence_class::dump): Use symtab_node::name instead of
11621         sem_item::name.
11622         * ipa-icf.h (symtab_node::name): Remove.
11623         (symtab_node::asm_name): Likewise.
11625 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
11627         PR tree-optimization/65450
11628         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
11629         function.
11630         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
11631         it instead of duplicate_ssa_name_ptr_info.
11633         PR target/65222
11634         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
11636 2015-03-18  Richard Biener  <rguenther@suse.de>
11638         * tree-data-ref.h (struct access_matrix): Remove.
11639         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11640         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11641         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
11642         (am_vector_index_for_loop): Likewise.
11643         (struct data_reference): Remove access_matrix member.
11644         (DR_ACCESS_MATRIX): Remove.
11645         (lambda_vector_new): Add comment.
11646         (lambda_matrix_new): Use XOBNEWVEC.
11648 2015-03-18  Richard Biener  <rguenther@suse.de>
11650         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
11651         (pass_ch::execute): Cleanup the CFG only if we did sth.
11652         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
11654 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11656         * expmed.c (synth_mult): Use std::swap instead of manually
11657         swapping algorithms.
11659 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
11661         PR target/65078
11662         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
11664 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
11666         PR target/65296
11667         * config/avr/avr.opt (-nodevicelib): New option.
11668         * doc/invoke.texi (AVR Options): Document it.
11669         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
11670         libgcc.a, libc.a, libm.a.
11671         * config/avr/specs.h: Same.
11672         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
11673         which don't (directly) depend on the device.  Print more help.
11674         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
11675         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
11676         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
11677         case of an error.
11678         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
11679         for specs file name.
11680         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
11681         * config/avr/avr-mcus.def: Adjust initializers and comments.
11683 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
11685         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
11686         DECL_ONE_ONLY to check if decl is one only.
11687         * ipa-split.c (consider_split): Limit splitt of one only functions.
11689 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11691         PR tree-optimization/65427
11692         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
11693         functions.
11694         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
11696 2015-03-16  Marek Polacek  <polacek@redhat.com>
11698         * cgraph.h (add_new_static_var): Remove declaration.
11699         * varpool.c (add_new_static_var): Remove function.
11701 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11703         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
11704         instead of vec<tree> * with vec_alloc and release for args.
11705         Adjust all users.
11707         PR middle-end/65431
11708         * omp-low.c (delete_omp_context): Only splay_tree_delete
11709         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
11710         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
11712 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11714         PR sanitizer/64820
11715         * cfgexpand.c (align_base): New function.
11716         (alloc_stack_frame_space): Call it.
11717         (expand_stack_vars): Align prev_frame to be sure
11718         data->asan_vec elements aligned properly.
11720 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
11722         PR middle-end/65409
11723         * expr.c (store_field): Do not do a direct block copy if the source is
11724         a PARALLEL with BLKmode.
11726 2015-03-16  Tom de Vries  <tom@codesourcery.com>
11728         PR middle-end/65414
11729         Revert:
11730         2015-03-12  Tom de Vries  <tom@codesourcery.com>
11732         PR rtl-optimization/64895
11733         * lra-lives.c (check_pseudos_live_through_calls): Use
11734         actual_call_used_reg_set instead of call_used_reg_set, if available.
11736 2015-03-16  Alan Modra  <amodra@gmail.com>
11738         PR target/63150
11739         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
11740         Modify Z->r bswapdi splitter to use dest in place of scratch.
11741         In r->Z and Z->r bswapdi splitter rename word_high, word_low
11742         to word1, word2 and rearrange logic to suit.
11743         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
11744         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
11745         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
11746         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
11747         early clobber.
11749 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
11751         PR tree-optimization/65369
11752         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
11753         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
11754         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
11756         PR tree-optimization/65418
11757         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
11758         are casts in the first PLUS_EXPR operand, ensure tbias and
11759         *totallowp are in the inner type.
11761         PR rtl-optimization/65401
11762         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
11763         argument.  If true, adjust_address_nv of x with big-endian
11764         correction for the mode widening to GET_MODE (y).
11765         (make_field_assignment): Don't do MEM mode widening here.
11766         Use MEM_P instead of GET_CODE == MEM.
11768 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11770         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
11771         the external decls.
11773 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11775         PR target/64600
11776         * config/arm/arm.c (arm_gen_constant, AND case): Use
11777         ARM_SIGN_EXTEND when constructing AND mask.
11779 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11781         * graph.c (print_graph_cfg): Make function names visible and append
11782         parenthesis to it.  Also make groups of basic blocks belonging to the
11783         same function visible.
11785 2015-03-12  Richard Biener  <rguenther@suse.de>
11787         PR middle-end/44563
11788         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
11789         to avoid quadratic behavior with inline expansion splitting blocks.
11790         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
11791         with the successor if the predecessor will be merged with it.
11792         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
11793         entry block with its successor.
11795 2015-03-13  Richard Biener  <rguenther@suse.de>
11797         PR middle-end/44563
11798         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
11799         (cleanup_tree_cfg_1): Do not call it.
11800         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
11801         (fixup_noreturn_call): Mark the stmt as control altering.
11802         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
11803         here.
11804         (pass_data_fixup_cfg): Produce a dump file.
11805         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
11806         (need_noreturn_fixup): New global.
11807         (pass_dominator::execute): Fixup queued noreturn calls.
11808         (optimize_stmt): Queue calls that became noreturn for fixup.
11809         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
11810         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
11811         (el_to_fixup): New global.
11812         (eliminate_dom_walker::before_dom_childre): Queue calls that
11813         became noreturn for fixup.
11814         (eliminate): Fixup queued noreturn calls.
11815         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
11816         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
11817         (substitute_and_fold_dom_walker::before_dom_children): Queue
11818         alls that became noreturn for fixup.
11819         (substitute_and_fold): Fixup queued noreturn calls.
11821 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
11823         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
11824         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
11825         are building; for methods check ODR type of class they belong to if
11826         they may lead to a polymorphic call.
11827         (sem_function::compare_polymorphic_p): Be bit smarter about testing
11828         when function may lead to a polymorphic call.
11829         (sem_function::compare_type_list): Remove.
11830         (sem_variable::equals): Update use of compatible_types_p.
11831         (sem_variable::parse_tree_refs): Remove.
11832         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
11833         cdtor.
11834         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
11835         matching here.
11836         (func_checker::compatible_polymorphic_types_p): Break out from ...
11837         (unc_checker::compatible_types_p): ... here.
11838         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
11839         Declare.
11840         (unc_checker::compatible_types_p): Update.
11841         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
11842         Remove.
11844 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11846         PR rtl-optimization/65235
11847         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
11848         When first element of vec_concat is const_int, calculate its size
11849         using second element.
11851 2015-03-12  Richard Biener  <rguenther@suse.de>
11853         PR middle-end/65270
11854         * fold-const.c (operand_equal_p): Fix ordering of resetting
11855         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
11857 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11859         * config/s390/s390.c (s390_reorg): Move code to output nops after label
11860         to s390_reorg ().
11861         (s390_asm_output_function_label): Likewise.
11862         * config/s390/s390.c (s390_asm_output_function_label):
11863         Fix function label alignment with -mhtopatch.
11864         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
11865         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
11866         ("nop_2_byte"): New define_insn.
11867         ("nop_4_byte"): Likewise.
11868         ("nop_6_byte"): Likewise.
11869         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
11870         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
11872 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11874         PR target/65103
11875         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
11876         register.
11878 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11880         PR target/65044
11881         * toplev.c (process_options): Restrict Pointer Bounds Checker
11882         usage with Address Sanitizer.
11884 2015-03-12  Richard Biener  <rguenther@suse.de>
11886         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
11887         to split on.
11888         * omp-low.c (expand_omp_taskreg): Split block before removing
11889         the stmt.
11890         (expand_omp_target): Likewise.
11891         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
11892         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
11893         stmt to split_block.
11895 2015-03-12  Tom de Vries  <tom@codesourcery.com>
11897         PR rtl-optimization/64895
11898         * lra-lives.c (check_pseudos_live_through_calls): Use
11899         actual_call_used_reg_set instead of call_used_reg_set, if available.
11901 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11903         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
11904         (cgraph_node::remove): Likewise.
11905         (cgraph_node::get_untransformed_body): Likewise.
11906         * varpool.c (varpool_node::remove): Likewise.
11907         (varpool_node::get_constructor): Add sanity check.
11909 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
11911         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
11912         old GCC versions.
11913         (-fabi-compat-version): Likewise.
11914         (-ffriend-injection): Likewise.
11915         (-Wdeclaration-after-statement): Likewise.
11916         (-fomit-frame-pointer): Likewise.
11917         (-ftree-coalesce-inlined-vars): Likewise.
11918         (-fvisibility=): Likewise.
11919         * doc/extend.texi (Typeof): Likewise.
11920         (Zero Length): Likewise.
11921         (Escaped Newlines): Likewise.
11922         (Compound Literals): Likewise.
11923         (Function Attributes): Likewise.
11924         (Label Attributes): Likewise.
11925         (Type Attributes): Likewise.
11926         (Function Names): Likewise.
11927         (Other Builtins): Likewise.
11928         (Function Specific Option Pragmas): Likewise.
11929         (C++ Interface): Likewise.
11931 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
11933         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
11935 2015-03-11  Marek Polacek  <polacek@redhat.com>
11937         PR tree-optimization/65388
11938         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
11940 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11942         PR target/65296
11943         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
11944         * configure: Regenerate.
11945         * config.in: Regenerate.
11946         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
11947         [-mn-flash]: Document it.
11948         [__AVR_ARCH__]: Document avrtiny.
11950         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
11951         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
11952         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
11954 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11956         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
11958 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11960         PR target/65242
11961         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
11962         allow reloads of PLUS in floating point/VSX registers.
11964 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
11966         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
11967         crypto_sha256_fast.
11968         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
11970 2015-03-11  Richard Biener  <rguenther@suse.de>
11972         PR tree-optimization/65310
11973         * tree-sra.c (build_ref_for_offset): Also preserve larger
11974         alignment.
11976 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
11978         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
11980 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11982         PR target/65368
11983         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
11984         new define_expand.
11985         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
11987 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11989         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
11990         (sem_function::equals_wpa): ... here.
11992 2015-03-10  Marek Polacek  <polacek@redhat.com>
11993             Jakub Jelinek  <jakub@redhat.com>
11995         PR sanitizer/65367
11996         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
11997         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
11998         separately.
12000 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12002         PR target/65286
12003         * config/rs6000/t-linux: For powerpc64* target set
12004         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
12006 2015-03-10  Richard Biener  <rguenther@suse.de>
12008         PR middle-end/44563
12009         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
12010         for redirect_all_calls.
12012 2015-03-10  Marek Polacek  <polacek@redhat.com>
12014         * gdbinit.in (pcfun): Define and document.
12016 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
12018         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
12019         of libgomp-plugin.h.
12020         (find_target_compiler): Support a case when the path to gcc is
12021         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
12022         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
12023         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
12024         libgomp-plugin.h.
12025         (main): Use GCC_INSTALL_NAME as target_driver_name.
12026         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
12027         define.
12028         (mkoffload.o): Remove obsolete include path and defines.
12029         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
12031 2015-03-10  Richard Biener  <rguenther@suse.de>
12033         PR middle-end/63155
12034         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12035         * tree-ssa-coalesce.c: Include timevar.h.
12036         (attempt_coalesce): Handle graph being NULL.
12037         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12038         Split out abnormal coalescing to ...
12039         (perform_abnormal_coalescing): ... this function.
12040         (coalesce_ssa_name): Perform abnormal coalescing without computing
12041         live/conflict.
12042         (verify_ssa_coalescing_worker): New function.
12043         (verify_ssa_coalescing): Likewise.
12045 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12047         PR target/65296
12048         * config.gcc (extra_options) [avr]: Remove.
12049         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
12050         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
12051         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
12053         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
12054         (-mmcu=): Add Var and MissingArgError properties.
12055         (-march=): Remove.
12056         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
12057         * config/avr/t-multilib: Regenerate.
12058         * config/avr/specs.h: New file.
12059         * config/avr/driver-avr.c: New file.
12060         * config/avr/genopt.sh: Remove file.
12061         * config/avr/avr-tables.opt: Remove file.
12062         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
12063         * config/avr/avr-c.c: Same.
12064         * avr-arch.h: Same.
12065         (avr_current_device): Remove proto.
12066         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
12067         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
12068         (EXTRA_SPEC_FUNCTIONS): Define.
12069         (avr_devicespecs_file): New specs function proto.
12070         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
12071         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
12072         (avr_current_device): Remove definition and usage.
12073         (avr_set_core_architecture): New static function.
12074         (avr_option_override): Use it.
12075         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
12076         (mcu_name): New static array.
12077         (comparator, avr_archs_str, avr_mcus_str): New static functions.
12078         (avr_inform_devices, avr_inform_core_architectures): New functions.
12079         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
12080         (avrlibc.h) [WITH_AVRLIBC]: Include.
12081         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
12082         (print_mcu): Rewrite from scratch.
12083         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
12084         Forward to avr-specific specs defined in device-specs file.
12085         * config/avr/t-avr (driver-avr.o): New rule.
12086         (avr-devices.o): Depend on avr-arch.h.
12087         (avr-mcus): No more depend on avr-tables.opt.
12088         (avr-tables.opt): Remove rule.
12089         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
12091 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12093         * c-family/c.opt (fchkp-use-wrappers): New.
12094         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
12095         (chkp_wrap_function): New.
12096         (chkp_build_instrumented_fndecl): Support wrapped
12097         functions.
12098         * doc/invoke.texi (-fcheck-pointer-bounds): New.
12099         (-fchkp-check-incomplete-type): New.
12100         (-fchkp-first-field-has-own-bounds): New.
12101         (-fchkp-narrow-bounds): New.
12102         (-fchkp-narrow-to-innermost-array): New.
12103         (-fchkp-optimize): New.
12104         (-fchkp-use-fast-string-functions): New.
12105         (-fchkp-use-nochk-string-functions): New.
12106         (-fchkp-use-static-bounds): New.
12107         (-fchkp-use-static-const-bounds): New.
12108         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
12109         (-fchkp-check-read): New.
12110         (-fchkp-check-write): New.
12111         (-fchkp-store-bounds): New.
12112         (-fchkp-instrument-calls): New.
12113         (-fchkp-instrument-marked-only): New.
12114         (-fchkp-use-wrappers): New.
12115         (-static-libmpx): New.
12116         (-static-libmpxwrappers): New.
12118 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12120         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
12121         (CHKP_SPEC): Add wrappers library.
12122         * c-family/c.opt (static-libmpxwrappers): New.
12124 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12126         * config/i386/linux-common.h (LIBMPX_LIBS): New.
12127         (LIBMPX_SPEC): New.
12128         (CHKP_SPEC): New.
12129         * gcc.c (CHKP_SPEC): New.
12130         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
12131         * c-family/c.opt (static-libmpx): New.
12133 2015-03-10  Richard Biener  <rguenther@suse.de>
12135         PR middle-end/44563
12136         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
12137         for compare_type.
12138         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
12139         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
12140         (cgraph_add_edge_to_call_site_hash): Likewise.
12141         (cgraph_node::get_edge): Likewise.
12142         (cgraph_edge::set_call_stmt): Likewise.
12143         (cgraph_edge::remove_caller): Likewise.
12145 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12147         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
12148         (callee_saved_gpr_regs_size): ... this.
12149         (callee_saved_regs_first_regno): Rename to ...
12150         (callee_saved_first_gpr_regno): ... this.
12151         (callee_saved_regs_last_regno) Rename to ...
12152         (callee_saved_last_gpr_regno): ... this.
12153         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
12154         variables.
12155         (nds32_initial_elimination_offset): Likewise.
12156         (nds32_expand_prologue): Likewise.
12157         (nds32_expand_epilogue): Likewise.
12158         (nds32_expand_prologue_v3push): Likewise.
12159         (nds32_expand_epilogue_v3pop): Likewise.
12160         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
12161         Adjust renamed variables.
12162         (nds32_output_stack_pop): Likewise.
12164 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12166         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
12167         code in comment.
12169 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12171         PR rtl-optimization/65321
12172         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
12173         than shift mode.
12174         * var-tracking.c (use_narrower_mode): Likewise.
12176 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12178         PR tree-optimization/65355
12179         * varasm.c (notice_global_symbol): Do not produce RTL.
12180         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
12181         anchor.
12182         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
12183         check for section anchors.
12185 2015-03-10  Alan Modra  <amodra@gmail.com>
12187         PR target/65286
12188         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
12189         to be single-arch by default.  Set cpu_is_64bit for powerpc64
12190         given --with-cpu=native.
12191         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
12192         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
12193         and powerpc64le.
12194         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
12195         rs6000_isa_flags rather than TARGET_64BIT.
12197 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
12198             Kaz Kojima  <kkojima@gcc.gnu.org>
12200         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
12202 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
12204         PR lto/65361
12205         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
12206         on a TREE_BINFO, instead use BINFO_TYPE.
12208 2015-03-09  Richard Biener  <rguenther@suse.de>
12210         PR middle-end/65270
12211         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
12212         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
12213         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
12214         of that.  When comparing dereferences compare alignment.
12215         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
12217 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
12219         * ipa-inline-analysis.c (check_callers): Check
12220         node->can_remove_if_no_direct_calls_and_refs_p.
12221         (growth_likely_positive): Reorganize to call
12222         can_remove_if_no_direct_calls_p later.
12223         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
12224         will_be_removed_from_program_if_no_direct_calls_p): Add
12225         will_inline parameter.
12226         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
12227         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12228         Handle inliner case correctly.
12230 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12232         PR tree-optimization/63743
12233         * cfgexpand.c (reorder_operands): Also reorder if only second operand
12234         had its definition forwarded by TER.
12236 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
12238         PR lto/65316
12239         * ipa-utils.h (types_odr_comparable): Add strict argument.
12240         * ipa-devirt.c: Fix whitespace;
12241         (odr_hasher): Remove.
12242         (odr_name_hasher, odr_vtable_hasher): New hashers.
12243         (can_be_name_hashed_p): New predicate.
12244         (hash_type_name): remove.
12245         (hash_odr_name): New.
12246         (odr_name_hasher::hash): new.
12247         (can_be_vtable_hashed_p): New.
12248         (hash_odr_vtable): New.
12249         (odr_vtable_hasher::hash): New.
12250         (types_same_for_odr): Add strict parameter.
12251         (types_odr_comparable): Likewise.
12252         (odr_name_hasher::equal): New.
12253         (odr_vtable_hasher::equal): New.
12254         (odr_name_hasher::remove): New.
12255         (odr_hash_type): Change to hash_table<odr_name_hasher>.
12256         (odr_vtable_hash_type): New.
12257         (odr_vtable_hash): New.
12258         (odr_subtypes_equivalent_p): Do strict comparsion.
12259         (add_type_duplicate): Merge type names; cleanup; avoid type
12260         duplicates.
12261         (register_odr_type): Initialize vtable hash.
12262         (build_type_inheritance_graph): Likewise
12263         (get_odr_type): Reorg to use two hashes.
12264         (dump_possible_polymorphic_call_targets): Move sanity check after debug
12265         output.
12266         (ipa_devirt): Dump type_inheritance_graph.
12267         (types_same_for_odr): Add strict mode.
12269 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12271         PR ipa/65334
12272         * cgraph.h (symtab_node): Add definition_alignment,
12273         can_increase_alignment_p and increase_alignment.
12274         * symtab.c (symtab_node::can_increase_alignment_p,
12275         increase_alignment_1, symtab_node::increase_alignment,
12276         symtab_node::definition_alignment): New.
12277         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
12278         can_increase_alignment_p.
12279         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
12280         * tree-vect-stmts.c (ensure_base_align): Likewise.
12281         * varasm.c (function_section_1): Use definition_alignment.
12282         (assemble_start_function): Likewise.
12283         (emit_local): likewise.
12284         (build_constant_desc): Likewsie.
12285         (output_constant_def_contents): Likewise.
12286         (place_block_symbol): Likewise.
12287         (output_object_block): Likewise.
12289 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12291         PR ipa/65316
12292         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
12293         when outputting debug.
12295 2015-03-07  Marek Polacek  <polacek@redhat.com>
12296             Martin Uecker  <uecker@eecs.berkeley.edu>
12298         PR sanitizer/65280
12299         * doc/invoke.texi: Update description of -fsanitize=bounds.
12301 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
12303         * tree-ssa-phiopt.c (neg_replacement): Remove.
12304         (tree_ssa_phiopt_worker): Remove negate optimization.
12306 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12308         PR ipa/65302
12309         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12311 2015-03-06  Richard Biener  <rguenther@suse.de>
12313         PR middle-end/64928
12314         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12315         and liveout_obstack members.
12316         (calculate_live_on_exit): Remove.
12317         (calculate_live_ranges): Change declaration.
12318         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12319         (new_tree_live_info): Adjust.
12320         (calculate_live_ranges): Delete livein when not wanted.
12321         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12322         Deal with partly deleted live info.
12323         (loe_visit_block): Remove temporary bitmap by using
12324         bitmap_ior_and_compl_into.
12325         (live_worklist): Adjust accordingly.
12326         (calculate_live_on_exit): Make static.
12327         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12328         we do not need livein.
12330 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
12332         * real.c (real_from_string): Fix typo in assertion.
12334 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
12336         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12337         the patch.
12339 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12341         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12343 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
12345         PR target/64342
12346         * lra-assigns.c (find_hard_regno_for): Rename to
12347         find_hard_regno_for_1.  Add a new parameter.
12348         (find_hard_regno_for): New function using find_hard_regno_for_1.
12350 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12352         PR rtl-optimization/65067
12353         * expmed.c (store_bit_field, extract_bit_field): Reworked the
12354         strict volatile bitfield handling.
12356 2015-03-05  Martin Liska  <mliska@suse.cz>
12358         PR ipa/65318
12359         * ipa-icf.c (sem_variable::equals): Compare variables types.
12361 2015-03-05  Richard Henderson  <rth@redhat.com>
12363         PR target/65121
12364         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12365         correctly check weak symbol binding.
12367 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
12369         PR middle-end/65315
12370         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12371         needed alignment.
12373 2015-03-05  Martin Liska  <mliska@suse.cz>
12375         * ipa-inline.c (inline_small_functions): Set default value to
12376         prevent warning during bootstrap.
12377         * tree.h: Add pragma guard that ignores false positives during
12378         bootstrap.
12380 2015-03-05  Richard Biener  <rguenther@suse.de>
12382         PR tree-optimization/65310
12383         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12384         Properly preserve alignment of the base of the access.
12386 2015-03-05  Richard Biener  <rguenther@suse.de>
12388         PR ipa/65270
12389         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12390         Compare dependence info.
12392 2015-03-05  Richard Biener  <rguenther@suse.de>
12394         PR middle-end/65233
12395         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12396         tree-into-ssa.h.
12397         (walk_ssa_copies): Revert last chage.  Instead do not walk
12398         SSA names registered for SSA update.
12400 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12402         PR ipa/65270
12403         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12404         vtable references for their containing type.
12405         (sem_function::equals_wpa): Compare TYPE_RESTRICT
12406         and type attributes.
12408 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
12410         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12411         before negating it.
12412         * stor-layout.c (finalize_record_size): Revert latest change.
12414 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
12416         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12418 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12420         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12421         for correct comdat handling.
12422         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12423         Likewise.
12424         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12425         (used_from_object_file_p_worker): Remove.
12426         (cgraph_node::only_called_directly_or_alised): Add
12427         used_from_object_file_p.
12428         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
12429         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
12430         can_remove_if_no_direct_calls_and_refs_p.
12432 2015-03-04  Nick Clifton  <nickc@redhat.com>
12434         * config/rl78/rl78.h (enum reg_class): Remove real registers from
12435         General register class.
12436         * config/rl78/rl78-real.md: Replace general register constraints
12437         with real+virtual register constraints.
12439 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12441         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
12442         from checking for -mhtm option.
12444 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12446         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
12447         (struct ipa_sra_check_caller_data): Add has_thunk field.
12448         (ipa_sra_check_caller): Check for thunk.
12449         (ipa_sra_preliminary_function_checks): Give up on function with
12450         thunks.
12451         (ipa_early_sra): Use call_for_symbol_and_aliases.
12453 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12455         PR target/65249
12456         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
12457         called for __stack_chk_guard symbol.
12459 2015-03-03  DJ Delorie  <dj@redhat.com>
12461         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
12462         inc/dec.
12463         (*addhi3_real): Likewise.
12464         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
12465         pattern to match incrementing memory.
12466         * config/rl78/predicates.md (rl78_1_2_operand): New.
12467         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
12468         it's the same and only mem.
12469         (rl78_alloc_physical_registers_op2): If there's effectively only
12470         one MEM, transcode it into HL.
12471         (rl78_far_p): Reject addresses that aren't legitimate.
12473 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12475         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
12476         negating it.
12478         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
12480 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
12482         Implement call0 ABI for xtensa
12483         * config/xtensa/constraints.md ("a" constraint): Include stack
12484         pointer in case of call0 ABI.
12485         ("q" constraint): Make empty in case of call0 ABI.
12486         ("D" constraint): Include stack pointer in case of call0 ABI.
12487         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
12488         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
12489         prototypes.
12490         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
12491         variable.
12492         (xtensa_regno_to_class): Make it a local variable in the
12493         function xtensa_regno_to_class.
12494         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
12495         macro, function prototype and implementation.
12496         (reg_nonleaf_alloc_order): Make it a local variable in the
12497         function order_regs_for_local_alloc.
12498         (xtensa_conditional_register_usage): New function.
12499         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
12500         (xtensa_valid_move): Allow direct moves to stack pointer
12501         register in call0 ABI.
12502         (xtensa_setup_frame_addresses): Only spill register windows in
12503         windowed ABI.
12504         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
12505         call0 ABI respectively.
12506         (xtensa_function_arg_1): Only mark a7 register for copying in
12507         windowed ABI.
12508         (xtensa_call_save_reg): New function.
12509         (compute_frame_size): Add space for callee saved register
12510         storage to the frame size in call0 ABI.
12511         (xtensa_expand_prologue): Generate code to set up stack frame
12512         and save callee-saved registers in call0 ABI.
12513         (xtensa_expand_epilogue): New function.
12514         (xtensa_set_return_address): New function.
12515         (xtensa_return_addr): Calculate return address in call0 ABI.
12516         (xtensa_builtin_saveregs): Only mark a7 register for copying and
12517         emit copying code in windowed ABI.
12518         (order_regs_for_local_alloc): Add preferred register allocation
12519         order for non-leaf function in call0 ABI.
12520         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
12521         (xtensa_asm_trampoline_template): Add trampoline generation for
12522         call0 ABI.
12523         (xtensa_trampoline_init): Add trampoline initialization for
12524         call0 ABI.
12525         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
12526         functions.
12527         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
12528         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
12529         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
12530         ABI call-used registers.
12531         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
12532         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
12533         call0 ABI.
12534         (REG_CLASS_CONTENTS): Include all registers into the preferred
12535         reload registers set, adjust the set in the
12536         xtensa_conditional_register_usage.
12537         (xtensa_regno_to_class): Drop variable declaration.
12538         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
12539         function.
12540         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
12541         respectively.
12542         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
12543         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
12544         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
12545         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
12546         location in call0 ABI.
12547         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
12548         stack adjustment size when handling exception.
12549         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
12550         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
12551         definitions.
12552         ("return" pattern): Generate ret.n/ret in call0 ABI.
12553         ("epilogue" pattern): Expand epilogue.
12554         ("nonlocal_goto" pattern): Use default in call0 ABI.
12555         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
12556         emit eh_set_a0_* depending on ABI.
12557         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
12558         ("eh_set_a0_call0", "blockage"): New patterns.
12560 2015-03-03  Martin Liska  <mliska@suse.cz>
12562         PR ipa/65287
12563         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
12565 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12567         PR 65138/target
12568         * config/rs6000/rs6000-tables.opt: Regenerate table.
12570 2015-03-03  Renlin Li  <renlin.li@arm.com>
12572         * doc/md.texi (@item ^): Change ? into ^.
12574 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
12576         * doc/tm.texi: Regenerated.
12578 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
12580         * builtins.c (expand_builtin_return_addr): Add
12581         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
12582         surrounding #ifdef.
12583         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
12584         definition to 1.
12585         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
12586         Likewise.
12587         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
12588         undefined.
12589         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
12590         paragraph.
12592 2015-03-03  Martin Jambor  <mjambor@suse.cz>
12593             Eric Botcazou  <ebotcazou@adacore.com>
12595         * tree-sra.c (ipa_sra_check_caller_data): New type.
12596         (has_caller_p): Removed.
12597         (ipa_sra_check_caller): New function.
12598         (ipa_sra_preliminary_function_checks): Use it.
12600 2015-03-03  Martin Liska  <mliska@suse.cz>
12602         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
12603         instead of if branch.
12605 2015-03-03  Martin Liska  <mliska@suse.cz>
12607         PR ipa/65282
12608         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
12610 2015-03-23  Jeff Law  <law@redhat.com>
12612         PR tree-optimization/65241
12613         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
12614         hash table if INSERT is true.
12616 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12618         PR target/65296
12619         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
12621 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12623         PR target/64331
12624         * config/avr/avr.c (context.h, tree-pass.h): Include them.
12625         (avr_pass_data_recompute_notes): New static variable.
12626         (avr_pass_recompute_notes): New class.
12627         (avr_register_passes): New static function.
12628         (avr_option_override): Call it.
12630 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
12632         Fix various problems with specs file generation.
12634         PR target/65296
12635         * config.gcc (extra_gcc_objs) [avr]: Remove.
12636         * config/avr/driver-avr.c: Remove file.
12637         * config/avr/t-avr (driver-avr.o): Remove rule.
12638         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
12639         INCLUDES to build.  Depend on TM_H.
12640         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
12641         build warnings.  Fix non-matching types and non-existing %-codes.
12642         (tm.h): Include.
12643         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
12644         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
12645         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
12646         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
12647         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
12648         (LIBGCC_SPEC): Remove definitions.
12650 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12652         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
12653         to create a register in testing mode.
12655 2015-03-03  Martin Liska  <mliska@suse.cz>
12656             Jan Hubicka  <hubicka@ucw.cz>
12658         PR ipa/65263
12659         * cgraph.c (cgraph_node::has_thunk_p): New function.
12660         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
12661         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
12662         (sem_function::merge): Assert is changed.
12664 2015-03-03  Martin Liska  <mliska@suse.cz>
12665             Martin Jambor  <mjambor@suse.cz>
12667         PR ipa/65087
12668         * ipa-icf.c (sem_item_optimizer::execute): Change function
12669         return value to boolean.
12670         (sem_item_optimizer::merge_classes): Likewise.
12671         (ipa_icf_driver): Return TODO_remove_functions in case there's
12672         a merge operation processed.
12673         * ipa-icf.h: Change function return value to boolean.
12675 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12677         PR 65138/target
12678         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
12679         processor type for 64-bit little endian PowerPC.
12681         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12682         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
12683         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
12684         printing built-in mask so it does not pass NULL pointers.
12686         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
12687         -mcpu=powerpc64le.
12689 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
12691         PR target/58158
12692         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
12693         !ISA_HAS_FP_CONDMOVE.
12695 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
12697         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
12698         reload_completed.
12700 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
12702         * doc/invoke.texi (Options for Code Generation Conventions):
12703         Fix URL of DSO paper.
12705 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12707         PR ipa/65130
12708         * ipa-inline.c (check_callers): Looks for recursion.
12709         (inline_to_all_callers): Give up on uninlinable or recursive edges.
12710         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
12711         summary of inline clones.
12712         (do_estimate_growth_1): Fix recursion check.
12714 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12716         PR ipa/64988
12717         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
12718         comdat groups.
12720 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12721             Aldy Hernandez  <aldyh@redhat.com>
12723         PR lto/65276
12724         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
12725         when checking TYPE_BINFO.
12727 2015-03-02  Richard Biener  <rguenther@suse.de>
12729         PR ipa/65270
12730         * ipa-icf-gimple.c: Include builtins.h.
12731         (func_checker::compare_memory_operand): Compare base alignment.
12733 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12735         PR target/65184
12736         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
12737         are never passed by reference.
12739 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12741         PR target/65183
12742         * tree-chkp.c (chkp_check_lower): Don't check against
12743         zero bounds for already instrumented functions.
12744         (chkp_check_upper): Likewise.
12745         (chkp_fini): Clean pass local data to avoid wrong reusage.
12747 2015-02-28  Martin Liska  <mliska@suse.cz>
12748             Jan Hubicka  <hubicka@ucw.cz>
12750         * ipa-icf.c (sem_variable::equals): Improve debug output;
12751         get variable constructor.
12752         (sem_variable::parse): Do not filter out too early; give up on
12753         volatile and register vars.
12754         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
12755         variables.
12756         * ipa-icf.h (sem_variable::init): Do not set ctor.
12757         (sem_variable::ctor): Remove.
12759 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
12761         PR middle-end/65233
12762         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
12764 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12766         * ipa-icf.c: Include stor-layout.h
12767         (sem_function::compare_cgraph_references): Rename to ...
12768         (sem_item::compare_cgraph_references): ... this one.
12769         (sem_variable::equals_wpa): New function
12770         (sem_variable::equals): Do not check stuff already verified by
12771         equals_wpa.
12772         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
12773         * ipa-icf.h (sem_item): Add compare_cgraph_references.
12774         (sem_function): Remove compare_cgraph_references.
12775         (sem_variable): Turns equals_wpa into non-inline.
12777 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12779         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
12780         (sem_item::add_expr): New function.
12781         (sem_function::hash_stmt): Handle operands of most statements.
12782         (sem_variable::get_hash): Hash the actual constructor.
12783         * ipa-icf.h (sem_item): Add add_expr.
12784         (sem_function): Update prototype of hash_stmt
12786 2015-02-28  Martin Liska  <mliska@suse.cz>
12787             Jan Hubicka  <hubicka@ucw.cz>
12789         PR ipa/65245
12790         * ipa-icf-gimple.c (func_checker::compare_function_decl):
12791         Remove.
12792         (func_checker::compare_variable_decl): Skip symtab vars.
12793         (func_checker::compare_cst_or_decl): Update.
12794         * ipa-icf.c (sem_function::parse): Do not consider aliases.
12795         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
12796         use correct symtab predicates.
12797         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
12798         (sem_variable::parse):  Update comment.
12799         (sem_item_optimizer::build_graph): Consider ultimate aliases
12800         for references.
12802 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12804         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
12805         of OBJ_TYPE_REF.
12807 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12809         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
12810         (sem_variable::merge) Likewise.
12812 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12814         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
12815         target; also match flag_ipa_devirt.
12817 2015-03-01  Martin Liska  <mliska@suse.cz>
12818             Jan Hubicka  <hubicka@ucw.cz>
12820         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
12821         Validate variable alignment.
12822         * ipa-icf.c (sem_function::equals_private): Be more precise
12823         about non-common function attributes.
12824         (sem_variable::equals): Likewise.
12826 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12828         PR ipa/65237
12829         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
12830         across COMDAT group boundary.
12832 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12834         PR ipa/65232
12835         * ipa-icf.c (clear_decl_rtl): New function.
12836         (sem_function::merge): Clear RTL before forming alias.
12837         (sem_variable::merge): Clear RTL before forming alias.
12839 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12841         PR ipa/65236
12842         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
12844 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
12846         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
12847         to neon_to_gp<q>.
12849 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12851         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
12852         a typo in the description.
12854 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12856         PR target/64317
12857         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12858         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12859         * lra-constraints.c: Include "params.h".
12860         (EBB_PROBABILITY_CUTOFF): Use
12861         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
12862         (lra_inheritance): Use '<' instead of '<=' for
12863         EBB_PROBABILITY_CUTOFF.
12864         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
12865         Document change.
12867 2015-02-27  Martin Liska  <mliska@suse.cz>
12869         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
12870         vector length condition.
12872 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
12874         * doc/extend.texi (x86 transactional memory intrinsics):
12875         Reorganize discussion of _xbegin.  Clarify that the return
12876         value is a bit mask.  Expand example and move to end of section.
12878 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12879             Aldy Hernandez  <aldyh@redhat.com>
12881         PR rtl-optimization/65220
12882         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
12884 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12886         PR target/65032
12887         * lra-remat.c (update_scratch_ops): New.
12888         (do_remat): Call it.
12889         * lra.c (lra_register_new_scratch_op): New. Take code from ...
12890         (remove_scratches): ... here.
12891         * lra-int.h (lra_register_new_scratch_op): New prototype.
12893 2015-02-27  Marek Polacek  <polacek@redhat.com>
12895         PR c/65040
12896         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
12897         -Wformat-signedness anymore.
12899 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12901         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
12902         function.
12903         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
12905 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12907         * config/s390/s390.c (enum s390_builtin):
12908         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
12909         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
12910         (s390_init_builtins): Generate new builtin functions.
12911         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
12912         (s390_sfpc, s390_efpc): New pattern definitions.
12914 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12916         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
12917         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
12918         (s390_builtin_decls): New array.
12919         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
12920         (s390_builtin_decl): New function.
12921         (TARGET_BUILTIN_DECL): Define macro.
12923 2015-02-27  Richard Biener  <rguenther@suse.de>
12925         PR middle-end/63175
12926         * builtins.c (get_object_alignment_2): Make sure to re-apply
12927         the ANDed mask after recursing to its operand gets us a new
12928         misalignment bit position.
12930 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
12931             Martin Liska  <mliska@suse.cz>
12933         PR bootstrap/65150
12934         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
12935         Use address_matters_p.
12936         (redirect_all_callers, set_addressable): New functions.
12937         (sem_function::merge): Reorganize and fix merging issues.
12938         (sem_variable::merge): Likewise.
12939         (sem_variable::compare_sections): Remove.
12940         * common.opt (fmerge-all-constants, fmerge-constants): Remove
12941         Optimization flag.
12942         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
12943         redirect them.
12944         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
12945         decl is used.
12946         (address_matters_1): New function.
12947         (symtab_node::address_matters_p): New function.
12948         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
12949         check for merged flag.
12950         * cgraph.h (address_matters_p): Declare.
12951         (symtab_node::address_taken_from_non_vtable_p): Remove.
12952         (symtab_node::address_can_be_compared_p): New method.
12953         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
12954         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
12955         Remove.
12956         (comdat_can_be_unshared_p_1) Use address_matters_p.
12957         (update_vtable_references): Fix formating.
12958         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
12959         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
12960         * cgraphclones.c: Preserve merged and icf_merged flags.
12962 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
12964         * doc/extend.texi (Function Attributes): Fix spelling and typos.
12965         (Label Attributes): Likewise.
12966         (Cilk Plus Builtins): Likewise.
12967         (ARC SIMD Built-in Functions): Likewise.
12968         (ARM C Language Extensions (ACLE)): Likewise.
12969         (PowerPC Built-in Functions): Likewise.
12970         (PowerPC Hardware Transactional Memory Built-in Functions):
12971         Likewise.
12973 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12975         PR tree-optimization/65216
12976         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
12977         new stmt and new SSA_NAME for lhs whenever the arguments have
12978         changed and weren't just swapped.  Fix comment typo.
12980         PR tree-optimization/65215
12981         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
12982         for PDP endian targets.
12983         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
12984         Fix up formatting issues.
12985         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
12986         size is smaller than the original, adjust MEM_REF offset by the
12987         difference of sizes.  Use is_gimple_mem_ref_addr instead of
12988         is_gimple_min_invariant test to avoid adding address temporaries.
12990 2015-02-26  Martin Liska  <mliska@suse.cz>
12991             Jan Hubicka  <hubicka@ucw.cz>
12993         PR ipa/64693
12994         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
12995         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
12996         (sem_item_optimizer::process_cong_reduction): Include division by
12997         sensitive references.
12998         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
12999         * ipa-ref.c (ipa_ref::address_matters_p): New function.
13000         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13002 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
13004         PR target/65192
13005         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
13006         Remove.
13007         * config/avr/avr.c: Same.
13008         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
13009         Refuse any constant address not in 0..0xbf.
13010         * config/avr/avr.md (*mov<mode>, *movsf): Remove
13011         tiny_valid_direct_memory_access_range from insn conditions.
13012         (mov<mode>): Don't special-case expansion of avrtiny addresses.
13014 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
13016         PR target/61142
13017         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
13018         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
13019         * config/sh/predicates.md (const_logical_operand): New predicate.
13020         * config/sh/sh.md: Add new peephole2 patterns.
13022 2015-02-26  Marek Polacek  <polacek@redhat.com>
13024         PR ipa/65008
13025         * ipa-inline.c (early_inliner): Recompute inline parameters.
13027 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13029         PR target/65171
13030         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
13031         instructions with TImode operands are included in the analysis.
13033 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13035         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
13036         of an EDGE_FSM_THREAD.
13038 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13040         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
13042 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
13044         PR debug/46102
13045         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
13047 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13049         PR tree-optimization/65048
13050         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
13051         (thread_through_all_blocks): Call valid_jump_thread_path.
13052         Remove invalid FSM jump-thread paths.
13054 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13056         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
13057         (ipa_write_optimization_summaries): Likewise.
13058         * tree-streamer.h: Include data-streamer.h.
13059         (streamer_mode_table): Declare extern variable.
13060         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
13061         * lto-streamer-out.c (lto_output_init_mode_table,
13062         lto_write_mode_table): New functions.
13063         (produce_asm_for_decls): Call lto_write_mode_table when streaming
13064         offloading LTO.
13065         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
13066         (lto_create_simple_input_block): Add mode_table argument to the
13067         lto_input_block constructors.
13068         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
13069         Likewise.
13070         * data-streamer-in.c (string_for_index): Likewise.
13071         * ipa-inline-analysis.c (inline_read_section): Likewise.
13072         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
13073         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13074         * lto-streamer-in.c (lto_read_body_or_constructor,
13075         lto_input_toplevel_asms): Likewise.
13076         (lto_input_mode_table): New function.
13077         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
13078         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
13079         Use bp_pack_machine_mode.
13080         * real.h (struct real_format): Add name field.
13081         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
13082         (class lto_input_block): Add mode_table member.
13083         (lto_input_block::lto_input_block): Add mode_table_ argument,
13084         initialize mode_table.
13085         (struct lto_file_decl_data): Add mode_table field.
13086         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
13087         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
13088         unpack_ts_decl_common_value_fields,
13089         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
13090         * tree-streamer.c (streamer_mode_table): New variable.
13091         * real.c (ieee_single_format, mips_single_format,
13092         motorola_single_format, spu_single_format, ieee_double_format,
13093         mips_double_format, motorola_double_format,
13094         ieee_extended_motorola_format, ieee_extended_intel_96_format,
13095         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13096         ibm_extended_format, mips_extended_format, ieee_quad_format,
13097         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13098         decimal_single_format, decimal_double_format, decimal_quad_format,
13099         ieee_half_format, arm_half_format, real_internal_format): Add name
13100         field.
13101         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
13103 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
13105         PR target/65161
13106         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
13107         reordering for selective scheduling.
13109 2015-02-26  Terry Guo  <terry.guo@arm.com>
13111         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
13112         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
13113         (arm_arch_no_volatile_ce): Declare new global variable.
13114         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
13115         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
13116         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
13117         (TARGET_NO_VOLATILE_CE): New macro.
13118         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
13119         volatile memory access in IT block
13121 2015-02-25  Kai Tietz  <ktietz@redhat.com>
13123         PR tree-optimization/61917
13124         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
13125         that reduc_def_stmt is null.
13127 2015-02-25  Martin Liska  <mliska@suse.cz>
13129         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
13130         hard register variables.
13132 2015-02-25  Kai Tietz  <ktietz@redhat.com>
13134         PR target/64212
13135         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
13136         (symtab::noninterposable_alias): Likewise.
13138 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
13140         PR target/65167
13141         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
13142         bounds registers.
13143         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
13145 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
13147         PR target/64997
13148         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
13149         as split condition; force split via '#' in output pattern.
13151 2015-02-25  Richard Biener  <rguenther@suse.de>
13152             Kai Tietz  <ktietz@redhat.com>
13154         PR tree-optimization/61917
13155         * tree-vect-loop.c (vectorizable_reduction): Allow
13156         vect_internal_def without reduction to exit graceful.
13158 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
13160         PR target/65196
13161         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
13162         only with NONDEBUG_INSN_P.
13164 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
13166         Use variadic macros with avr-log.c.
13168         * config/avr/avr-protos.h (avr_vdump): New prototype.
13169         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
13170         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
13171         * config/avr/avr-log.c: Adjust comments.
13172         (avr_vdump): New function.
13173         (avr_vadump): Pass caller as 2nd argument instead of format string.
13174         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
13175         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
13177 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
13179         PR lto/64374
13180         * target.def (target_option_stream_in): New target hook.
13181         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
13182         targetm.target_option.post_stream_in if non-NULL.
13183         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
13184         * doc/tm.texi: Updated.
13185         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
13186         function.
13187         (TARGET_OPTION_POST_STREAM_IN): Redefine.
13189 2015-02-24  Jeff Law  <law@redhat.com>
13191         PR target/65117
13192         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
13193         of operand 0 and operand 2.
13194         (zero_cost_loop_end, loop_end): Similarly.
13196 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
13198         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
13199         CXX_MEM_STAT_INFO.
13201 2015-02-24  DJ Delorie  <dj@redhat.com>
13203         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
13204         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
13205         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
13206         instead of hardcoding SImode.
13208 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
13210         * omp-low.c (create_omp_child_function): Tag entrypoint
13211         functions with a special attribute.
13213 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13215         PR target/65058
13216         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
13218 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
13220         PR rtl-optimization/65123
13221         * lra-remat.c (operand_to_remat): Check hard regs in insn
13222         definition too.
13224 2015-02-24  Nick Clifton  <nickc@redhat.com>
13226         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
13227         to the assembler.
13229 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
13231         PR libgomp/64625
13232         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
13233         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
13234         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
13235         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
13236         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
13237         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
13238         (BUILT_IN_GOACC_PARALLEL): Specify as
13239         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
13240         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
13241         * builtin-types.def
13242         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13243         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13244         Remove function types.
13245         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
13246         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13247         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13248         New function types.
13250 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
13252         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
13254 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
13256         PR tree-optimization/65170
13257         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
13258         if val[1] < 0, clear also val[2] and return 3.
13260 2015-02-24  Alan Modra  <amodra@gmail.com>
13262         PR target/65172
13263         * config/rs6000/rs6000.c (get_memref_parts): Only return true
13264         when *base is a reg.  Handle nested plus addresses.  Simplify
13265         pre_modify test.
13267 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
13269         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
13270         use natural alignment when optimizing for size.
13272 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
13274         PR target/65153
13275         * config/sh/sh.md (movsicc_true+3): Remove peephole.
13276         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
13277         * config/sh/sh.c (replace_n_hard_rtx): Remove.
13279 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
13281         PR fortran/63427
13282         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
13283         too big for a wide_int.  Implement missing wrapping operation.
13285 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
13287         PR target/65163
13288         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
13289         instead of const_int 4294901760.
13291 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
13293         * config/avr/t-avr: Fix typo in comment.
13295 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
13297         * doc/rtl.texi (fma): Clarify documentation.
13299 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
13301         PR debug/58123
13302         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
13303         over input_location.
13305 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13307         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
13308         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
13309         restrict alignments to absolute_biggest_alignment.
13310         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13311         Define.
13312         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13313         * doc/tm.texi: Regenerate.
13314         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13316 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
13318         PR target/64172
13319         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13321 2015-02-20  Richard Biener  <rguenther@suse.de>
13323         PR tree-optimization/65136
13324         * tree-ssa-propagate.c: Include cfgloop.h.
13325         (replace_phi_args_in): Avoid replacing loop latch edge PHI
13326         arguments with constants.
13328 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
13329             Martin Liska  <mliska@suse.cz>
13331         PR target/63892
13332         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13333         don't try to create_thunk if stdarg_p.  If
13334         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13335         redirect_callers if possible.
13336         (sem_item_optimizer::execute): Call unregister_hooks here...
13337         (ipa_icf_driver): ... instead of here.
13339 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13341         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13342         Mark operand 0 as earlyclobber in 2nd alternative.
13343         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13344         Write negated shift amount into QI lowpart operand 0 and use it
13345         in the shift step.
13346         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13348 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13350         * cgraph.h (clone_function_name_1): Declare.
13351         * cgraphclones.c (clone_function_name_1): New function.
13352         (clone_function_name): Use it.
13353         * lto-partition.c: Include "stringpool.h".
13354         (must_not_rename, maybe_rewrite_identifier)
13355         (validize_symbol_for_target): New static functions.
13356         (privatize_symbol_name): Use must_not_rename.
13357         (promote_symbol): Call validize_symbol_for_target.
13358         (lto_promote_cross_file_statics): Likewise.
13359         (lto_promote_statics_nonwpa): Likewise.
13361 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
13363         PR target/64452
13364         * config/avr/avr.md (pushhi_insn): New insn.
13365         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13367 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13368             Jakub Jelinek  <jakub@redhat.com>
13370         * tree-streamer.c (preload_common_nodes): Don't preload
13371         TI_VA_LIST* for offloading.
13372         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13373         in_lto_p.
13375 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
13377         * config/pa/pa.c (pa_emit_move_sequence): Always force
13378         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
13379         note on insn.
13381         * config/pa/pa.c (pa_reloc_rw_mask): New function.
13382         (TARGET_ASM_RELOC_RW_MASK): Define.
13383         (pa_cannot_force_const_mem): Revert previous change.
13385 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
13386             Jan Hubicka  <hubicka@ucw.cz>
13388         PR ipa/65028
13389         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13390         across jump functions.
13392 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
13394         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13396 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
13398         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13400 2015-02-19  Richard Henderson  <rth@redhat.com>
13402         PR middle-end/65074
13403         * varasm.c (default_binds_local_p_2): Don't test node->definition;
13404         test DECL_EXTERNAL independent of symtab_node.
13406 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
13408         PR lto/65012
13409         * varpool.c (varpool_node::get_constructor): Return early
13410         if this->lto_file_data is NULL.
13412 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13414         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13415         (rank_for_schedule_debug): Update.
13416         (ready_sort): Make static.  Move sorting logic to ...
13417         (ready_sort_debug, ready_sort_real): New static functions.
13418         (schedule_block): Sort both debug insns and real insns in preparation
13419         for ready list trimming.  Improve debug output.
13420         * sched-int.h (ready_sort): Remove global declaration.
13422 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
13424         * ipa-icf.c (sem_function::equals_private): Adjust.
13425         (sem_function::bb_dict_test): Take a vec<int> * instead of
13426         auto_vec<int>.
13427         * ipa-icf.h (bb_dict_test): Likewise.
13429 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13431         PR gcov-profile/64634
13432         * tree-eh.c (frob_into_branch_around): Fix up typos
13433         in function comment.
13434         (lower_catch): Put eh_seq resulting from EH lowering of
13435         the cleanup sequence after the cleanup rather than before it.
13437 2015-02-18  Tom de Vries  <tom@codesourcery.com>
13439         * common.opt (fstdarg-opt): New option.
13440         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
13441         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
13442         (@item -fstdarg-opt): New item.
13444 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13446         PR target/65064
13447         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
13448         for common symbols.
13450 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13452         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
13453         insn-modes.h.
13454         (ALL_HOST_OBJS): Add mkoffload.o.
13455         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
13457 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
13459         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
13460         (compare_virtual_tables): Be smarter about skipping typeinfos;
13461         do sane output on virtual table table mismatch.
13462         (warn_odr): Be ready for forward declarations of enums;
13463         output sane info on base mismatch and virtual table mismatch.
13464         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
13465         when only one type is polymorphic.
13466         (get_odr_type): Fix hashtable corruption.
13467         (dump_odr_type): Dump mangled names.
13469 2015-02-18  Richard Biener  <rguenther@suse.de>
13471         PR tree-optimization/65063
13472         * tree-predcom.c (determine_unroll_factor): Return 1 if we
13473         have replaced looparound PHIs.
13475 2015-02-18  Martin Liska  <mliska@suse.cz>
13477         * lto-streamer.c (lto_streamer_init): Encapsulate
13478         streamer_check_handled_ts_structures with checking macro.
13480 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
13482         PR ipa/65087
13483         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
13484         section if !implicit_section.
13485         (cgraph_node::create_version_clone_with_body): Likewise.
13486         * trans-mem.c (ipa_tm_create_version): Likewise.
13488 2015-02-18  Richard Biener  <rguenther@suse.de>
13490         PR tree-optimization/62217
13491         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
13492         into BIVs.
13494 2015-02-18  Marek Polacek  <polacek@redhat.com>
13496         PR sanitizer/65081
13497         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
13498         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
13499         is in range [-16K, -1].  Don't issue run-time error if
13500         (ptr > ptr + offset).
13502 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
13504         * doc/install.texi (nvptx-*-none): New section.
13505         * doc/invoke.texi (Nvidia PTX Options): Likewise.
13506         * config/nvptx/nvptx.opt: Update.
13508         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
13509         (access_check): New functions, copied from
13510         config/i386/intelmic-mkoffload.c.
13511         (main): For non-installed testing, look in all COMPILER_PATHs for
13512         GCC_INSTALL_NAME.
13514         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
13516 2015-02-18  Andrew Pinski  <apinski@cavium.com>
13517             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13519         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
13520         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
13522 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
13524         * ipa-visibility.c (function_and_variable_visibility): Only
13525         check locality if node is not already local.
13526         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13527         call_for_symbol_and_aliases instead of
13528         call_for_symbol_thunks_and_aliases.
13529         (ipa_inline): Likewise.
13530         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13531         first walk aliases.
13532         * ipa.c (symbol_table::remove_unreachable_nodes): Use
13533         call_for_symbol_and_aliases.
13534         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13535         (ipa_propagate_frequency_1): Use it; use opt_for_fn
13536         (ipa_propagate_frequency): Update.
13537         (ipa_profile): Add opt_for_fn gueards.
13539 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
13541         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
13542         * doc/invoke.texi (SH options): Document it.
13543         * config/sh/sh.c (sh_insn_length_adjustment): Check
13544         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
13546 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
13548         * common.opt (fipa-cp-alignment): New.
13549         * ipa-cp.c (ipcp_store_alignment_results): Check
13550         flag_ipa_cp_alignment.
13551         * opts.c (default_options_table): Enable -fipa-cp-alignment for
13552         -O2.
13553         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
13554         * doc/invoke.texi: Document -fipa-cp-alignment.
13556 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
13558         PR target/64793
13559         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
13560         to nil.  Adjust comments.
13562 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
13564         * ipa-visibility.c (function_and_variable_visibility): Only
13565         check locality if node is not already local.
13566         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
13567         call_for_symbol_and_aliases instead of
13568         call_for_symbol_thunks_and_aliases.
13569         (ipa_inline): Likewise.
13570         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
13571         first walk aliases.
13572         * ipa.c (symbol_table::remove_unreachable_nodes): Use
13573         call_for_symbol_and_aliases.
13574         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
13575         (ipa_propagate_frequency_1): Use it; use opt_for_fn
13576         (ipa_propagate_frequency): Update.
13577         (ipa_profile): Add opt_for_fn guards.
13579 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
13581         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
13582         skipping of "strange" tokens.
13584 2015-02-17  Jeff Law  <law@redhat.com>
13586         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
13587         obsolete comment.
13589 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
13591         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
13592         as forcing a HARD_DEP between instructions, thereby
13593         disallowing rewriting to break dependencies.
13595 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
13597         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
13598         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
13599         variables in boundary that have no inlitalizer encoded and are
13600         not aliases.
13601         * varasm.c (default_binds_local_p_2): External definitions do not
13602         count as definitions here.
13604 2015-02-16  Jeff Law  <law@redhat.com>
13606         PR tree-optimization/64823
13607         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
13608         statements.
13609         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13610         threading through blocks with PHIs, but no statements.
13611         (thread_through_normal_block): Distinguish between blocks where
13612         we did not process all the statements and blocks with no statements.
13614 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
13615             James Greenhalgh  <james.greenhalgh@arm.com>
13617         PR ipa/64963
13618         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
13619         section if not linkonce.  Fix up formatting.
13620         (cgraph_node::create_version_clone_with_body): Copy section.
13621         * trans-mem.c (ipa_tm_create_version): Likewise.
13623 2015-02-16  Richard Biener  <rguenther@suse.de>
13625         PR tree-optimization/65077
13626         * tree-ssa-structalias.c (get_constraint_for_1): Handle
13627         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
13628         (find_func_aliases): Allow float values to carry pointers again.
13630 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13632         * doc/install.texi (Specific): Reorder targets list to put
13633         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
13634         from the top menu.
13636 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
13637             David Edelsohn  <dje.gcc@gmail.com>
13639         PR target/65058
13640         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
13641         mapping class to external variable or function reference.
13642         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
13643         mapping class.
13645 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
13647         PR target/53348
13648         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
13649         ASM_WEAKEN_DECL if defined.
13651 2015-02-16  Richard Biener  <rguenther@suse.de>
13653         PR lto/65015
13654         * varasm.c (default_file_start): For LTO produced units
13655         emit <artificial> as file directive.
13657 2015-02-16  Richard Biener  <rguenther@suse.de>
13659         PR tree-optimization/63593
13660         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
13661         stmts and releasing SSA names until...
13662         (execute_pred_commoning): ... after processing all chains.
13664 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
13666         PR ipa/65059
13667         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
13668         external functions.
13670 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
13672         * doc/bugreport.texi: Adjust section titles throughout the file
13673         to use "Title Case".
13674         * doc/extend.texi: Likewise.
13675         * doc/gcov.texi: Likewise.
13676         * doc/implement-c.texi: Likewise.
13677         * doc/implement-cxx.texi: Likewise.
13678         * doc/invoke.texi: Likewise.
13679         * doc/objc.texi: Likewise.
13680         * doc/standards.texi: Likewise.
13681         * doc/trouble.texi: Likewise.
13683 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
13685         * cgraph.h (symtab_node::has_aliases_p): Simplify.
13686         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
13687         * tree.c (lookup_binfo_at_offset): Make static.
13688         (get_binfo_at_offset): Do not shadow offset; add explanatory
13689         comment.
13691 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
13693         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
13694         for all floading point loads and stores except those using a register
13695         index address.
13696         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
13697         to a register.
13699 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13701         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
13702         (do_estimate_growth_1): Record if any uninlinable edge was seen.
13703         (estimate_growth): Handle uninlinable edges correctly.
13704         (check_callers): New.
13705         (growth_likely_positive): Handle aliases correctly.
13707 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13709         * ipa-chkp.c: Use iterate_direct_aliases.
13710         * symtab.c (resolution_used_from_other_file_p): Move inline.
13711         (symtab_node::create_reference): Fix formating.
13712         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13713         (symtab_node::iterate_reference): Move inline.
13714         (symtab_node::iterate_referring): Move inline.
13715         (symtab_node::iterate_direct_aliases): Move inline.
13716         (symtab_node::used_from_object_file_p_worker): Inline into ...
13717         (symtab_node::used_from_object_file_p): ... this one; move inline.
13718         (symtab_node::call_for_symbol_and_aliases): Move inline;
13719         use iterate_direct_aliases.
13720         (symtab_node::call_for_symbol_and_aliases_1): New method.
13721         (cgraph_node::call_for_symbol_and_aliases): Move inline;
13722         use iterate_direct_aliases.
13723         (cgraph_node::call_for_symbol_and_aliases_1): New method.
13724         (varpool_node::call_for_node_and_aliases): Rename to ...
13725         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
13726         use iterate_direct_aliases.
13727         (varpool_node::call_for_symbol_and_aliases_1): New method.
13728         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
13729         (ipa_discover_readonly_nonaddressable_var): Update.
13730         * ipa-devirt.c: Fix formating.
13731         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13732         Move inline.
13733         (cgraph_node::call_for_symbol_and_aliases): Move inline.
13734         (cgraph_node::call_for_symbol_and_aliases_1): New function..
13735         * cgraph.h (used_from_object_file_p_worker): Remove.
13736         (resolution_used_from_other_file_p): Move inline.
13737         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13738         (symtab_node::iterate_reference): Move inline.
13739         (symtab_node::iterate_referring): Move inline.
13740         (symtab_node::iterate_direct_aliases): Move inline.
13741         (symtab_node::used_from_object_file_p_worker): Inline into ...
13742         (symtab_node::used_from_object_file_p): Move inline.
13743         * tree-emutls.c (ipa_lower_emutls): Update.
13744         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
13745         (varpool_node::call_for_node_and_aliases): Remove.
13747 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
13749         PR tree-optimization/62209
13750         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
13751         op == range->exp, insert seq and gimplified code after labels
13752         instead of after the phi.
13754 2015-02-13  Jeff Law  <law@redhat.com>
13756         PR bootstrap/65060
13757         Revert my change for tree-optimization/64823.
13759 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13761         PR tree-optimization/65053
13762         * tree-ssa-phiopt.c (value_replacement): When moving assign before
13763         cond, either reset VR on lhs or set it to phi result VR.
13765 2015-02-13  Jeff Law  <law@redhat.com>
13767         PR tree-optimization/64823
13768         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
13769         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13770         threading through blocks with PHIs, but no statements.
13771         (thread_through_normal_block): Distinguish between blocks where
13772         we did not process all the statements and blocks with no statements.
13774         PR rtl-optimization/47477
13775         * match.pd (convert (plus/minus (convert @0) (convert @1): New
13776         simplifier to narrow arithmetic.
13778 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
13780         PR ipa/65028
13781         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
13782         polymorphic call info when type is not known to be preserved.
13784 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
13786         PR ipa/65028
13787         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
13788         (inline_call): Use it.
13790 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
13792         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
13793         GOMP_DEVICE_NVIDIA_PTX.
13795 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13797         PR ipa/65034
13798         * stmt.c (emit_case_nodes): Use void_type_node instead of
13799         NULL_TREE as LABEL_DECL type.
13801 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
13803         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
13804         constraints.
13805         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
13806         symbolic references to data to be forced to constant memory on the
13807         SOM target.
13809 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13811         PR tree-optimization/65002
13812         * tree-cfg.c (pass_data_fixup_cfg): Don't update
13813         SSA on start.
13814         * tree-sra.c (some_callers_have_no_vuse_p): New.
13815         (ipa_early_sra): Reject functions whose callers
13816         assume function is read only.
13818 2015-02-13  Richard Biener  <rguenther@suse.de>
13820         PR lto/65015
13821         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
13822         for LTO produced CUs.
13824 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
13826         PR tree-optimization/64705
13827         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
13828         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
13829         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
13830         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
13831         expand_simple_operations.
13833 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13834             Richard Henderson  <rth@redhat.com>
13836         PR rtl/32219
13837         * cgraphunit.c (cgraph_node::finalize_function): Set definition
13838         before notice_global_symbol.
13839         (varpool_node::finalize_decl): Likewise.
13840         * varasm.c (default_binds_local_p_2): Rename from
13841         default_binds_local_p_1, add weak_dominate argument.  Use direct
13842         returns instead of assigning to local variable.  Unify varpool and
13843         cgraph paths via symtab_node.  Reject undef weak variables before
13844         testing visibility.  Reorder tests for simplicity.
13845         (default_binds_local_p): Use default_binds_local_p_2.
13846         (default_binds_local_p_1): Likewise.
13847         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
13848         via symtab_node.
13849         (default_elf_asm_output_external): Emit visibility when specified.
13851 2015-02-13  Alan Modra  <amodra@gmail.com>
13853         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
13854         code setting up r11 for out-of-line fp restore.
13856 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13858         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
13859         (muser-mode): Likewise.
13861 2015-02-13  Alan Modra  <amodra@gmail.com>
13863         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
13864         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
13866 2015-02-12  David Howells  <dhowells@redhat.com>
13868         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
13869         warning.
13870         * tree-ssa-uninit.c (dump_predicates): Likewise.
13871         * opts.c (print_filtered_help): Likewise.
13873 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13875         * dwarf2out.c (output_die): Use "%s", name instead of name to
13876         avoid -Wformat-security warning.
13878         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
13879         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13880         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
13881         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13883 2015-02-12  Jason Merrill  <jason@redhat.com>
13885         * common.opt (-flifetime-dse): New.
13887 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13889         PR sanitizer/65019
13890         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
13892         PR tree-optimization/65014
13893         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
13894         use original second operand of arg0 or arg1 instead of
13895         that adjusted by STRIP_NOPS.
13897 2015-02-11  Jeff Law  <law@redhat.com>
13899         PR target/63347
13900         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
13901         that needs to be queued, just queue it for a single cycle.
13903 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
13905         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
13906         bodies of thunks; comment on why.
13907         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
13908         symbols are extern.
13910 2015-02-11  Richard Henderson  <rth@redhat.com>
13912         PR sanitize/65000
13913         * tree-eh.c (mark_reachable_handlers): Mark source and destination
13914         regions of __builtin_eh_copy_values.
13916 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13918         PR middle-end/65003
13919         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
13920         ultimate alias is MEM with SYMBOL_REF satisfying
13921         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
13922         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
13924 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
13926         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
13927         "diagnostic-core.h".
13928         (main): Initialize progname, and call diagnostic_initialize.
13930         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
13931         instead of __OPENMP_TARGET__.
13933         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
13934         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
13935         hard-coding PTX_ID.
13937 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
13939         * doc/sourcebuild.texi (pie_enabled): Document.
13941 2015-02-11  Martin Liska  <mliska@suse.cz>
13943         PR ipa/64813
13944         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
13945         a return value for call to a function that is noreturn.
13947 2015-02-11  Richard Biener  <rguenther@suse.de>
13949         PR lto/65015
13950         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13951         and -fresolution.
13953 2015-02-11  Andrew Pinski  <apinski@cavium.com>
13955         PR target/64893
13956         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13957         Change the first argument type to size_type_node and add another
13958         size_type_node.
13959         (aarch64_simd_expand_builtin): Handle the new argument to
13960         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
13961         print an out when the first two arguments are not
13962         nonzero integer constants.
13963         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
13964         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
13966 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13968         PR target/61925
13969         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
13970         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
13971         (ix86_set_current_function): Rewritten.
13972         (ix86_add_new_builtins): Temporarily clear current_target_pragma
13973         when creating builtin fndecls.
13975 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13977         PR ipa/65005
13978         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
13979         function.
13980         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
13981         have no comdat group.
13982         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
13983         (lto_output_varpool_node): Always output alias info.
13984         (output_refs): Output refs of boundary aliases, too.
13985         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
13986         (output_symtab): Output call eges in thunks in boundary.
13987         (get_alias_symbol): Remove.
13988         (input_node, input_varpool_node): Do not special case weakrefs.
13989         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
13990         alias and thunks targets in the boundary; do not take removed symbols
13991         from their comdat groups.
13992         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
13993         (cgraph_node::global_info): Remove.
13994         (cgraph_node::rtl_info): Look through aliases and thunks.
13995         * cgrpah.h (global_info): Remove.
13996         (non_local_p): Remove.
13998 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13999             Sandra Loosemore  <sandra@codesourcery.com>
14001         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
14002         to inline asm.  List dialects in proper order.
14004 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14005             Sandra Loosemore  <sandra@codesourcery.com>
14007         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
14009 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14011         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
14012         modified) reference to Solaris.
14014 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
14016         * doc/extend.texi (Extended Asm): Fix typos.
14018 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
14020         PR sanitizer/65004
14021         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
14023 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
14025         PR target/64661
14026         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
14027         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
14028         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
14029         * config/sh/constraints.md (Ara, Add): New constraints.
14030         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
14031         predicates.
14032         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
14033         atomic_mem_operand_0.  Don't use force_reg on the memory address.
14034         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
14035         Sra constraint.  Convert to insn_and_split.  Add workaround for
14036         PR 64974.
14037         (atomic_compare_and_swap<mode>_hard): Copy to
14038         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
14039         Use atomic_mem_operand_0 predicate.
14040         (atomic_compare_and_swap<mode>_soft_gusa,
14041         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
14042         AraAdd constraints.
14043         (atomic_compare_and_swap<mode>_soft_tcb,
14044         atomic_compare_and_swap<mode>_soft_imask,
14045         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
14046         atomic_mem_operand_0 predicate and SraSdd constraints.
14047         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
14048         constraint.
14049         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
14050         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
14051         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
14052         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
14053         force_reg on the memory address.
14054         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
14055         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
14056         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
14057         atomic_mem_operand_1 predicate and Sra constraint.
14058         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
14059         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
14060         Use atomic_mem_operand_1 predicate.
14061         (atomic_<fetchop_name><mode>_hard): Copy to
14062         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
14063         Use atomic_mem_operand_1 predicate.
14064         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
14065         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
14066         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
14067         insn_and_split.  Use atomic_mem_operand_1 predicate.
14068         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
14069         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
14070         Use atomic_mem_operand_1 predicate.
14071         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
14072         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
14073         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
14074         in generated insn with original mem operand before emitting the insn.
14075         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
14076         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
14077         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
14078         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
14079         Use atomic_mem_operand_1 predicate and AraAdd constraints.
14080         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
14081         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
14082         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
14083         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
14084         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
14085         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
14086         atomic_not_fetch<mode>_soft_tcb,
14087         atomic_<fetchop_name>_fetch<mode>_soft_imask,
14088         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
14089         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
14090         Use atomic_mem_operand_1 predicate and SraSdd constraints.
14092 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
14094         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
14095         and 3 earlyclobber operands.
14097 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14099         * common.opt (fstack-reuse): Mark as optimization.
14101 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14103         PR ipa/64982
14104         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
14106 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
14108         PR tree-optimization/64326
14109         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
14111 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
14113         PR gcov-profile/61889
14114         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
14116 2015-02-10  Richard Biener  <rguenther@suse.de>
14118         PR tree-optimization/64995
14119         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
14120         value we use is final.
14121         (visit_reference_op_store): Always valueize op.
14122         (visit_use): Properly valueize vuses.
14124 2015-02-10  Richard Biener  <rguenther@suse.de>
14126         PR tree-optimization/64909
14127         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
14128         pass a scalar-stmt count estimate to the cost model.
14129         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
14131 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
14133         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
14134         enabled by default together with var-tracking.
14136 2015-02-10  Nick Clifton  <nickc@redhat.com>
14138         * config/rl78/rl78.c: Remove DIV attribute code accidentally
14139         included in previous rl78 commit.
14141 2015-02-10  Richard Biener  <rguenther@suse.de>
14143         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
14144         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
14145         return the bitpack.
14147 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
14149         PR gcov-profile/61889
14150         * config.in: regenerate.
14151         * configure.in: Likewise.
14152         * configure.ac: Check for ftw.h.
14153         * gcov-tool.c: Check for ftw.h before using nftw.
14155 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
14157         PR lto/64076
14158         * ipa-visibility.c (update_visibility_by_resolution_info): Only
14159         assert when not in lto mode.
14161 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14163         * ira-color.c (setup_left_conflict_sizes_p): Simplify
14164         initialization/assignment of conflict_size.
14166 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
14168         PR ipa/64978
14169         * ipa-cp.c (gather_caller_stats): Skip thunks.
14170         (propagate_constants_topo): Skip aliases.
14172 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14174         PR target/64761
14175         * config/sh/sh.c (sh_option_override): Don't change
14176         -freorder-blocks-and-partition to -freorder-blocks even when
14177         unwinding is enabled.
14178         (sh_can_follow_jump): Return false if the followee jump is
14179         a crossing jump when -freorder-blocks-and-partition is specified.
14180         * config/sh/sh.md (*jump_compact_crossing): New insn.
14182 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14183             Kaz Kojima  <kkojima@gcc.gnu.org>
14185         PR target/64761
14186         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
14187         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
14188         (sh_can_redirect_branch): Rename to ...
14189         (sh_can_follow_jump): ... this.  Constify argument types.
14190         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
14191         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
14192         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
14193         * doc/tm.texi: Regenerate.
14195 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
14197         PR sanitizer/64981
14198         * builtins.c (expand_builtin): Call targetm.expand_builtin
14199         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
14201 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14203         PR ipa/61548
14204         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
14206 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14208         PR ipa/63566
14209         * ipa-icf.c (set_local): New function.
14210         (sem_function::merge): Use it.
14212 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14214         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
14215         (add_type_duplicate): Fix comparison of BINFOs.
14217 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14219         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
14220         on getting VOID pointer.
14222 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
14224         PR target/64979
14225         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
14226         va_list escapes.
14228 2015-02-09  Richard Biener  <rguenther@suse.de>
14230         * genmatch.c (replace_id): Copy expr_type.
14232 2015-02-09  Richard Biener  <rguenther@suse.de>
14234         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
14235         (streamer_write_tree_bitfields): Declare.
14236         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
14237         properly unpack padding.
14238         (unpack_value_fields): Inline ...
14239         (streamer_read_tree_bitfields): ... here.
14240         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
14241         and properly add padding bits.
14242         (streamer_pack_tree_bitfields): Fold into ...
14243         (streamer_write_tree_bitfields): ... this new function,
14244         exposing the bitpack object.
14245         * lto-streamer-out.c (lto_write_tree_1): Call
14246         streamer_write_tree_bitfields.
14248 2015-02-09  Richard Biener  <rguenther@suse.de>
14250         PR tree-optimization/54000
14251         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
14252         (struct ivopts_data): Add loop_loc member.
14253         (tree_ssa_iv_optimize_loop): Dump loop location.
14254         (create_new_ivs): Likewise, also dump number of IVs generated.
14256 2015-02-09  Martin Liska  <mliska@suse.cz>
14258         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
14259         just if not yet registered.
14260         (ipa_icf_generate_summary): Register callgraph hooks.
14262 2015-02-08  Andrew Pinski  <apinski@cavium.com>
14264         * config/aarch64/aarch64.c (gty_dummy): Delete.
14266 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14268         PR ipa/63566
14269         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
14270         (cgraph_node::local_p): Remove thunk related FIXME.
14272 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14274         PR ipa/63566
14275         * i386.c (ix86_function_regparm): Look through aliases to see if callee
14276         is local and optimized.
14277         (ix86_function_sseregparm): Likewise; also use target's SSE math
14278         settings; error out instead of silently generating wrong code
14279         on mismatches.
14280         (init_cumulative_args): Look through aliases.
14282 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14284         PR ipa/63566
14285         * ipa-split.c (execute_split_functions): Split if function has aliases.
14287 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14289         PR ipa/63566
14290         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
14291         aliases before trying to expand it.
14292         (cgraph_node::expand_thunk): Fix formating.
14294 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
14296         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
14297         (Using Assembly Language with C): Expand introduction.
14298         (Basic Asm): Copy-edit.  Add more information about uses of
14299         basic asm.
14300         (Extended Asm): Copy-edit.  Document new escape syntax and
14301         %l[label] syntax.
14302         (Global Reg Vars): Copy-edit.
14303         (Local Reg Vars): Likewise.
14305 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
14307         PR debug/2714
14308         PR bootstrap/64256
14309         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14310         (DBX_CONTIN_CHAR): Define.
14312 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
14313             Brian Rzycki  <b.rzycki@samsung.com>
14315         PR tree-optimization/64878
14316         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14317         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14318         Stop recursion at loop phi nodes after having visited a loop phi node.
14320 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14322         * toplev.c (process_options): Change flag_ipa_ra before creating
14323         optimization_{default,current}_node.
14325         PR ipa/64896
14326         * cgraphunit.c (cgraph_node::expand_thunk): If
14327         restype is not is_gimple_reg_type nor the thunk_fndecl
14328         returns aggregate_value_p, set restmp to a temporary variable
14329         instead of resdecl.
14331 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14333         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14335 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14337         PR target/64205
14338         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14339         add a general secondary reload handler for SDmode, unless we have
14340         both read/write support for SDmode.
14342 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14344         PR middle-end/64937
14345         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14346         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14347         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14348         1 before, push it to abstract_vec.
14349         (dwarf2out_abstract_function): Adjust caller.  Don't call
14350         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14351         DECL_ABSTRACT_P flags for all abstract_vec elts.
14353 2015-02-06  Renlin Li  <renlin.li@arm.com>
14355         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14356         complex gimple.
14357         * tree-ssa.c (execute_update_addresses_taken): Likewise.
14359 2015-02-06  Jeff Law  <law@redhat.com>
14361         PR target/64889
14362         * config/h8300/h8300.c (push): New argument "in_prologue".
14363         Pass "in_prologue" along to "F".
14364         (h8300_push_pop): Corresponding changes.
14365         (h8300_expand_prologue): Likewise.
14366         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
14368 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14370         PR rtl-optimization/64957
14371         PR debug/64817
14372         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14373         IOR rather than for AND.
14375 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
14377         PR target/62631
14378         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14379         of shift-add and (add + shift) operations.  Rename local variable.
14381 2015-02-05  Jeff Law  <law@redhat.com>
14383         PR target/17306
14384         * config/h8300/constraints.md (U): Correctly dectect
14385         "eightbit_data" memory addresses.
14386         * config/h8300/h8300.c (eightbit_constant_address_p): Also
14387         handle (const (plus (symbol_ref (x)))) where x is declared
14388         as an 8-bit data memory address.
14389         * config/h8300/h8300.md (call, call_value): Correctly detect
14390         "funcvec" functions.
14392         PR target/43264
14393         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14394         24 to 28 bits for the H8/300.
14396 2015-02-06  Alan Modra  <amodra@gmail.com>
14398         PR target/64876
14399         * config/rs6000/rs6000.c (chain_already_loaded): New function.
14400         (rs6000_call_aix): Use it.
14402 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
14404         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14405         check.
14407 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
14409         * config/h8300/constraints.md ("U" constraint): Use strict
14410         variant of REG_OK_FOR_BASE_P after reload has started.
14412 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
14414         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14415         define to zero if !TARGET_NEON.
14416         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14418 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14419             Trevor Saunders  <tsaunders@mozilla.com>
14421         PR ipa/61548
14422         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14424 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14426         PR ipa/61548
14427         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
14428         when removing varpool nodes.
14430 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14432         PR ipa/61548
14433         * varpool.c (varpool_node::remove): Fix order of variables.
14435 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14437         PR ipa/64686
14438         * ipa-inline.c (inline_small_functions): Fix ordering issue between
14439         speculation resolution and key updates.
14441 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14443         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
14444         about not letting any speculative edges unupdated.
14446 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14448         PR gcov/64123
14449         * gcov-io.c (gcov_var): Export.
14451 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14453         PR middle-end/64922
14454         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
14455         edges that become speculative.
14457 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14459         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
14460         or DW_LANG_Fortran08.
14461         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
14462         DW_LANG_Fortran08.
14463         (gen_compile_unit_die): Handle "GNU Fortran2003" and
14464         "GNU Fortran2008" language strings.
14465         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
14466         * langhooks.h (lang_GNU_Fortran): New prototype.
14467         * langhooks.c (lang_GNU_Fortran): New function.
14468         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
14469         lang_GNU_Fortran.
14471 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
14473         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
14474         (RTX_OK_FOR_OLO10_P): Likewise.
14476 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
14478         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
14480 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14482         PR middle-end/64922
14483         * gimple.c: Include gimple-ssa.h.
14484         (maybe_remove_unused_call_args): New function.
14485         * gimple.h (maybe_remove_unused_call_args): Declare.
14486         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14487         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14488         * gimple-fold.c (gimple_fold_call): Likewise.
14490 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
14492         PR rtl-optimization/64905
14493         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
14494         pointer alignment if it isn't needed.
14496 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
14498         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
14499         cortex-a72.cortex-a53.
14500         * config/aarch64/aarch64-tune.md: Regenerate.
14501         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
14503 2015-02-04  Nick Clifton  <nickc@redhat.com>
14505         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
14506         inside a MEM.
14508 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
14510         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
14511         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
14512         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
14513         of DEF_BUILTIN.
14514         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
14515         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
14516         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
14517         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
14518         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
14519         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
14520         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
14521         * tree-core.h (enum built_in_function): In between
14522         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
14523         for builtins that use DEF_BUILTIN_CHKP macro.
14525 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
14527         PR debug/64817
14528         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
14529         operands for tcc_comparison exprs.  Fix typos.
14531         PR debug/64817
14532         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
14533         of two XORs that have an intervening AND or IOR.
14535         PR debug/64817
14536         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
14537         simplification of XOR of AND to not allocate new rtx before
14538         committing to a simplification.
14540 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14542         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
14543         manual swaps in all peepholes.
14545 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14547         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
14548         of manual swapping implementation.
14549         (aarch64_expand_vec_perm_const_1): Likewise.
14551 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
14553         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
14554         (generic_addrcost_table): Remove NAMED_PARAM.
14555         (cortexa57_addrcost_table): Likewise.
14556         (xgene1_addrcost_table): Likewise.
14557         (generic_regmove_table): Likewise.
14558         (cortexa53_regmove_table): Likewise.
14559         (xgene1_regmove_table): Likewise.
14560         (generic_vector_table): Likewise.
14561         (cortexa57_vector_table): Likewise.
14562         (xgene1_vector_table): Likewise.
14563         (generic_tunings): Likewise.
14564         (cortexa53_tunings): Likewise.
14565         (cortexa57_tunings): Likewise.
14566         (xgene1_tunings): Likewise.
14568 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
14570         * config/arm/arm-cores.def: Add cortex-a72 and
14571         cortex-a72.cortex-a53.
14572         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
14573         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
14574         * config/arm/arm-tune.md: Regenerate.
14575         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
14576         "cortex-a72.cortex-a53".
14577         * doc/invoke.texi (ARM Options/-mtune): Likewise.
14579 2015-02-04  Nick Clifton  <nickc@redhat.com>
14581         PR target/64408
14582         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
14583         of accepted codes.
14584         (nonimmediate_di_operand): Likewise.
14586         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
14587         prefixes of known F5 using MSP430 MCUs.
14589 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14591         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
14592         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
14593         instead of __builtin_sqrt.
14595 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
14597         * varasm.c (do_assemble_alias): Follow transparent alias
14598         chain for target.
14599         (default_assemble_visibility): Follow transparent alias
14600         chain for decl name.
14602 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14604         PR middle-end/62103
14605         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
14606         to compute size of referenced value in the constant case.
14608 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14610         PR rtl-optimization/64756
14611         * cse.c (invalidate_dest): New function.
14612         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
14613         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
14614         invalidate and do not record it.
14616 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
14618         PR target/64660
14619         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
14620         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
14621         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
14622         atomic_nand<mode>_soft_tcb): New insns.
14623         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
14624         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
14625         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
14626         Split into atomic_not_fetchsi_hard if operands[0] is unused.
14627         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
14628         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14629         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
14630         atomic_not<mode>_hard if operands[0] is unused.
14631         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
14632         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
14633         if operands[0] is unused.
14634         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
14635         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
14636         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
14637         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14638         unused.
14639         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
14640         into atomic_not<mode>_soft_tcb if operands[0] is unused.
14641         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
14642         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
14643         if operands[0] is unused.
14644         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
14645         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
14646         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
14647         atomic_nand_fetchsi_hard if operands[0] is unused.
14648         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
14649         atomic_nand<mode>_hard if operands[0] is unused.
14650         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
14651         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
14652         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
14653         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14654         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
14655         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
14656         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
14657         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
14658         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
14659         atomic_not<mode>_hard if operands[0] is unused.
14660         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
14661         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
14662         unused.
14663         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
14664         into atomic_not<mode>_soft_tcb if operands[0] is unused.
14665         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
14666         atomic_nand<mode>_hard if operands[0] is unused.
14667         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
14668         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
14670 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
14672         PR jit/64810
14673         * Makefile.in (GCC_OBJS): Add gcc-main.o.
14674         * gcc-main.c: New file, containing "main" taken from gcc.c.
14675         * gcc.c (do_self_spec): Free decoded_options.
14676         (class driver): Move declaration to gcc.h.
14677         (main): Move declaration and implementation to new file
14678         gcc-main.c.
14679         (driver_get_configure_time_options): New function.
14680         * gcc.h (class driver): Move this declaration here, from
14681         gcc.c.
14682         (driver_get_configure_time_options): New declaration.
14684 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
14686         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
14687         cross-module inlining.
14688         * cgraph.h (cgraph_node): Add flag merged.
14689         * ipa-icf.c (sem_function::merge): Maintain it.
14691 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
14693         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
14694         instead of OBJECT_P.
14696 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
14698         PR target/62631
14699         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
14700         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
14701         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
14702         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
14704 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14706         PR other/63504
14707         * combine.c (reg_n_sets_max): New variable.
14708         (can_change_dest_mode, reg_nonzero_bits_for_combine,
14709         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
14710         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
14711         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
14712         (rest_of_handle_combine): Initialize reg_n_sets_max.
14714 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
14716         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14717         if some always_inline was inlined, apply changes before inlining
14718         heuristically.
14720 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
14722         PR jit/64810
14723         * config/arm/arm.c (arm_option_override): Set
14724         arm_selected_arch/cpu/tune to NULL on entry.
14726 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
14727             Andrew Pinski  <pinskia@gcc.gnu.org>
14728             Jakub Jelinek  <jakub@gcc.gnu.org>
14730         PR target/64231
14731         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
14732         integer typing for small model. Use IN_RANGE.
14734 2015-02-02  Richard Biener  <rguenther@suse.de>
14736         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
14737         * tree-vrp.c (vrp_valueize_1): Likewise.
14739 2015-02-02  Alan Modra  <amodra@gmail.com>
14741         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
14742         than mem for toc_restore.
14743         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
14744         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
14745         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
14747 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
14749         PR target/64047
14750         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
14751         explicit default options.
14753 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
14755         PR ipa/64872
14756         * ipa-utils.c (ipa_merge_profiles): Add release argument.
14757         * ipa-icf.c (sem_function::merge): Do not release body when merging.
14758         * ipa-utils.h (ipa_merge_profiles): Update prototype.
14760 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
14762         PR debug/64817
14763         * cfgexpand.c (deep_ter_debug_map): New variable.
14764         (avoid_deep_ter_for_debug): New function.
14765         (expand_debug_expr): If TERed SSA_NAME is in
14766         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
14767         instead of trying to expand SSA_NAME's def stmt.
14768         (expand_debug_locations): When expanding debug bind
14769         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
14770         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
14771         value.
14772         (pass_expand::execute): Call avoid_deep_ter_for_debug on
14773         all debug bind stmts.  Delete deep_ter_debug_map after
14774         expand_debug_location if non-NULL and clear it.
14776 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
14778         PR target/64851
14779         * config/sh/sync.md (atomic_fetch_notsi_hard,
14780         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
14781         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
14782         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
14783         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
14784         atomic_not_fetch<mode>_soft_imask): New insns.
14786 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14788         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
14789         (rank_for_schedule_debug): Split from ...
14790         (rank_for_schedule): ... this.
14791         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
14792         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
14794 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14796         * doc/md.texi (Machine Constraints): Alphabetize table by target.
14797         * doc/extend.texi (x86 Variable Attributes): Move section to
14798         correct alphabetization after renaming.
14799         (x86 Type Attributes): Likewise.
14800         (Target Builtins): Re-alphabetize menu.
14801         (x86 Built-in Functions): Move section to correct alphabetization
14802         after renaming.
14803         (x86 transactional memory intrinsics): Likewise.
14804         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
14805         and x86 Windows Options in table and menu.
14806         (x86 Options): Move section to correct alphabetization after
14807         renaming.
14808         (x86 Windows Options): Likewise.
14810 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14812         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
14813         preferred names of the architecture and its 32- and 64-bit
14814         variants.
14815         * doc/invoke.texi: Likewise.
14816         * doc/md.texi: Likewise.
14818 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14820         PR target/64882
14821         * config/i386/predicates.md (address_no_seg_operand): Reject
14822         non-CONST_INT_P operands in invalid mode.
14824 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14826         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
14827         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
14828         * config/i386/predicates.md (address_no_seg_operand): Call
14829         address_operand with VOIDmode.
14830         (vsib_address_operand): Ditto.
14831         (address_mpx_no_base_operand): Ditto.
14832         (address_mpx_no_index_operand): Ditto.
14834 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14836         PR target/64688
14837         * lra-constraints.c (original_subreg_reg_mode): New.
14838         (simplify_operand_subreg): Try to simplify subreg of const.  Use
14839         original_subreg_reg_mode for it.
14840         (swap_operands): Update original_subreg_reg_mode.
14841         (curr_insn_transform): Set up original_subreg_reg_mode.
14843 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14845         PR target/64617
14846         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
14847         function.
14848         (process_alt_operands): Use it.
14849         (curr_insn_transform): Check the optional reload pseudo class is
14850         ok for the mode.
14852 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
14854         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
14855         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
14856         prototype.
14857         * toplev.h (init_asm_output): Update comment on use of
14858         UNKNOWN_LOCATION with fatal_error.
14859         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
14860         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
14861         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
14862         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
14863         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
14864         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
14865         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
14866         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
14867         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
14868         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
14869         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
14870         fatal_error changed to pass input_location as first argument.
14872 2015-01-30  Martin Liska  <mliska@suse.cz>
14874         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
14875         in #pragma GCC diagnostic guards.
14877 2015-01-30  Richard Biener  <rguenther@suse.de>
14879         PR tree-optimization/64829
14880         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
14881         not add a widening conversion pattern but hand off extra
14882         widenings to callers.
14883         (vect_recog_widen_mult_pattern): Handle extra widening produced
14884         by vect_handle_widen_op_by_const.
14885         (vect_recog_widen_shift_pattern): Likewise.
14886         (vect_pattern_recog_1): Remove excess vertical space in dumping.
14887         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14888         (vect_init_vector_1): Likewise.
14889         (vect_get_vec_def_for_operand): Likewise.
14890         (vect_finish_stmt_generation): Likewise.
14891         (vectorizable_load): Likewise.
14892         (vect_analyze_stmt): Likewise.
14893         (vect_is_simple_use): Likewise.
14895 2015-01-29  Jeff Law  <law@redhat.com>
14897         * combine.c (try_combine): Fix typo in comment.
14899 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
14901         PR target/64580
14902         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
14903         (rs6000_stack_info): Add assert.
14904         (rs6000_output_savres_externs): New function, split off from...
14905         (rs6000_output_function_prologue): ... here.  Do not call it for
14906         thunks.
14908 2015-01-29  Jeff Law  <law@redhat.com>
14910         PR target/15184
14911         * combine.c (try_combine): If I0 is a memory load and I3 a store
14912         to a related address, increase the "goodness" of doing a 4-insn
14913         combination with I0-I3.
14914         (make_field_assignment): Handle SUBREGs in the ior+and case.
14916 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
14918         PR tree-optimization/64746
14919         * tree-if-conv.c (mask_exists): New function.
14920         (predicate_mem_writes): Save created mask with given size for further
14921         use.
14922         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
14923         (ifcvt_repair_bool_pattern): Collect all statements that are root
14924         of bool pattern and use iterative algorithm to remove multiple uses
14925         of predicates, display number of required iterations.
14927 2015-01-29  Richard Biener  <rguenther@suse.de>
14929         PR tree-optimization/64853
14930         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
14931         stmt will get simulated again.
14932         * tree-ssa-ccp.c (valueize_op_1): Likewise.
14934 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14936         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
14937         return_in_pc.  Remove redundant assignments.
14938         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
14939         (arm_expand_epilogue): Don't compare boolean with true in if condition.
14941 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
14943         * config/i386/i386.c (ix86_mode_after): Make static.
14945 2015-01-29  Richard Biener  <rguenther@suse.de>
14947         PR tree-optimization/64844
14948         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
14949         dump cost model analysis.
14950         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14951         Do not register adjusted load/store costs here.
14953 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14954             Uros Bizjak  <ubizjak@gmail.com>
14956         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
14957         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
14958         using x86_use_pseudo_pic_reg.
14959         * config/i386/i386.c (ix86_conditional_register_usage): Remove
14960         support for fixed PIC register.
14961         (ix86_use_pseudo_pic_reg): Not static any more.
14963 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14965         PR middle-end/64805
14966         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
14967         to avoid error in cgraph node verification.
14969 2015-01-29  Marek Polacek  <polacek@redhat.com>
14971         * doc/standards.texi: Reflect that the default for C is gnu11.
14973 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14975         PR target/64761
14976         * reorg.c (switch_text_sections_between_p): New function.
14977         (relax_delay_slots): Call it when testing if the jump insn
14978         is removable.  Use targetm.can_follow_jump when testing if
14979         the conditional branch can follow an unconditional jump.
14981 2015-01-27  Caroline Tice  <cmtice@google.com>
14983         Committing VTV Cywin/Ming patch for Patrick Wollgast
14984         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
14985         if -fvtable-verify=preinit/std is used.
14986         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
14987         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
14988         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
14989         if -fvtable-verify=preinit/std is used.
14990         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14991         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
14992         if -fvtable-verify=preinit/std is used.
14993         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
14994         * config/i386/mingw32.h (LIB_SPEC): Likewise.
14995         * varasm.c (assemble_variable): Add code to properly set the comdat
14996         section and name for the .vtable_map_vars section in case the
14997         target is PE or COFF.
14999 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15001         PR ipa/64801
15002         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
15003         make sane BB profile.
15004         (cgraph_node::expand_thunk): Make sane BB profile.
15005         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
15006         * cgraph.h (init_lowered_empty_function): Update prototype.
15007         * config/i386/i386.c (make_resolver_func): Update call.
15008         * predict.c (gate): Disable branch prediction pass if
15009         profile is already there.
15011 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15013         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
15014         * opth-gen.awk: Likewise.
15015         * common.opt: Mark flag_fp_contract_mode as Optimization.
15017 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15019         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
15020         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
15022 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
15024         PR target/64659
15025         * config/sh/predicates.md (atomic_arith_operand,
15026         atomic_logical_operand): Remove.
15027         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
15028         (atomic_arith_operand_0): New predicate.
15029         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
15030         Use atomic_arith_operand_0 for input values.
15031         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
15032         atomic_compare_and_swap<mode>_soft_gusa,
15033         atomic_compare_and_swap<mode>_soft_tcb,
15034         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
15035         arith_reg_operand instead of register_operand.
15036         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
15037         atomic_arith_operand_0 for newval input.
15038         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15039         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
15040         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
15041         arith_reg_operand instead of register_operand.
15042         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
15043         fetchop_predicate_1, fetchop_constraint_1_llcs,
15044         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
15045         fetchop_constraint_1_imask): New code iterator attributes.
15046         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
15047         register_operand.  Use fetchop_predicate_1.
15048         (atomic_fetch_<fetchop_name>si_hard,
15049         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
15050         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
15051         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
15052         and arith_reg_operand instead of register_operand.  Use
15053         fetchop_predicate_1, fetchop_constraint_1_gusa.
15054         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
15055         and arith_reg_operand instead of register_operand.  Use
15056         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
15057         to allow R0 usage.
15058         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
15059         and arith_reg_operand instead of register_operand.  Use
15060         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
15061         to allow R0 usage.
15062         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
15063         register_operand.  Use atomic_logical_operand_1.
15064         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
15065         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
15066         arith_reg_operand instead of register_operand.
15067         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
15068         Use arith_reg_dest and arith_reg_operand instead of register_operand.
15069         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
15070         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
15071         register_operand.  Use fetchop_predicate_1.
15072         (atomic_<fetchop_name>_fetchsi_hard,
15073         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
15074         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15075         fetchop_constraint_1_llcs.
15076         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
15077         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15078         fetchop_constraint_1_gusa.
15079         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
15080         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15081         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
15082         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
15083         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15084         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
15085         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
15086         register_operand.  Use atomic_logical_operand_1.
15087         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
15088         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
15089         arith_reg_operand instead of register_operand.
15090         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
15091         arith_reg_operand instead of register_operand.  Use logical_operand
15092         and K08.  Adjust asm sequence to allow R0 usage.
15093         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
15094         arith_reg_operand instead of register_operand.  Use logical_operand
15095         and K08.
15097 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
15099         PR other/63504
15100         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
15101         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
15102         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
15103         only get_full_len HOST_WIDE_INTs from get_val () array rather than
15104         all bits in *val_wide.
15106 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
15108         * varpool.c (tls_model_names): Fix names.
15109         (varpool_node::dump): Dump tls- prefix for tls models.
15111 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
15112             Bernd Schmidt  <bernds@codesourcery.com>
15113             Nathan Sidwell  <nathan@codesourcery.com>
15115         * config/nvptx/mkoffload.c: New file.
15116         * config/nvptx/t-nvptx: Add build rules for it.
15117         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
15118         (extra_programs): Add mkoffload.
15119         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
15120         function.
15121         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
15123 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
15125         PR middle-end/64809
15126         * cfgexpand.c (reorder_operands): Skip debug gimples.
15128 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
15130         PR tree-optimization/64277
15131         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
15132         range info when possible to refine estimation.
15134 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15136         PR tree-optimization/64718
15137         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
15138         be a 16bit unsigned integer when n->range is 16.
15139         (bswap_replace): Convert src to that type if necessary for all bswap
15140         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
15141         set in pass_optimize_bswap::execute ().
15143 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
15145         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
15146         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
15147         integer and floating point variants.
15148         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
15150 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
15152         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
15153         for all vector modes.
15155 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
15157         PR bootstrap/64612
15158         * doc/sourcebuild.texi (comdat_group): Document.
15160 2015-01-28  Terry Guo  <terry.guo@arm.com>
15162         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
15164 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
15166         * toplev.c (print_version): Add param "show_global_state", and
15167         only print GGC and plugin information if it is true.
15168         (init_asm_output): Pass in "true" for the new param when calling
15169         print_version.
15170         (process_options): Likewise.
15171         (toplev::main): Likewise.
15172         * toplev.h (print_version): Add new param to decl.
15174 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
15176         PR ipa/60871
15177         PR ipa/64139
15178         * tree.c (lookup_binfo_at_offset): New function.
15179         (get_binfo_at_offset): Use it.
15181 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
15183         PR ipa/64282
15184         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
15185         on vtable being vtable.
15187 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15189         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
15190         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
15191         -mhotpatch= option.
15192         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
15193         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
15194         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
15195         Renamed.
15196         (s390_hotpatch_trampoline_halfwords_max): Renamed.
15197         (s390_hotpatch_hw_max): New name.
15198         (s390_hotpatch_trampoline_halfwords): Renamed.
15199         (s390_hotpatch_hw_before_label): New name.
15200         (get_hotpatch_attribute): Removed.
15201         (s390_hotpatch_hw_after_label): New name.
15202         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
15203         attribute.
15204         (s390_attribute_table): Ditto.
15205         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
15206         (s390_function_num_hotpatch_hw): New name.
15207         Remove special handling of inline functions and hotpatching.
15208         Return number of nops before and after the function label.
15209         (s390_can_inline_p): Removed.
15210         (s390_asm_output_function_label): Emit a configurable number of nops
15211         after the function label.
15212         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
15213         (TARGET_CAN_INLINE_P) Removed.
15214         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
15216 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15217             Jiong Wang  <jiong.wang@arm.com>
15219         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
15220         of scratch reg.
15221         (cb<optab><mode>1): Likewise.
15222         * config/aarch64/iterators.md (bcond): New define_code_attr.
15224 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15226         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
15227         memory accesses.
15229 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15231         * config/s390/s390.c (s390_register_move_cost): Increase costs for
15232         FPR->GPR moves.
15234 2015-01-27  Richard Biener  <rguenther@suse.de>
15236         * tree-vrp.c (update_value_range): Intersect the range with
15237         old recorded SSA name range information.
15239 2015-01-27  Nick Clifton  <nickc@redhat.com>
15241         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
15242         BC, DE and HL registers directly, not via AX.
15243         When decrementing the stack pointer by a large amount, transfer SP
15244         into AX and perform the subtraction there.
15245         (rl78_expand_epilogue): Perform the inverse of the above
15246         enhancements.
15248 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15250         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
15252 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15253             Yury Gribov  <y.gribov@samsung.com>
15255         PR ubsan/64741
15256         * ubsan.c (ubsan_source_location): Refactor code.
15257         (ubsan_type_descriptor): Update type size. Refactor code.
15259 2015-01-27  Richard Biener  <rguenther@suse.de>
15261         PR tree-optimization/56273
15262         PR tree-optimization/59124
15263         PR tree-optimization/64277
15264         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
15265         from the first VRP pass.
15267 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15269         PR ipa/64776
15270         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
15271         handle the first argument in the same loop as all the other arguments.
15273         PR rtl-optimization/61058
15274         * jump.c (cleanup_barriers): Update basic block boundaries
15275         if BLOCK_FOR_INSN is non-NULL on PREV.
15277 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15279         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
15280         bounds narrowing, already instrumented calls and calls to
15281         not instrumentable functions.
15283 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15285         PR tree-optimization/64807
15286         * wide-int.cc (wi::divmod_internal): Clear
15287         b_dividend[dividend_blocks_needed].
15289 2015-01-26  DJ Delorie  <dj@redhat.com>
15291         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
15292         volatile memory references.
15294 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
15296         PR target/49263
15297         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
15298         remove_insn.
15299         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
15300         shifts if it already fits into K08.
15302 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15304         PR ipa/64730
15305         * ipa-inline.c (inline_small_functions): Print "unknown" even
15306         if edge->call_stmt is non-NULL, but has builtins or unknown
15307         location.
15309         PR middle-end/64421
15310         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15311         with asterisk, skip the first character.
15313 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15315         PR target/64806
15316         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15317         order change.
15319 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
15321         PR target/64795
15322         * config/i386/i386.md (*movdi_internal): Also check operand 0
15323         to determine TYPE_LEA operand.
15324         (*movsi_internal): Ditto.
15326 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15328         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15329         OPTION_MASK_QUAD_MEMORY_ATOMIC.
15331 2015-01-26  Renlin Li  <renlin.li@arm.com>
15333         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15334         the comment.
15335         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15336         for higher part.
15338 2015-01-26  Richard Biener  <rguenther@suse.de>
15340         PR middle-end/64764
15341         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15342         combining two BIT_AND_EXPR predicates.
15344 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15346         PR bootstrap/64754
15347         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15349 2015-01-26  Terry Guo  <terry.guo@arm.com>
15351         * config/arm/arm.c (arm_file_start): Update the assignment of
15352         Tag_ABI_HardFP_use.
15354 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
15356         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15357         pipeline model.
15358         config/arm/arm.md: Include the new Cortex-A57 model.
15359         (generic_sched): Don't use generic_sched when tuning for
15360         Cortex-A57.
15362 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
15363             Uros Bizjak  <ubizjak@gmail.com>
15365         * config/i386/i386.c (get_builtin_code_for_version): Add
15366         support for BMI and BMI2 multiversion functions.
15368 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15370         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15371         (extract_bit_field): Likewise.
15372         (extract_low_bits): Likewise.
15373         (expand_mult): Likewise.
15374         (expand_mult_highpart_adjust): Likewise.
15376 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15378         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15379         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15380         * config/i386/i386.c (processor_model): Add
15381         M_INTEL_COREI7_BROADWELL.
15382         (arch_names_table): Add "broadwell".
15384 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
15386         PR target/49263
15387         PR target/53987
15388         PR target/64345
15389         PR target/59533
15390         PR target/52933
15391         PR target/54236
15392         PR target/51244
15393         * config/sh/sh-protos.h
15394         (sh_extending_set_of_reg::can_use_as_unextended_reg,
15395         sh_extending_set_of_reg::use_as_unextended_reg,
15396         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15397         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15398         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15399         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15400         (sh_treg_insns): New class.
15401         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15402         (scope_counter): New class.
15403         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15404         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15405         sh_extending_set_of_reg::can_use_as_unextended_reg,
15406         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15407         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15408         sh_split_treg_set_expr): New functions.
15409         (addsubcosts): Handle treg_set_expr.
15410         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15411         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15412         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15413         (sh_insn_operands_modified_between_p): Make non-static.
15414         * config/sh/predicates.md (zero_extend_movu_operand): Allow
15415         simple_mem_operand in addition to displacement_mem_operand.
15416         (zero_extend_operand): Don't allow zero_extend_movu_operand.
15417         (treg_set_expr, treg_set_expr_not_const01,
15418         arith_reg_or_treg_set_expr): New predicates.
15419         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15420         arith_or_int_operand instead of logical_operand.  Convert to
15421         insn_and_split.  Try to optimize constant operand in splitter.
15422         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
15423         (*tstqi_t_zero): Delete.
15424         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
15425         (tstsi_t_and_not): Delete.
15426         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
15427         Convert to insn_and_split.
15428         (unnamed split, tstsi_t_zero_extract_xor,
15429         tstsi_t_zero_extract_subreg_xor_little,
15430         tstsi_t_zero_extract_subreg_xor_big): Delete.
15431         (*tstsi_t_shift_mask): New insn_and_split.
15432         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
15433         to recombine with surrounding insns when splitting.
15434         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
15435         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
15436         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
15437         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
15438         (*cbranch_div0s: Delete.
15439         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
15440         Try to recombine with surrounding insns when splitting.  Add operand
15441         order variants.
15442         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
15443         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
15444         *addc_r_r_msb, *addc_2r_msb): Delete.
15445         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
15446         order variant.
15447         (*addc_negreg_t): New insn_and_split.
15448         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
15449         Try to recombine with surrounding insns when splitting.
15450         Add operand order variants.
15451         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
15452         insn_and_split patterns.
15453         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
15454         surrounding insns when splitting.
15455         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
15456         (*rotcl): Likewise.  Add zero_extract variant.
15457         (*ashrsi2_31): New insn_and_split.
15458         (*negc): Convert to insn_and_split.  Use treg_set_expr.
15459         (*zero_extend<mode>si2_disp_mem): Update comment.
15460         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
15461         condition.
15462         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
15463         with surrounding insns when splitting.
15464         (any_treg_expr_to_reg): New insn_and_split.
15465         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
15466         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
15467         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
15468         *zero_extract_2): New single bit zero extract patterns.
15469         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
15470         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
15471         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
15472         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
15473         set destination.
15474         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
15475         register_operand for set source.
15477 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
15479         * i386.opt (prefetch_sse): New targetsave.
15480         * i386.c (ix86_function_specific_save): Save prefetch_sse.
15481         (ix86_function_specific_restore): Restore prefetch_sse and initialize
15482         ix86_cost/ix86_tune_cost.
15484 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15486         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
15487         Support the JIT by using 0 as the language type.
15489 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
15491         PR target/64317
15492         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
15493         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
15494         (mark_regno_live, process_bb_lives): Pass new parameter value to
15495         make_hard_regno_born.
15497 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15499         PR rtl-optimization/63637
15500         PR rtl-optimization/60663
15501         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
15502         if elt->cost is MAX_COST for ASM_OPERANDS.
15503         (find_sets_in_insn): Fix up comment typo.
15504         (cse_insn): Don't set src_volatile for all non-volatile
15505         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
15506         or with "memory" clobber.  Set elt->cost to MAX_COST
15507         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
15508         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
15510 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
15512         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
15513         alternative 1.
15515 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
15517         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
15518         libgcc/config/i386/elf-lib.h.
15520 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15522         PR driver/64737
15523         * gcc.c (print_configuration): Don't print a blank line at the end
15524         here...
15525         (run_attempt): ... but here unstead.
15527         PR middle-end/64734
15528         * omp-low.c (scan_sharing_clauses): Don't ignore
15529         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
15530         on target data/update constructs.
15532 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15534         PR target/50928
15535         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
15536         (DEBUG_RELOAD): Removed define.
15537         (m32c_limit_reload_class): Enable traces with if DEBUG0.
15538         (m32c_function_arg): Added a type cast.
15539         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
15540         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
15541         * config/m32c/bitops.md (andqi3_16): Likewise.
15542         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
15543         (push_a01_l): Likewise.
15545 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15547         PR jit/64721
15548         * main.c (main): Construct toplev instances with init_signals=true.
15549         * toplev.c (general_init): Add param "init_signals", and use it to
15550         conditionalize the calls to signal and host_hooks.extra_signals.
15551         (toplev::toplev): Add param "init_signals".
15552         (toplev::main): When invoking general_init, pass m_init_signals
15553         to control whether signal-handlers are installed.
15554         * toplev.h (toplev::toplev): Add param "init_signals".
15555         (toplev::m_init_signals): New field.
15557 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
15559         PR jit/64722
15560         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
15561         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
15562         latter may be affected by the former (e.g. on i686).
15564 2015-01-23  Martin Liska  <mliska@suse.cz>
15566         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
15567         false positive during profiledbootstrap.
15569 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15571         PR libgomp/64672
15572         * lto-opts.c (lto_write_options): Output non-explicit conservative
15573         -fno-openacc.
15574         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
15575         (append_compiler_options): Pass -fopenacc through.
15577 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15579         PR libgomp/64707
15580         * lto-opts.c (lto_write_options): Output non-explicit conservative
15581         -fno-openmp.
15582         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
15583         (append_compiler_options): Pass -fopenmp through.
15585 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15587         PR debug/64511
15588         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
15589         GTY markup.
15591         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
15592         * diagnostic.def (DK_ICE_NOBT): New kind.
15593         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
15594         like DK_ICE, but never print backtrace.
15595         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
15596         (internal_error_no_backtrace): New function.
15597         * gcc.c (execute): Use internal_error_no_backtrace instead of
15598         internal_error.
15600 2015-01-22  Jeff Law  <law@redhat.com>
15602         PR target/52076
15603         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
15604         improve code density for small immediate to memory case.
15605         (insv): Better handle bitfield assignments when the field is
15606         being set to all ones.
15607         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
15608         operand predicate.
15610 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15611             Jakub Jelinek  <jakub@redhat.com>
15613         PR middle-end/64729
15614         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
15615         for !TARGET_LIBC_PROVIDES_SSP version and
15616         -fstack-protector-{all,strong,explicit} otherwise.
15617         * config/freebsd.h (LINK_SSP_SPEC): Handle
15618         -fstack-protector-{strong,explicit}.
15620 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
15621             H.J. Lu  <hongjiu.lu@intel.com>
15623         PR ipa/64694
15624         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
15625         heap.
15627 2015-01-22  Wei Mi  <wmi@google.com>
15629         PR rtl-optimization/64557
15630         * dse.c (record_store): Call get_addr for mem_addr.
15631         (check_mem_read_rtx): Likewise.
15633 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15635         * fold-const.c (const_binop): Add early return for non-tcc_binary.
15637 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
15639         * toplev.c (init_local_tick): Process the failure when read
15640         fails for random_seed.
15642         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
15643         'pretty_name' to avoid memory overflow.
15645 2015-01-22  Richard Biener  <rguenther@suse.de>
15647         PR middle-end/64728
15648         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
15649         abnormal coalescing on undefined SSA names.
15651 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
15653         PR target/64688
15654         PR target/64477
15655         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
15656         for alternative 3.
15657         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
15659 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
15661         PR middle-end/63325
15662         * fold-const.c (fold_checksum_tree): Don't include value of
15663         expr->decl_with_vis.symtab_node in the checksum.
15665 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15667         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
15669 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15671         PR driver/64690
15672         * gcc.c (insert_comments): New function.
15673         (try_generate_repro): Call it.
15674         (append_text): Removed.
15676 2015-01-22  Richard Biener  <rguenther@suse.de>
15678         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
15679         with IL incompatible options.  Properly honor user optimize
15680         attributes.
15682 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
15684         PR rtl-optimization/64682
15685         * combine.c (distribute_notes): When moving a death note for
15686         a register that is set in the new I2, make sure to put it
15687         before that new I2.
15689 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
15691         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
15692         not TARGET_DEFAULT.
15694 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
15696         PR debug/64511
15697         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
15698         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
15699         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
15701         PR sanitizer/64706
15702         * doc/invoke.texi (-fsanitize=vptr): Document.
15704         PR rtl-optimization/62078
15705         * dse.c: Include cfgcleanup.h.
15706         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
15707         anything call purge_all_dead_edges and cleanup_cfg at the end
15708         of the pass.
15710 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
15712         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
15713         edges.
15715 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15717         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
15718         decl attribute.
15720 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15721             Tejas Belagod <Tejas.Belagod@arm.com>
15723         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15724         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
15725         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
15726         Removed.
15728 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15729             Tejas Belagod <Tejas.Belagod@arm.com>
15731         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
15732         (aarch64_reverse_mask): New decls.
15733         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
15734         (insn_count): New mode_attr.
15735         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
15736         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
15737         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
15738         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
15739         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
15740         (aarch64_simd_st4): New patterns.
15741         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
15742         (aarch64_reverse_mask): New functions.
15744 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
15746         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
15747         Declare.
15748         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
15749         addressing modes for BE.
15750         (aarch64_print_operand): Add 'R' specifier.
15751         (aarch64_simd_disambiguate_copy): Delete.
15752         (aarch64_simd_emit_reg_reg_move): New function.
15753         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
15754         in define_splits for structural moves.
15755         (mov<mode>): Use less restrictive predicates.
15756         (*aarch64_mov<mode>): Simplify and only allow for LE.
15757         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
15759 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
15761         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
15763 2015-01-21  Richard Henderson  <rth@redhat.com>
15765         PR target/64669
15766         * ccmp.c (used_in_cond_stmt_p): Remove.
15767         (expand_ccmp_expr): Don't use it.
15769 2015-01-21  Nick Clifton  <nickc@redhat.com>
15771         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
15772         PARALLELs.
15774 2015-01-21  Richard Biener  <rguenther@suse.de>
15776         PR middle-end/64313
15777         * tree-core.h (builtin_info, builtin_info_type): Turn from
15778         an object with two arrays into an array of an object with
15779         decl and two flags, implicit_p and declared_p.
15780         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
15781         set_builtin_decl, set_builtin_decl_implicit_p,
15782         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
15783         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
15784         * builtins.c (builtin_info): Adjust.
15785         * gimplify.c (gimplify_addr_expr): References to builtins
15786         that have been declared by the user makes them eligible for
15787         use by the compiler.  Call set_builtin_decl_implicit_p on them.
15789 2015-01-20  Jeff Law  <law@redhat.com>
15791         PR target/59946
15792         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
15793         allow pc-relative addresses in operand predicates or constraints.
15795 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
15797         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
15798         neon on aarch32 processors for stringops.
15800 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15802         PR ipa/63576
15803         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
15805 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15807         PR lto/45375
15808         * ipa-inline.c: Include lto-streamer.h
15809         (report_inline_failed_reason): Output source file differences and
15810         flags on optimization/target node mismatch.
15811         (can_inline_edge_p): Consider caller to be the outer inline function;
15812         be less restrictive about matching opimize and optimize_size attributes.
15813         (inline_account_function_p): Break out from ...
15814         (inline_small_functions): ... here.
15815         * ipa-inline-transform.c (clone_inlined_nodes): Use
15816         inline_account_function_p.
15817         (inline_call): Use optimize attribution; use inline_account_function_p.
15818         (inline_transform): Use opt_for_fn.
15819         * ipa-inline.h (inline_account_function_p): Declare.
15821 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
15823         PR debug/64663
15824         * dwarf2out.c (decl_piece_node): Don't put bitsize into
15825         mode if bitsize <= 0.
15826         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
15827         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
15828         sizes and positions.
15830 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
15832         * config/nios2/nios2.c (nios2_asm_file_end): Implement
15833         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
15834         needed.
15835         (TARGET_ASM_FILE_END): Define.
15837 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15839         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
15840         (struct tune_params): Use the enum.
15841         * arm.c (arm_*_tune): Update.
15842         (arm_option_override): Update.
15844 2015-01-20  Richard Biener  <rguenther@suse.de>
15846         PR ipa/64684
15847         * ipa-reference.c (add_static_var): Inline ...
15848         (analyze_function): ... here after splitting out from ...
15849         (is_proper_for_analysis): ... this.
15851 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
15853         PR target/64149
15854         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
15855         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
15856         replace the conditional with it's true branch.
15857         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15858         (arm_lra_p): Remove.
15860 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15862         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
15864 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15866         * config/tilegx/mul-tables.c: Move symtab.h include after
15867         coretypes.h include.
15868         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
15869         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
15870         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
15871         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
15872         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15874 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
15876         PR bootstrap/64676
15877         Revert:
15878         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15880         PR rtl-optimization/64081
15881         * loop-iv.c (def_pred_latch_p): New function.
15882         (latch_dominating_def): Allow specific cases with non-single
15883         definitions.
15884         (iv_get_reaching_def): Likewise.
15885         (check_complex_exit_p): New function.
15886         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15887         with exits not executing on any iteration.
15889 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15891         PR lto/45375
15892         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
15893         to set branch cost.
15895 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15897         PR lto/45375
15898         * i386.c (gate): Check flag_expensive_optimizations and
15899         optimize_size.
15900         (ix86_option_override_internal): Drop optimize_size condition
15901         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
15902         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15903         MASK_PREFER_AVX128.
15904         (ix86_avx256_split_vector_move_misalign,
15905         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
15906         * sse.md (all uses of TARGET_PREFER_AVX128): Add
15907         optimize_insn_for_speed_p check.
15909 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
15911         * config/mips/mips.h (FP_ASM_SPEC): New define.
15912         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
15913         instead.
15915 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
15917         PR target/53988
15918         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
15919         nullptr for insn when reaching the first insn.
15920         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
15921         (sh_insn_operands_modified_between_p): Add nullptr check.
15922         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
15923         sign extending mem load if the insn contains any UNSPEC or
15924         UNSPEC_VOLATILE.
15926 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15928         * params.def (inline-unit-growth): Drop to 15%.
15929         * invoke.texi (inline-unit-growth): Document change.
15931 2015-01-19  Martin Liska  <mliska@suse.cz>
15933         PR ipa/64668
15934         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
15935         function for second argument of OBJ_TYPE_REF.
15937 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15939         PR ipa/64218
15940         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
15941         whether function is an alias.
15943 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15945         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
15946         cases.
15948 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15950         PR rtl-optimization/64671
15951         * lra-remat.c (operand_to_remat): Don't consider jump and call
15952         insns.
15954 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
15956         PR target/59828
15957         * config/rs6000/default64.h: Include rs6000-cpus.def.
15958         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
15959         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
15960         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
15961         and POWER8.
15962         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
15963         POWER8.
15964         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
15965         pseudo-op to specify assembler dialect.
15967 2015-01-19  Martin Liska  <mliska@suse.cz>
15969         PR ipa/64664
15970         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
15971         Handle safe potentially removed nodes during filtering.
15973 2015-01-19  Martin Liska  <mliska@suse.cz>
15975         * doc/extend.texi (no_icf): Add new attribute description.
15976         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
15977         where the pass attempts to merge a function with no_icf attribute.
15979 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15981         PR target/64532
15982         * doc/md.texi (ARM Options): Document register constraints.
15984 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
15985             Andrew Pinski  <apinski@cavium.com>
15987         PR target/64304
15988         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
15989         (ashl<mode>3): Don't expand if operands[2] is not constant.
15991 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15993         PR target/64448
15994         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
15995         Match xor-and-xor RTL pattern.
15997 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15999         PR rtl-optimization/64081
16000         * loop-iv.c (def_pred_latch_p): New function.
16001         (latch_dominating_def): Allow specific cases with non-single
16002         definitions.
16003         (iv_get_reaching_def): Likewise.
16004         (check_complex_exit_p): New function.
16005         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16006         with exits not executing on any iteration.
16008 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
16010         * common.opt (fgraphite): Fix a typo.
16012 2015-01-19  Felix Yang  <felix.yang@huawei.com>
16014         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
16015         pattern.
16016         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
16017         uminp, smax_nanp, smin_nanp): New builtins.
16018         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
16019         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
16020         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
16021         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
16022         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
16023         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
16024         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
16025         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
16026         vpminnms_f32): Rewrite using builtin functions.
16028 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16030         PR libgomp/64625
16031         * omp-low.c (offload_symbol_decl): Remove variable.
16032         (get_offload_symbol_decl): Remove function.
16033         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
16034         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
16035         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
16036         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
16037         BUILT_IN_GOACC_UPDATE don't pass it at all.
16039 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16041         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
16042         callers.
16044 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16046         * ipa-chkp.c (chkp_produce_thunks): Add early param
16047         to split thunks production into two passes.  Keep
16048         'always_inline' function bodies after the first pass.
16049         (pass_data_ipa_chkp_early_produce_thunks): New.
16050         (pass_ipa_chkp_early_produce_thunks): New.
16051         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
16052         chkp_produce_thunks signature.
16053         (make_pass_ipa_chkp_early_produce_thunks): New.
16054         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
16055         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
16056         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
16058 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16060         * cgraph.c (cgraph_node::dump): Dump profile flags.
16062 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
16064         PR target/64652
16065         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
16066         reg appear first in the parallel.
16068 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16070         * ipa-reference.c (set_reference_optimization_summary,
16071         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
16072         disabled.
16073         (ignore_module_statics): New static var.
16074         (propagate_bits): If ipa-reference is disabled, do not look into local
16075         properties.
16076         (analyze_function): Disable analysis when ipa_reference is disabled.
16077         (generate_summary): Do not dump when reference is disabled;
16078         collect vars accessed from functions with ipa-reference disabled.
16079         (get_read_write_all_from_node): When ipa-reference is disabled, use the
16080         node flags.
16081         (gate): Enable for LTO.
16082         (ignore_edge_p): New function.
16083         (propagate): Skip functions w/o ipa-reference analysis.
16084         * optc-save-gen.awk: Handle optimize_debug correctly.
16085         * opth-gen.awk: Likewise.
16086         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
16087         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
16088         fira-share-save-slots, fira-share-spill-slots,
16089         fmodulo-sched-allow-regmoves, fpartial-inlining,
16090         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
16091         ftracer, ftree-parallelize-loops, fassociative-math,
16092         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
16093         Optimization
16094         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
16095         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
16096         Optimization.
16097         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
16098         Fix for IPA.
16100 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16102         PR ipa/64378
16103         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
16104         flag correctly.
16105         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
16107 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16109         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
16110         Remove duplicate option listings.
16112 2015-01-18  Felix Yang  <felix.yang@huawei.com>
16114         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
16115         (autofdo_source_profile::get_callsite_total_count,
16116         function_instance::get_function_instance_by_decl,
16117         string_table::get_index, string_table::get_index_by_decl,
16118         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
16119         Fix comment typos. Reformatting and minor code rearrangement.
16121 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16123         * config/rs6000/rs6000.md (probe_stack): Delete.
16124         (probe_stack_address): New.
16126 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16128         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
16129         to test for 32-bit ABIs, not !TARGET_POWERPC64.
16131 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16133         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
16134         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
16135         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
16136         snafu.
16137         (rs6000_libcall_value): Use the new function.
16139 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
16141         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
16143 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16145         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
16146         implement a more precise life analysis for it during backward scan.
16148 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
16150         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
16152 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
16154         PR rtl-optimization/52773
16155         * calls.c (emit_library_call_value): When pushing arguments use
16156         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
16157         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
16158         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
16160 2015-01-17  Jeff Law  <law@redhat.com>
16162         PR rtl-optimization/32790
16163         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
16164         not ZERO_EXTEND in SET_DESTs.
16166 2015-01-17  Alan Modra  <amodra@gmail.com>
16168         * cprop.c (do_local_cprop): Revert last change.
16170 2015-01-16  DJ Delorie  <dj@redhat.com>
16171             Nick Clifton  <nickc@redhat.com>
16173         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
16174         (addhi3_real): Likewise.  Fix [HL+0] syntax.
16175         (subqi3_real): Likewise.
16176         (subhi3_real): Likewise.
16177         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
16178         (cbranchhi4_real): Likewise.
16179         (cbranchhi4_real_inverted): Likewise.
16180         (cbranchsi4_real_lt): Likewise.
16181         (cbranchsi4_real_ge): Likewise.
16182         (cbranchsi4_real_ge): Likewise.
16183         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
16184         (sub<mode>3_virt): Likewise.
16185         (cbranchqi4_virt): Likewise.
16186         (cbranchhi4_virt): Likewise.
16187         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
16188         always use '[reg+imm]' even when imm is zero.
16189         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
16190         (rl78_general_operand): New.
16191         (rl78_nonimmediate_operand): New.
16192         (rl78_nonfar_operand): Use them.
16193         (rl78_nonfar_nonimm_operand): Likewise.
16194         (rl78_stack_based_mem): Fix.
16195         * config/rl78/constraints.md (Ibqi): New.
16196         (IBqi): New.
16197         (Wsa): New.
16198         (Wsf): New.
16199         (Cs1): Fix.
16200         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
16201         (iorqi3): Likewise.
16202         (xorqi3): Likewise.
16203         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
16205         * config/rl78/constrains (Qs8): New constraint.
16206         * config/rl78/rl78.c (rl78_flags_already_set): New function.
16207         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
16208         * config/rl78/rl78-real.md (update_Z): New attribute.
16209         Update patterns to set it.
16210         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
16211         shorter compare and branch sequence can be used.
16212         (cbranchhi4_real): Likewise.
16213         (cbranchhi4_real_inverted): Likewise.
16215         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
16216         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
16217         address space.
16218         * config/rl78/rl78.c (rl78_get_name_encoding): New.
16219         (rl78_option_override): Allow -mes0 only if C.
16220         (characterize_address): Support subregs of symbol_refs.
16221         (rl78_addr_space_address_mode): Move.  Add __near.
16222         (rl78_far_p): Likewise.
16223         (rl78_addr_space_pointer_mode): Likewise.
16224         (rl78_as_legitimate_address): Likewise.
16225         (rl78_addr_space_subset_p): Likewise.
16226         (rl78_addr_space_convert): Likewise.
16227         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
16228         symbols with -mes0.
16229         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
16230         addressing.
16231         (rl78_alloc_physical_registers_op1): Change logic to prefer
16232         symbol[BC] addressing.
16233         (frodata_section): New.
16234         (rl78_asm_init_sections): Initialize it.
16235         (rl78_select_section): Put __far readonly symbols in .frodata.
16236         (rl78_make_type_far): New.
16237         (rl78_insert_attributes): Force all readonly symbols to be
16238         __far when -mes0.
16239         (rl78_asm_out_integer): New.
16240         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
16241         * config/rl78/rl78.opt (-mes0): New.
16243         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
16244         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16245         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16246         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
16247         (rl78_saddr_p): New.
16248         (rl78_output_aligned_common): New.
16249         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
16250         (rl78_handle_saddr_attribute): New.
16251         (rl78_handle_naked_attribute): New.
16252         (rl78_attribute_table): Add saddr.
16253         (rl78_print_operand_1): Don't print '!' on saddr operands.
16254         (rl78_print_operand_1): Strip encodings.
16255         (rl78_sfr_p): New.
16256         (rl78_strip_name_encoding): New.
16257         (rl78_attrlist_to_encoding): New.
16258         (rl78_encode_section_info): New.
16259         (rl78_asm_init_sections): New.
16260         (rl78_select_section): New.
16261         (rl78_output_labelref): New.
16262         (rl78_output_aligned_common): New.
16263         (rl78_asm_out_integer): New.
16264         (rl78_asm_ctor_dtor): New.
16265         (rl78_asm_constructor): New.
16266         (rl78_asm_destructor): New.
16268         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
16269         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
16270         (transcode_memory_rtx): Update.
16271         (rl78_expand_epilogue): Use A_REG instead of 0.
16273 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16275         * config/arm/arm-protos.h (struct tune_params): New field
16276         sched_autopref_queue_depth.
16277         * config/arm/arm.c (sched-int.h): Include header.
16278         (arm_first_cycle_multipass_dfa_lookahead_guard,)
16279         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
16280         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
16281         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
16282         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
16283         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
16284         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
16285         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
16286         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
16287         * config/arm/t-arm (arm.o): Update.
16288         * haifa-sched.c (update_insn_after_change): Update.
16289         (rank_for_schedule): Use auto-prefetcher model, if requested.
16290         (autopref_multipass_init): New static function.
16291         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
16292         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
16293         variable for debug dumps.
16294         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
16295         (autopref_multipass_dfa_lookahead_guard): New global function that
16296         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
16297         (init_h_i_d): Update.
16298         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
16299         * sched-int.h (enum autopref_multipass_data_status): New const enum.
16300         (autopref_multipass_data_): Structure for auto-prefetcher data.
16301         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
16302         (struct _haifa_insn_data:autopref_multipass_data): New field.
16303         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
16304         (autopref_multipass_dfa_lookahead_guard): Declare.
16306 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16308         * rtlanal.c (get_base_term): Handle SCRATCH.
16310 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16312         * config/aarch64/aarch64.c
16313         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16314         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16315         * config/arm/arm.c
16316         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16317         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16319 2015-01-17  Alan Modra  <amodra@gmail.com>
16321         * cprop.c (do_local_cprop): Disallow replacement of fixed
16322         hard registers.
16324 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16326         PR target/62066
16327         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16328         early return 0.
16330 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16332         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16333         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16335 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16337         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16338         * config/arm/thumb1.md: ... Here.
16340 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16342         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16343         TImode for TARGET_32BIT.
16345 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16347         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16348         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16349         as ...
16350         (rs6000_abi_word_mode): New function.
16352 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16354         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16355         instead of UNITS_PER_WORD to describe the size of stack slots.
16357 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16359         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16360         as rs6000_promote_function_mode.  Move comment to there.
16361         (rs6000_promote_function_mode): New function.
16363 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16365         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16366         -mpowerpc64 is active.
16368 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16370         PR middle-end/64353
16371         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16372         virtuals on start.
16374 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16376         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16377         introduced in revision 219724.
16379 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16380             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16382         PR target/64263
16383         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16384         destination is not a GP reg.
16385         (*movdi_aarch64): Likewise.
16387 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
16389         PR target/64623
16390         * config/rs6000/default64.h: Revert ISA change.
16392 2015-01-16  Richard Biener  <rguenther@suse.de>
16394         PR middle-end/64614
16395         * tree-ssa-uninit.c: Include tree-cfg.h.
16396         (MAX_SWITCH_CASES): New define.
16397         (convert_control_dep_chain_into_preds): Handle switch statements.
16398         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16399         (normalize_one_pred_1): Do not split bit-manipulations.
16400         Record (x & CST).
16402 2015-01-16  Richard Biener  <rguenther@suse.de>
16404         PR tree-optimization/64568
16405         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16406         complex load rewriting for TARGET_MEM_REFs.
16408 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
16410         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16412 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
16414         PR target/64149
16415         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16416         variable.
16417         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16418         (aarch64_lra_p): Remove.
16420 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16422         PR target/64363
16423         * ipa-chkp.h (chkp_instrumentable_p): New.
16424         * ipa-chkp.c: Include tree-inline.h.
16425         (chkp_instrumentable_p): New.
16426         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
16427         Fix processing of not instrumentable functions.
16428         (chkp_versioning): Use chkp_instrumentable_p. Warn about
16429         not instrumentable functions.
16430         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
16431         chkp_instrumentable_p.
16432         * tree-inline.h (copy_forbidden): New.
16433         * tree-inline.c (copy_forbidden): Not static anymore.
16435 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16437         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
16438         ptr1, ptr2 unused.
16440 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16442         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
16443         type OP_OUT to OP_INOUT.
16445 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16447         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
16448         (high x) y) to y if x and y have the same base.
16450 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16452         * config/arm/cortex-a57.md: New.
16453         * config/aarch64/aarch64.md: Include it.
16454         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
16455         * config/aarch64/aarch64-tune.md: Regenerate.
16457 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16459         PR target/64015
16460         * ccmp.c (expand_ccmp_next): New function.
16461         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
16462         and compare insn sequence.
16463         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
16464         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
16465         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
16466         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
16467         (*ccmp_ior): Changed to ccmp_ior<mode>.
16468         (cmp<mode>): New pattern.
16469         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
16470         parameters.
16471         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
16473 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
16475         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
16476         _mm256_bsrli_epi128): New.
16477         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
16479 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
16481         * expmed.c (store_bit_field_using_insv): Improve warning message.
16482         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
16484 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
16486         PR rtl-optimization/64011
16487         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
16488         there is partial overflow.
16490 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16492         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
16493         prototype.
16494         (nds32_expand_epilogue_v3pop): Likewise.
16495         * config/nds32/nds32.md (sibcall): Define this for sibling call
16496         optimization.
16497         (sibcall_register): Likewise.
16498         (sibcall_immediate): Likewise.
16499         (sibcall_value): Likewise.
16500         (sibcall_value_register): Likewise.
16501         (sibcall_value_immediate): Likewise.
16502         (sibcall_epilogue): Likewise.
16503         (epilogue): Pass false to indicate this is not a sibcall epilogue.
16504         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
16505         (nds32_expand_epilogue_v3pop): Likewise.
16507 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16509         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
16510         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
16511         (return_internal): New.
16512         (return): Define this named pattern.
16513         (simple_return): Define this named pattern.
16514         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
16515         pattern instead of unspec_volatile_func_return.
16516         (nds32_expand_epilogue_v3pop): Likewise.
16517         (nds32_can_use_return_insn): New function.
16519 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16521         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
16522         * config/nds32/nds32.md (pop25return): New.
16523         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
16524         pop25return pattern.
16526 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16528         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
16529         -mforbid-fp-as-gp, and -mex9 options.
16531 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
16533         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
16534         remove -mgp-direct option.
16536 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16538         * doc/invoke.texi (--param early-inlining-insns): Update default value.
16539         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
16541 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16543         * ipa-inline.c (inline_small_functions): Work around hints
16544         cache issue.
16546 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
16548         PR target/59710
16549         * doc/invoke.texi (Option Summary): Document new Nios II
16550         -mgpopt= syntax.
16551         (Nios II Options): Likewise.
16552         * config/nios2/nios2.opt: Add -mgpopt= option support.
16553         Modify existing -mgpopt and -mno-gpopt options to be aliases.
16554         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
16555         * config/nios2/nios2.c (nios2_option_override): Adjust
16556         -mgpopt defaulting.
16557         (nios2_in_small_data_p): Return true for explicit small data
16558         sections even with -G0.
16559         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
16560         option choices.
16562 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16564         PR ipa/64612
16565         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
16566         of comdat locals.
16567         (inline_call): Fix removal of aliases.
16569 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
16571         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
16572         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
16573         * opts.c (common_handle_option): Add -fsanitize=vptr.
16574         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
16575         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
16576         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
16577         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
16578         (ubsan_expand_vptr_ifn): New prototype.
16579         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
16580         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
16581         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
16582         expand_LOOP_VECTORIZED): Make argument nameless, remove
16583         ATTRIBUTE_UNUSED.
16584         (expand_UBSAN_VPTR): New function.
16585         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
16586         in fn spec.
16587         (UBSAN_VPTR): New internal function.
16588         * sanopt.c (tree_map_traits): Renamed to ...
16589         (sanopt_tree_map_traits): ... this.
16590         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
16591         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
16592         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
16593         (maybe_optimize_ubsan_vptr_ifn): New function.
16594         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
16595         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
16596         -fsanitize=vptr.
16597         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
16598         internal calls like pure functions for aliasing, even when they
16599         have other side-effects that prevent making them ECF_PURE.
16600         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
16601         (ubsan_expand_vptr_ifn): New function.
16603 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16605         PR rtl-optimization/64110
16606         * stmt.c (parse_output_constraint): Process '^' and '$'.
16607         (parse_input_constraint): Ditto.
16608         * lra-constraints.c (process_alt_operands): Process the new
16609         constraints.
16610         * ira-costs.c (record_reg_classes): Process the new constraint
16611         '^'.
16612         * genoutput.c (indep_constraints): Add '^' and '$'.
16613         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
16614         * doc/md.texi: Add description of the new constraints.
16616 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16617             Bernd Schmidt  <bernds@codesourcery.com>
16618             Cesar Philippidis  <cesar@codesourcery.com>
16619             James Norris  <jnorris@codesourcery.com>
16620             Tom de Vries  <tom@codesourcery.com>
16621             Ilmir Usmanov  <i.usmanov@samsung.com>
16622             Dmitry Bocharnikov  <dmitry.b@samsung.com>
16623             Evgeny Gavrin  <e.gavrin@samsung.com>
16624             Jakub Jelinek  <jakub@redhat.com>
16626         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
16627         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
16628         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
16629         New function types.
16630         * builtins.c: Include "gomp-constants.h".
16631         (expand_builtin_acc_on_device): New function.
16632         (expand_builtin, is_inexpensive_builtin): Handle
16633         BUILT_IN_ACC_ON_DEVICE.
16634         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
16635         New macros.
16636         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
16637         flag_openmp.
16638         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
16639         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
16640         i386/intelmic-offload.h.
16641         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
16642         to libgomp and its dependencies.
16643         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
16644         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
16645         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
16646         * config/ia64/hpux.h (LIB_SPEC): Likewise.
16647         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16648         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
16649         * doc/generic.texi: Update for OpenACC changes.
16650         * doc/gimple.texi: Likewise.
16651         * doc/invoke.texi: Likewise.
16652         * doc/sourcebuild.texi: Likewise.
16653         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
16654         GF_OMP_FOR_KIND_OACC_LOOP.
16655         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
16656         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
16657         GF_OMP_TARGET_KIND_OACC_UPDATE,
16658         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16659         Dump more data.
16660         * gimple.c: Update comments for OpenACC changes.
16661         * gimple.def: Likewise.
16662         * gimple.h: Likewise.
16663         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
16664         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16665         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
16666         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
16667         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
16668         appropriate place.
16669         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
16670         * gimplify.c: Include "gomp-constants.h".
16671         Update comments for OpenACC changes.
16672         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
16673         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
16674         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16675         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16676         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16677         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16678         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
16679         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16680         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16681         OMP_CLAUSE_SEQ.
16682         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
16683         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16684         OMP_CLAUSE_SET_MAP_KIND.
16685         (gimplify_oacc_cache): New function.
16686         (gimplify_omp_for): Handle OACC_LOOP.
16687         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
16688         OACC_DATA.
16689         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
16690         OACC_EXIT_DATA, OACC_UPDATE.
16691         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
16692         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
16693         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
16694         (gimplify_body): Consider flag_openacc next to flag_openmp.
16695         * lto-streamer-out.c: Include "gomp-constants.h".
16696         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
16697         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
16698         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
16699         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
16700         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
16701         (BUILT_IN_ACC_ON_DEVICE): New builtins.
16702         * omp-low.c: Include "gomp-constants.h".
16703         Update comments for OpenACC changes.
16704         (struct omp_context): Add reduction_map, gwv_below, gwv_this
16705         members.
16706         (extract_omp_for_data, use_pointer_for_field, install_var_field)
16707         (new_omp_context, delete_omp_context, scan_sharing_clauses)
16708         (create_omp_child_function, scan_omp_for, scan_omp_target)
16709         (check_omp_nesting_restrictions, lower_reduction_clauses)
16710         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
16711         Update for OpenACC changes.
16712         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
16713         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
16714         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
16715         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16716         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
16717         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
16718         OMP_CLAUSE_MAP_*.
16719         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16720         Handle GF_OMP_FOR_KIND_OACC_LOOP.
16721         (expand_omp_target, lower_omp_target): Handle
16722         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16723         GF_OMP_TARGET_KIND_OACC_UPDATE,
16724         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
16725         GF_OMP_TARGET_KIND_OACC_DATA.
16726         (pass_expand_omp::execute, execute_lower_omp)
16727         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
16728         flag_openmp.
16729         (offload_symbol_decl): New variable.
16730         (oacc_get_reduction_array_id, oacc_max_threads)
16731         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
16732         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
16733         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
16734         (oacc_gimple_assign, oacc_initialize_reduction_data)
16735         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
16736         functions.
16737         (is_targetreg_ctx): Remove function.
16738         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
16739         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
16740         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16741         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
16742         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
16743         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
16744         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
16745         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
16746         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
16747         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
16748         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
16749         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
16750         * tree-core.h: Update comments for OpenACC changes.
16751         (enum omp_clause_map_kind): Remove.
16752         (struct tree_omp_clause): Change type of map_kind member from enum
16753         omp_clause_map_kind to unsigned char.
16754         * tree-inline.c: Update comments for OpenACC changes.
16755         * tree-nested.c: Likewise.  Include "gomp-constants.h".
16756         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
16757         (convert_tramp_reference_stmt, convert_gimple_call): Update for
16758         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16759         OMP_CLAUSE_SET_MAP_KIND.
16760         * tree-pretty-print.c: Include "gomp-constants.h".
16761         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
16762         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
16763         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
16764         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
16765         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16766         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
16767         instead of OMP_CLAUSE_MAP_*.
16768         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
16769         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
16770         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16771         * tree-streamer-in.c: Include "gomp-constants.h".
16772         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
16773         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
16774         * tree-streamer-out.c: Include "gomp-constants.h".
16775         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
16776         OMP_CLAUSE_MAP_*.
16777         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
16778         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
16779         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
16780         * tree.c (omp_clause_num_ops): Update accordingly.
16781         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
16782         Likewise.
16783         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
16784         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
16785         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
16786         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
16787         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
16788         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
16789         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
16790         (OMP_CLAUSE_SET_MAP_KIND): New macro.
16791         * varpool.c (varpool_node::get_create): Consider flag_openacc next
16792         to flag_openmp.
16793         * config/i386/intelmic-offload.h: New file.
16794         * config/nvptx/offload.h: Likewise.
16796 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16798         * explow.h: Remove duplicate contents.
16799         * dojump.h: Likewise.
16801 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
16803         * arm.c (arm_xgene_tune): Add default initializer for instruction
16804         fusion.
16806 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16808         PR ipa/64068
16809         PR ipa/64559
16810         * ipa.c (symbol_table::remove_unreachable_nodes):
16811         Do not put abstract origins into boundary.
16813 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
16815         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
16816         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
16818 2015-01-15  Steve Ellcey  <sellcey@mips.com>
16820         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
16821         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
16822         builtins.def, and chkp-builtins.def.
16824 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
16826         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
16827         ISA 2.7 (POWER8).
16829 2015-01-15  Richard Biener  <rguenther@suse.de>
16831         PR tree-optimization/61743
16832         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
16833         information on PHIs for some simple cases.
16835 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16837         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
16838         Include xgene1.md.
16839         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
16840         * config/arm/arm-cores.def (xgene1): New entry.
16841         * config/arm/arm-tables.opt: Regenerate.
16842         * config/arm/arm-tune.md: Regenerate.
16843         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
16845 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
16847         * tree-if-conv.c: Include hash-map.h.
16848         (aggressive_if_conv): New variable.
16849         (fold_build_cond_expr): Add simplification of non-zero condition.
16850         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
16851         destination block is not always executed.
16852         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
16853         than two predecessors if AGGRESSIVE_IF_CONV is true.
16854         (if_convertible_stmt_p): Fix commentary.
16855         (all_preds_critical_p): New function.
16856         (has_pred_critical_p): New function.
16857         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
16858         BB can have more than two predecessors and all incoming edges can be
16859         critical.
16860         (predicate_bbs): Skip predication for loop exit block, use build2_loc
16861         to compute predicate for true edge.
16862         (find_phi_replacement_condition): Delete this function.
16863         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
16864         Allow interchange PHI arguments if EXTENDED is false.
16865         Change check that block containing reduction statement candidate
16866         is predecessor of phi-block since phi may have more than two arguments.
16867         (phi_args_hash_traits): New helper structure.
16868         (struct phi_args_hash_traits): New type.
16869         (phi_args_hash_traits::hash): New function.
16870         (phi_args_hash_traits::equal_keys): New function.
16871         (gen_phi_arg_condition): New function.
16872         (predicate_scalar_phi): Add handling of phi nodes with more than two
16873         arguments, delete COND and TRUE_BB arguments, insert body of
16874         find_phi_replacement_condition to predicate ordinary phi nodes.
16875         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
16876         delete call of find_phi_replacement_condition and invoke
16877         predicate_scalar_phi with two arguments.
16878         (insert_gimplified_predicates): Add assert that non-predicated block
16879         don't have statements to insert.
16880         (ifcvt_split_critical_edges): New function.
16881         (ifcvt_split_def_stmt): Likewise.
16882         (ifcvt_walk_pattern_tree): Likewise.
16883         (stmt_is_root_of_bool_pattern): Likewise.
16884         (ifcvt_repair_bool_pattern): Likewise.
16885         (ifcvt_local_dce): Likewise.
16886         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
16887         is copy of inner or outer loop force_vectorize field, invoke
16888         ifcvt_split_critical_edges, ifcvt_local_dce and
16889         ifcvt_repair_bool_pattern for aggressive if-conversion.
16891 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
16893         * config/aarch64/aarch64.md: Include xgene1.md.
16894         * config/aarch64/xgene1.md: New file.
16896 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16898         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
16899         xgene1 (APM XGene-1) core definition.
16900         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
16901         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
16902         * doc/invoke.texi: Document -mcpu=xgene1.
16904 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16906         * dojump.h: New header file.
16907         * explow.h: Likewise.
16908         * expr.h: Remove includes.
16909         Move expmed.c prototypes to expmed.h.
16910         Move dojump.c prototypes to dojump.h.
16911         Move alias.c prototypes to alias.h.
16912         Move explow.c prototypes to explow.h.
16913         Move calls.c prototypes to calls.h.
16914         Move emit-rtl.c prototypes to emit-rtl.h.
16915         Move varasm.c prototypes to varasm.h.
16916         Move stmt.c prototypes to stmt.h.
16917         (saved_pending_stack_adjust): Move to dojump.h.
16918         (adjust_address): Move to explow.h.
16919         (adjust_address_nv): Move to emit-rtl.h.
16920         (adjust_bitfield_address): Likewise.
16921         (adjust_bitfield_address_size): Likewise.
16922         (adjust_bitfield_address_nv): Likewise.
16923         (adjust_automodify_address_nv): Likewise.
16924         * explow.c (expr_size): Move to expr.c.
16925         (int_expr_size): Likewise.
16926         (tree_expr_size): Likewise.
16927         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16928         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16929         * genemit.c (main): Generate includes statistics.h, real.h,
16930         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
16931         stmt.h.
16932         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
16933         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
16934         explow.h, emit-rtl.h, stmt.h.
16935         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
16936         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
16937         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
16938         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
16939         emit-rtl.h, varasm.h, stmt.h.
16940         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
16941         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
16942         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
16943         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
16944         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16945         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
16946         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
16947         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
16948         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
16949         tm.h tree.h varasm.h vec.h wide-int.h.
16950         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16951         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16952         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
16953         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
16954         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
16955         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
16956         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
16957         * loop-iv.c: Likewise.
16958         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
16959         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
16960         statistics.h stmt.h tree.h varasm.h wide-int.h.
16961         * lra-constraints.c: Likewise.
16962         * lra-eliminations.c: Likewise.
16963         * lra-lives.c: Likewise.
16964         * lra-remat.c: Likewise.
16965         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16966         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
16967         statistics.h stmt.h tree.h varasm.h wide-int.h.
16968         * hw-doloop.c: Likewise.
16969         * ira-color.c: Likewise.
16970         * ira-emit.c: Likewise.
16971         * loop-doloop.c: Likewise.
16972         * loop-invariant.c: Likewise.
16973         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16974         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
16975         statistics.h stmt.h tree.h varasm.h wide-int.h.
16976         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
16977         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
16978         statistics.h stmt.h tree.h varasm.h wide-int.h.
16979         * combine-stack-adj.c: Likewise.
16980         * cse.c: Likewise.
16981         * ddg.c: Likewise.
16982         * ifcvt.c: Likewise.
16983         * ira-costs.c: Likewise.
16984         * jump.c: Likewise.
16985         * lra-coalesce.c: Likewise.
16986         * lra-spills.c: Likewise.
16987         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16988         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
16989         stmt.h varasm.h wide-int.h.
16990         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16991         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16992         varasm.h.
16993         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
16994         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
16995         statistics.h stmt.h varasm.h wide-int.h.
16996         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
16997         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
16998         varasm.h wide-int.h.
16999         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
17000         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17001         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
17002         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
17003         statistics.h stmt.h.
17004         * config/tilepro/tilepro.c: Likewise.
17005         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
17006         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
17007         * config/pdp11/pdp11.c: Likewise.
17008         * config/xtensa/xtensa.c: Likewise.
17009         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
17010         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17011         varasm.h.
17012         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17013         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17014         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
17015         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17016         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17017         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
17018         * rtl-chkp.c: Likewise.
17019         * tree-chkp-opt.c: Likewise.
17020         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
17021         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17022         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
17023         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17024         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17025         statistics.h stmt.h.
17026         * tree-vect-data-refs.c: Likewise.
17027         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
17028         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17029         rtl.h statistics.h stmt.h varasm.h.
17030         * internal-fn.c: Likewise.
17031         * ipa-icf-gimple.c: Likewise.
17032         * lto-section-out.c: Likewise.
17033         * tree-data-ref.c: Likewise.
17034         * tree-nested.c: Likewise.
17035         * tree-outof-ssa.c: Likewise.
17036         * tree-predcom.c: Likewise.
17037         * tree-pretty-print.c: Likewise.
17038         * tree-scalar-evolution.c: Likewise.
17039         * tree-ssa-strlen.c: Likewise.
17040         * tree-vect-loop.c: Likewise.
17041         * tree-vect-patterns.c: Likewise.
17042         * tree-vect-slp.c: Likewise.
17043         * tree-vect-stmts.c: Likewise.
17044         * tsan.c: Likewise.
17045         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17046         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
17047         stmt.h.
17048         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
17049         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17050         statistics.h stmt.h varasm.h.
17051         * loop-unroll.c: Likewise.
17052         * ubsan.c: Likewise.
17053         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
17054         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
17055         stmt.h varasm.h.
17056         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17057         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
17058         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
17059         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17060         statistics.h stmt.h.
17061         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
17062         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17063         statistics.h stmt.h varasm.h.
17064         * gimple-match-head.c: Likewise.
17065         * lto-cgraph.c: Likewise.
17066         * lto-section-in.c: Likewise.
17067         * lto-streamer-in.c: Likewise.
17068         * lto-streamer-out.c: Likewise.
17069         * tree-affine.c: Likewise.
17070         * tree-cfg.c: Likewise.
17071         * tree-cfgcleanup.c: Likewise.
17072         * tree-if-conv.c: Likewise.
17073         * tree-into-ssa.c: Likewise.
17074         * tree-ssa-alias.c: Likewise.
17075         * tree-ssa-copyrename.c: Likewise.
17076         * tree-ssa-dse.c: Likewise.
17077         * tree-ssa-forwprop.c: Likewise.
17078         * tree-ssa-live.c: Likewise.
17079         * tree-ssa-math-opts.c: Likewise.
17080         * tree-ssa-pre.c: Likewise.
17081         * tree-ssa-sccvn.c: Likewise.
17082         * tree-tailcall.c: Likewise.
17083         * tree-vect-generic.c: Likewise.
17084         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17085         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
17086         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17087         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
17088         * varasm.c: Likewise.
17089         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17090         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
17091         varasm.h.
17092         * init-regs.c: Likewise.
17093         * ira.c: Likewise.
17094         * omp-low.c: Likewise.
17095         * stack-ptr-mod.c: Likewise.
17096         * tree-ssa-reassoc.c: Likewise.
17097         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17098         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
17099         varasm.h.
17100         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17101         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
17102         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17103         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
17104         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17105         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
17106         * tree-ssa-phiopt.c: Likewise.
17107         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17108         fixed-value.h hashtab.h real.h statistics.h stmt.h.
17109         * config/fr30/fr30.c: Likewise.
17110         * config/frv/frv.c: Likewise.
17111         * expr.c: Likewise.
17112         * final.c: Likewise.
17113         * optabs.c: Likewise.
17114         * passes.c: Likewise.
17115         * simplify-rtx.c: Likewise.
17116         * stmt.c: Likewise.
17117         * toplev.c: Likewise.
17118         * var-tracking.c: Likewise.
17119         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17120         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17121         * lower-subreg.c: Likewise.
17122         * postreload-gcse.c: Likewise.
17123         * ree.c: Likewise.
17124         * reginfo.c: Likewise.
17125         * store-motion.c: Likewise.
17126         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17127         fixed-value.h hashtab.h real.h stmt.h varasm.h.
17128         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17129         fixed-value.h hashtab.h statistics.h stmt.h.
17130         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17131         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17132         * except.c: Likewise.
17133         * explow.c: Likewise.
17134         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17135         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
17136         varasm.h.
17137         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17138         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
17139         * tree-ssa-structalias.c: Likewise.
17140         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17141         fixed-value.h insn-config.h real.h statistics.h.
17142         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17143         fixed-value.h insn-config.h real.h statistics.h stmt.h.
17144         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17145         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17146         * cfgbuild.c: Likewise.
17147         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17148         fixed-value.h real.h rtl.h statistics.h stmt.h.
17149         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17150         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17151         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17152         fixed-value.h real.h statistics.h stmt.h.
17153         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17154         fixed-value.h real.h statistics.h stmt.h varasm.h.
17155         * cprop.c: Likewise.
17156         * modulo-sched.c: Likewise.
17157         * postreload.c: Likewise.
17158         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17159         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
17160         statistics.h stmt.h varasm.h.
17161         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
17162         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17163         rtl.h statistics.h stmt.h varasm.h.
17164         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
17165         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
17166         varasm.h.
17167         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17168         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
17169         varasm.h.
17170         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
17171         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
17172         varasm.h.
17173         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
17174         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17175         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17176         function.h real.h statistics.h stmt.h varasm.h.
17177         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17178         insn-config.h real.h statistics.h stmt.h.
17179         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17180         statistics.h stmt.h.
17181         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
17182         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
17183         statistics.h stmt.h varasm.h.
17184         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
17185         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
17186         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17187         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
17188         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
17189         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17190         statistics.h stmt.h varasm.h.
17191         * ipa-polymorphic-call.c: Likewise.
17192         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
17193         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17194         statistics.h stmt.h.
17195         * config/c6x/c6x.c: Likewise.
17196         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
17197         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17198         statistics.h stmt.h varasm.h.
17199         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
17200         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
17201         stmt.h varasm.h.
17202         * ipa-split.c: Likewise.
17203         * tree-eh.c: Likewise.
17204         * tree-ssa-dce.c: Likewise.
17205         * tree-ssa-loop-niter.c: Likewise.
17206         * tree-vrp.c: Likewise.
17207         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
17208         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
17209         stmt.h.
17210         * config/nds32/nds32-fp-as-gp.c: Likewise.
17211         * config/nds32/nds32-intrinsic.c: Likewise.
17212         * config/nds32/nds32-isr.c: Likewise.
17213         * config/nds32/nds32-md-auxiliary.c: Likewise.
17214         * config/nds32/nds32-memory-manipulation.c: Likewise.
17215         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17216         * config/nds32/nds32-predicates.c: Likewise.
17217         * config/nds32/nds32.c: Likewise.
17218         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
17219         fixed-value.h hashtab.h real.h statistics.h.
17220         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
17221         fixed-value.h hashtab.h real.h statistics.h stmt.h.
17222         * config/arm/arm.c: Likewise.
17223         * config/avr/avr.c: Likewise.
17224         * config/bfin/bfin.c: Likewise.
17225         * config/h8300/h8300.c: Likewise.
17226         * config/i386/i386.c: Likewise.
17227         * config/ia64/ia64.c: Likewise.
17228         * config/iq2000/iq2000.c: Likewise.
17229         * config/m32c/m32c.c: Likewise.
17230         * config/m32r/m32r.c: Likewise.
17231         * config/m68k/m68k.c: Likewise.
17232         * config/mcore/mcore.c: Likewise.
17233         * config/mep/mep.c: Likewise.
17234         * config/mips/mips.c: Likewise.
17235         * config/mn10300/mn10300.c: Likewise.
17236         * config/moxie/moxie.c: Likewise.
17237         * config/pa/pa.c: Likewise.
17238         * config/rl78/rl78.c: Likewise.
17239         * config/rx/rx.c: Likewise.
17240         * config/s390/s390.c: Likewise.
17241         * config/sh/sh.c: Likewise.
17242         * config/sparc/sparc.c: Likewise.
17243         * config/spu/spu.c: Likewise.
17244         * config/stormy16/stormy16.c: Likewise.
17245         * config/v850/v850.c: Likewise.
17246         * config/vax/vax.c: Likewise.
17247         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
17248         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17249         * config/msp430/msp430.c: Likewise.
17250         * predict.c: Likewise.
17251         * value-prof.c: Likewise.
17252         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
17253         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
17254         * config/microblaze/microblaze.c: Likewise.
17255         * config/nios2/nios2.c: Likewise.
17256         * config/rs6000/rs6000.c: Likewise.
17257         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17258         insn-config.h real.h rtl.h statistics.h stmt.h.
17259         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17260         insn-config.h real.h statistics.h stmt.h.
17261         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
17262         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17263         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
17264         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17265         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
17266         fixed-value.h real.h statistics.h stmt.h.
17267         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
17268         fixed-value.h statistics.h stmt.h.
17269         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
17270         stmt.h.
17272 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17274         * gengtype.c (create_user_defined_type): Workaround
17275         -Wmaybe-uninitialized false positives.
17276         * cse.c (fold_rtx): Likewise.
17277         * loop-invariant.c (gain_for_invariant): Likewise.
17279 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17281         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
17282         set the memory attributes in all cases but clear MEM_EXPR if need be.
17284 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17286         PR tree-optimization/64434
17287         * cfgexpand.c (reorder_operands): New function.
17288         (expand_gimple_basic_block): Insert call of reorder_operands if
17289         optimized is true.
17291 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17293         * config/mips/micromips.md (*swp): Remove explicit parallel.
17294         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
17295         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
17296         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
17297         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
17298         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
17299         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
17300         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
17301         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
17302         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
17303         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
17304         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
17305         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
17306         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
17307         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
17308         (mips_wrdsp): Likewise.
17309         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17310         parallel.
17311         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17312         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17313         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17314         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17315         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17316         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17317         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17318         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17319         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17321 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17323         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17324         (mips_print_operand): Support 'y' to print exact log2 in decimal
17325         of a const_int.
17326         * config/mips/mips.h (ISA_HAS_LSA): New define.
17327         (ISA_HAS_DLSA): Likewise.
17328         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17329         * config/mips/predicates.md (const_immlsa_operand): New predicate.
17331 2015-01-15  Martin Liska  <mliska@suse.cz>
17333         PR target/64377
17334         * optc-save-gen.awk: Add support for array types.
17336 2015-01-15  Richard Biener  <rguenther@suse.de>
17338         PR middle-end/64365
17339         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17340         for MEM_REF access functions with the same base can never partially
17341         overlap.
17343 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
17345         * common.opt: New option -fstack-protector-explicit.
17346         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17347         (stack_protect_decl_phase): Handle stack_protect attribute for
17348         explicit stack protection requests.
17349         (expand_used_vars): Similarly.
17350         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17351         * doc/extend.texi: Add documentation for "stack_protect" attribute.
17352         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17354 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
17356         PR target/53988
17357         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17358         reg-reg copies.
17359         (sh_extending_set_of_reg): New struct.
17360         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17361         sh_remove_reg_dead_or_unused_notes): New Declarations.
17362         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17363         sh_find_extending_set_of_reg, sh_split_tst_subregs,
17364         sh_extending_set_of_reg::use_as_extended_reg): New functions.
17365         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17366         convert to insn_and_split and use new function sh_split_tst_subregs.
17368 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
17370         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17371         option.
17372         (Optimization Options): Move -fuse-ld documentation to...
17373         (Link Options): ...here.
17375 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17377         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17378         offsets.
17379         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17380         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17381         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17382         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17383         instead of ZR for the memory operand of LL/SC.
17384         (compare_and_swap_12, sync_add<mode>): Likewise.
17385         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17386         (sync_new_<optab>_12, sync_nand_12): Likewise.
17387         (sync_old_nand_12, sync_new_nand_12): Likewise.
17388         (sync_sub<mode>, sync_old_add<mode>): Likewise.
17389         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17390         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17391         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17392         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17393         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17394         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17395         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17396         * doc/md.texi (ZC): Update description.
17398 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17400         * builtins.c (expand_builtin_atomic_exchange): Remove error when
17401         memory model is CONSUME.
17402         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17403         expand_builtin_atomic_store): Change invalid memory model errors to
17404         warnings.
17405         (expand_builtin_atomic_clear): Change invalid model errors to warnings
17406         and issue warning for CONSUME.
17408 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
17410         * lto-cgraph: Update function comments for
17411         lto_symtab_encoder_encode_*.
17413 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17415         * Makefile.in (site.exp): Do not set ENABLE_LTO.
17417 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17419         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17420         * lto-cgraph.c (select_what_to_stream): Remove argument, use
17421         lto_stream_offload_p instead.
17422         * lto-streamer.h (select_what_to_stream): Remove argument.
17423         * passes.c (ipa_write_summaries): Likewise.
17424         * tree-pass.h (ipa_write_summaries): Likewise.
17426 2015-01-14  Richard Biener  <rguenther@suse.de>
17428         PR tree-optimization/59354
17429         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
17430         groups larger than the slp group size as having gaps.
17432 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17434         PR middle-end/59448
17435         * builtins.c (get_memmodel): Promote consume to acquire always.
17437 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17439         PR target/64386
17440         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
17441         V32HImode.
17443 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17445         PR target/64393
17446         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
17447         Enable AVX512BW.
17448         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
17449         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
17450         AVX512VBMI, as it implies AVX512BW.
17452 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
17454         PR target/64387
17455         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
17456         (vec_unpacks_hi_v16sf): Ditto.
17458 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17460         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
17461         is not available.
17463 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17465         * doc/invoke.texi (mapcs): Mention deprecation.
17466         (mapcs-frame): Likewise.
17468 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17470         PR target/64453
17471         * config/arm/arm.c (callee_saved_reg_p): Define.
17472         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
17473         register is callee saved instead of !call_used_regs[reg].
17474         (thumb1_compute_save_reg_mask): Likewise.
17476 2015-01-14  Hale Wang  <hale.wang@arm.com>
17478         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
17479         Cortex-M7.
17481 2015-01-14  Richard Biener  <rguenther@suse.de>
17483         PR lto/64415
17484         * tree-inline.c (insert_debug_decl_map): Check destination
17485         function MAY_HAVE_DEBUG_STMTS.
17486         (insert_init_debug_bind): Likewise.
17487         (insert_init_stmt): Remove redundant check.
17488         (remap_gimple_stmt): Drop debug stmts if the destination
17489         function has var-tracking assignments disabled.
17491 2015-01-14  Martin Liska  <mliska@suse.cz>
17493         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
17494         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
17496 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17498         PR target/64460
17499         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
17500         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
17502 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17504         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
17505         level from an ARCH; do not inject the default.
17506         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
17507         MIPS_ISA_LEVEL_SPEC.
17508         (MIPS_ISA_NAN2008_SPEC): Update comment.
17509         (BASE_DRIVER_SELF_SPECS): Likewise.
17510         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
17511         MIPS_DEFAULT_ISA_LEVEL_SPEC.
17512         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
17513         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
17514         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
17516 2015-01-14  Richard Biener  <rguenther@suse.de>
17518         PR tree-optimization/64493
17519         PR tree-optimization/64495
17520         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
17521         assign the proper vectorized PHI to the inner loop exit PHIs.
17523 2015-01-14  Joey Ye  <joey.ye@arm.com>
17525         * config/arm/arm.c (arm_compute_save_reg_mask):
17526         Do not save lr in case of tail call.
17527         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
17529 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
17531         * tree-vrp.c (check_array_ref): Emit more warnings
17532         for warn_array_bounds >= 2.
17533         * common.opt: New option -Warray-bounds=.
17534         * doc/invoke.texi: Document -Warray-bounds=.
17536 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
17538         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
17539         (mforbid-fp-as-gp): Remove.
17540         (mex9): Remove.
17541         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
17542         (nds32_symbol_load_store_p): Remove.
17543         (nds32_fp_as_gp_check_available): Clean up implementation.
17544         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
17545         cases.
17546         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
17547         fp-as-gp and ex9 cases.
17549 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17551         * tree-profile.c (init_ic_make_global_vars): Drop workaround
17552         for bintuils bug 14342.
17553         (init_ic_make_global_vars): Likewise.
17554         (gimple_init_edge_profiler): Likewise.
17555         (gimple_gen_ic_func_profiler): Likewise.
17557 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17559         * ipa-inline.c (inline_small_functions): Swap the operands in
17560         enum.
17562 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17564         PR ipa/64481
17565         * ipa-inline-analysis.c (node_growth_cache): Remove.
17566         (initialize_growth_caches): Do not initialize it.
17567         (free_growth_caches): Do not free it.
17568         (do_estimate_growth): Rename to ...
17569         (estimate_growth): ... this one; drop growth cache code.
17570         (growth_likely_positive): Always go the heuristics way.
17571         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
17572         (reset_edge_caches): Do not reset node growth.
17573         (heap_edge_removal_hook): Do not maintain cache.
17574         (inline_small_functions): Likewise; strenghten sanity check.
17575         (ipa_inline): Do not maintain caches.
17576         * ipa-inline.h (node_growth_cache): Remove.
17577         (do_estimate_growth): Remove to ...
17578         (estimate_growth): this one; remove inline version.
17579         (reset_node_growth_cache): Remove.
17581 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
17583         PR ipa/64565
17584         * ipa-inline.c (inline_small_functions): Update callee keys after
17585         resolving speculation
17586         (inline_small_functions): Always check monotonicity of the queue.
17588 2015-01-13  Marek Polacek  <polacek@redhat.com>
17590         PR middle-end/64391
17591         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
17593 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
17595         PR rtl-optimization/64286
17596         * ree.c (combine_reaching_defs): Move part of comment earlier,
17597         remove !SCALAR_INT_MODE_P check.
17598         (add_removable_extension): Don't add vector mode
17599         extensions if all uses of the source register aren't the same
17600         vector extensions.
17602 2015-01-13  Renlin Li  <renlin.li@arm.com>
17604         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
17605         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
17607 2015-01-13  Martin Liska  <mliska@suse.cz>
17609         * ipa-icf.c (sem_function::equals_private): Call new functions
17610         cl_target_option_print_diff and cl_optimization_print_diff.
17611         * optc-save-gen.awk (cl_target_option_print_diff): New function.
17612         (cl_optimization_print_diff): Likewise.
17613         * opth-gen.awk: Likewise.
17615 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
17617         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
17618         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
17619         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
17620         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
17621         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
17622         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
17624 2015-01-13  Andrew Pinski  <apinski@cavium.com>
17626         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
17627         instead of src mode.
17629 2015-01-13  Richard Biener  <rguenther@suse.de>
17631         PR lto/64373
17632         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
17633         DECL_CONTEXT.
17635 2015-01-13  Andrew Pinski  <apinski@cavium.com>
17637         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
17638         volatile mems.
17639         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
17641 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
17643         PR middle-end/63974
17644         * cfgexpand.c (expand_computed_goto): Don't call
17645         convert_memory_address here.
17647 2015-01-13  Richard Biener  <rguenther@suse.de>
17649         PR tree-optimization/64406
17650         * tree-loop-distibution.c (pass_loop_distribution::execute):
17651         Reset the SCEV hashtable if we distributed anything.
17653 2015-01-13  Richard Biener  <rguenther@suse.de>
17655         PR tree-optimization/64404
17656         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
17657         SLP types for CSEd loads.
17659 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17661         PR tree-optimization/64436
17662         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
17663         merge of two symbolic numbers for a bitwise OR to ...
17664         (perform_symbolic_merge): This. Also fix computation of the range and
17665         end of the symbolic number corresponding to the result of a bitwise OR.
17667 2015-01-13  Richard Biener  <rguenther@suse.de>
17669         PR tree-optimization/64568
17670         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
17671         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
17673 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17675         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
17676         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
17678 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17680         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
17681         target-specific symbol_ref flag.
17682         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
17683         resides in rodata section.
17684         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
17685         (nds32_encode_section_info): New function.
17687 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17689         * config/nds32/nds32.md (call): Use pseudo instruction bal which
17690         clobbers TA_REGNUM if large code model is specified.
17691         (call_register): Likewise.
17692         (call_immediate): Likewise.
17693         (call_value): Likewise.
17694         (call_value_register): Likewise.
17695         (call_value_immediate): Likewise.
17697 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17699         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
17700         (TARGET_CMODEL_MEDIUM): New macro.
17701         (TARGET_CMODEL_LARGE): New macro.
17702         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
17703         code model setting in assembly code.
17705 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17707         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17708         Remove MASK_GP_DIRECT flag.
17709         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
17710         one of the multilib default options.
17711         * config/nds32/nds32.opt (mgp-direct): Remove.
17712         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
17713         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
17715 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17717         * config/nds32/nds32.opt (mcmodel): Add new option.
17718         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
17719         to describe code model.
17721 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
17723         PR target/64479
17724         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
17726 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17728         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
17729         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17730         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
17731         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
17732         __builtin_sh_set_fpscr.
17734 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17736         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
17737         after a funtion name just to indicate it is a function.
17738         ([-fsanitize-undefined-trap-on-error]): Likewise.
17739         ([-fdbg-cnt=]): Likewise.
17740         ([-mmemcpy]): Likewise.
17741         ([-mflush-func]): Likewise.
17742         ([-msynci]): Likewise.
17744 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17746         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
17747         example.
17749 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
17751         PR tree-optimization/64563
17752         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
17753         instead of != VR_VARYING.
17755         PR target/64513
17756         * config/i386/i386.c (ix86_expand_prologue): Add
17757         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
17759         PR tree-optimization/64454
17760         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
17761         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
17762         for signed or [0, op1 - 1] for unsigned modulo.
17763         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17764         even if op1 does not satisfy integer_pow2p.
17766         PR other/64370
17767         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
17769 2015-01-12  Jeff Law  <law@redhat.com>
17771         PR target/64461
17772         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
17773         (trunchiqi2, truncsihi2): Similarly.
17775         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
17776         rather than calling F.
17778 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17780         * tsan.c (instrument_expr): Use force_gimple_operand.
17781         Use may_be_nonaddressable_p instead of is_gimple_addressable.
17783 2015-01-12  Richard Biener  <rguenther@suse.de>
17785         PR tree-optimization/64530
17786         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
17787         back dr1.
17789 2015-01-12  Richard Biener  <rguenther@suse.de>
17791         PR middle-end/64357
17792         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
17793         latches properly.
17795 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17797         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
17798         Cortex-A17 tuning parameters.
17799         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
17801 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17803         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
17804         * config/arm/arm.c (arm_macro_fusion_p): New function.
17805         (arm_macro_fusion_pair_p): Likewise.
17806         (TARGET_SCHED_MACRO_FUSION_P): Define.
17807         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
17808         (ARM_FUSE_NOTHING): Likewise.
17809         (ARM_FUSE_MOVW_MOVT): Likewise.
17810         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
17811         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
17812         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
17813         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
17814         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
17815         arm_cortex_a5_tune): Specify fuseable_ops value.
17817 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17819         PR bootstrap/64561
17820         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
17821         test for PIE with copy reloc.
17822         * configure: Regenerated.
17824 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17826         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
17827         in gen_rtx_REG.
17828         (arm_tls_descseq_addr): Likewise.
17829         (arm_gen_movmemqi): Likewise.
17830         (arm_expand_epilogue_apcs_frame): Likewise.
17831         (arm_expand_epilogue): Likewise.
17832         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
17833         in gen_rtx_REG.
17835 2015-01-12  Martin Liska  <mliska@suse.cz>
17837         PR ipa/64550
17838         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
17839         volatility for correct operands.
17841 2015-01-12  Martin Liska  <mliska@suse.cz>
17843         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
17844         indication that a function is not leaf.
17845         (sem_function::compare_polymorphic_p): Likewise.
17847 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17849         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
17850         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
17851         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
17852         fold-const.h, tree-check.h.
17854 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17856         PR ipa/63967
17857         PR ipa/64425
17858         * ipa-inline.c (compute_uninlined_call_time,
17859         compute_inlined_call_time): Use counts for extra precision when
17860         needed possible.
17861         (big_speedup_p): Fix formating.
17862         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
17863         (relative_time_benefit): Remove.
17864         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
17865         merge guessed and read profile paths.
17866         (inline_small_functions): Count only !optimize_size functions into
17867         initial size; be more lax about sanity check when profile is used;
17868         be sure to update inlined function profile when profile is read.
17870 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17872         PR ipa/63470
17873         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
17874         cost when edge becomes direct.
17875         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
17876         is resolved or when introducing new speculation.
17878 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
17880         PR ipa/64551
17881         PR ipa/64552
17882         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
17883         '||' to fix typo issue.
17885         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
17886         accept and return NULL.
17888 2015-01-12  Martin Liska  <mliska@suse.cz>
17890         * cgraph.c (cgraph_edge::remove_callee): Move function to header
17891         file for being inlined.
17892         (cgraph_set_edge_callee): Delete.
17893         (cgraph_edge::redirect_callee): Move function to header file
17894         for being inlined.
17895         (cgraph_edge::make_direct): Use new function.
17896         (cgraph_edge::dump_edge_flags): New function created from
17897         static dump_edge_flags function.
17898         (cgraph_node::dump): Use new function.
17899         (cgraph_edge::verify_count_and_frequency): New function created
17900         from verify_edge_count_and_frequency.
17901         (cgraph_edge::verify_corresponds_to_fndecl): New function created
17902         from verify_edge_corresponds_to_fndecl.
17903         (verify_edge_corresponds_to_fndecl): Delete.
17904         (cgraph_node::verify_node): Use new function.
17905         * cgraph.h (cgraph_edge::set_callee): New function.
17906         (cgraph_edge::dump_edge_flags): Likewise.
17907         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
17909 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
17911         * ipa-utils.c (estimate_function_body_sizes): Do not
17912         free node params when called late with early=true.
17914 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
17916         * doc/md.texi (Instruction Patterns): Rewrite text for
17917         clarity.
17918         (Example): Likewise.
17920 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
17922         * doc/invoke.texi (Option Summary): Break long lines.
17923         [(-fdiagnostics-color)]: Put long literal in @smallexample
17924         instead of inline.
17925         [(-fsanitize-recover)]: Likewise.
17926         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
17927         [(-ffast-math)]: Likewise.
17928         [(--param max-inline-insns-recursive)]: Likewise.
17929         [(--param max-inline-recursive-depth)]: Likewise.
17930         [(-mno-text-section-literals)]: Likewise.
17932 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
17934         * doc/install.texi: Update for libgomp being renamed from "GNU
17935         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
17936         Runtime Library".
17937         * doc/sourcebuild.texi: Likewise.
17939 2015-01-10  Anthony Green  <green@moxielogic.com>
17941         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
17942         mul.x availability for moxiebox configuration.
17944 2015-01-09  Anthony Green  <green@moxielogic.com>
17946         * config/moxie/moxie.md: Tabify assembly output.
17948 2015-01-09  Anthony Green  <green@moxielogic.com>
17950         * config/moxie/moxie.md (CC_REG): Correct register definition.
17952 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
17954         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
17955         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
17956         of log files.
17958 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17960         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
17962 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
17963             Jakub Jelinek  <jakub@redhat.com>
17965         PR middle-end/64412
17966         * lto-streamer.h (lto_stream_offload_p): New declaration.
17967         * lto-streamer.c (lto_stream_offload_p): New variable.
17968         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
17969         at the same time as section_name_prefix.
17970         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
17971         if lto_stream_offload_p.
17972         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
17973         stream TREE_TARGET_OPTION if lto_stream_offload_p.
17974         (write_ts_function_decl_tree_pointers): Don't
17975         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
17976         * tree-streamer-in.c (unpack_value_fields): Don't stream
17977         TREE_TARGET_OPTION in if ACCEL_COMPILER.
17978         (lto_input_ts_function_decl_tree_pointers): Don't stream
17979         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
17980         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
17981         instead of section_name_prefix string comparisons.
17983 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
17985         PR rtl-optimization/64536
17986         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
17987         tablejumps.
17989 2015-01-09  Michael Collison  <michael.collison@linaro.org>
17991         PR tree-optimization/64322
17992         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
17993         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
17995 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17997         PR rtl-optimization/64539
17998         * regcprop.c (kill_clobbered_values): Factor out of ...
17999         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
18000         instead of note_stores with kill_clobbered_value.
18002 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18004          * ginclude/unwind-arm-common.h: Revert previous commit.
18006 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18008         * config.gcc (arm*-*-freebsd*): New configuration.
18009         * config/arm/freebsd.h: New file.
18010         * config.host: Add extra components for arm*-*-freebsd*.
18011         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
18012         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
18014 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18016         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
18017         for -mcpu=e6500.
18018         * config/rs6000/t-rtems: Add e6500 multilibs.
18020 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18022         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
18023         MPC8540.
18025 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18027         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
18028         MULTILIB_EXCEPTIONS.
18030 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18032         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
18033         MULTILIB_EXCEPTIONS.
18035 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18037         * config/arm/t-rtems-eabi: Rename to...
18038         * config/arm/t-rtems: ...this.
18039         * config/arm/rtems-eabi.h: Rename to...
18040         * config/arm/rtems.h: ...this.
18041         * config.gcc (arm*-*-rtems*): Reflect changes above.
18043 2015-01-09  Richard Biener  <rguenther@suse.de>
18045         PR tree-optimization/64410
18046         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
18047         on the LHS.
18048         (execute_update_addresses_taken): Deal with that.
18049         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
18050         loads/stores for complex variables.
18052 2015-01-09  Martin Liska  <mliska@suse.cz>
18054         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
18055         name comparison.
18056         (func_checker::compare_memory_operand): New function.
18057         (func_checker::compare_operand): Split case to newly
18058         added functions.
18059         (func_checker::compare_cst_or_decl): New function.
18060         (func_checker::compare_gimple_call): Identify
18061         memory operands.
18062         (func_checker::compare_gimple_assign): Likewise.
18063         * ipa-icf-gimple.h: New function.
18065 2015-01-09  Martin Liska  <mliska@suse.cz>
18067         PR ipa/64503
18068         * sreal.c (sreal::dump): Change unsigned format to signed for
18069         m_exp value.
18070         (sreal::to_double): Replace exp2 with scalbln.
18072 2015-01-09  Martin Liska  <mliska@suse.cz>
18074         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
18075         * ipa-icf.c (sem_function::equals_private): Add support for target and
18076         (sem_item_optimizer::merge_classes): Remove redundant function
18077         optimization flags comparison.
18078         * tree.h (target_opts_for_fn): New function.
18080 2015-01-09  Tom de Vries  <tom@codesourcery.com>
18082         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
18084 2015-01-09  Kito Cheng  <kito@0xlab.org>
18086         PR rtl-optimization/64348
18087         * lra-constraints.c (split_reg): Fix caller-save store/restore
18088         instruction generation.
18090 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
18092         PR gcov-profile/61790
18093         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
18094         long long.  Fallback to int64_t if host doesn't have long long and
18095         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
18097 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18099         PR tree-optimization/63989
18100         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
18101         from 1000 to 10000.
18102         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
18103         (get_stridx): If we don't have a record for certain SSA_NAME,
18104         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
18105         constant offset, call get_stridx_plus_constant.
18106         (get_stridx_plus_constant): New function.
18107         (zero_length_string): Don't use get_stridx here.
18109         PR target/55023
18110         PR middle-end/64388
18111         * dse.c (struct insn_info): Mention frame_read set also
18112         before reload for tail calls on some targets.
18113         (scan_insn): Revert 2014-12-22 change.  Set frame_read
18114         also before reload for tail calls if
18115         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
18116         instead of add_non_frame_wild_read for non-const/memset
18117         tail calls after reload.
18119 2015-01-08  Jason Merrill  <jason@redhat.com>
18121         * ubsan.c (do_ubsan_in_current_function): New.
18122         (pass_ubsan::gate): Use it.
18123         * ubsan.h: Declare it.
18124         * convert.c (convert_to_integer): Use it.
18126 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18128         PR target/64338
18129         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
18130         compare_code when it is unconditionally overwritten afterwards.
18131         Use ix86_reverse_condition instead of reverse_condition.  Don't
18132         change code if *reverse_condition* returned UNKNOWN and don't
18133         swap ct/cf and negate diff in that case.
18135 2015-01-08  Mike Stump  <mikestump@comcast.net>
18137         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
18138         (pass_tsan_O0::gate): Likewise.
18139         * extend.texi (Function Attributes): Add no_sanitize_thread
18140         documentation.
18142 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
18144         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
18145         for registering builtins.
18146         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
18147         add -fopenmp to the argv_obstack used when invoking
18148         compile_for_target.
18150         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
18151         add "-m32" or "-m64" to argv_obstack.
18152         (generate_host_descr_file): Likewise, when invoking host_compiler.
18153         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
18154         ld.
18156 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
18158         * config/sh/sh-mem.cc: Use constant as second operand when emitting
18159         tstsi_t insns.
18161 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
18163         PR target/55212
18164         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
18165         constant load if constant operand fits into I08.
18167 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18169         PR sanitizer/64336
18170         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
18171         and TREE_THIS_VOLATILE for MEM_REFs.
18172         (build5_stat): Fix up initialization of TREE_READONLY and
18173         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
18175 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18177         PR target/64533
18178         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
18179         of r for the second alternative of the destination operand.
18181 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
18183         PR target/36557
18184         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
18186 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18188         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
18189         keywords.
18190         ([-fivar-visibility], [-fvisibility]): Likewise.
18192 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18194         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
18195         the file where @code, @command, etc is more appropriate.
18197 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
18199         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
18200         of -mrecip= documentation.
18202 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18204         PR target/64505
18205         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
18206         correct reload handler if -m32 -mpowerpc64 is used.
18208 2015-01-06  Tom de Vries  <tom@codesourcery.com>
18210         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
18212 2015-01-08  Christian Bruel  <christian.bruel@st.com>
18214         PR target/64507
18215         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
18217 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18219         PR tree-optimization/63259
18220         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
18221         if optab exists for 16bit byteswap.
18223 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
18225         * opts.c (common_handle_option): Add support for
18226         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
18227         * doc/invoke.texi: Document -fno-sanitize=all,
18228         -f{,no-}sanitize-recover=all.  Document that
18229         -fsanitize=float-cast-overflow is not enabled
18230         by -fsanitize=undefined.  Fix up documentation
18231         of -f{,no-}sanitize-recover.
18233 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
18235         * config.gcc: Add Visium support.
18236         * configure.ac: Likewise.
18237         * configure: Regenerate.
18238         * doc/extend.texi (interrupt attribute): Add Visium.
18239         * doc/invoke.texi: Document Visium options.
18240         * doc/install.texi: Document Visium target.
18241         * doc/md.texi: Document Visium constraints.
18242         * common/config/visium: New directory.
18243         * config/visium: Likewise.
18245 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
18247         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
18248         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
18250 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
18252         * combine.c (combine_validate_cost): Do not count the cost of a
18253         split I2 twice.  Do not display it twice in the dump, either.
18255 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18257         Revert parts of r219199.
18258         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
18259         <inttypes.h>.
18260         ([-Wtraditional]): Restore markup on <limits.h>.
18262 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
18264         PR c++/31397
18265         * doc/invoke.texi: Document -Wsuggest-override.
18267 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
18269         PR rtl-optimization/64287
18270         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
18271         (process_options): Disable flag_ipa_ra if profiling.
18273 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18275         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
18277 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
18279         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
18280         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
18281         put under #if TARGET_LOOPS guard.
18283 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
18285         * config/i386/i386.c (output_387_binary_op): Use std::swap.
18287 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
18289         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
18290         * rtl.h (refers_to_regno_p): Add overload.
18291         * cse.c: Use it.
18292         * bt-load.c: Likewise.
18293         * combine.c: Likewise.
18294         * df-scan.c: Likewise.
18295         * sched-deps.c: Likewise.
18296         * config/s390/s390.c: Likewise.
18297         * config/m32r/m32r.c: Likewise.
18298         * config/rs6000/spe.md: Likewise.
18299         * config/rs6000/rs6000.c: Likewise.
18300         * config/pa/pa.c: Likewise.
18301         * config/stormy16/stormy16.c: Likewise.
18302         * config/cris/cris.c: Likewise.
18303         * config/arc/arc.md: Likewise.
18304         * config/arc/arc.c: Likewise.
18305         * config/sh/sh.md: Likewise.
18306         * config/sh/sh.c: Likewise.
18307         * config/frv/frv.c: Likewise.
18309 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18311         PR sanitizer/64265
18312         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18313         call as cleanup of the whole body.
18314         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18315         * tsan.c (replace_func_exit): New function.
18316         (instrument_func_exit): Moved earlier.
18317         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18318         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18319         been found.
18320         (tsan_pass): Don't call instrument_func_exit.
18321         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18322         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18323         inlining.
18325         PR sanitizer/64344
18326         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18327         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18328         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
18329         if the result is integer_zerop, return NULL_TREE.
18330         * convert.c (convert_to_integer): Pass expr as ARG.
18332         PR tree-optimization/64465
18333         * tree-inline.c (redirect_all_calls): During inlining
18334         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18335         changed the stmt to a non-throwing call.
18337 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18339         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18340         etc markup throughout the file.
18342 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18344         Enable experimental TSAN support for Ada.
18345         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18347 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18349         PR tree-optimization/64494
18350         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18351         clear SSA_NAME_ANTI_RANGE_P flag.
18353 2015-01-05  Marek Polacek  <polacek@redhat.com>
18355         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18357 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18359         Update copyright years.
18361         * gcc.c (process_command): Update copyright notice dates.
18362         * gcov-dump.c: Ditto.
18363         * gcov.c: Ditto.
18364         * doc/cpp.texi: Bump @copying's copyright year.
18365         * doc/cppinternals.texi: Ditto.
18366         * doc/gcc.texi: Ditto.
18367         * doc/gccint.texi: Ditto.
18368         * doc/gcov.texi: Ditto.
18369         * doc/install.texi: Ditto.
18370         * doc/invoke.texi: Ditto.
18372         * auto-profile.c, auto-profile.h: Fix up Copyright line.
18374 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
18376         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18377         verb tense, etc.
18378         ([-fvtable-verify], [-fvtv-debug]): Likewise.
18379         ([-Wabi]): Likewise.
18380         ([-fmessage-length]): Likewise.
18381         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18382         ([-Wno-discarded-qualifiers]): Likewise.
18383         ([-Wnodiscarded-array-qualifiers]): Likewise.
18384         ([-Wno-virtual-move-assign]): Likewise.
18385         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18386         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18387         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18388         ([-fsanitize-undefined-trap-on-error]): Likewise.
18389         ([-floop-interchange]): Likewise.
18390         ([-ftree-coalesce-inlined-vars]): Likewise.
18391         ([-fvect-cost-model]): Likewise.
18392         ([-flto]): Likewise.
18393         ([--param]): Likewise.
18394         (Spec Files): Likewise.
18395         ([-mstrict-align]): Likewise.
18396         ([-mfix-cortex-a53-835769]): Likewise.
18397         ([-march], [-mtune]): Likewise.
18398         ([-mpic-register]): Likewise.
18399         ([-munaligned-access]): Likewise.
18400         ([-msp8]): Likewise.
18401         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18402         (AVR Built-in Macros): Likewise.
18403         ([-mpreferred-stack-boundary]): Likewise.
18404         ([-mtune-crtl]): Likewise.
18405         ([-mashf]): Likewise.
18406         ([-mmcu=]): Likewise.
18407         ([-minrt]): Likewise.
18408         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18409         ([-mupper-regs]): Likewise.
18410         ([-matomic-model]): Likewise.
18411         ([-mdiv]): Likewise.
18412         ([-mzdcbranch]): Likewise.
18413         ([-mdisable-callt]): Likewise.
18414         ([-msoft-float]): Likewise.
18415         ([-m8byte-align]): Likewise.
18416         ([-fstack-reuse]): Likewise.
18418 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18420         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18421         Fix markup, light copy-editing.
18422         ([-fauto-profile]): Rewrite to fix formatting and content
18423         problems.
18425 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18427         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
18428         Copy-edit description.
18429         ([-fisolate-erroneous-paths-attribute]): Likewise.
18430         * common.opt (fisolate-erroneous-paths-dereference):
18431         Copy-edit description.
18432         (fisolate-erroneous-paths-attribute): Likewise.
18434 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18436         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
18437         tidy grammar.
18439 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18441         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
18442         ([-fvtv-debug]): Likewise.
18443         ([-Wc++-compat]): Likewise.
18444         ([-Wc++11-compat]): Likewise.
18445         ([-Wc++14-compat]): Likewise.
18446         ([-Wno-sized-deallocation]): Likewise.
18447         ([-femit-class-debug-always]): Likewise.
18448         ([-femit-struct-debug-detailed]): Likewise.
18449         ([-fno-keep-inline-dllexport]): Likewise.
18450         ([-fira-algorithm]): Likewise.
18451         ([-fira-region]): Likewise.
18452         ([-flra-remat]): Likewise.
18453         ([-fipa-ra]): Likewise.
18454         ([-fhoist-adjacent-loads]): Likewise.
18455         ([-fisolate-erroneous-paths-dereference]): Likewise.
18456         ([-fisolate-erroneous-paths-attribute]): Likewise.
18457         ([-ftree-switch-conversion]): Likewise.
18458         ([-ftree-tail-merge]): Likewise.
18459         ([-ftree-loop-if-convert]): Likewise.
18460         ([-ftree-loop-if-convert-stores]): Likewise.
18461         ([-ftree-loop-distribution]): Likewise.
18462         ([-ftree-loop-distribute-patterns]): Likewise.
18463         ([-flto-compression-level]): Likewise.
18464         ([-flto-report]): Likewise.
18465         ([-flto-report-wpa]): Likewise.
18466         ([-fuse-linker-plugin]): Likewise.
18467         ([-mfix-cortex-a53-835769]): Likewise.
18468         ([-mno-fix-cortex-a53-835769]): Likewise.
18469         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
18470         explicit listing; add a note to the discussion indicating they
18471         exist.  Reorder table to group similar options.  Add missing
18472         @opindex entries.  Add @need commands throughout the table to
18473         allow it to be split across multiple pages.
18474         ([-m8bit-idiv]): Fix @opindex.
18475         ([-mavx256-split-unaligned-load]): Likewise.
18476         ([-mavx256-split-unaligned-store]): Likewise.
18477         ([-mstack-protector-guard]): Likewise.
18478         ([-mcpu=]): Likewise.
18479         ([-mcpu]): Likewise.
18480         ([-mpointer-size=]): Likewise.
18482 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
18484         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
18485         instead of `m' constraint.  Likewise for unnamed movb comparison
18486         patterns using reg_before_reload_operand predicate.
18487         * config/pa/predicates.md (reg_before_reload_operand): Tighten
18488         predicate to reject register index and LO_SUM DLT memory forms
18489         after reload.
18491 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
18493         * doc/invoke.texi (Option Summary): Fix spelling of
18494         -fdevirtualize-at-ltrans.
18495         ([-fdevirtualize]): Fix markup.
18496         ([-fdevirtualize-speculatively]): Fix typo.
18497         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
18498         implementor-speaky.
18499         * common.opt (fdevirtualize-at-ltrans): Likewise.
18500         * ipa-devirt.c: Fix typos in comments throughout the file.
18501         (ipa_devirt): Fix typos in format strings for dump output.
18503 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
18505         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
18506         discussion of defaults, light copy-editing.
18508 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18510         * tsan.c (instrument_expr): corrected previous checkin.
18512 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18514         Instrument bit field and unaligned accesses for TSAN.
18515         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
18516         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
18517         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
18518         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
18519         unaligned memory regions.
18521 2015-01-01  Anthony Green  <green@moxielogic.com>
18523         * config/moxie/predicates.md (moxie_general_movsrc_operand):
18524         Restrict move source register offsets to 16 bits.
18526 Copyright (C) 2015 Free Software Foundation, Inc.
18528 Copying and distribution of this file, with or without modification,
18529 are permitted in any medium without royalty provided the copyright
18530 notice and this notice are preserved.